Hi,
I am trying to deploy into new subscription, I have created Service principal & added to octopus. I have tested the service principal to login and deploy to Azure RM through powershell which is working. But only deploying through Octopus is giving following error, which is not informative
Authentication Context: https://login.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
June 19th 2017 14:03:45Error Hyak.Common.CloudException: MultipleErrorsOccurred: Multiple error occurred: BadRequest,BadRequest,BadRequest. Please see details.
June 19th 2017 14:03:45Error at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
June 19th 2017 14:03:45Error at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
June 19th 2017 14:03:45Error at Microsoft.Azure.Management.Resources.DeploymentOperationsExtensions.CreateOrUpdate(IDeploymentOperations operations, String resourceGroupName, String deploymentName, Deployment parameters)
June 19th 2017 14:03:45Error at Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.CreateDeployment(Func`1 createArmClient, String resourceGroupName, String deploymentName, DeploymentMode deploymentMode, String template, String parameters) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\DeployAzureResourceGroupConvention.cs:line 96
June 19th 2017 14:03:45Error at Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\DeployAzureResourceGroupConvention.cs:line 69
June 19th 2017 14:03:45Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
June 19th 2017 14:03:45Error at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
June 19th 2017 14:03:45Error Running rollback conventions...
June 19th 2017 14:03:45Error Hyak.Common.CloudException: MultipleErrorsOccurred: Multiple error occurred: BadRequest,BadRequest,BadRequest. Please see details.
June 19th 2017 14:03:45Error at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
June 19th 2017 14:03:45Error at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
June 19th 2017 14:03:45Error at Microsoft.Azure.Management.Resources.DeploymentOperationsExtensions.CreateOrUpdate(IDeploymentOperations operations, String resourceGroupName, String deploymentName, Deployment parameters)
June 19th 2017 14:03:45Error at Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.CreateDeployment(Func`1 createArmClient, String resourceGroupName, String deploymentName, DeploymentMode deploymentMode, String template, String parameters) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\DeployAzureResourceGroupConvention.cs:line 96
June 19th 2017 14:03:45Error at Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\DeployAzureResourceGroupConvention.cs:line 69
June 19th 2017 14:03:45Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
June 19th 2017 14:03:45Error at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
June 19th 2017 14:03:45Error at Calamari.Azure.Commands.DeployAzureResourceGroupCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Commands\DeployAzureResourceGroupCommand.cs:line 63
June 19th 2017 14:03:45Error at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45
June 19th 2017 14:03:45Fatal The remote script failed with exit code 100
I tried to delete this service principal and recreate it using https://octopus.com/docs/guides/azure-deployments/creating-an-azure-account/creating-an-azure-service-principal-account this script.
Any help will be appreciated.
Thanks