Azure WebApp - ManagementCertificate - subscriptionId is null

Hello,

after upgrading to 2018.7.10 because of this problem:

we are now getting a following exception:

Deploying package:    C:\Octopus\Packages\XXX\XXX.9.0.2.nupkg 
August 14th 2018 10:26:22Info
Deploying to Azure WebApp 'XXX', deployment slot 'staging', using subscription-id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' 
August 14th 2018 10:26:22Error
System.ArgumentNullException: Value cannot be null. 
August 14th 2018 10:26:22Error
Parameter name: subscriptionId 
August 14th 2018 10:26:22Error
   at Microsoft.Azure.CertificateCloudCredentials..ctor(String subscriptionId, X509Certificate2 managementCertificate) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Integration.Websites.Publishing.ServiceManagementPublishProfileProvider.GetPublishProperties(AzureAccount account, AzureTargetSite targetSite) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.GetPublishProfile(VariableDictionary variables) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.Install(RunningDeployment deployment) 
August 14th 2018 10:26:22Error
   at Calamari.Deployment.ConventionProcessor.RunInstallConventions() 
August 14th 2018 10:26:22Error
   at Calamari.Deployment.ConventionProcessor.RunConventions() 
August 14th 2018 10:26:22Error
Running rollback conventions... 
August 14th 2018 10:26:22Error
Value cannot be null. 
August 14th 2018 10:26:22Error
Parameter name: subscriptionId 
August 14th 2018 10:26:22Error
System.ArgumentNullException 
August 14th 2018 10:26:22Error
   at Microsoft.Azure.CertificateCloudCredentials..ctor(String subscriptionId, X509Certificate2 managementCertificate) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Integration.Websites.Publishing.ServiceManagementPublishProfileProvider.GetPublishProperties(AzureAccount account, AzureTargetSite targetSite) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.GetPublishProfile(VariableDictionary variables) 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.Install(RunningDeployment deployment) 
August 14th 2018 10:26:22Error
   at Calamari.Deployment.ConventionProcessor.RunInstallConventions() 
August 14th 2018 10:26:22Error
   at Calamari.Deployment.ConventionProcessor.RunConventions() 
August 14th 2018 10:26:22Error
   at Calamari.Azure.Commands.DeployAzureWebCommand.Execute(String[] commandLineArguments) 
August 14th 2018 10:26:22Error
   at Calamari.Program.Execute(String[] args) 
August 14th 2018 10:26:26Fatal
The remote script failed with exit code 100 

Azure Account (using the Management Certificate) we use in Octopus should be working fine since nothing has changed there from our side and “Save and Test” verification works ok:

image

Also the Azure subscription-id itself is still active in Azure.

Best Regards,
Jindrich

Hi Jindrich,

So you going from one bug to another bug, not good at all!
Are you able to change to use a service principal account instead for now till we fix this issue ?

I have raise another issue for this, you can follow it https://github.com/OctopusDeploy/Issues/issues/4814

Cheers
John

Hi John,

thanks for picking this up. Indeed the Service Principal Account in combination with WebApp Deployment Targets is the way to go for us now.

Best Regards,
Jindrich

Hi Jindrich,

We have just released a new version 2018.7.11, that should fix this issue.

Cheers
John