View Single Post
  #1  
Old 10-02-2023, 03:10 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Azure module not recognized in PowerShell action

When this is executed from windows server powershell command line manually, it works fine, but when executed through VBP, it fails saying 'Get-AzCloudService' command not recognized. User is logged in using the same creds too.

Get-AzCloudService -ResourceGroupName "%RESOURCE_GROUP%" -CloudServiceName "%CLOUD_SERVICE_NAME%"


Failure message:
>C:\Users\<****>\AppData\Local\Temp\Vis8CFA.tmp.ps 1 : Failed to build because The term 'Get-AzCloudService' is not </message>
<message>recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if </message>
<message>a path was included, verify that the path is correct and try again.</message>
<message>At line:1 char:1</message>
<message>+ & C:\Users\<****>\AppData\Local\Temp\Vis8CFA.tmp.ps1 </message>
<message>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~</message>
<message> + CategoryInfo : NotSpecified: ( [Write-Error], WriteErrorException</message>
<message> + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException, Vis8CFA.tmp.ps1</message>
<message> </message>
<message>Process completed with exit code 1</message>

Last edited by paxil; 10-02-2023 at 03:17 PM.
Reply With Quote