- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 11:57 AM
Hi,
I got the below error while executing Powershell Activity. Please help me in fixing the issue
Solved! Go to Solution.
- Labels:
-
Orchestration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 07:15 PM
Maybe a silly question, but is the powershell AZ module installed/enabled? Was it installed with the '-scope AllUsers' flag?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 07:15 PM
Maybe a silly question, but is the powershell AZ module installed/enabled? Was it installed with the '-scope AllUsers' flag?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2019 12:06 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2019 01:56 PM
I would say that as long as the module is installed on the MID server itself, then you should only need to import the module in the script. I have not done it myself so I can't say for sure, but I would definitely add the import-module step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2019 02:23 PM
I appreciate your response David.
I installed it on the mid server.
Could fix the issue by removing "Connect-AzAccount" which is not needed and "$" before "az login" from the above Script.