Unable to access resource group in Azure portal

Xiangyi Wu 1 Reputation point


I am assigned as owner of a windows virtual machine and a resource group which this VM belong to, under my colleagues's subscription.
No issue with operating the virtual machine, however when I need to encrypt the VM in https, following this tutorial:
Running command: Get-AzVM -ResourceGroupName, it returns error as below. Using az group exists -n Resourcegroupname, it returns true though. How can I get access this resource group and finish the encryption? Thanks in advance for your help!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,585 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,676 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 10,706 Reputation points Microsoft Employee

    If you have multiple subscriptions, set your subscription first and then try running the command.

    To list all subscriptions : az account list --o table

    To set your subscription : az account set --subscription <subscription-id>

    Also ensure that all resources (including the Key Vault, Storage account, and VM) are in the same Azure region and subscription.

  2. Manu Philip 14,056 Reputation points Microsoft MVP

    Please check if the resource group you are looking for is existing in the subscription. Use the following command


    Next check is, verify the Power Shell version you use. Make sure that you are using x86 version of PowerShell


    No comments