azure

Synopsis

Azure is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services through Microsoft-managed data centers. It provides software as a service (SaaS), platform as a service (PaaS) and infrastructure as a service (IaaS) and supports many different programming languages, tools and frameworks, including both Microsoft-specific and third-party software and systems.

Azure CLI

CommandDescription
az loginLogin to Azure
az logoutLogout from Azure
az account listList all Azure accounts
az account set --subscription "SUBSCRIPTION_ID"Set the active subscription
az account showShow the active subscription
az account clearClear the active subscription
az account list-locationsList all Azure locations
az account list-locations --query "[?displayName=='East US'].name"List all Azure locations
az account list-locations --query "[?displayName=='East US'].name" -o tsvList all Azure locations

Azure Cloud Shell

Azure Cloud Shell is a browser-based shell for managing Azure resources. It is available in the Azure portal and can be accessed from any browser. It is a fully configured, authenticated, and managed environment that you can use to run the Azure CLI, PowerShell, or Bash commands.

Azure Portal

CommandDescription
https://portal.azure.comAzure Portal

Azure Resource Manager

Azure Resource Manager is the deployment and management service for Azure. It provides a management layer that enables you to create, update, and delete resources in your Azure subscription. You can use the Azure portal, Azure PowerShell, Azure CLI, or Azure Resource Manager templates to manage your resources.

Azure Resource Manager Templates

Azure Resource Manager templates are JSON files that define the infrastructure and configuration of your cloud resources. You can use templates to deploy resources in a resource group or subscription. You can also use templates to create nested deployments, which are deployments that are deployed to a resource group that is a child of the resource group that contains the parent deployment.

Azure Resource Manager Template Functions

FunctionDescription
concat()Concatenates two or more strings.
copyIndex()Returns the index of the current copy loop iteration.
createArray()Creates an array.
createObject()Creates an object.
deployment()Returns a deployment object.
deploymentOutputs()Returns the outputs of a deployment.

Azure Resource Manager Template Parameters

ParameterDescription
parametersParameters are used to customize the deployment.
parameters.locationThe location of the resource.
parameters.storageAccountNameThe name of the storage account.
parameters.storageAccountTypeThe type of the storage account.
parameters.storageAccountSkuThe SKU of the storage account.
parameters.storageAccountKindThe kind of the storage account.
parameters.storageAccountAccessTierThe access tier of the storage account.
parameters.storageAccountEnableHttpsTrafficOnlyThe enableHttpsTrafficOnly of the storage account.
parameters.storageAccountAllowBlobPublicAccessThe allowBlobPublicAccess of the storage account.
parameters.storageAccountMinimumTlsVersionThe minimumTlsVersion of the storage account.
parameters.storageAccountNetworkRuleSetThe networkRuleSet of the storage account.
parameters.storageAccountNetworkRuleSet.bypassThe bypass of the storage account.
parameters.storageAccountNetworkRuleSet.defaultActionThe defaultAction of the storage account.
parameters.storageAccountNetworkRuleSet.ipRulesThe ipRules of the storage account.
parameters.storageAccountNetworkRuleSet.virtualNetworkRulesThe virtualNetworkRules of the storage account.
parameters.storageAccountNetworkRuleSet.virtualNetworkRules.idThe id of the storage account.
parameters.storageAccountNetworkRuleSet.virtualNetworkRules.actionThe action of the storage account.
parameters.storageAccountNetworkRuleSet.virtualNetworkRules.stateThe state of the storage account.

Azure Resource Manager Template Variables

VariableDescription
variablesVariables are used to store values that are used multiple times.
variables.storageAccountNameThe name of the storage account.
variables.storageAccountTypeThe type of the storage account.
variables.storageAccountSkuThe SKU of the storage account.
variables.storageAccountKindThe kind of the storage account.
variables.storageAccountAccessTierThe access tier of the storage account.
variables.storageAccountEnableHttpsTrafficOnlyThe enableHttpsTrafficOnly of the storage account.
variables.storageAccountAllowBlobPublicAccessThe allowBlobPublicAccess of the storage account.

Azure Resource Manager Template Resources

ResourceDescription
resourcesResources are the components of your solution that will be deployed.
resources.typeThe type of the resource.
resources.apiVersionThe API version of the resource.
resources.nameThe name of the resource.
resources.locationThe location of the resource.
resources.tagsThe tags of the resource.
resources.propertiesThe properties of the resource.
resources.properties.accountTypeThe accountType of the resource.
resources.properties.accessTierThe accessTier of the resource.
resources.properties.enableHttpsTrafficOnlyThe enableHttpsTrafficOnly of the resource.
resources.properties.allowBlobPublicAccessThe allowBlobPublicAccess of the resource.

Azure Resource Manager Template Outputs

OutputDescription
outputsOutputs are used to return values from the deployment.
outputs.storageAccountNameThe name of the storage account.
outputs.storageAccountTypeThe type of the storage account.
outputs.storageAccountSkuThe SKU of the storage account.
outputs.storageAccountKindThe kind of the storage account.
outputs.storageAccountAccessTierThe access tier of the storage account.
outputs.storageAccountEnableHttpsTrafficOnlyThe enableHttpsTrafficOnly of the storage account.