You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Describes how to create template specs in Bicep and share them with other users in your organization.
4
4
ms.topic: conceptual
5
5
ms.custom: ignite-2022
6
-
ms.date: 11/10/2022
6
+
ms.date: 11/17/2022
7
7
---
8
8
9
9
# Azure Resource Manager template specs in Bicep
@@ -32,9 +32,12 @@ To learn more about template specs, and for hands-on guidance, see [Publish libr
32
32
33
33
## Required permissions
34
34
35
-
To create a template spec, you need **write** access to `Microsoft.Resources/templateSpecs` and `Microsoft.Resources/templateSpecs/versions`.
35
+
There are two Azure build-in roles defined for template spec:
36
36
37
-
To deploy a template spec, you need **read** access to `Microsoft.Resources/templateSpecs` and `Microsoft.Resources/templateSpecs/versions`. In addition, you also need the permissions for deploying a Bicep file. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
In addition, you also need the permissions for deploying a Bicep file. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
38
41
39
42
## Why use template specs?
40
43
@@ -200,7 +203,7 @@ az ts show \
200
203
201
204
## Deploy template spec
202
205
203
-
After you've created the template spec, users with **read** access to the template spec can deploy it. For information about granting access, see [Tutorial: Grant a group access to Azure resources using Azure PowerShell](../../role-based-access-control/tutorial-role-assignments-group-powershell.md).
206
+
After you've created the template spec, users with the [Template Specs Reader](#required-permissions) role can deploy it. In addition, you also need the permissions for deploying an ARM template. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
204
207
205
208
Template specs can be deployed through the portal, PowerShell, Azure CLI, or as a Bicep module in a larger template deployment. Users in an organization can deploy a template spec to any scope in Azure (resource group, subscription, management group, or tenant).
@@ -41,6 +41,15 @@ If you currently have your templates in a GitHub repo or storage account, you ru
41
41
42
42
The templates you include in a template spec should be verified by administrators in your organization to follow the organization's requirements and guidance.
43
43
44
+
## Required permissions
45
+
46
+
There are two Azure build-in roles defined for template spec:
In addition, you also need the permissions for deploying a Bicep file. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
52
+
44
53
## Create template spec
45
54
46
55
The following example shows a simple template for creating a storage account in Azure.
@@ -216,7 +225,7 @@ az ts show \
216
225
217
226
## Deploy template spec
218
227
219
-
After you've created the template spec, users with **read** access to the template spec can deploy it. For information about granting access, see [Tutorial: Grant a group access to Azure resources using Azure PowerShell](../../role-based-access-control/tutorial-role-assignments-group-powershell.md). In addition, you also need the permissions for deploying an ARM template. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
228
+
After you've created the template spec, users with the [template spec reader](#required-permissions) role can deploy it. In addition, you also need the permissions for deploying an ARM template. See [Deploy - CLI](./deploy-cli.md#required-permissions) or [Deploy - PowerShell](./deploy-powershell.md#required-permissions).
220
229
221
230
Template specs can be deployed through the portal, PowerShell, Azure CLI, or as a linked template in a larger template deployment. Users in an organization can deploy a template spec to any scope in Azure (resource group, subscription, management group, or tenant).
0 commit comments