ARM Template Specs is now Public Preview!

Published Jan 27 2021 05:01 PM 13.8K Views
Microsoft

TL;DR – Template Specs is a new resource type for storing ARM templates in your resource groups for faster sharing, deployment, and role-based access control (RBAC) on those Templates shared within an organization. Template Specs addresses today's biggest challenges around ARM template management, storage, and access.

 

The Problem: Sharing ARM templates across an organization is challenging, requiring more management steps of the external or internal storage from which they are shared.

  • Sharing: ensuring the right teams within your organization have access becomes very tedious as you cannot leverage Azure RBAC on the ARM templates you want to share.
  • Management: providing teams with the latest ARM templates in a consistent and versioned way.

 

Why Template Specs?

As a native solution, Template Specs will enable users to bring all their ARM templates to Azure as a resource and securely store and share them within an Azure tenant. 

 

The Solution: 1st Party secure storage and management of ARM templates within Azure.

  • Sharing: Who can access a Template Spec can be defined using Azure RBAC.
  • Management: Template Specs can be versioned within the same resource, ensuring users can always access the latest iterations of an ARM template (or templates) stored in a Template Spec.

 

Template Spec Reference and Docs:

Note:  Below references show how Template Specs can be created with an ARM template, but we strongly recommend using Portal, PowerShell or CLI for creating Template Specs.

Creating and Deploying a Template Spec Resource

A Template Spec is a resource that contains an array of Template Spec versions which consists of a root template and any number of linked templates. A Template Spec can be created using the Portal, PowerShell, Azure CLI, REST API, or ARM Template. To help visualize a Template Spec create, here are some examples of what it would look like in the Azure CLI:

 

Creating a Template Spec using Azure CLI

To create a Template Spec, use the az ts create command to package an ARM into the Template Spec resource.

 

 

 

az ts create --name webAppSpec --version "1.0" --resource-group rgName --location "westus2" --template-file "azuredeploy.json"

 

 

 

Required properties:

  • --name: The name for the Template Spec resource.
  • --version: The version number or name of the version being created.
  • --location: The Azure region for the Template Spec resource.
  • --template-file: The ARM template to be packaged into a template spec.

Creating and Deploying a Template Spec with Linked Templates using Azure CLI

To create a Template Spec with artifacts inside it, we need the following:

  1. Create main template (e.g. azuredeploy.json) that deploys linked templates, to be passed into the az ts create command as a template file.
  2. Create N number of deployment resources with linked templates referenced using the relativePath property within the templateLink object.apclouds_3-1611777032592.png

    In this example the linked templates are stored in a subfolder called artifacts, which is in the same path as the main template file. The relativePath property is relative to the template file where relativePath is declared. The relativePath property can take any of the following values:

    • ./artifacts/storagelinkedTemplate.json
    • /artifacts/storagelinkedTemplate.json
    • artifacts/storagelinkedTemplate.json

     

    Note: relativePath can also be used deploy remote linked templates given all template files are staged together and available via remote URI, such as GitHub or Azure storage. The main template is called by using URI and all linked templates referenced as relative to that main template will have a URI constructed using the main template URI and the relativePath specified. This feature requires api version 2020-10-01 or greater. To learn more about this feature, please refer to Link templates for deployment - Azure Resource Manager | Microsoft Docs.

  3.  Run the az ts create command to create or update a template spec version. This command packages the linked templates added via templateLink as artifacts in your Template Spec version. 

    az ts create --name webAppSpec --version "1.0" --resource-group rgName --location "westus2" --template-file "azuredeploy.json"​

    This command packages the template file azuredeploy.json into the main template of the Template Spec version webAppSpec-1.0 and all linked templates specified into the artifacts[] array of the Template Spec object.

  4.  Deploy the Template Spec by passing in its resource ID using the  az deployment group create command. First, we need to get the ID of the Template Spec resource created, and this can be done easily in the Azure CLI by using the az ts show command:

    id=$(az ts show --name webAppSpec --version "1.0" --resource-group rgName --query "id")
  5.  Verify the contents of a Template Spec by running the az ts export command that downloads a specified Template Spec version into an --output-folder in your local file system.
    az ts export --output-folder "C:\\exported-template-specs" -s "template-spec-version-ID"

    This command exports the specified Template Spec’s main template (e.g. webAppSpec.JSON) and an artifacts folder with all of its corresponding template artifacts. You can also view the contents of a Template Spec version can also be seen using the Azure Portal.

     

    apclouds_1-1611779638060.png

 

Deploying a Template Spec as Linked Template using ARM Template with ID Reference

A Template Spec resource can also be referenced using the templateLink property and specifying the id of the template spec:

apclouds_0-1611781075709.png

References and Docs

We look forward to feedback and seeing you succeed on Azure with ARM Template Specs. Please feel free to reach out with any questions at angperez@microsoft.com on Twitter, or GitHub.

3 Comments
Microsoft

Thanks for the new functionality and features!

 

A question regarding the standard behavior currently provided by Templates(Preview).

Right now if I want to deploy a resource I usually:

  • go to Templates;
  • select previously saved resource template;
  • upload parameter file;
  • deploy.

I've seen the suggestion to deploy template with predefined parameter file using CLI.

Will it be possible in Template Specs UI to upload a set of parameters as a file?

Occasional Visitor

This looks really useful to be able to easily share templates and deploy resources using your own uploaded templates.

 

Only issue I am really having is around arrays as the GUI isn't allow array input when specifying as a parameter. Maybe just me getting it wrong but also maybe because of being in preview.

Can template specs be extended to store a Terraform template? Frankly, it should any type of template  - Terraform / Pulumi / etc. 

%3CLINGO-SUB%20id%3D%22lingo-sub-2103322%22%20slang%3D%22en-US%22%3EARM%20Template%20Specs%20is%20now%20Public%20Preview!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2103322%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3ETL%3BDR%20%3C%2FSTRONG%3E%3CSPAN%3E%E2%80%93%26nbsp%3B%3C%2FSPAN%3ETemplate%20Specs%20is%20a%20new%20resource%20type%20for%20storing%20ARM%20templates%20in%20your%20resource%20groups%20for%20faster%20sharing%2C%20deployment%2C%20and%20role-based%20access%20control%20(RBAC)%20on%20those%20Templates%20shared%20within%20an%20organization.%20Template%20Specs%20addresses%20today's%20biggest%20challenges%20around%20ARM%20template%20management%2C%20storage%2C%20and%20access.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EThe%20Problem%3A%20%3C%2FSTRONG%3ESharing%20ARM%20templates%20across%20an%20organization%20is%20challenging%2C%20requiring%20more%20management%20steps%20of%20the%20external%20or%20internal%20storage%20from%20which%20they%20are%20shared.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ESharing%3A%20%3C%2FSTRONG%3Eensuring%20the%20right%20teams%20within%20your%20organization%20have%20access%20becomes%20very%20tedious%20as%20you%20cannot%20leverage%20Azure%20RBAC%20on%20the%20ARM%20templates%20you%20want%20to%20share.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EManagement%3A%20%3C%2FSTRONG%3Eproviding%20teams%20with%20the%20latest%20ARM%20templates%20in%20a%20consistent%20and%20versioned%20way.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--528870383%22%20id%3D%22toc-hId--528840370%22%20id%3D%22toc-hId--528840370%22%20id%3D%22toc-hId--528840370%22%20id%3D%22toc-hId--528870383%22%3EWhy%20Template%20Specs%3F%3C%2FH2%3E%0A%3CP%3EAs%20a%20native%20solution%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs%3Ftabs%3Dazure-cli%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Specs%3C%2FA%3E%20will%20enable%20users%20to%20bring%20all%20their%20ARM%20templates%20to%20Azure%20as%20a%20resource%20and%20securely%20store%20and%20share%20them%20within%20an%20Azure%20tenant.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EThe%20Solution%3A%20%3C%2FSTRONG%3E1%3CSUP%3Est%3C%2FSUP%3E%20Party%20secure%20storage%20and%20management%20of%20ARM%20templates%20within%20Azure.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ESharing%3A%20%3C%2FSTRONG%3EWho%20can%20access%20a%20Template%20Spec%20can%20be%20defined%20using%20Azure%20RBAC.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EManagement%3A%20%3C%2FSTRONG%3ETemplate%20Specs%20can%20be%20versioned%20within%20the%20same%20resource%2C%20ensuring%20users%20can%20always%20access%20the%20latest%20iterations%20of%20an%20ARM%20template%20(or%20templates)%20stored%20in%20a%20Template%20Spec.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETemplate%20Spec%20Reference%20and%20Docs%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20specs%20overview%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs-create-linked%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20a%20template%20spec%20with%20linked%20templates%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs-deploy-linked-template%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDeploy%20a%20template%20spec%20as%20a%20linked%20template%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Flinked-templates%3Ftabs%3Dazure-powershell%23use-relative-path-for-linked-templates%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELink%20templates%20for%20deployment%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Fconvert-to-template-spec%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConvert%20portal%20template%20to%20template%20spec%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%3E%20%26nbsp%3BBelow%20references%20show%20how%20Template%20Specs%20can%20be%20created%20with%20an%20ARM%20template%2C%20but%20we%20strongly%20recommend%20using%20Portal%2C%20PowerShell%20or%20CLI%20for%20creating%20Template%20Specs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Ftemplates%2Fmicrosoft.resources%2Ftemplatespecs%2Fversions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft.Resources%2FtemplateSpecs%2Fversions%20-%20ARM%20template%20reference%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fazure-quickstart-templates%2Ftree%2Fmaster%2F101-templatespec-create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eazure-quickstart-templates%2F101-templatespec-create%20at%20master%20%C2%B7%20Azure%2Fazure-quickstart-templates%20(github.com)%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1958642450%22%20id%3D%22toc-hId-1958672463%22%20id%3D%22toc-hId-1958672463%22%20id%3D%22toc-hId-1958672463%22%20id%3D%22toc-hId-1958642450%22%3ECreating%20and%20Deploying%20a%20Template%20Spec%20Resource%3C%2FH2%3E%0A%3CP%3EA%20Template%20Spec%20is%20a%20resource%20that%20contains%20an%20array%20of%20Template%20Spec%20versions%20which%20consists%20of%20a%20%3CSTRONG%3Eroot%20template%20and%20any%20number%20of%20linked%20templates%3C%2FSTRONG%3E.%20A%20Template%20Spec%20can%20be%20created%20using%20the%20Portal%2C%20PowerShell%2C%20Azure%20CLI%2C%20REST%20API%2C%20or%20ARM%20Template.%20To%20help%20visualize%20a%20Template%20Spec%20create%2C%20here%20are%20some%20examples%20of%20what%20it%20would%20look%20like%20in%20the%20Azure%20CLI%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECreating%20a%20Template%20Spec%20using%20Azure%20CLI%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20create%20a%20Template%20Spec%2C%20use%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fts%3Fview%3Dazure-cli-latest%23az_ts_create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Eaz%20ts%20create%3C%2FSTRONG%3E%3C%2FA%3E%20command%20to%20package%20an%20ARM%20into%20the%20Template%20Spec%20resource.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20ts%20create%20--name%20webAppSpec%20--version%20%221.0%22%20--resource-group%20rgName%20--location%20%22westus2%22%20--template-file%20%22azuredeploy.json%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERequired%20properties%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E--name%3A%20The%20name%20for%20the%20Template%20Spec%20resource.%3C%2FLI%3E%0A%3CLI%3E--version%3A%20The%20version%20number%20or%20name%20of%20the%20version%20being%20created.%3C%2FLI%3E%0A%3CLI%3E--location%3A%20The%20Azure%20region%20for%20the%20Template%20Spec%20resource.%3C%2FLI%3E%0A%3CLI%3E--template-file%3A%20The%20ARM%20template%20to%20be%20packaged%20into%20a%20template%20spec.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ECreating%20and%20Deploying%20a%20Template%20Spec%20with%20Linked%20Templates%20using%20Azure%20CLI%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20create%20a%20Template%20Spec%20with%20artifacts%20inside%20it%2C%20we%20need%20the%20following%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20main%20template%20(e.g.%20%3CEM%3Eazuredeploy.json%3C%2FEM%3E)%20that%20deploys%20linked%20templates%2C%20to%20be%20passed%20into%20the%20%3CSTRONG%3Eaz%20ts%20create%3C%2FSTRONG%3E%20command%20as%20a%20template%20file.%3C%2FLI%3E%0A%3CLI%3ECreate%20N%20number%20of%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Ftemplates%2Fmicrosoft.resources%2Fdeployments%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edeployment%20resources%3C%2FA%3E%20with%20linked%20templates%20referenced%20using%20the%20%3CSTRONG%3ErelativePath%3C%2FSTRONG%3E%20property%20within%20the%20%3CSTRONG%3EtemplateLink%3C%2FSTRONG%3E%20object.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22apclouds_3-1611777032592.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F249990iAE4BC88B510558CA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22apclouds_3-1611777032592.png%22%20alt%3D%22apclouds_3-1611777032592.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3EIn%20this%20example%20the%20linked%20templates%20are%20stored%20in%20a%20subfolder%20called%20%3CSTRONG%3Eartifacts%3C%2FSTRONG%3E%2C%20which%20is%20in%20the%20same%20path%20as%20the%20main%20template%20file.%20The%20relativePath%20property%20is%20relative%20to%20the%20template%20file%20where%20relativePath%20is%20declared.%20The%20relativePath%20property%20can%20take%20any%20of%20the%20following%20values%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E.%2Fartifacts%2FstoragelinkedTemplate.json%3C%2FLI%3E%0A%3CLI%3E%2Fartifacts%2FstoragelinkedTemplate.json%3C%2FLI%3E%0A%3CLI%3Eartifacts%2FstoragelinkedTemplate.json%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20relativePath%20can%20also%20be%20used%20deploy%20remote%20linked%20templates%20given%20all%20template%20files%20are%20staged%20together%20and%20available%20via%20remote%20URI%2C%20such%20as%20GitHub%20or%20Azure%20storage.%20The%20main%20template%20is%20called%20by%20using%20URI%20and%20all%20linked%20templates%20referenced%20as%20relative%20to%20that%20main%20template%20will%20have%20a%20URI%20constructed%20using%20the%20main%20template%20URI%20and%20the%20relativePath%20specified.%20This%20feature%20requires%20api%20version%202020-10-01%20or%20greater.%20To%20learn%20more%20about%20this%20feature%2C%20please%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Flinked-templates%3Ftabs%3Dazure-powershell%23use-relative-path-for-linked-templates%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELink%20templates%20for%20deployment%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3E%26nbsp%3BRun%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fts%3Fview%3Dazure-cli-latest%23az_ts_create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Eaz%20ts%20create%3C%2FSTRONG%3E%3C%2FA%3E%20command%20to%20create%20or%20update%20a%20template%20spec%20version.%20This%20command%20packages%20the%20linked%20templates%20added%20via%20templateLink%20as%20artifacts%20in%20your%20Template%20Spec%20version.%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20ts%20create%20--name%20webAppSpec%20--version%20%221.0%22%20--resource-group%20rgName%20--location%20%22westus2%22%20--template-file%20%22azuredeploy.json%22%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20command%20packages%20the%20template%20file%20azuredeploy.json%20into%20the%20main%20template%20of%20the%20Template%20Spec%20version%20webAppSpec-1.0%20and%20all%20linked%20templates%20specified%20into%20the%20artifacts%5B%5D%20array%20of%20the%20Template%20Spec%20object.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3E%26nbsp%3BDeploy%20the%20Template%20Spec%20by%20passing%20in%20its%20resource%20ID%20using%20the%26nbsp%3B%20%3CA%20style%3D%22background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fdeployment%2Fgroup%3Fview%3Dazure-cli-latest%23az_deployment_group_create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Eaz%20deployment%20group%20create%3C%2FSTRONG%3E%3C%2FA%3E%20command.%20First%2C%20we%20need%20to%20get%20the%20ID%20of%20the%20Template%20Spec%20resource%20created%2C%20and%20this%20can%20be%20done%20easily%20in%20the%20Azure%20CLI%20by%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fts%3Fview%3Dazure-cli-latest%23az_ts_show%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Eaz%20ts%20show%3C%2FSTRONG%3E%3C%2FA%3E%20command%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eid%3D%24(az%20ts%20show%20--name%20webAppSpec%20--version%20%221.0%22%20--resource-group%20rgName%20--query%20%22id%22)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BVerify%20the%20contents%20of%20a%20Template%20Spec%20by%20running%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fts%3Fview%3Dazure-cli-latest%23az_ts_export%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3Eaz%20ts%20export%3C%2FSTRONG%3E%3C%2FA%3E%20command%20that%20downloads%20a%20specified%20Template%20Spec%20version%20into%20an%20%3CSTRONG%3E--output-folder%3C%2FSTRONG%3E%20in%20your%20local%20file%20system.%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20ts%20export%20--output-folder%20%22C%3A%5C%5Cexported-template-specs%22%20-s%20%22template-spec-version-ID%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22lia-align-left%22%3EThis%20command%20exports%20the%20specified%20Template%20Spec%E2%80%99s%20main%20template%20(e.g.%20webAppSpec.JSON)%20and%20an%20artifacts%20folder%20with%20all%20of%20its%20corresponding%20template%20artifacts.%20You%20can%20also%20view%20the%26nbsp%3Bcontents%20of%20a%20Template%20Spec%20version%20can%20also%20be%20seen%20using%20the%20Azure%20Portal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22apclouds_1-1611779638060.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250015i80A1D33DC1A2304F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22apclouds_1-1611779638060.png%22%20alt%3D%22apclouds_1-1611779638060.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeploying%20a%20Template%20Spec%20as%20Linked%20Template%20using%20ARM%20Template%20with%20ID%20Reference%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EA%20Template%20Spec%20resource%20can%20also%20be%20referenced%20using%20the%20%3CSTRONG%3EtemplateLink%3C%2FSTRONG%3E%20property%20and%20specifying%20the%20%3CSTRONG%3Eid%3C%2FSTRONG%3E%20of%20the%20template%20spec%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22apclouds_0-1611781075709.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F250030iDD0DEB693ACE2673%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22apclouds_0-1611781075709.png%22%20alt%3D%22apclouds_0-1611781075709.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1645763372%22%20id%3D%22toc-hId--1645733359%22%20id%3D%22toc-hId--1645733359%22%20id%3D%22toc-hId--1645733359%22%20id%3D%22toc-hId--1645763372%22%3EReferences%20and%20Docs%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fts%3Fview%3Dazure-cli-latest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Spec%20CLI%20reference%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Ftemplates%2Fmicrosoft.resources%2Ftemplatespecs%2Fversions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Spec%20ARM%20reference%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.resources%2F%3Fview%3Dazps-5.4.0%23resources%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Spec%20PowerShell%20reference%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fresources%2Ftemplatespecversions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Spec%20REST%20API%20reference%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Fquickstart-create-template-specs%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20Spec%20Quick%20Start%20Tutorial%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETemplate%20specs%20overview%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs-create-linked%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20a%20template%20spec%20with%20linked%20templates%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-specs-deploy-linked-template%3Ftabs%3Dazure-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDeploy%20a%20template%20spec%20as%20a%20linked%20template%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Flinked-templates%3Ftabs%3Dazure-powershell%23use-relative-path-for-linked-templates%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELink%20templates%20for%20deployment%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Fconvert-to-template-spec%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConvert%20portal%20template%20to%20template%20spec%20-%20Azure%20Resource%20Manager%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fazure-quickstart-templates%2Ftree%2Fmaster%2F101-templatespec-create%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eazure-quickstart-templates%2F101-templatespec-create%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWe%20look%20forward%20to%20feedback%20and%20seeing%20you%20succeed%20on%20Azure%20with%20ARM%20Template%20Specs.%20Please%20feel%20free%20to%20reach%20out%20with%20any%20questions%20at%26nbsp%3B%3CA%20href%3D%22mailto%3Aangperez%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eangperez%40microsoft.com%3C%2FA%3E%26nbsp%3Bon%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fapclouds%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ETwitter%3C%2FA%3E%2C%20or%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fapclouds%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2103322%22%20slang%3D%22en-US%22%3E%3CP%3ETemplate%20Specs%20is%20a%20new%20resource%20type%20for%20storing%20ARM%20templates%20in%20your%20resource%20groups%20for%20faster%20sharing%2C%20deployment%2C%20and%20role-based%20access%20control%20(RBAC)%20on%20those%20Templates%20shared%20within%20an%20organization.%20Template%20Specs%20addresses%20today's%20biggest%20challenges%20around%20ARM%20template%20management%2C%20storage%2C%20and%20access.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2103322%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGovernance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EManagement%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2111697%22%20slang%3D%22en-US%22%3ERe%3A%20ARM%20Template%20Specs%20is%20now%20Public%20Preview!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2111697%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20new%20functionality%20and%20features!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20question%20regarding%20the%20standard%20behavior%20currently%20provided%20by%20Templates(Preview).%3C%2FP%3E%0A%3CP%3ERight%20now%20if%20I%20want%20to%20deploy%20a%20resource%20I%20usually%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Ego%20to%20Templates%3B%3C%2FLI%3E%0A%3CLI%3Eselect%20previously%20saved%20resource%20template%3B%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3Eupload%20parameter%20file%3B%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Edeploy.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI've%20seen%20the%20suggestion%20to%20deploy%20template%20with%20predefined%20parameter%20file%20using%20CLI.%3C%2FP%3E%0A%3CP%3EWill%20it%20be%20possible%20in%20Template%20Specs%20UI%20to%20upload%20a%20set%20of%20parameters%20as%20a%20file%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2275825%22%20slang%3D%22en-US%22%3ERe%3A%20ARM%20Template%20Specs%20is%20now%20Public%20Preview!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275825%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20template%20specs%20be%20extended%20to%20store%20a%20Terraform%20template%3F%20Frankly%2C%20it%20should%20any%20type%20of%20template%26nbsp%3B%20-%20Terraform%20%2F%20Pulumi%20%2F%20etc.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Jan 27 2021 05:01 PM
Updated by: