Azure Powershell Script step fail

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…

Hi Robert,

Could I check which version of Octopus you are running and whether you have an external worker configured or not?

We’ve had a couple of reports of issues like this that seem to be related to the version of the Azure modules being bundled with Octopus and/or the use of external workers. See GitHub issues 4574 and 4572.

Regards
Shannon