Azure deployment failures after upgrade from 3.0 to 3.3.10

Hi,

We recently upgraded our Octopus server from 3.0 to 3.3.10, and sice, Azure deployments are failing with this error:

== Failed: Step 3: DC0 - Deploy to staging slot - new ==
18:42:47 Verbose | Octopus Server version: 3.3.10+Branch.master.Sha.365b9921133c9490a3ac820844cbb8edb603873f
18:42:47 Verbose | Using account ID 'NuGet Development’
18:42:48 Verbose | Octopus Deploy: Calamari.Azure version 3.3.10+Branch.master.Sha.dab9a87456f8d6de68c2f8cca2e5719e8069c9b5
18:42:48 Info | Deploying package: C:\Octopus\Packages\NuGetGallery.Cloud\NuGetGallery.Cloud.3.0.2078-r-master.nupkg
18:42:50 Verbose | Loading certificate with thumbprint: 4852B152BB0B71CF474C8BFCD974261E1E357808
18:42:50 Verbose | Certificate was found in store
18:42:50 Verbose | Name Value
18:42:50 Verbose | ---- -----
18:42:50 Verbose | PSVersion 4.0
18:42:50 Verbose | WSManStackVersion 3.0
18:42:50 Verbose | SerializationVersion 1.1.0.1
18:42:50 Verbose | CLRVersion 4.0.30319.34014
18:42:50 Verbose | BuildVersion 6.3.9600.17400
18:42:50 Verbose | PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
18:42:50 Verbose | PSRemotingProtocolVersion 2.2
18:42:51 Verbose | Importing Azure Service Management PowerShell module
18:42:51 Error | Import-Module : The specified module ‘C:\Program Files (x86)\Microsoft SDKs\Windows
18:42:51 Error | Azure\PowerShell\ServiceManagement\Azure\Azure.psd1\ServiceManagement\Azure’ was not loaded because no valid module
18:42:51 Error | file was found in any module directory.
18:42:51 Error | At C:\Users\nuget\AppData\Local\Calamari.Azure\Temp\57125296-0962-48a3-bbc3-4fcfd8375fe8\Octopus.AzureContext.ps1:51
18:42:51 Error | char:2
18:42:51 Error | + Import-Module -Name ([IO.Path]::Combine("$OctopusAzureModulePath", "ServiceMana …
18:42:51 Error | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18:42:51 Error | + CategoryInfo : ResourceUnavailable: (C:\Program File…anagement\Azure:String) [Import-Module], FileNot
18:42:51 Error | FoundException
18:42:51 Error | + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
18:42:51 Error | Script ‘C:\Users\nuget\AppData\Local\Calamari.Azure\Temp\57125296-0962-48a3-bbc3-4fcfd8375fe8\SwapAzureCloudServiceDeployment.ps1’ returned non-zero exit code: 1
18:42:51 Error | Running rollback conventions…
18:42:52 Error | Script ‘C:\Users\nuget\AppData\Local\Calamari.Azure\Temp\57125296-0962-48a3-bbc3-4fcfd8375fe8\SwapAzureCloudServiceDeployment.ps1’ returned non-zero exit code: 1
18:42:52 Fatal | The step failed: The remote script failed with exit code 1
18:42:52 Verbose | DC0 - Deploy to staging slot - new completed

Can you please help?

Hi,

For anyone who stumbles across this thread the issue was with an incorrect path in the variables for an import-module.

Vanessa