Hi Sun Tongxin3,
It is possible that the Azure SDK is using Azure's global endpoint by default, and then being redirected to the China region endpoint based on the location of the Azure subscription. This is because Azure has a global infrastructure that automatically routes traffic to the appropriate region based on the location of the subscription.
When you create an Azure subscription in China, it is automatically associated with the Azure China cloud, which has its own set of endpoints and APIs. When you use the Azure SDK to access resources in China, it automatically routes the traffic to the China region endpoint based on the location of the subscription.
In your case, it is possible that the Azure SDK is using the global endpoint by default, but then being redirected to the China region endpoint based on the location of the subscription. This is why your program is able to run normally without specifying a multi-cloud environment.
However, it is recommended to specify the China region when using the Azure SDK in China to ensure that the traffic is routed to the correct endpoint and to avoid any potential issues with network restrictions. You can specify the China region by setting the AzureEnvironment.AzureChinaCloud
environment variable or by using the Azure.ChinaCloud
endpoint in your code.