Skip to content

Conversation

@sfairat15
Copy link
Contributor

Reference Issue

#1

What does it fix?

It allows azure-metrics-exporter work with correct ResourceManagerEndpoint, according Azure Cloud (China, US, Public).

Any other comments?

Not sure, that app should get azure-ad-resource-url from parameters.
I thought, that AzureEnvironment.ResourceManagerEndpoint is enough, but if we look at https://github.com/Azure/go-autorest/blob/master/autorest/azure/auth/auth.go#L111 - we may see, that s.Values[Resource] use value from AZURE_AD_RESOURCE instead of AzureEnvironment.ResourceManagerEndpoint

@sfairat15 sfairat15 changed the title Fix clients base uri Fix clients base uri according Azure Cloud Dec 3, 2020
@mblaschke
Copy link
Member

Thanks, looks good 👍

@mblaschke mblaschke merged commit 1af73fd into webdevops:main Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants