-
Notifications
You must be signed in to change notification settings - Fork 322
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
Update methodology of getting endpoints for cloud environment #704
Conversation
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
There was a problem hiding this 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)
I suspect some of the changes will trigger linter/code format warnings but these should be straightforward to fix |
…elli22/msticpy into ccianelli/update_endpoints
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
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