-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GOV endpoints #2
Comments
It's not just a change from .com to .us. You need to change the endpoints for both AAD and ARM. The below file has a mapping of these endpoints for each of the different Azure clouds. I'd recommend exposing a new environment property under credentials section in the yaml which maps to Public, China, Germany, and USGov. Internally within the exporter, the code can look up the appropriate endpoint. |
Do Microsoft have a library for this? |
I don't know if there is an official library for this but in Azure PowerShell, there is a cmdlet called Get-AzureRmEnvironment which returns back the environment settings for each of the clouds. Looking at the PowerShell code, it maps back to this file -- which is probably more official than the link I posted above. |
That's CSharp which won't help us much. Is there a java one somewhere? |
I checked the Azure SDK for Java but I didn't see anything. I would check with the folks here. |
It would be ideal if endpoints could be overloaded for alternate Azure environments like Gov. I believe just the TLD changes to .us (instead of .com), but need to validate that. I'll try to work on a PR, but wanted to mention her as well.
The text was updated successfully, but these errors were encountered: