Hello,
When I try to execute a Powershell Azure Script then I got an error (see below).
The script should be executed on Server.
Steps those deploys packages to WebApp works well so I suppose this is not an authentication/authorization issue.
When I execute PowerShell command Get-AzureEnvironment on server then I got proper results.
OctopusPrintVariables is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments.
September 7th 2018 13:19:59Warning
OctopusPrintEvaluatedVariables is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments.
September 7th 2018 13:20:00Info
Attempt 1 of 5 failed: No Azure environment could be matched given the name AzureCloud
September 7th 2018 13:20:00Info
Waiting for 5 seconds before retrying…
September 7th 2018 13:20:05Info
Retrying…
September 7th 2018 13:20:05Info
Attempt 2 of 5 failed: No Azure environment could be matched given the name AzureCloud
September 7th 2018 13:20:05Info
Waiting for 5 seconds before retrying…
September 7th 2018 13:20:10Info
Retrying…
September 7th 2018 13:20:10Info
Attempt 3 of 5 failed: No Azure environment could be matched given the name AzureCloud
September 7th 2018 13:20:10Info
Waiting for 5 seconds before retrying…
September 7th 2018 13:20:15Info
Retrying…
September 7th 2018 13:20:15Info
Attempt 4 of 5 failed: No Azure environment could be matched given the name AzureCloud
September 7th 2018 13:20:15Info
Waiting for 5 seconds before retrying…
September 7th 2018 13:20:20Info
Retrying…