Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (28 sloc) 1.04 KB

My first Azure ARM template

Is a custom for every first get-stared sample to use a "hello world", so let's start with the most basic template that I think of.

The actual template is as simple as this:

{
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {  },
    "variables": {  },
    "resources": [  ],
    "outputs": {  
        "reponse" : {
            "type": "string",
            "value": "Hello World!"
        }
    }
}

Now let's deploy the template:

Azure CLI

# create the resource group
az group create --name resourceGroupHelloWorld --location "Central US"

# deploy the template
az group deployment create --name hugosDeployment --resource-group resourceGroupHelloWorld --template-uri https://raw.githubusercontent.com/Hugos-MSFT/azure-arm-templates/master/Samples/get-started/helloWorldTemplate.json

See the demo:

IMAGE ALT TEXT HERE

You can’t perform that action at this time.