Hello,
We are on version 2018.7.7 of Octopus Deploy, and we recently upgraded to 2018.7.10. After the upgrade, any and all deployments using an account with management certificate authentication would begin to fail, per the error below.
Hyak.Common.CloudException: ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Microsoft.WindowsAzure.Management.Compute.DeploymentOperationsExtensions.GetBySlot(IDeploymentOperations operations, String serviceName, DeploymentSlot deploymentSlot)
at Calamari.Azure.Integration.AzureCloudServiceConfigurationRetriever.GetConfiguration(SubscriptionCloudCredentials credentials, String serviceName, DeploymentSlot slot)
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.UpdateConfigurationWithCurrentInstanceCount(XContainer localConfigurationFile, String configurationFileName, VariableDictionary variables)
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.Install(RunningDeployment deployment)
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
at Calamari.Deployment.ConventionProcessor.RunConventions()
Running rollback conventions...
ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
Hyak.Common.CloudException
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Microsoft.WindowsAzure.Management.Compute.DeploymentOperationsExtensions.GetBySlot(IDeploymentOperations operations, String serviceName, DeploymentSlot deploymentSlot)
at Calamari.Azure.Integration.AzureCloudServiceConfigurationRetriever.GetConfiguration(SubscriptionCloudCredentials credentials, String serviceName, DeploymentSlot slot)
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.UpdateConfigurationWithCurrentInstanceCount(XContainer localConfigurationFile, String configurationFileName, VariableDictionary variables)
at Calamari.Azure.Deployment.Conventions.ConfigureAzureCloudServiceConvention.Install(RunningDeployment deployment)
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
at Calamari.Deployment.ConventionProcessor.RunConventions()
at Calamari.Azure.Commands.DeployAzureCloudServiceCommand.Execute(String[] commandLineArguments)
at Calamari.Program.Execute(String[] args)
The remote script failed with exit code 100
The action Deploy on the Octopus Server failed
We had to rollback to 2018.7.7 to continue using Octopus. This issue occurs on version 2018.7.8, 7.9, and 7.10. The account this is failing on is scoped to one tenant and one environment, and is only available for tenanted deployments. The account is against the AzureUSGovernment azure environment, and the management certificate is still present and valid for those Azure subscriptions affected.