I’m trying to run this script to update the guest agent for some of the VMs:
$vm = Get-AzureVM –ServiceName –Name
$vm.VM.ProvisionGuestAgent = $true
Update-AzureVM –Name –VM $vm.VM –ServiceName
I’m getting an error to set the default subscription (I have two subs)!! I already did set the default subscription using the Select-AzureVMSubscription.