Skip to content

CU-CommunityApps/ct-az-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure templates

Templates for consumption

Prerequisites

Templates use Azure CLI credentials, so you must start with:

$ az login --use-device-code

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ABCDEFG1234 to authenticate.
...

Referencing nested templates

Use this URI to link to files in this repo

https://raw.githubusercontent.com/CU-CommunityApps/ct-az-templates/master/<level>/<template-file-name>

"resources": [
  {
    "type": "Microsoft.Resources/deployments",
    "apiVersion": "2018-05-01",
    "name": "linkedTemplate",
    "properties": {
    "mode": "Incremental",
    "templateLink": {
        "uri":"https://raw.githubusercontent.com/CU-CommunityApps/ct-az-templates/master/<level>/<template-file-name>",
        "contentVersion":"1.0.0.0"
    }
  }
]

rg-level Resource group deployments

az group deployment create \
--resource-group <resource-group-name> \
--template-file <path-to-template-file> \
--parameters parameter-name1 <parameter-value1> parameter-name2 <parameter-value2>

sub-level Subscription based deployments

az deployment create \
--name <deployment-name> \
--location <region> \
--template-file <path-to-template-file> \
--parameters parameter-name1 <parameter-value1> parameter-name2 <parameter-value2> \
--subscription <subscriptionId>

Releases

No releases published

Packages

No packages published