I haven't found a decent way to get a Windows instance in Azure started up using the azure_rm_virtualmachine
module with remote PowerShell enabled from first boot.
What is the typical approach to get started with Azure Windows instances provisioned with Ansible ready to run PowerShell remote commands?
There's another Ansible module called simply azure
, but appears to be deprecated by azure_rm_virtualmachine
.
(Get-AzureRmVM -ResourceGroupName $ResourceGroup -Name $RmVM -Status).Statuses.Code[1]