Microsoft Azure (AZ-104): ARM Template

  "resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2020-12-01",
"name": "[parameters('hostingPlanName')]",
"location": "[parameters('location')]",
"sku": {
"tier": "Free",
"name": "f1",
"capacity": 0
},
"properties": {
"targetWorkerCount": 1
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2020-12-01",
"name": "[variables('siteName')]",
"location": "[parameters('location')]",
}
{
"rules": [
{
"name": "agingRule",
"enabled": true,
"type": "Lifecycle",
"definition": {
"filters": {
"blobTypes": [ "blockBlob" ],
"prefixMatch": [ "container1/foo", "container2/bar" ]
},
"actions": {
"baseBlob": {
"tierToCool": { "daysAfterModificationGreaterThan": 30 },
"tierToArchive": { "daysAfterModificationGreaterThan": 90 }
}
}
}
}
]
}
"if": {
"allOf": [{
"field": "type",
"equals": "Microsoft.Resources/subscriptions/resourceGroups"
},
{
"field": "tags['CostCenter']",
"exists": false
}
]
},
"then": {
"effect": "deny"
}
"storageProfile":{
"imageReference":{
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2016-Datacenter"
,
"version": "latest"
}
"if": {
"allOf": [{
"field": "type",
"equals": "Microsoft.Network/loadbalancers"
},
{
"not":{
"field": "Microsoft.Network/loadbalancers/sku.name",
"in":"[parameters('listofAllowedSKUs')]"
}
]
},
"then": {
"effect": "deny"
}

--

--

--

A food lover, a cyber security enthusiast, a musician and a traveller, so you will see a mix of different contents in my blog. ☺️

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Reactions of React.

How to publish a VueJS Component on NPM

Authentication for Dummies

How To: Implement a Set of Stacks in Javascript

Understand the Comparator Inside Array.prototype.sort()

Frontend Weekly Digest #200 (1–7 March 2021)

Singin’ in the id=“main”

Setting Up a Lightweight Dev Environment with NodeJS and SQLite

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
goay xuan hui

goay xuan hui

A food lover, a cyber security enthusiast, a musician and a traveller, so you will see a mix of different contents in my blog. ☺️

More from Medium

Azure AD Role Management

Azure Data Explorer for Real time alerts in Healthcare

Feature Flag Management and Usage in Azure App Configuration using C#.NET

Blob triggered function deployed with Azure DevOps