Open theTPH opened 1 month ago
Hi @theTPH thanks for opening this issue. However, I assume that this is an Azure API issue. I have submitted an API issue to track it. Could you please follow it for more updates?
hello @sinbai I was checking a very similar issue happening with my pipelines, where property preferred_app_group_type is not reflecting current state of my state file, I explain:
My module defines preferred_app_group_type always as Desktop, I just checked the state and it has preferred_app_group_type = "Desktop", however on a recent run using provider 3.102.0 is wants to perform the same change ~ preferred_app_group_type = "None" -> "Desktop" # forces replacement
I wonder if it could be related to the bug you reported
According to the Terraform doc, the description of the preferred_app_group_type
attribute "Changing this forces a new resource to be created." and its default value is Desktop
. Therefore, when the value in the status file is None
and is specified as Desktop
or not specified in the configuration, the above force replacement symptoms occur, which is correct behavior and has nothing to do with the API bug I reported.
@sinbai Perhaps I was not clear on my previous text, but my current state file with already deployed resources has preferred_app_group_type = "Desktop", and still I see that change preferred_app_group_type = "None" -> "Desktop" # forces replacement
Is there an existing issue for this?
Community Note
Terraform Version
1.4.0
AzureRM Provider Version
3.104.2
Affected Resource(s)/Data Source(s)
azurerm_virtual_desktop_host_pool
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The Documentation states that:
This seems to be true for existing hostpools, as my existing multisession hostpools all got the property set to None by default. When creating a new hostpool I get the above error stating that the value is not valid. The Value is set to None in the tf plan.
Actual Behaviour
Apply Fails with Bad Request Error
Steps to Reproduce
Create new hostpool and set the preferred_app_group_type to "None".
Important Factoids
No response
References
No response