GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - raavivijay/azure-quickstart-templates: Azure Quickstart Templates

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

14,954 Commits
14,954 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
1-CONTRIBUTION-GUIDE
1-CONTRIBUTION-GUIDE
 
 
100-blank-template
100-blank-template
 
 
101-1vm-2nics-2subnets-1vnet
101-1vm-2nics-2subnets-1vnet
 
 
101-acs-dcos
101-acs-dcos
 
 
101-acs-kubernetes
101-acs-kubernetes
 
 
101-acs-swarm
101-acs-swarm
 
 
101-acsengine-swarmmode
101-acsengine-swarmmode
 
 
101-app-service-certificate-standard
101-app-service-certificate-standard
 
 
101-app-service-certificate-wildcard
101-app-service-certificate-wildcard
 
 
101-application-gateway-create
101-application-gateway-create
 
 
101-application-gateway-public-ip-ssl-offload
101-application-gateway-public-ip-ssl-offload
 
 
101-application-gateway-public-ip
101-application-gateway-public-ip
 
 
101-application-gateway-redirect
101-application-gateway-redirect
 
 
101-application-gateway-waf
101-application-gateway-waf
 
 
101-automation-runbook-getvms
101-automation-runbook-getvms
 
 
101-availability-set-create-3FDs-20UDs
101-availability-set-create-3FDs-20UDs
 
 
101-azure-api-management-create
101-azure-api-management-create
 
 
101-azure-dns-new-zone
101-azure-dns-new-zone
 
 
101-azure-relay-create-namespace
101-azure-relay-create-namespace
 
 
101-azure-search-create
101-azure-search-create
 
 
101-backup-protect-iaasvm
101-backup-protect-iaasvm
 
 
101-backup-vault-create
101-backup-vault-create
 
 
101-cdn-with-custom-origin
101-cdn-with-custom-origin
 
 
101-container-registry
101-container-registry
 
 
101-create-ase-with-webapp
101-create-ase-with-webapp
 
 
101-data-factory-blob-to-sql-copy-stored-proc
101-data-factory-blob-to-sql-copy-stored-proc
 
 
101-data-factory-blob-to-sql-copy
101-data-factory-blob-to-sql-copy
 
 
101-data-factory-hive-transformation
101-data-factory-hive-transformation
 
 
101-data-factory-salesforce-to-blob-copy
101-data-factory-salesforce-to-blob-copy
 
 
101-data-lake-store-encryption-adls
101-data-lake-store-encryption-adls
 
 
101-data-lake-store-encryption-key-vault
101-data-lake-store-encryption-key-vault
 
 
101-data-lake-store-no-encryption
101-data-lake-store-no-encryption
 
 
101-datalake-analytics
101-datalake-analytics
 
 
101-documentdb-account-consistencypolicy-create
101-documentdb-account-consistencypolicy-create
 
 
101-documentdb-account-create-multi-region-account
101-documentdb-account-create-multi-region-account
 
 
101-documentdb-account-create
101-documentdb-account-create
 
 
101-dtl-create-lab
101-dtl-create-lab
 
 
101-expressroute-circuit-create
101-expressroute-circuit-create
 
 
101-function-app-create-dedicated
101-function-app-create-dedicated
 
 
101-function-app-create-dynamic
101-function-app-create-dynamic
 
 
101-hdinsight-hbase-linux-vnet
101-hdinsight-hbase-linux-vnet
 
 
101-hdinsight-hbase-linux
101-hdinsight-hbase-linux
 
 
101-hdinsight-hbase-replication-one-vnet
101-hdinsight-hbase-replication-one-vnet
 
 
101-hdinsight-hbase-replication-two-vnets-same-region
101-hdinsight-hbase-replication-two-vnets-same-region
 
 
101-hdinsight-interactive-hive
101-hdinsight-interactive-hive
 
 
101-hdinsight-linux-add-edge-node
101-hdinsight-linux-add-edge-node
 
 
101-hdinsight-linux-ssh-password
101-hdinsight-linux-ssh-password
 
 
101-hdinsight-linux-ssh-publickey-metastore-vnet
101-hdinsight-linux-ssh-publickey-metastore-vnet
 
 
101-hdinsight-linux-ssh-publickey
101-hdinsight-linux-ssh-publickey
 
 
101-hdinsight-linux-with-edge-node
101-hdinsight-linux-with-edge-node
 
 
101-hdinsight-linux-with-sql-database
101-hdinsight-linux-with-sql-database
 
 
101-hdinsight-rserver
101-hdinsight-rserver
 
 
101-hdinsight-secure-vnet
101-hdinsight-secure-vnet
 
 
101-hdinsight-spark-linux-vnet
101-hdinsight-spark-linux-vnet
 
 
101-hdinsight-spark-linux
101-hdinsight-spark-linux
 
 
101-internal-loadbalancer-create
101-internal-loadbalancer-create
 
 
101-iothub-with-consumergroup-create
101-iothub-with-consumergroup-create
 
 
101-jenkins-with-ssh-public-key
101-jenkins-with-ssh-public-key
 
 
101-jenkins
101-jenkins
 
 
101-key-vault-create
101-key-vault-create
 
 
101-loadbalancer-with-multivip
101-loadbalancer-with-multivip
 
 
101-loadbalancer-with-nat-rule
101-loadbalancer-with-nat-rule
 
 
101-logic-app-and-function-app
101-logic-app-and-function-app
 
 
101-logic-app-create
101-logic-app-create
 
 
101-logic-app-ftp-to-blob
101-logic-app-ftp-to-blob
 
 
101-logic-app-sendgrid
101-logic-app-sendgrid
 
 
101-logic-app-sql-proc
101-logic-app-sql-proc
 
 
101-media-services-create
101-media-services-create
 
 
101-mobile-app-create
101-mobile-app-create
 
 
101-nic-publicip-dns-vnet
101-nic-publicip-dns-vnet
 
 
101-notification-hub
101-notification-hub
 
 
101-point-to-site
101-point-to-site
 
 
101-rbac-builtinrole-resourcegroup
101-rbac-builtinrole-resourcegroup
 
 
101-rbac-builtinrole-virtualmachine
101-rbac-builtinrole-virtualmachine
 
 
101-recovery-services-backup-vms
101-recovery-services-backup-vms
 
 
101-recovery-services-daily-backup-policy-create
101-recovery-services-daily-backup-policy-create
 
 
101-recovery-services-vault-create
101-recovery-services-vault-create
 
 
101-recovery-services-weekly-backup-policy-create
101-recovery-services-weekly-backup-policy-create
 
 
101-redis-cache
101-redis-cache
 
 
101-security-group-create
101-security-group-create
 
 
101-servicebus-create-namespace
101-servicebus-create-namespace
 
 
101-servicebus-namespace
101-servicebus-namespace
 
 
101-servicebus-pn-ar
101-servicebus-pn-ar
 
 
101-servicebus-queue
101-servicebus-queue
 
 
101-servicebus-topic-subscription
101-servicebus-topic-subscription
 
 
101-servicebus-topic
101-servicebus-topic
 
 
101-site-to-site-vpn-create
101-site-to-site-vpn-create
 
 
101-spinnaker-existing-vnet
101-spinnaker-existing-vnet
 
 
101-spinnaker
101-spinnaker
 
 
101-sql-elastic-pool-create
101-sql-elastic-pool-create
 
 
101-sql-with-failover-group
101-sql-with-failover-group
 
 
101-storage-account-create
101-storage-account-create
 
 
101-streamanalytics-create
101-streamanalytics-create
 
 
101-subnet-add-vnet-existing
101-subnet-add-vnet-existing
 
 
101-traffic-manager-external-endpoint
101-traffic-manager-external-endpoint
 
 
101-vm-automatic-static-ip
101-vm-automatic-static-ip
 
 
101-vm-customdata
101-vm-customdata
 
 
101-vm-from-user-image
101-vm-from-user-image
 
 
101-vm-full-disk-encrypted-rhel-unmanaged
101-vm-full-disk-encrypted-rhel-unmanaged
 
 

Repository files navigation

Azure Resource Manager QuickStart Templates

This repo contains all currently available Azure Resource Manager templates contributed by the community. A searchable template index is maintained at https://azure.microsoft.com/en-us/documentation/templates/. The following information is relevant to get started with contributing to this repository.

  • Contribution guide. Describes the minimal guidelines for contributing.
  • Best practices. Best practices for improving the quality of your template design.
  • Git tutorial. Step by step to get you started with Git.
  • Useful Tools. Useful resources and tools for Azure development.

Deploying Samples

You can deploy these samples directly through the Azure Portal or by using the scripts supplied in the root of the repo.

To deploy a sample using the Azure Portal, click the Deploy to Azure button found in the README.md of each sample.

To deploy the sample via the command line (using Azure PowerShell or the Azure CLI 1.0) you can use the scripts below.

Simply execute the script and pass in the folder name of the sample you want to deploy.

For example:

PowerShell

.\Deploy-AzureResourceGroup.ps1 -ResourceGroupLocation 'eastus' -ArtifactStagingDirectory '[foldername]'

Bash

Please ensure that you have node and npm, jq and azure-cli installed.

./azure-group-deploy.sh -a [foldername] -l eastus
  • If you see the following error: "syntax error near unexpected token `$'in\r''", run this command: 'dos2unix azure-group-deploy.sh'.
  • If you see the following error: "jq: command not found", run this command: "sudo apt install jq".
  • If you see the following error: "node: not found", install node and npm.
  • If you see the following error: "azure-group-deploy.sh is not a command", make sure you run "chmod +x azure-group-deploy.sh".

Uploading Artifacts

If the sample has artifacts that need to be "staged" for deployment (Configuration Scripts, Nested Templates, DSC Packages) then set the upload switch on the command. You can optionally specify a storage account to use, if so the storage account must already exist within the subscription. If you don't want to specify a storage account one will be created by the script or reused if it already exists (think of this as "temp" storage for AzureRM).

PowerShell

.\Deploy-AzureResourceGroup.ps1 -ResourceGroupLocation 'eastus' -ArtifactStagingDirectory '201-vm-custom-script-windows' -UploadArtifacts 

Bash

./azure-group-deploy.sh -a [foldername] -l eastus -u

Contribution guide

To make sure your template is added to Azure.com index, please follow these guidelines. Any templates that are out of compliance will be added to the blacklist and not be indexed on Azure.com

Files, folders and naming conventions

  1. Every deployment template and its associated files must be contained in its own folder. Name this folder something that describes what your template does. Usually this naming pattern looks like appName-osName or level-platformCapability (e.g. 101-vm-user-image)
  • Required - Numbering should start at 101. 100 is reserved for things that need to be at the top.
  • Protip - Try to keep the name of your template folder short so that it fits inside the Github folder name column width.
  1. Github uses ASCII for ordering files and folder. For consistent ordering create all files and folders in lowercase. The only exception to this guideline is the README.md, that should be in the format UPPERCASE.lowercase.
  2. Include a README.md file that explains how the template works.
  • Guidelines on the README.md file below.
  1. The deployment template file must be named azuredeploy.json.
  2. There should be a parameters file named azuredeploy.parameters.json.
  • Please fill out the values for the parameters according to rules defined in the template (allowed values etc.), For parameters without rules, a simple "changeme" will do as the acomghbot only checks for syntactic correctness using the ARM Validate Template API.
  1. The template folder must contain a metadata.json file to allow the template to be indexed on Azure.com.
  • Guidelines on the metadata.json file below.
  1. The custom scripts that are needed for successful template execution must be placed in a folder called scripts.
  2. Linked templates must be placed in a folder called nested.
  3. Images used in the README.md must be placed in a folder called images.
  4. Any resources that need to be setup outside the template should be named prefixed with existing (e.g. existingVNET, existingDiagnosticsStorageAccount).

alt text

README.md

The README.md describes your deployment. A good description helps other community members to understand your deployment. The README.md uses Github Flavored Markdown for formatting text. If you want to add images to your README.md file, store the images in the images folder. Reference the images in the README.md with a relative path (e.g. ![alt text](images/namingConvention.png "Files, folders and naming conventions")). This ensures the link will reference the target repository if the source repository is forked. A good README.md contains the following sections

  • Deploy to Azure button
  • Visualize button
  • Description of what the template will deploy
  • Tags, that can be used for search. Specify the tags comma seperated and enclosed between two back-ticks (e.g Tags: cluster, ha, sql)
  • *Optional: Prerequisites
  • *Optional: Description on how to use the application
  • *Optional: Notes

Do not include the parameters or the variables of the deployment script. We render this on Azure.com from the template. Specifying these in the README.md will result in duplicate entries on Azure.com.

You can download a sample README.md for use in your deployment scenario. The sample README.md also contains the code for the Deploy to Azure and Visualize buttons, that you can use as a reference.

metadata.json

A valid metadata.json must adhere to the following structure

{
  "itemDisplayName": "",
  "description": "",
  "summary": "",
  "githubUsername": "",
  "dateUpdated": "<e.g. 2015-12-20>"
}

The metadata.json file will be validated using these rules

itemDisplayName

  • Cannot be more than 60 characters

description

  • Cannot be more than 1000 characters
  • Cannot contain HTML This is used for the template description on the Azure.com index template details page

summary

  • Cannot be more than 200 characters
  • This is shown for template description on the main Azure.com template index page

githubUsername

  • This is the username of the original template author. Do not change this
  • This is used to display template author and Github profile pic in the Azure.com index

dateUpdated

  • Must be in yyyy-mm-dd format.
  • The date must not be in the future to the date of the pull request

Common errors from acomghbot

acomghbot is a bot designed to enforce the above rules and check the syntactic correctness of the template using the ARM Validate Template API. Below are some of the more cryptic error messages you might receive from the bot and how to solve these issues.

  • This error is received when the parameters file contains a parameter that is not defined in the template.

The file azuredeploy.json is not valid. Response from ARM API: BadRequest - {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template parameters 'vmDnsName' are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'newStorageAccountName, adminUsername, adminPassword, dnsNameForPublicIP, windowsOSVersion, sizeOfDiskInGB'.'."}}

  • This error is received when a parameter in the parameter file has an empty value.

The file azuredeploy.json is not valid. Response from ARM API: BadRequest - {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template resource '' at line '66' and column '6' is not valid. The name property cannot be null or empty'."}}

  • This error message is received when a value entered in the parameters file is different from the allowed values defined for the parameter in the template file.

The file azuredeploy.json is not valid. Response from ARM API: BadRequest - {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The provided value for the template parameter 'publicIPAddressType' at line '40' and column '29' is not valid.'."}}

Travis CI

We have automated template validation through Travis CI. These builds can be accessed by clicking the 'Details' link at the bottom of the pull-request dialog. This process will ensure that your template conforms to all the rules mentioned above and will also deploy your template to our test azure subscription.

Parameters File Placeholders

To ensure your template passes, special placeholder values are required when deploying a template, depending what the parameter is used for:

  • GEN-UNIQUE - use this placeholder for new storage account names, domain names for public ips and other fields that need a unique name. The value will always be alpha numeric value with a length of 18 characters.
  • GEN-UNIQUE-[N] - use this placeholder for new storage account names, domain names for public ips and other fields that need a unique name. The value will always be alpha numeric value with a length of [N], where [N] can be any number from 3 to 32 inclusive.
  • GEN-SSH-PUB-KEY - use this placeholder if you need an SSH public key
  • GEN-PASSWORD - use this placeholder if you need an azure-compatible password for a VM

Here's an example in an azuredeploy.parameters.json file:

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
 "newStorageAccountName":{
  "value": "GEN-UNIQUE"
 },
 "adminUsername": {
  "value": "sedouard"
 },
 "sshKeyData": {
  "value": "GEN-SSH-PUB-KEY"
 },
 "dnsNameForPublicIP": {
  "value": "GEN-UNIQUE-13"
 }
}

raw.githubusercontent.com Links

If you're making use of raw.githubusercontent.com links within your template contribution (within the template file itself or any scripts in your contribution) please ensure the following:

  • Ensure any raw.githubusercontent.com links which refer to content within your pull request points to https://raw.githubusercontent.com/Azure/azure-quickstart-templates/... and NOT your fork.
  • All raw.githubusercontent.com links are placed in your azuredeploy.json and you pass the link down into your scripts & linked templates via this top-level template. This ensures we re-link correctly from your pull-request repository and branch.
  • Although pull requests with links pointing to https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/... may not exist in the Azure repo at the time of your pull-request, at CI run-time, those links will be converted to https://raw.githubusercontent.com/{your_user_name}/azure-quickstart-templates/{your_branch}/.... Be sure to check the casing of https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/... as this is case-sensitive.

Note: You can find an example of relative linking in the nested template section of best practices document.

Template Pre-requisites

If your template has some pre-requisite such as an Azure Active Directory application or service principal, we don't support this yet. To bypass the CI workflow include a file called .ci_skip in the root of your template folder.

Diagnosing Failures

If your deployment fails, check the details link of the Travis CI build, which will take you to the CI log. If the template deployment was attempted, you will get two top-level fields. The first is parameters which is the rendered version of your azuredeploy.parameters.json. This will include any replacements for GEN- parameters. The second is template which is the contents of your azuredeploy.json, after any raw.githubusercontent.com relinking. These values are the exact values you need to reproduce the error. Keep in mind, that depending on the resources allocated, it can take a few minutes for the CI system to cleanup provisioned resources.

Here is an example failure log:

Server Error:{
    "error": "Deployment provisioning state was not successful\n",
    "_rgName": "qstci-26dd2ec4-bae9-12fb-fd46-fd4ce455a035",
    "command": "azure group deployment create --resource-group (your_group_name) --template-file azuredeploy.json --parameters-file azuredeploy.parameters.json",
    "parameters": {
        "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {
            "clusterName": {
                "value": "ci4391bcd700f86e84"
            },
            "clusterType": {
                "value": "hadoop"
            },
            "clusterStorageAccountName": {
                "value": "cifb07cf059735afba"
            },
            "clusterLoginUserName": {
                "value": "admin"
            },
            "clusterLoginPassword": {
                "value": "ciP$ss2e6a28784055eda8"
            }
        }
    },
    "template": {
        "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {
            "clusterType": {
                "type": "string",
                "allowedValues": [
                    "hadoop",
                    "hbase",
                    "storm",
                    "spark"
                ],
                "metadata": {
                    "description": "The type of the HDInsight cluster to create."
                }
            }
            // more parameters here...
        },
        "variables": {
            "defaultApiVersion": "2015-06-15",
            "clusterApiVersion": "2015-03-01-preview",
            "adlsApiVersion": "2015-10-01-preview"
        },
        "resources": [
            {
                "name": "[parameters('adlStoreName')]",
                "type": "Microsoft.DataLakeStore/accounts",
                "location": "East US 2",
                "apiVersion": "[variables('adlsApiVersion')]",
                "dependsOn": [],
                "tags": {},
                "properties": {
                    "initialUser": "[parameters('servicePrincipalObjectId')]"
                }
            },
            // more resources here...
        ],
        "outputs": {
            "adlStoreAccount": {
                "type": "object",
                "value": "[reference(resourceId('Microsoft.DataLakeStore/accounts',parameters('adlStoreName')))]"
            }
            // more outputs here...
        }
    }
}
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

About

Azure Quickstart Templates

azure.microsoft.com/en-us/documentation/templates

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.