Closed frey0814 closed 3 months ago
I should have probably asked for updated doc, but I merged and already released it in 3.0.53.
Yeah, I saw you merged. Thanks. I have already tested the new version and all is good. As far as the documentation goes, it looks like we are good because the current docs just link you to Microsoft documentation for AAD authentication.
" See also: Azure Active Directory authentication for MySQL https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-azure-ad ."
Thanks!
On Thu, Mar 28, 2024 at 3:51 PM petoju @.***> wrote:
I should have probably asked for updated doc, but I merged and already released it in 3.0.53.
— Reply to this email directly, view it on GitHub https://github.com/petoju/terraform-provider-mysql/pull/130#issuecomment-2026092744, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDHCREEFA36QXBS5GSXVXTY2RYE3AVCNFSM6AAAAABFLVRGZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGA4TENZUGQ . You are receiving this because you authored the thread.Message ID: @.***>
To support aad authentication in other Azure Clouds, the scope needs to be updated for the the destination Azure Cloud.
To support detection of which cloud is being used, the code references the Terraform azurerm provider environment variable ARM_ENVIRONMENT.
It is likely this URL could be grabbed from the Azure go SDK since it is available via the az CLI.
I have been able to test this successfully using AzureCloud and AzureChinaCLoud.
Without this fix when running against AzureChinaCloud terraform would generate the following error when it tries to refresh the resource.