Best Practices ARM templates - WordPress.com · Thank you @pgroene [email protected]

28
Best Practices ARM templates PETER GROENEWEGEN @pgroene

Transcript of Best Practices ARM templates - WordPress.com · Thank you @pgroene [email protected]

Page 1: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Best Practices ARM templatesPETER GROENEWEGEN@pgroene

Page 2: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Peter GroenewegenXpirit Netherlands@pgroene – [email protected]

Page 3: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 4: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 5: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Declarative

Single source of truth

Increase repeatability and testability

Decrease provisioning time

Rely less on availability of persons to perform tasks

Use proven software development practices for deploying infrastructure

Idempotent provisioning and configuration

Page 6: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 7: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 8: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 9: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 10: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

…"outputs": {

"myResourceName" : {"type" : "string","value": "[reference(resourceTemplate).name)]"

}}

Page 11: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 12: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

"parameters": { "myparameter":{"value":

"reference('myResourceWithOutput').outputs.myResourceName.value"} }

Page 13: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 14: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

"parameters": { “size":{"value": “Small"}

}

"parameters": { “size":{"value": “Large"}

}

Page 15: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 16: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 17: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 18: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 19: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 20: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 21: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 22: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 23: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 24: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

"resources": [

{

"name": "[variables('lock_name')]",

"type": "Microsoft.Storage/storageAccounts/providers/locks",

"apiVersion": "2015-01-01",

"properties": {

"level": "[parameters('level')]",

"notes": "[parameters('notes')]"

}

} ]

Page 25: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Admin DevOps

Page 26: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com
Page 27: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Read more

Page 28: Best Practices ARM templates - WordPress.com · Thank you  @pgroene pgroenewegen@xpirit.com

Thank you

https://pgroene.wordpress.com@pgroene

[email protected]