Page 1 of 1

[PSS 2016] Modules not loading and no PrimalSense

Posted: Tue Nov 15, 2016 10:07 am
by joshua.staley
Product, version and build: PowerShell Studio 2016 5.2.129 64 bit
Operating system: Windows 7 64 bit
PowerShell Version: 5.0.10586.117

Trying to author a script for Azure Role based access. When I add a command from the AzureRM modules it does not provide PrimalSense.
PrimalSense-AzureGrey.png
PrimalSense-AzureGrey.png (40.71 KiB) Viewed 1574 times
When I look at the ObjectBrowser I see the PowerShell module is there, but there are no commands when I try and expand the module.
ObjectBrowser-ModuleExpansion.png
ObjectBrowser-ModuleExpansion.png (23.08 KiB) Viewed 1574 times
I have uninstalled and re-installed PowerShell Studio 2016. I have run 'Refresh Local Cache'. When I look at the cache editor all of the AzureRM modules are checked.
CacheEditor.png
CacheEditor.png (73.47 KiB) Viewed 1574 times
Thank you for the help!

Re: [PSS 2016] Modules not loading and no PrimalSense

Posted: Tue Nov 15, 2016 10:48 am
by DevinL
This appears to be due to something with the Azure modules specifically.

I'm looking into this now and I will post here when I have some more information.

Re: [PSS 2016] Modules not loading and no PrimalSense

Posted: Tue Nov 15, 2016 11:19 am
by DevinL
While I don't have any specific details, I can say that it is due to how the modules are designed and the way we cache their data.

To resolve this issue, simply run the attached script and then rebuild your cache. Afterward, your modules should display their cmdlets just fine like so:
Object_Browser.png
Object_Browser.png (74.92 KiB) Viewed 1563 times
Build Module Cache.ps1
(37.83 KiB) Downloaded 171 times