You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VaultConfigs client added in v1.43 should use the correct Azure Endpoint URL. In this example, REST API calls should be going to management.usgovcloudapi.net, not management.azure.com.
Actual Behavior
The VaultConfigs client always uses management.azure.com since the cloud environment set in the azurerm provider block is not used.
azurerm_resource_group.rg: Refreshing state...
azurerm_recovery_services_vault.vault: Creating...
Error: Error waiting for on update for Recovery Service Vault "example-recovery-vault" (Resource Group "rg-example-recovery-vault"): Error updating Recovery Service Vault Cfg "example-recovery-vault" (Resource Group "rg-example-recovery-vault"): backup.ResourceVaultConfigsClient#Update: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="SubscriptionNotFound" Message="The subscription '' could not be found."
on main.tf line 12, in resource "azurerm_recovery_services_vault""vault":
12: resource"azurerm_recovery_services_vault""vault" {
Steps to Reproduce
terraform apply
Important Factoids
This issue appears to affect all sovereign clouds, but only has been tested in US Government.
o.ResourceManagerEndpoint should be passed in to backup.NewResourceVaultConfigsClient on the line below:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 28, 2020
Community Note
Terraform (and AzureRM Provider) Version
terraform -v
Terraform version: 0.12.20
Affected Resource(s)
azurerm_recovery_services_vault
Terraform Configuration Files
Debug Output
Expected Behavior
The VaultConfigs client added in v1.43 should use the correct Azure Endpoint URL. In this example, REST API calls should be going to management.usgovcloudapi.net, not management.azure.com.
Actual Behavior
The VaultConfigs client always uses
management.azure.com
since the cloud environment set in the azurerm provider block is not used.Steps to Reproduce
terraform apply
Important Factoids
This issue appears to affect all sovereign clouds, but only has been tested in US Government.
o.ResourceManagerEndpoint
should be passed in tobackup.NewResourceVaultConfigsClient
on the line below:https://github.com/terraform-providers/terraform-provider-azurerm/blob/v1.43.0/azurerm/internal/services/recoveryservices/client/client.go#L26
References
soft_delete_enabled
property #5586The text was updated successfully, but these errors were encountered: