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
❯ terraform import 'azurerm_static_site_custom_domain.spa[0]' /subscriptions/REDACTED/resourceGroups/REDACTED/providers/Microsoft.Web/staticSites/mySpa/customDomains/example.com
azurerm_static_site_custom_domain.spa[0]: Importing from ID "/subscriptions/REDACTED/resourceGroups/REDACTED/providers/Microsoft.Web/staticSites/mySpa/customDomains/example.com"...
azurerm_static_site_custom_domain.spa[0]: Import prepared!
Prepared azurerm_static_site_custom_domain for import
azurerm_static_site_custom_domain.spa[0]: Refreshing state... [id=/subscriptions/REDACTED/resourceGroups/REDACTED/providers/Microsoft.Web/staticSites/mySpa/customDomains/example.com]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
Panic Output
Expected Behaviour
The resource is imported in a complete state.
Actual Behaviour
The resource is imported partially, with validation_type not set. This the resource state after the import:
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_static_site_custom_domain
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
The resource is imported in a complete state.
Actual Behaviour
The resource is imported partially, with
validation_type
not set. This the resource state after the import:Note that
validation_type
is set to null.Whenever terraform creates a new plan after the import, it proposes to replace the imported resource:
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: