-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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_virtual_desktop_workspace not applying tags on first apply #18677
Comments
The Terraform state file shows the tags on the resource. They are not on the resource in Azure. |
@davetustin I cannot reproduce this error, looks like this is a service issue. Though the tags has been send to the service and service has handled is properly(state file has tags and state file is updated based on service response). Do not know why azure resource cannot find the tags. |
@davetustin I was running into something similar. My tags would say they would apply, but not apply in the first or subsequent runs. I was on TF 1.3.2 and provider 3.23.0. I upgraded my provider to 3.30.0 and that behavior went away. I'm not sure if this is related, but this is the only change to the azurerm_virtual_desktop_workspace resource from v3.23.0 to v3.30.0. |
Actually, nevermind. It's still broken. |
Some additional information. I have been having some issues with the workspace going missing. After some troubleshooting, if I delete At the same time, the tags also needed applying again.
I am not quite sure where the issue lies but something isn't quite right. |
It looks like when the terraform is applied a second time for the tags, it is also removing the workspace. The following steps are done to have the infrastructure up to date.
I don't know if this is a service or azurerm provider issue at this point. |
After further testing it looks like making any changes to the tags on the There is a fundamental issue with editing workspace tags by code. It doesn't happen when doing it in the portal. |
@davetustin thanks for the details. The root reason cause the tags remove is cause by |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.2
AzureRM Provider Version
3.23.0
Affected Resource(s)/Data Source(s)
azurerm_virtual_desktop_workspace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The tags are applied on the first apply.
Actual Behaviour
No tags are added to the azurerm_virtual_desktop_workspace resource. When running the apply a second time, the tags are applied.
All other resources are applying tags, it is only happening to azurerm_virtual_desktop_workspace.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: