commands are grayed out

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
CitrixITM
Posts: 124
Last visit: Wed Jul 27, 2022 2:19 pm

commands are grayed out

Post by CitrixITM »

Hello,

I'm running Sapien PowerShell Studio 2017 (5.4.145.0). In my script, I import-module AzureRM.
The issue that I am seeing is that all Azure related powershell scripts are coming in as gray in the editor (as if it doesn't recognize them). If I go to the Console, I can run those same grayed commands. The commands seem to work, but are grayed out. I'm running scripts elevated, STA mode, I have refreshed the local cache, and have tried both V5-32bit and V5-64bit.

Any ideas,
Thanks.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: commands are grayed out

Post by jvierra »

You need to rebuild you cache. Home\Platform (green arrows in circle)
cody m

Re: commands are grayed out

Post by cody m »

Here is screen shot of the button that you are looking for.
Attachments
RefreshCache.JPG
RefreshCache.JPG (42.03 KiB) Viewed 5208 times
User avatar
CitrixITM
Posts: 124
Last visit: Wed Jul 27, 2022 2:19 pm

Re: commands are grayed out

Post by CitrixITM »

Thank you, but as I stated I did refresh the local cache.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: commands are grayed out

Post by jvierra »

Be sure the module is in the module path. Go into the cache editor and make sure the module is selected.
User avatar
CitrixITM
Posts: 124
Last visit: Wed Jul 27, 2022 2:19 pm

Re: commands are grayed out

Post by CitrixITM »

How do I get to the cache editor? It looks like the Azure modules are in the correct place.
2017-11-29_15-58-20.jpg
2017-11-29_15-58-20.jpg (119.32 KiB) Viewed 5182 times
User avatar
CitrixITM
Posts: 124
Last visit: Wed Jul 27, 2022 2:19 pm

Re: commands are grayed out

Post by CitrixITM »

Here are the Modules listed in the Object Browser:
2.jpg
2.jpg (216.68 KiB) Viewed 5177 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: commands are grayed out

Post by jvierra »

Hint: For all icons that have no label - "hover". Take the time to review all menus and icons on all panels to familiarize yourself with the capabilities and layout of PSS. It will save you hours of future problems. Also take the time to read the manual on the left of the "Help" tap.
User avatar
CitrixITM
Posts: 124
Last visit: Wed Jul 27, 2022 2:19 pm

Re: commands are grayed out

Post by CitrixITM »

I'm not sure what you mean by "no label". All of the modules seem to have appropriate names. Also, I did open up the Product Manual and could not find anything about the cache editor.

It looks like the Azure module I can expand to see all the commands. The AzureRM modules don't expand. When I hover over any of the modules, they all look fine.

How can I eget to the cache editor?
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: commands are grayed out

Post by mxtrinidad »

PowerShell Cache Editor
EditCache_ICO_2017-11-08_18-19-43.png
EditCache_ICO_2017-11-08_18-19-43.png (81.76 KiB) Viewed 5156 times
Also, I would like to see a print screen of your "cache editor" if possible. I recently discovered some issues with Azure modules due to different versions been installed on the system.
This topic is 6 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked