-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_template_deployment doesn't support import #7268
Comments
This comment has been minimized.
This comment has been minimized.
Hi @shawnferry we have introduced two new resources |
The new resource mentioned is not detecting the deployment and throws the below error: |
Closing this out since the new resources support importing |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.26
Affected Resource(s)
azurerm_template_deployment
Terraform Configuration Files
https://www.terraform.io/docs/providers/azurerm/r/template_deployment.html
Debug Output
Panic Output
Expected Behavior
Pre-existing template deployments should be importable to allow plans with resources dependent on their creation to be applied.
Actual Behavior
terraform apply
while eventually succeeding in Azure.apply
s fail due to dependencies on the existing resource.Error: resource azurerm_template_deployment doesn't support import
Steps to Reproduce
acctesttemplate-01
Important Factoids
I've worked around this by making deployment names unique and allowing for a toggle and dependencies but I still believe it should be possible to import the template resources.
References
#6045
The text was updated successfully, but these errors were encountered: