Share via

Azure Powershell

Roger Roger 7,631 Reputation points
2022-02-22T05:34:55.24+00:00

Hi All

I want to install azure PowerShell to connect to my azure subscriptions to create/manage virtual machines, add disks etc.. using PowerShell and also i want to connect to Azure Active Directory to manage my users. if i use the below syntax all az modules will be installed. Experts which module should i install to manage by azure virtual machines and to connect to Azure AD.

Find-Module az | Install-Module

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

  1. AmanpreetSingh-MSFT 56,966 Reputation points Moderator
    2022-02-22T06:14:19.1+00:00

    Hi @Roger Roger • Thank you for reaching out.

    You can use the AZ module to manage your Azure Subscription as well as your Azure AD tenant.

    After you Install the Azure Az PowerShell module and sign in using Connect-AzAccount, you can run the below cmdlets to manage VMs and Users:

    • Get-AzVM - To get your Azure Subscription.
    • Get-AzADUser - To get users from Azure AD tenant.

    You can also install the AzureADPreview module to install the module that is specific to AzureAD.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.