From e5891f03703a2e24f0335638fbb6f0fc52438ce3 Mon Sep 17 00:00:00 2001 From: "Tong Xu (Wicresoft North America Ltd)" Date: Fri, 19 Nov 2021 14:45:26 +0800 Subject: [PATCH] update --- .../azure/mgmt/eventhub/_event_hub_management_client.py | 2 +- .../azure/mgmt/resource/resources/_configuration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py b/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py index 26fb95dce989e..08aa6268e9d0a 100644 --- a/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py +++ b/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py @@ -76,7 +76,7 @@ def __init__( **kwargs # type: Any ): if not base_url: - base_url = 'https://management.azure.com' + base_url = 'https://management.chinacloudapi.cn' self._config = EventHubManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) super(EventHubManagementClient, self).__init__( diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py index ae0bb66eaafa6..786ff15a11470 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py @@ -49,7 +49,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.chinacloudapi.cn/.default']) kwargs.setdefault('sdk_moniker', 'azure-mgmt-resource/{}'.format(VERSION)) self._configure(**kwargs)