Hi Michael,
I finally found the time to try it again.
I added the following config to my project variables and an Azure Web App deploy step:
[cid:image003.png@01D257C9.D053EDD0]
I had to change the AD URL because the one mentioned by you failed.
I tried using the OAuth2 flow with those URLs and that works fine for me (with login.microsoftonline.de as the OAuth Token Provider and management.microsoftazure.de as the service management endpoint). I also tried the service management endpoint https://management.core.cloudapi.de/ mentioned by you but the result is the same, so I guess it fails before that.
Now I get the error that it does not know the subscription. Does Octopus maybe still use the global AD? Is there a way that I can find more details about the actual request?
15:15:53 Info | Deploying to Azure WebApp ‘hq-dashboard’ in Resource Group hq-production, using subscription-id '8f855cd4-XXXXXXXXXX‘
15:15:53 Verbose | Authentication Context: https://login.microsoftonline.de/9960fe4d-XXXXXXXXXX
15:15:53 Error | Hyak.Common.CloudException: SubscriptionNotFound: The subscription ‘8f855cd4-XXXXXXXXXX’ could not be found.
15:15:53 Error | at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
15:15:53 Error | at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
15:15:53 Error | at Microsoft.Azure.Management.Resources.ResourceGroupOperationsExtensions.List(IResourceGroupOperations operations, ResourceGroupListParameters parameters)
15:15:53 Error | at Calamari.Azure.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.GetPublishProperties(String subscriptionId, String resourceGroupName, String siteName, String tenantId, String applicationId, String password, String serviceManagementEndPoint, String activeDirectoryEndPoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\Websites\Publishing\ResourceManagerPublishProfileProvider.cs:line 28
15:15:53 Error | at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.GetPublishProfile(VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 96
15:15:53 Error | at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 29
15:15:53 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
15:15:53 Error | at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
15:15:53 Error | Running rollback conventions…
15:15:53 Error | Hyak.Common.CloudException: SubscriptionNotFound: The subscription '8f855cd4-XXXXXXXXXXX‘ could not be found.
15:15:53 Error | at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
15:15:53 Error | at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
15:15:53 Error | at Microsoft.Azure.Management.Resources.ResourceGroupOperationsExtensions.List(IResourceGroupOperations operations, ResourceGroupListParameters parameters)
15:15:53 Error | at Calamari.Azure.Integration.Websites.Publishing.ResourceManagerPublishProfileProvider.GetPublishProperties(String subscriptionId, String resourceGroupName, String siteName, String tenantId, String applicationId, String password, String serviceManagementEndPoint, String activeDirectoryEndPoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\Websites\Publishing\ResourceManagerPublishProfileProvider.cs:line 28
15:15:53 Error | at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.GetPublishProfile(VariableDictionary variables) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 96
15:15:53 Error | at Calamari.Azure.Deployment.Conventions.AzureWebAppConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\AzureWebAppConvention.cs:line 29
15:15:53 Error | at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
15:15:53 Error | at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
15:15:53 Error | at Calamari.Azure.Commands.DeployAzureWebCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Commands\DeployAzureWebCommand.cs:line 86
15:15:53 Error | at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45
15:15:54 Fatal | The remote script failed with exit code 100
15:15:54 Verbose | at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Worker\Scripting\ScriptResult.cs:line 69
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.<>c__DisplayClass24_0.<ExecuteActionAndInitLoggingContext>b__0() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 280
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteWithTransientErrorDetection(Action action, Machine machine) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 384
| at Octopus.Server.Orchestration.Deploy.DeploymentTaskController.ExecuteActionAndInitLoggingContext(PlannedStep step, Machine machine, PlannedAction action) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Orchestration\Deploy\DeploymentTaskController.cs:line 278
Thanks a lot!
Sebastian
From: Sebastian Röschmailto:Sebastian@hellohq.io
Sent: Freitag, 9. Dezember 2016 04:12
To: Michael Richardsonmailto:tender2+d772bd1ce6@tenderapp.com
Subject: Re: Azure Deploy to non-global regions [Questions #10032]
Hi Michael,
No problem, thanks, I will try again.