azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[Feature Request] national cloud support

Open gitralf opened this issue 10 years ago • 4 comments

would be nice to have a way to get this running in national clouds like China or the new Microsoft Cloud Germany. There seem to be many hardcoded "windows.net" in the code where a cmdline switch (or Environment like in PowerShell) would really help...

gitralf avatar Oct 07 '16 13:10 gitralf

Hi @gitralf Actually, it's not hardcoded at all (but I agree a tutorial could help to figure this out). You can change all the BaseUrl for all component.

  • Authentication: I suggest you to use ADAL to get the token.
  • Service: You can change the "base_url" parameter when you create the client. For instance, the parameters section here.

We plan to provide an "Azure environment" feature that will have all known clouds, to at least help you to connect easily without figure out yourself all the URLs. I'm not able to give you a date, but it's high on the backlog. For reference: https://github.com/Azure/autorest/issues/1082

Thanks,

lmazuel avatar Oct 10 '16 18:10 lmazuel

Hi @gitralf

Just wanted to add that for the ADAL part, there is now official simple support: http://azure-sdk-for-python.readthedocs.io/en/latest/quickstart_authentication.html#using-adal

lmazuel avatar Dec 01 '16 17:12 lmazuel

Hi @gitralf,

I just wrote a documentation about this case: http://azure-sdk-for-python.readthedocs.io/en/latest/multicloud.html

I close this issue, since we have full support for multi-cloud and now a documentation. Please feel free to comment on the issue if you think it's not enough, or to open a PR against this file with suggestion.

Thanks!

lmazuel avatar Jan 11 '17 01:01 lmazuel

thanks for this. I published a blog entry under azuregermany about this (in german :-) linking back to your dokumentation:

https://blogs.msdn.microsoft.com/azuregermany/2017/01/11/azure-sdk-fur-python-jetzt-auch-fur-azure-deutschland/

Ralf ([email protected])

Am 11.01.2017 um 02:37 schrieb Laurent Mazuel:

Hi @gitralf https://github.com/gitralf,

I just wrote a documentation about this case: http://azure-sdk-for-python.readthedocs.io/en/latest/multicloud.html

I close this issue, since we have full support for multi-cloud and now a documentation. Please feel free to comment on the issue if you think it's not enough, or to open a PR against this file https://github.com/Azure/azure-sdk-for-python/blob/master/doc/multicloud.rst with suggestion.

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-sdk-for-python/issues/814#issuecomment-271753100, or mute the thread https://github.com/notifications/unsubscribe-auth/AQN9bIDnz8YFJsrkD5oBY38OKIJGNC4Wks5rRDJLgaJpZM4KRDeS.

gitralf avatar Jan 11 '17 08:01 gitralf