Open guochao-chen opened 1 month ago
That seems like an issue and a good fix. Do you know if the same needs to happen for the non-private client path:
A PR would be welcome. I won't be able to test it against Azure China, but I can verify that it still works correctly with the default.
When I use "class: octodns_azure.AzurePrivateProvider", I set the base_url: "https://management.chinacloudapi.cn" to use Azure China API. It did not work, still used the default API "https://management.azure.com", reported error "azure.core.exceptions.ClientAuthenticationError: Authentication failed: AADSTS500011: The resource principal named https://management.azure.com was not found in the tenant named "
add code "credential_scopes = [self._base_url + "/.default"]" into the init.py , it was fixed.
Is it an issue?