Deploy package to azure webapp failed in Calamari

Hi there,

We’re having an issue when deploying nuget packages to Azure webapp since yesterday, but we are not aware of any change made on our side, and our deployment setup was working fine since months if not years. The same issue is affecting multiple octopus instances and azure regions but it seems to happen randomly when deploying different packages.

Here’s the error :

Deploying to Azure WebApp 'cdo-mst-brand-eu-ft2-appservice-sitecore-cmd-01' in Resource Group cdo-mst-brand-eu-ft2, using subscription-id 'snip'

System.NullReferenceException: Object reference not set to an instance of an object.

at Calamari.Azure.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.<>c__DisplayClass0_0.<GetPublishProperties>b__2(Site x) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\Websites\Publishing\ResourceManagerPublishProfileProvider.cs:line 33

at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

at Calamari.Azure.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.GetPublishProperties(String subscriptionId, String resourceGroupName, String siteName, String tenantId, String applicationId, String password, String resourceManagementEndpoint, String activeDirectoryEndPoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\Websites\Publishing\ResourceManagerPublishProfileProvider.cs:line 30

at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.GetPublishProfile(VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 91

at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 29

at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 56

at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line

Our octopus version is 3.12.1.

Can you please advise on how we can fix this issue?

Thanks,
Maxime

Hi Maxime,

We received quite a few support cases with the same error, and it seems there was an outage in Azure that caused this issue, see https://azure.microsoft.com/en-us/status/history/
We actually got some customers reporting it via our slack channel as well, see https://octopususergroup.slack.com/archives/C6UGLUWMQ/p1539809978000100?thread_ts=1539793406.000100&cid=C6UGLUWMQ

So it seems Azure is all good now, are you able to retry these deployments ?

Regards

Hi John,

Thanks for the quick reply.
Yep, we also got this confirmation from Microsoft during the night. The incident is resolved now and we’re able to deploy without any issue so far.

Thanks,
Maxime