Comments (6)
We cannot recreate this behavior. Running PureStoragePowerShellSDK2 on PowerShell 7.2.3. Once the module is imported, several cmdlets run without issue. Are you doing an Import-Module first, or relying on auto-loading?
Could you possibly create a quick video showing the Importing of the module & subsequent cmdlet executions with the requirement to run the Import again after every one cmdlet execution?
from powershellsdk2.
yes, once it is imported it works fine. Closing the session and creating a new session, and the cmdlets are gone. So your module doesn't support auto-loading?
from powershellsdk2.
I can create a video to show you what I am experiencing. I am working in PS 7.3.0
from powershellsdk2.
from powershellsdk2.
The way I understand it is that the module has to be designed in a way so that cmdlets can be used without importing each time. I can always just import module each time in my function that utilizes your cmdlets but it is just an extra step. I see in your manifest file (and when I look at the module with 'Get-module -ListAvailable') that there are no cmdlets or functions to export. I am assuming the module is created with C# and this property is what can be set to make that happen: https://learn.microsoft.com/en-us/dotnet/api/microsoft.powershell.commands.newmodulemanifestcommand.cmdletstoexport?view=powershellsdk-7.2.0
from powershellsdk2.
You are correct. The developers used a wildcard, which is not best practice, when specifying "CmdletsToLoad". I have attached an updated manifest file (rename to .psd1)
PureStoragePowerShellSDK2.txt
with all of the cmdlets specified and have tested it. Auto loading works with this new file.
Thank you for your assistance!
from powershellsdk2.
Related Issues (17)
- How to get system space usage via PureStoragePowerShellSDK2 HOT 2
- The 2.2.279 tagged release is actually labeled as 2.2.276 when installed HOT 4
- Typo in Documentation HOT 1
- Add Number of Host Target connections to Get-Pfa2Host cmdlet HOT 2
- Bug in SDK v2 -whatif does not work with command Remove-Pfa2Volume HOT 1
- Issues with Get-Help and usage of new-pfa2virtualmachine, update-pfa2virtualmachine HOT 1
- PureStoragePowerShellSDK2 cmdlets return blank lines when running within an IDE HOT 3
- New-Pfa2PolicyQuotaRule Cmdlet only supports Bytes, and only 32bit Int HOT 1
- VM disk ID mismatched with pure storage volume id
- Named cert import states that the cert already exists instead of importing the updated cert HOT 2
- Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0 HOT 3
- Update-Pfa2Support requires 'array_admin' role to enable Remote Assist HOT 6
- Get-Pfa2Volume (2.2.272.0) appears to be hardcoded to use only API v2.2 HOT 4
- Get-Pfa2Connection returns $null, verbose shows exception. HOT 2
- Get-Pfa2Array doesn't contain replication value, but API does. HOT 4
- The pipeline has been stopped. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershellsdk2.