-
-
Save johnlokerse/17f83941f06d1aee53b081a814a0e45d to your computer and use it in GitHub Desktop.
Reusability with export and import in Azure Bicep blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"languageVersion": "2.0", | |
"contentVersion": "1.0.0.0", | |
"definitions": { | |
"tagsType": { | |
"type": "object", | |
"properties": { | |
"Environment": { | |
"type": "string", | |
"allowedValues": [ | |
"Dev", | |
"Prod", | |
"QA", | |
"Stage", | |
"Test" | |
] | |
}, | |
"CostCenter": { | |
"type": "string" | |
}, | |
"Owner": { | |
"type": "string" | |
}, | |
"BusinessUnit": { | |
"type": "string" | |
} | |
}, | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"metadata": { | |
"__bicep_imported_from!": { | |
"sourceTemplate": "shared.bicep" | |
} | |
} | |
} | |
}, | |
"parameters": { | |
"parKeyVaultName": { | |
"type": "string" | |
}, | |
"parTags": { | |
"$ref": "#/definitions/tagsType" | |
} | |
}, | |
"resources": { | |
... resources here ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment