Skip to content

Commit fbf592c

Browse files
authored
Merge pull request #187002 from mumian/0128-ts-registry
choose between module registry and template specs
2 parents 5774c02 + d862bb5 commit fbf592c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

articles/azure-resource-manager/bicep/modules.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Bicep modules
33
description: Describes how to define a module in a Bicep file, and how to use module scopes.
44
ms.topic: conceptual
5-
ms.date: 11/19/2021
5+
ms.date: 02/01/2022
66
---
77

88
# Bicep modules
@@ -12,7 +12,11 @@ Bicep enables you to organize deployments into modules. A module is just a Bicep
1212
To share modules with other people in your organization, create a [template spec](../templates/template-specs.md) or [private registry](private-module-registry.md). Template specs and modules in the registry are only available to users with the correct permissions.
1313

1414
> [!TIP]
15-
> The choice between template specs and private registries is mostly a matter of preference. If you're deploying templates or Bicep files without other project artifacts, template specs are an easier option. If you're deploying project artifacts with the templates or Bicep files, you can integrate the private registry with your development work and then more easily deploy all of it from the registry.
15+
> The choice between module registry and template specs is mostly a matter of preference. There are a few things to consider when you choose between the two:
16+
>
17+
> - Module registry is only supported by Bicep. If you are not yet using Bicep, use template specs.
18+
> - Content in the Bicep module registry can only be deployed from another Bicep file. Template specs can be deployed directly from the API, Azure PowerShell, Azure CLI, and the Azure portal. You can even use [`UiFormDefinition`](../templates/template-specs-create-portal-forms.md) to customize the portal deployment experience.
19+
> - Bicep has some limited capabilities for embedding other project artifacts (including non-Bicep and non-ARM-template files. For example, PowerShell scripts, CLI scripts and other binaries) by using the [`loadTextContent`](./bicep-functions-files.md#loadtextcontent) and [`loadFileAsBase64`](./bicep-functions-files.md#loadfileasbase64) functions. Template specs can't package these artifacts.
1620
1721
Bicep modules are converted into a single Azure Resource Manager template with [nested templates](../templates/linked-templates.md#nested-template).
1822

articles/azure-resource-manager/bicep/template-specs.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create & deploy template specs in Bicep
33
description: Describes how to create template specs in Bicep and share them with other users in your organization.
44
ms.topic: conceptual
5-
ms.date: 01/19/2022
5+
ms.date: 02/01/2022
66
---
77

88
# Azure Resource Manager template specs in Bicep
@@ -18,7 +18,12 @@ To deploy the template spec, you use standard Azure tools like PowerShell, Azure
1818
1919
When designing your deployment, always consider the lifecycle of the resources and group the resources that share similar lifecycle into a single template spec. For instance, your deployments include multiple instances of Cosmos DB with each instance containing its own databases and containers. Given the databases and the containers don’t change much, you want to create one template spec to include a Cosmo DB instance and its underlying databases and containers. You can then use conditional statements in your Bicep along with copy loops to create multiple instances of these resources.
2020

21-
The choice between template specs and [private module registries](./private-module-registry.md) is mostly a matter of preference. If you're deploying templates or Bicep files without other project artifacts, template specs are an easier option. If you're deploying project artifacts with the templates or Bicep files, you can integrate the private registry with your development work and then more easily deploy all of it from the registry.
21+
> [!TIP]
22+
> The choice between module registry and template specs is mostly a matter of preference. There are a few things to consider when you choose between the two:
23+
>
24+
> - Module registry is only supported by Bicep. If you are not yet using Bicep, use template specs.
25+
> - Content in the Bicep module registry can only be deployed from another Bicep file. Template specs can be deployed directly from the API, Azure PowerShell, Azure CLI, and the Azure portal. You can even use [`UiFormDefinition`](../templates/template-specs-create-portal-forms.md) to customize the portal deployment experience.
26+
> - Bicep has some limited capabilities for embedding other project artifacts (including non-Bicep and non-ARM-template files. For example, PowerShell scripts, CLI scripts and other binaries) by using the [`loadTextContent`](./bicep-functions-files.md#loadtextcontent) and [`loadFileAsBase64`](./bicep-functions-files.md#loadfileasbase64) functions. Template specs can't package these artifacts.
2227
2328
### Microsoft Learn
2429

0 commit comments

Comments
 (0)