terraform azurerm provider code base that calls Azure REST API example
You can use this link here to checkout the code behind terraform integration with Azure.
https://github.com/hashicorp/terraform-provider-azurerm/blob/v2.99.0/internal/services/storage/client/client.go
As you can see in this storage account example, terraform azurerm version 2.99 calls REST storage/mgmt/2021-04-01 and storagesync/mgmt/2020-03-01
Please refer to the diagram below for additional details.
And you can test out the real API endpoint by going to this endpoint:-
https://learn.microsoft.com/en-us/rest/api/storageactions/storage-tasks/create?view=rest-storageactions-2023-01-01&tabs=HTTP#code-try-0
Comments