I am trying to execute a runbook in an automation account within azure. I have set a managed identity following the instructions here, then i issue the following in my runbook: Connect-AzAccount - az webapp --help Run the following command to see a list of all Azure PowerShell cmdlets. Get-Command -Module Az.* Under Azure drive, the Get-AzCommand lists context-specific Azure commands. Run the following commands to get a list the Azure PowerShell commands that apply to WebApps. cd 'Azure:/My Subscription/WebApps' Get-AzCommand This article and the accompanying sample files show you how to collect information about your deployed resources in Azure using data from the Azure management APIs, suitable for reporting and automation. We walk through an approach based on retrieving the raw information (in this case, a list of virtual machines). Calling az account set doesn't display the results of switching to the specified Azure subscription. However, you can use az account show to confirm that the current Azure subscription has changed. If you run the az account list command from the previous step, you see that the default Azure subscription has changed to the subscription you The Connect-AzAccount cmdlet connects to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. You can use this authenticated account only with Azure Resource Manager requests. To add an authenticated account for use with Service Management, use the Add-AzureAccount cmdlet from the Azure PowerShell module. Powershell Foreach-Object parallel with az cli profile isolation. I have a script that need to call child scripts in parallel. Child scripts using az cli and create/modify Azure PaaS objects in different Azure subscriptions. The problem is that as different scripts are using az account set --subscription , they overlap This only lists the resources for the current subscription. You'll have to loop through all the subs in the tenant and run az resource list to see all resources – Christopher G. Lewis az vm extension set -n customScript --publisher Microsoft.Azure.Extensions --ids {vm_id} Add an extension and enable automatic upgrade by the platform if there is a newer version of the extension available. az vm extension set -n extName --publisher publisher --vm-name MyVM -g MyResourceGroup \ --enable-auto-upgrade true Required Parameters Uj0N4.