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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
1.5.6
AzureRM Provider Version
3.82.0
Affected Resource(s)/Data Source(s)
azurerm_resource_group_template_deployment
Terraform Configuration Files
provider"azurerm" {
features {}
}
resource"azurerm_resource_group""rg" {
name="rg-basil-explore-day"location="westeurope"
}
data"azurerm_template_spec_version""example" {
name="explore-day-storage"resource_group_name="rg-basil-explore-day-templates"version="0.0.2"
}
resource"azurerm_resource_group_template_deployment""example" {
name="explore-day-storage-module-deployment"resource_group_name=azurerm_resource_group.rg.namedeployment_mode="Incremental"template_spec_version_id=data.azurerm_template_spec_version.example.idparameters_content=jsonencode({
"storageAccountName"= {
value ="basilexplorestorage"
}
"location"= {
value ="westeurope"
}
})
}
Debug Output/Panic Output
# azurerm_resource_group_template_deployment.example will be updated in-place~ resource "azurerm_resource_group_template_deployment""example" {
id = "/subscriptions/02f04294-0bce-45ad-9981-8bd29daee181/resourceGroups/rg-basil-explore-day/providers/Microsoft.Resources/deployments/explore-day-storage-module-deployment"
name = "explore-day-storage-module-deployment"
tags = {}
~ template_spec_version_id = "/subscriptions/02f04294-0bce-45ad-9981-8bd29daee181/resourceGroups/rg-basil-explore-day-templates/providers/Microsoft.Resources/templateSpecs/explore-day-storage/versions/0.0.1" ->"/subscriptions/02f04294-0bce-45ad-9981-8bd29daee181/resourceGroups/rg-basil-explore-day-templates/providers/Microsoft.Resources/templateSpecs/explore-day-storage/versions/0.0.2"# (5 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
azurerm_resource_group_template_deployment.example: Modifying... [id=/subscriptions/02f04294-0bce-45ad-9981-8bd29daee181/resourceGroups/rg-basil-explore-day/providers/Microsoft.Resources/deployments/explore-day-storage-module-deployment]
╷
│ Error: validating Template Deployment "explore-day-storage-module-deployment" (Resource Group "rg-basil-explore-day"): requesting validating: resources.DeploymentsClient#Validate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidDeployment" Message="The deployment 'explore-day-storage-module-deployment' cannot have both the TemplateLink and Template property set. Please use one or the other. Please see https://aka.ms/arm-module for usage details."
│
│ with azurerm_resource_group_template_deployment.example,
│ on main.tf line 17, in resource "azurerm_resource_group_template_deployment""example":
│ 17: resource "azurerm_resource_group_template_deployment""example" {
│
Expected Behaviour
The resource behind the template spec v0.0.1 (Azure storage account) in updated with v0.0.2 (in that version I only update the name of the storage account).
Actual Behaviour
Nothing happens with the resource itself, just got the error output.
Steps to Reproduce
Update the version field in data "azurerm_template_spec_version" "example" and run terraform apply again
Important Factoids
nope
References
No response
The text was updated successfully, but these errors were encountered:
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.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.6
AzureRM Provider Version
3.82.0
Affected Resource(s)/Data Source(s)
azurerm_resource_group_template_deployment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The resource behind the template spec v0.0.1 (Azure storage account) in updated with v0.0.2 (in that version I only update the name of the storage account).
Actual Behaviour
Nothing happens with the resource itself, just got the error output.
Steps to Reproduce
Update the
version
field indata "azurerm_template_spec_version" "example"
and runterraform apply
againImportant Factoids
nope
References
No response
The text was updated successfully, but these errors were encountered: