-
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
New Service (Multiple Resources): DesktopVirtualization (Virtual Desktops) #8605
Conversation
This reverts commit d398b20.
* init * add client.go. fix check test package sh * init add client + go mod addition * working client * initial work for virtual desktop workspace * init host pool resource * add host pool resource * add app group * add workspace application group association resource * update association tests * update app association and host pool * added documentation desktopvirtualization * Update virtual desktop resources * simpler error step for testing association
…ll need to fix vendor issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @DanielMabbett,
Overall this is off to a great start! I've gone over it and left some comments inline but some of the main points are:
- regardless of what the SDK/api calls a property we tend to use a name that makes the most sense. I've left some suggestions inline
- each resource should have a complete test that sets all properties and an update test that goes basic -> complete -> basic
- all properties should be set on a read for each resource
- moving the test files up one directory into the service package
Once these are addressed this should be good to merge
...rnal/services/desktopvirtualization/tests/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...rnal/services/desktopvirtualization/tests/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...rnal/services/desktopvirtualization/tests/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...rnal/services/desktopvirtualization/tests/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...erm/internal/services/desktopvirtualization/tests/virtual_desktop_host_pool_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource.go
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource.go
Outdated
Show resolved
Hide resolved
...rnal/services/desktopvirtualization/tests/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...erm/internal/services/desktopvirtualization/tests/virtual_desktop_host_pool_resource_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: kt <kt@katbyte.me>
…desktop_application_group_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…desktop_host_pool_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…desktop_workspace_resource_test.go Co-authored-by: kt <kt@katbyte.me>
Still need to do some more clean up. Should be done in the next day or two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those changes! I've given this another pass and most of my comments are fairly minor this time. Look forward to getting this into 2.31!
azurerm/internal/services/desktopvirtualization/virtual_desktop_application_group_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_host_pool_resource_test.go
Outdated
Show resolved
Hide resolved
...m/internal/services/desktopvirtualization/virtual_desktop_application_group_resource_test.go
Outdated
Show resolved
Hide resolved
...es/desktopvirtualization/virtual_desktop_workspace_application_group_association_resource.go
Outdated
Show resolved
Hide resolved
...es/desktopvirtualization/virtual_desktop_workspace_application_group_association_resource.go
Show resolved
Hide resolved
...es/desktopvirtualization/virtual_desktop_workspace_application_group_association_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: kt <kt@katbyte.me>
…p_workspace_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…p_workspace_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…p_application_group_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…p_host_pool_resource_test.go Co-authored-by: kt <kt@katbyte.me>
…p_application_group_resource.go Co-authored-by: kt <kt@katbyte.me>
…p_host_pool_resource.go Co-authored-by: kt <kt@katbyte.me>
…ence_id to application_group_id
Ready for another review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @DanielMabbett - aside from a few minor comments while i will apply inline this LGTM 👍
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go
Outdated
Show resolved
Hide resolved
...sktopvirtualization/virtual_desktop_workspace_application_group_association_resource_test.go
Outdated
Show resolved
Hide resolved
website/docs/r/virtual_desktop_workspace_application_group_association.html.markdown
Outdated
Show resolved
Hide resolved
…p_workspace_resource_test.go
…p_workspace_resource_test.go
…ociation.html.markdown
…p_workspace_application_group_association_resource_test.go
This has been released in version 2.31.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.31.0"
}
# ... other configuration ... |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
New Service: DesktopVirtualization (Virtual Desktops)
The following has been added following issue request:
#3507
The following has been added:
DesktopVirtualization
azurerm_virtual_desktop_workspace
azurerm_virtual_desktop_host_pool
azurerm_virtual_desktop_application_group
azurerm_virtual_desktop_workspace_application_group_association
NOTE
This may not be complete with every feature DesktopVirtualization has, but would provide a solid base for us to add more resources in following releases.