Skip to content

Instantly share code, notes, and snippets.

@ljtill
Last active February 8, 2021 18:02
Show Gist options
  • Save ljtill/92ad3e228a5a255cb4bc4a9805a8c406 to your computer and use it in GitHub Desktop.
Save ljtill/92ad3e228a5a255cb4bc4a9805a8c406 to your computer and use it in GitHub Desktop.
Provides the ability to implement delay feature within Azure deployments
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"functions": [],
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2019-10-01",
"name": "[concat('Microsoft.Resources/deployments/delay', '.', copyIndex())]",
"location": "[deployment().location]",
"scope": "[concat('Microsoft.Management/managementGroups/', '')]",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [],
"outputs": {}
}
},
"copy": {
"batchSize": 1,
"count": 20,
"mode": "Serial",
"name": "DeploymentDelay"
}
}
],
"outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment