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