Skip to content
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

azure: use management endpoint in createGenericClient #1670

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

alexweininger
Copy link
Member

Use managementEndpointUrl instead of resourceManagerEndpointUrl in createGenericClient.

Fixes an issue that surfaces with the changes in #1669 with sovereign clouds. I'll explain more below.

createGenericClient is used to make calls against the kudu service, which were failing with 403 errors because the access token audience was incorrectly set to the resource manager endpoint and not the management endpoint. Sovereign clouds must be more sensitive about which audience is used because it works fine for normal Azure.

We still use resourceManagerEndpointUrl two other times in this file, for createAzureSubscriptionClient and createAzureClient. I'm going to leave these as-is for now because as far as I know, only kudu calls were breaking.

Copy link
Member

@nturinski nturinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we would want to include this in both the Functions and App Service releases?

@alexweininger
Copy link
Member Author

Seems like we would want to include this in both the Functions and App Service releases?

Yes

@alexweininger alexweininger merged commit e1cd099 into main Jan 26, 2024
4 checks passed
@alexweininger alexweininger deleted the alex/tomato-beaver branch January 26, 2024 17:28
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.

2 participants