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
@@ -43,10 +43,10 @@ In addition, you also need the permissions for deploying a Bicep file. See [Depl
43
43
44
44
Template specs provide the following benefits:
45
45
46
-
* You use standard ARM templates or Bicep files for your template spec.
47
-
* You manage access through Azure RBAC, rather than SAS tokens.
48
-
* Users can deploy the template spec without having write access to the Bicep file.
49
-
* You can integrate the template spec into existing deployment process, such as PowerShell script or DevOps pipeline.
46
+
- You use standard ARM templates or Bicep files for your template spec.
47
+
- You manage access through Azure RBAC, rather than SAS tokens.
48
+
- Users can deploy the template spec without having write access to the Bicep file.
49
+
- You can integrate the template spec into existing deployment process, such as PowerShell script or DevOps pipeline.
50
50
51
51
Template specs enable you to create canonical templates and share them with teams in your organization. The template specs are secure because they're available to Azure Resource Manager for deployment, but not accessible to users without the correct permission. Users only need read access to the template spec to deploy its template, so you can share the template without allowing others to modify it.
The JSON template embedded in the Bicep file needs to make these changes:
156
156
157
-
* Remove the commas at the end of the lines.
158
-
* Replace double quotes to single quotes.
159
-
* Escape the single quotes within the expressions. For example, **'name': '[parameters(\'storageAccountType\')]'**.
160
-
* To access the parameters and variables defined in the Bicep file, you can directly use the parameter names and the variable names. To access the parameters and variables defined in `mainTemplate`, you still need to use the ARM JSON template syntax. For example, **'name': '[parameters(\'storageAccountType\')]'**.
161
-
* Use the Bicep syntax to call Bicep functions. For example, **'location': resourceGroup().location**.
157
+
- Remove the commas at the end of the lines.
158
+
- Replace double quotes to single quotes.
159
+
- Escape the single quotes within the expressions. For example, **'name': '[parameters(\'storageAccountType\')]'**.
160
+
- To access the parameters and variables defined in the Bicep file, you can directly use the parameter names and the variable names. To access the parameters and variables defined in `mainTemplate`, you still need to use the ARM JSON template syntax. For example, **'name': '[parameters(\'storageAccountType\')]'**.
161
+
- Use the Bicep syntax to call Bicep functions. For example, **'location': resourceGroup().location**.
162
162
163
163
The size of a template spec is limited to approximated 2 MB. If a template spec size exceeds the limit, you'll get the **TemplateSpecTooLarge** error code. The error message says:
164
164
@@ -205,7 +205,7 @@ az ts show \
205
205
206
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).
207
207
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).
208
+
Template specs can be deployed through the portal, PowerShell, Azure CLI, or as a [Bicep module](#link-to-template-specs) 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).
209
209
210
210
Instead of passing in a path or URI for a Bicep file, you deploy a template spec by providing its resource ID. The resource ID has the following format:
211
211
@@ -403,7 +403,7 @@ Both the template and its versions can have tags. The tags are applied or inheri
403
403
404
404
## Link to template specs
405
405
406
-
After creating a template spec, you can link to that template spec in a Bicep module. For more information, see [File in template spec](./modules.md#path-to-module).
406
+
After creating a template spec, you can link to that template spec in a Bicep module. The template spec is deployed when you deploy the Bicep file containing that module. For more information, see [File in template spec](./modules.md#path-to-module).
0 commit comments