tayganr / purviewcli

Microsoft Purview CLI
https://aka.ms/purviewcli
MIT License
48 stars 27 forks source link

Enable China Azure support #24

Closed nemolin2008 closed 11 months ago

nemolin2008 commented 11 months ago

Update client.py and endpoint.py to enable Mooncake (China Azure) support for Purview cli. The main change is to add a set_region() function to handle different endpoint configuration for Public Azure and Mooncake To make purviewcli work with Mooncake Purview, user needs to set os.environ["AZURE_REGION"]="China". Without the setting, purviewcli will work with public azure Purview to maintain existing user's backward compatibility.