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

Update methodology of getting endpoints for cloud environment #704

Merged
merged 14 commits into from
Sep 26, 2023

Conversation

ccianelli22
Copy link
Contributor

Will now use arm to get endpoints for each environment
Allow user to get endpoints by listing the arm url, useful if cloud is not global, cn, or usgov
Update documentation
Deprecate de/Germany since the cloud is also deprecated
Create offline endpoints for global, cn and usgov for mocking
Remove hardcoded urls that may touch only global endpoints

Will now use arm to get endpoints for each environment
Allow user to get endpoints by listing the arm url, useful if cloud is not global, cn, or usgov
Update documentation
Deprecate de/Germany since the cloud is also deprecated
Create offline endpoints for global, cn and usgov for mocking
Remove hardcoded urls that may touch only global endpoints
Copy link
Contributor

@ianhelle ianhelle left a comment

Choose a reason for hiding this comment

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

Awesome - and super thorough work Chris. Thanks so much.
Main thing I noticed is use of requests vs. httpx. You can almost certainly just search for httpx.get in the code and copy/paste an example (along with the imports from common)

@ianhelle
Copy link
Contributor

ianhelle commented Sep 6, 2023

I suspect some of the changes will trigger linter/code format warnings but these should be straightforward to fix

Christopher Cianelli and others added 8 commits September 6, 2023 13:45
Update get_subscription_metadata within ce_common

this will first retrieve a 401 error to get the tenant id from the response, then will try the request again by getting an access token. This way we can get all of the metadata for the subscription

fix typing error for get_managed_tenant_id within ce_common

Add tenant_id to azure_auth

add tenant_id to keyvault_settings
@ianhelle ianhelle merged commit ff77bdd into microsoft:main Sep 26, 2023
9 checks passed
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