Skip to content
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

Azure Host Pool preferred_app_group_type change forces replace #26324

Closed
1 task done
JulianReitzGIZ opened this issue Jun 13, 2024 · 4 comments · Fixed by #26333
Closed
1 task done

Azure Host Pool preferred_app_group_type change forces replace #26324

JulianReitzGIZ opened this issue Jun 13, 2024 · 4 comments · Fixed by #26333

Comments

@JulianReitzGIZ
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • 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 comments along the lines of "+1", "me too" or "any updates", 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.8.5

AzureRM Provider Version

3.107.0

Affected Resource(s)/Data Source(s)

azurerm_virtual_desktop_host_pool

Terraform Configuration Files

resource "azurerm_virtual_desktop_host_pool" "hostpool" {
    resource_group_name       = var.resource_group_name
    location                  = var.location
    name                      = var.avd_name
    friendly_name             = var.friendly_name
    description               = "Terraform managed HostPool"
    type                      = var.type
    preferred_app_group_type  = "RailApplications"

    tags                      = var.tags
}

Debug Output/Panic Output

# module.avd["hp-avd-oneim-prod"].azurerm_virtual_desktop_host_pool.hostpool must be replaced
-/+ resource "azurerm_virtual_desktop_host_pool" "hostpool" {
        name                             = "hp-avd-prod"
      ~ preferred_app_group_type         = "Desktop" -> "RailApplications" # forces replacement
        # (12 unchanged attributes hidden)
        # (1 unchanged block hidden)
    }

Expected Behaviour

While change the preferred_app_group_type from "Desktop" to "RailApplications" should not trigger a replacement of the complete host pool resource.

Actual Behaviour

Change of the attribute replace the host pool and alle related resources (application groups, hosts etc.). Hosts have to add manually after replacing of host pool!

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@rcskosir
Copy link
Contributor

Thanks for taking the time to raise this issue, as noted in the terraform documentation:

preferred_app_group_type - (Optional) Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are None, Desktop or RailApplications. Default is Desktop. Changing this forces a new resource to be created.

Changing the preferred_app_group_type forces a new resource to be created, this is expected behavior.

@JulianReitzGIZ
Copy link
Author

@rcskosir thanks for the fast response! :D

We are aware of the documentation, but we think that's unnecessary! Because it's possible to change this value through the azure portal without the need of replacement.

@sinbai
Copy link
Contributor

sinbai commented Jun 14, 2024

Hi @JulianReitzGIZ thanks for opening this issue. PR has been submitted to fix this issue. Could you please track it for more updates?

@mbfrahry mbfrahry added this to the v3.109.0 milestone Jun 14, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants