Common Azure Cloud Shell Commands

CommandDescription
az group create –name {$name} –location {$location}Create a new resource group
az group delete –name {$resourceGroup}Delete a resource group
az webapp list-runtimes –linuxRetrieve list of Linux runtimes for App Service
az functionapp createCreate a new function app
az storage account create –name {$name} –location {$location} –resource-group {$rg} –sku {$sku} –kind {$blobStorage} –access-tier {$hot}Create a new storage account
brew tap azure/functions
brew install azure-functions-core-tools@4

if upgrading on a machine that has 2.x or 3.x installed:

brew link –overwrite azure-functions-core-tools@4
Install Azure functions core tools on MacOS
az role definition create –role-definition @<file path>Create a new role
az role assignment create –assignee {$userName} –role “{$nameOfRole}”Assign a role
az storage account show-connection-string –name {$storageAccount} –resource-group {$rg} –query connectionString –output tsv)Retrieve the connection string for a storage account

Leave a Reply

Your email address will not be published. Required fields are marked *