Azure / terraform-azurerm-avm-res-compute-virtualmachine

Terraform AVM module for virtual machines
MIT License
17 stars 26 forks source link

[AVM Module Issue]: Cannot set a Flex Orchestration group to the VM #73

Closed mbilalamjad closed 5 months ago

mbilalamjad commented 5 months ago

Check for previous/existing GitHub issues

Issue Type?

Feature Request

(Optional) Module Version

No response

(Optional) Correlation Id

No response

Description

Enterprise Customers HATE random VM naming which is what occurs if you use Flex orchestration to create your VMS. The correct way for an Enterprise Customer to deploy is create a VMSS - Flex Resource first. Then when you create a VM you assign it to the Flex resource during deployment. AVM VM Module doesn't surface this functionality.

jchancellor-ms commented 5 months ago

@mbilalamjad - I believe the functionality you're asking about is covered by the input virtual_machine_scale_set_resource_id. I've created an example called vmss_flex_vm_attach for this input and will publish it as v0.13.1.

mbilalamjad commented 5 months ago

Thank @jchancellor-ms the example in the PR should address this issue, have checked with the feedback submitter also, will go ahead and close this issue.