Open gabuniag opened 1 year ago
Thanks for your issue @gabuniag, we'll get back to you asap.
This is a duplicate of https://github.com/Azure/azure-sdk-for-python/issues/5561 in the intent, we didn't finish the design of this indeed.
CC @johanste
Hi @kristapratico @lmazuel @johanste, is resolution of this issue still in the plans? Thanks!
@tbennett0 , @xiangyan99 is working on this as we speak
Has there been any progress here? Please see the documentation issue in which it's mentioned above. Thanks!
@lmazuel -- are there any updates here? Thanks!
We got sidetracked, but @xiangyan99 is still working on this as available.
hate to ask again but this has been worked on since August? is there a planned release date?
Issue:
The msrestazure package has been deprecated for quite some time:
This package is deprecated and no longer receives updates The authentication part of this package has been moved to [azure-identity](https://pypi.org/project/azure-identity/) The other parts of this library are covered by [azure-mgmt-core](https://pypi.org/project/azure-mgmt-core/)
https://github.com/Azure/msrestazure-for-pythonThis package contains a "Cloud" class, which is necessary to work with various government clouds: https://github.com/Azure/msrestazure-for-python/blob/8e3def8c9927a349596e575de93df76de7a3a2b6/msrestazure/azure_cloud.py#L113 and its instances that have various URL-s hardcoded: https://github.com/Azure/msrestazure-for-python/blob/8e3def8c9927a349596e575de93df76de7a3a2b6/msrestazure/azure_cloud.py#L169
Per learning.microsoft.com, those class instances are used to connect to a government cloud: https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-sovereign-domain
Such a class, that would provide similar constants is not implemented elsewhere in the Azure ecosystem.
Suggested Solution
Code found in https://github.com/Azure/msrestazure-for-python/blob/master/msrestazure/azure_cloud.py should be ported to azure-identity. This will allow developers to completely deprecate msrestazure from their codebase.
Why this is important
Since there is no alternative authoritative source of the constants found in AZURE_PUBLIC_CLOUD, AZURE_CHINA_CLOUD, AZURE_US_GOV_CLOUD, AZURE_GERMAN_CLOUD, various azure-related projects need to either: Depend on a deprecated project or: Implement "Cloud" class and its instances locally, thus having to maintain it locally. Both solutions seem bad.