I can't set current subscription to default

This topic contains 2 replies, has 2 voices, and was last updated by  Ameer Jassim 3 months, 3 weeks ago.

  • Author
    Posts
  • #97263

    Ameer Jassim
    Participant

    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.

    Any Ideas?

    thanks.

  • #97340

    Don Jones
    Keymaster

    Honestly, troubleshooting that is something I'd need access to your account to do :). It might be worth opening a support ticket with Azure since it's happening in their back-end.

  • #97470

    Ameer Jassim
    Participant

    Thanks Don!

    I did submit a support ticket with Microsoft and they already escalated the issue but they are still blaming Powershell that's why I posted the question in here.

    What I have been trying to accomplish is to replicate some of the VMs in azure to a different region and some of them are greyed out! So after troubleshooting we found out that the agent quest needs to be updated and you know it has to be done via Powershell

You must be logged in to reply to this topic.