-
Notifications
You must be signed in to change notification settings - Fork 558
acs-engine commands talk to Azure APIs fail for Azure Government #2223
Comments
@anhowe / @jackfrancis , I can help with this both on acs-engine and with the Azure AD registration for Azure Government. For the code side of acs-engine, do you guys have a preference on where that per-environment client ID resides? For the Azure AD application registration, I'll ping you offline. |
Ping. |
@gsacavdm I'm not terribly familiar with this particular surface area in the codebase, so I suggest you scaffold out a prototype PR and we can iterate from there if we are able to identify a more appropriate implementation during the PR process. Thanks for raising and tackling this! |
@jackfrancis , I submitted a proposal for this as a starting point. I'd love to hear your feedback on it. |
Simple and clean, I like it, thanks again! |
@jackfrancis , can we reopen this and keep it open until we get the right client id in there? As it stands, even after the PR, this will continue to fail. |
Fixed! |
Is this a request for help?:
No
Is this an ISSUE or FEATURE REQUEST? (choose one):
ISSUE
What version of acs-engine?:
v0.12.4
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes though should apply to all
What happened:
Running any command that leverages the ACS Engine Azure AD multi-tenant application (using the AcsEngineClientID, for example
acs-engine upgrade
fails when used with--azure-env AzureUSGovernmentCloud
with the error in the screenshot below. This happens after I logged in to Azure AD.What you expected to happen:
I should be able to successfully log in and proceed with the acs-engine operation (
update
in this case).How to reproduce it (as minimally and precisely as possible):
Run
acs-engine upgrade --azure-env AzureUSGovernmentCloud
and log in with any Azure Government user.Anything else we need to know:
In order to solve this, acs-engine must be able to support different AcsEngineClientIDs per environment and the ACS team needs to create a multi-tenant Azure AD application for each environment and ensure permissions to the correct Azure API is configured for that application.
The text was updated successfully, but these errors were encountered: