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

Learning by doing: A simple RESTful API with Node, Express and MongoDB

How to implement the Promise class/pattern from scratch in Javascript

Перенаправление Nginx для ЧПУ

Angular Form Generator & Pitfalls

Angular Form Generator Homepage

Vue LifeCycle Hooks(Part 2)

Minting an NFT using Third Web and Next.js

5 interesting technical challenges I faced when building FilePond

PCT Training Days 3 4 5 6 https://t.co/HEBbZvGhuX via https://t.co/GdRs9rI3hg

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

How to Build Mobile Applications on Microsoft Azure.

​​Low-Code Platforms: 5 reasons to use them (and 4 to think again)

​​Low-Code Platforms: 5 reasons to use them

How to set up an efficient development workflow with a git branching strategy and CI/CD for Azure…

Credit Checker: Instant real-time credit report inside Salesforce