Azure PowerShell Commands (95 Commands)

Check out the list of a few important Azure PowerShell Commands with examples and Video tutorials.

Get-AzureADDeviceCan help you to retrieve the details of the lists of devices from your Azure AD.
New-AzureADDeviceHelps you to create a brand new device in your Azure Active Directory.
Set-AzureADDeviceUpdates the details of your Azure AD device.
Remove-AzureADDeviceRemove an Azure AD device.
Get-AzureADPolicyRetrieve the details of your Azure AD Policy.
New-AzureADPolicyCreate a brand new Azure AD Policy using this PowerShell command.
Set-AzureADPolicyUpdate your Azure AD Policy.
Remove-AzureADPolicyDelete any unwanted Azure AD policy using this PowerShell command.
Get-AzureADDirectoryRoleRetrieve the details of a directory role from your Azure Active Directory using this command.
Get-AzureADCurrentSessionInfoGet the state of the current session using this PowerShell command.
Update-AzADApplicationUpdate the applications in Azure AD.
Get-AzureADApplicationHelps us to update an Azure Active Directory application.
Set-AzureADApplicationHelps use to update an Azure Active Directory application.
Update-AzADUserUpdate the entities in the Azure Active Directory users.
Update-AzADGroupHelps you to update the entities in the Azure Active Directory group.
Get-AzureADObjectByObjectIdThis command will retrieve the details of a directory role from your Azure Active Directory.
Get-AzureADTenantDetailGet the details of the tenant in your Azure Active Directory.
Disconnect-AzureADHelps you to disconnect your current session from your Azure Active Directory tenant.
Connect-AzureADHelps you to use Azure AD cmdlet requests by connecting with an authenticated account.
Get-AzureADUserMembershipUse this command to get the specified user membership in the Azure AD.
Get-AzureADUserHelps you to get user details from your Azure Active Directory.
Get-AzADUserCan get you the list of AD users.
Remove-AzADGroupUse this command to remove the entity from the Azure AD groups.
Get-AzADApplicationHelps get the objects’ details based on the specified Object IDs.
New-AzADApplicationUse the New-AzADApplication PowerShell cmdlet to add the new entity to your applications.
Get-AzADGroup Use this command to get the lists of Azure Active Directory Groups.
Get-AzSecuritySettingIt will get you the security settings in the Azure Security Center.
Get-AzTenantGet the list of entities from the applications.
Get-AzTagCan help you to retrieve the lists of predefined Azure tags from your subscription.
Add-AzRouteConfigUse this command to add a route to a specified Azure route table.
Get-AzRouteTableThis can help you to retrieve the route tables under a Resource Group.
Get-AzStorageQueueGet the lists of tenants that are authorized for current users.
Get-AzStorageContainerHelps you to retrieve the lists of Azure storage containers.
Remove-AzStorageContainerHelps you to remove the storage container that you have specified with this command.
New-AzStorageContextGet the lists of storage queues associated with the specified storage account.
Get-AzADServicePrincipalUse this command to get the entities from the service principals.
Update-AzConfigUpdate the configs of your Azure PowerShell using this command.
Uninstall-AzureRmHelps you to uninstall or remove all the AzureRm modules from your machine
Set-AzDefaultHelps you to create an Azure Storage context quickly.
Save-AzContextCan help you to save the Az context of your current Azure session into a specified location or path.
Get-AzEnvironmentRetrieve the endpoints and the metadata for the instance of the Azure services.
Get-AzAvailabilitySetGet the available Azure availability set inside a specified Resource Group.
Get-AzProviderFeatureUse this command to add edit or set the default to your current Azure Context.
Get-AzPolicyAssignmentRetrieve the policy assignments.
Clear-AzDefaultHelps to clear the current context default values set by the user.
Clear-AzConfigHelps you to retrieve the feature details like Feature name, Registration State, Provider name, etc. in a second.
Stop-AzDeploymentStop or cancel a running deployment using this command.
Set-AzResourceLockHelps you to modify a resource lock in a second.
New-AzManagementGroupClear all the configuration values set by the user using this command.
Set-AzResourceGroupCreate a management group in seconds using this command.
Remove-AzResourceRemoves the specified Azure resource.
New-AzRoleAssignmentHelps you to assign an RBAC role to a specific principal for a specified scope.
Remove-AzResourceLockRemoves a lock from an Azure resource.
New-AzResourceLockCreates a lock for your Azure resource.
New-AzResourceModify your Azure resource group in seconds.
Export-AzResourceGroupSave your resource group as a template with a JSON file format.
Get-AzTenantBackfillStatusGet the status of the Tenant Backfill Subscription.
Get-AzRoleDefinitionRetrieve the list of Azure RBAC roles that are available that you can assign.
Get-AzRoleAssignmentQuickly create an Azure resource like a website or an Azure SQL database/server in a resource group.
Get-AzResourceProviderQuickly get the Azure resource provider.
Get-AzResourceLockRetrieve the Azure resource locks.
Get-AzResourceGet a list of all the Azure resources.
Get-AzConfigRetrieve the lists of all the configs of your Azure PowerShell.
Get-AzContextRetrieve the metadata details.
Disconnect-AzAccountDisconnect an Azure account that you are connected to currently.
Clear-AzContextDelete/clear all the Azure credentials, subscription and account details, etc.
Get-AzLocationRetrieve the location details and their supported resource providers.
Get-AzDeploymentRetrieve the deployment details under the current subscription.
Start-ADSyncSyncCycleHelps to force Sync Azure AD Connect or to run a sync cycle manually.
Get-AzureADMSGroupGet the details of the Azure AD groups via the MS Graph.
Set-AzureADMSGroupModify different properties of the Azure AD group.
Get-AzureADServicePrincipalRetrieve the list of service principals from your Azure Active Directory.
Get-AzureADMSDeletedGroupRetrieve the soft deleted groups in an Azure Active Directory.
Get-AzureADMSDeletedDirectoryObjectGet the soft deleted AD object from the Azure Active Directory.
Get-AzureADDeletedApplicationGet the lists of deleted applications.
Get-AzureADMSRoleAssignmentRetrieve the information about the role assignments in your Azure AD.
Remove-AzureADApplicationRemove a specified application from your Azure Active Directory.
Restore-AzureADDeletedApplicationRestore your deleted Azure AD application.
Get-AzSubscriptionRetrieve the List of Azure Subscriptions.
Get-azurermsubscriptionGet the subscription details that the current account can access.
Connect-AzureRMAccountHelps to connect to the authenticated account for using the Azure RM cmdlets.
Select-AzureSubscriptionCan get you the lists of all the role assignments under your subscription or a specific scope.
New-AzureADMSInvitationCan help you to invite an external user to your Azure Active directory.
Connect-msolserviceCan help you to initiate a connection to your Azure Active Directory.
Get-AzMetricCan help you to retrieve the metric values of an Azure resource.
Get-AzSqlDatabaseHelp you to set and clear your current and default Azure subscriptions.
Get-AzSqlServerHelp you retrieve the Azure SQL database lists from your Azure SQL Database Server.
New-AzStorageTableCan help you to retrieve detailed information about your Azure SQL Database servers.
Get-AzStorageTableCan help you to create a storage table quickly.
Set-AzStorageAccountUse this Azure PowerShell command to modify or update your Azure Storage account.
New-AzStorageQueueCan help you to create a storage queue in Azure.
Get-AzActivityLogCan help you to get the lists of available storage tables associated with the specified Storage account.
Get-AzADGroupMemberHelp you retrieve the Activity Log event lists from your Azure Subscription.
New-AzADGroupCan help you to create a new Azure AD group.
New-AzADUserCan help you to create a new Azure AD user.
Add-AzADGroupMemberHelps you to add members to an Azure AD group.
Get-AzADAppCredentialHelp you to list the members from an Azure AD group.