You can interact with Resource Manager using PowerShell, CLI, Client libraries, Visual Studio, Portal, REST API.
Empty ARM template:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
},
"resources": [
],
"outputs": {
}
}
content, resourcesparameters, variables, output.E.g. json:
{
"Name": "New Role 1",
"Id": null,
"IsCustom": true,
"Description": "Allows for read access to Azure storage and compute resources",
"Actions": [
"Microsoft.Compute/\*/read",
"Microsoft.Storage/\*/read",
],
"NotActions": [
],
"AssignableScopes": [
"/subscriptions/c489345-9cd4-44c9-99a7-4gh6575315336g"
]
}
contributor role does not contain the necessary permissions.E.g.
{
"if": {
"field": "type",
"in": "[parameters('listOfResourceNotAllowed')]"
},
"then": {
"effect": "Deny"
}
}
E.g. the resource name must begin contoso and have six characters as the rest of the name.
{
"if": {
"not": {
"field": "name",
"match": "contoso??????"
}
},
"then": {
"effect": "deny"
}
}
buildingBlocks parameter containing an array of resources that you wish to deploy.
type :identify the type of building block. E.g. VirtualNetwork.name : Unique name of the resourceaddressPrefixes : Array of address ranges in CIDR notation.
"addressPrefixes": [ "10.0.0.0/16", "11.0.0.0/16" ]subnets :ian array—we can specify up to 1,000 subnets for each VNet.Empty settings file:
{
"$schema": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/schemas/buildingBlocks.json",
"contentVersion": "1.0.0.0",
"parameters" : {
"buildingBlocks": {
"value": [
{}
]
}
}
}
E.g. deploying a Virtual Network
{
"$schema": "https://raw.githubusercontent.com/mspnp/template-building-blocks/master/schemas/buildingBlocks.json",
"contentVersion": "1.0.0.0",
"parameters": {
"buildingBlocks": {
"value": [
{
"type": "VirtualNetwork",
"settings": [
{
"name": "msft-hub-vnet",
"addressPrefixes": [
"10.0.0.0/16"
],
"subnets": [
{
"name": "firewall",
"addressPrefix": "10.0.1.0/24"
}
]
}
]
}
]
}
}
}
azbb -g <new or existing resource group> -s <subscription ID> -l <region> -p <path to your settings file> --deployStatefulRunAsyncCancellation, SatefulRunAsyncFailure