Machines are not turning ON hence the Vm's are in unregistered state. Error message onĀ Studio
HCLLog: AzureRmFactory.EndCreateCompleteVM: Exception: System.Reflection.TargetInvocationException: Error: creating virtual machine failed. Subnet PD-SUK-SUBNET-VDI-01 with address prefix 10.133.0.0/21 does not have enough capacity for 1 IP addresses.
As a workaround, we are able to restart the Citrix Broker service, the Citrix MCS service and the Citrix Host service and the VDAs will go to unknown and then reflect the proper power state after which they can power management then
In addition, we provided the following command: Update-HypHypervisorConnection -LiteralPath XDHyp:\Connections\Azure_TAS_Connection which can be useful on this situation.
Note: More information on the following link: https://developer-docs.citrix.com/projects/delivery-controller-sdk/en/latest/HostService/Update-HypHypervisorConnection/