Skip to content

Commit 6bf232b

Browse files
committed
Use AVM
1 parent 0b147c3 commit 6bf232b

9 files changed

+40
-23
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Module setting for Bicep config
33
description: Describes how to customize configuration values for modules in Bicep deployments.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 02/16/2024
6+
ms.date: 06/10/2024
77
---
88

99
# Add module settings in the Bicep config file
@@ -100,7 +100,7 @@ For a template spec, use:
100100
module stgModule 'ts/CoreSpecs:storage:v1' = {
101101
```
102102

103-
An alias has been predefined for the [public module registry](./modules.md#path-to-module). To reference a public module, you can use the format:
103+
An alias has been predefined for [Azure Verified Modules](https://azure.github.io/Azure-Verified-Modules/indexes/bicep/). To reference an Azure verified module, you can use the format:
104104

105105
```bicep
106106
br/public:<file>:<tag>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Using statement
33
description: Describes how to use the using statement in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 10/11/2023
6+
ms.date: 06/10/2024
77
---
88

99
# Using statement
@@ -29,7 +29,7 @@ The `using` statement in [Bicep parameter files](./parameter-files.md) ties the
2929
using '<path>/<file-name>.json'
3030
```
3131

32-
- To use public module:
32+
- To use [Azure Verified Modules](./modules.md##path-to-module):
3333

3434
```bicep
3535
using 'br/public:<file-path>:<tag>'
@@ -38,7 +38,7 @@ The `using` statement in [Bicep parameter files](./parameter-files.md) ties the
3838
For example:
3939

4040
```bicep
41-
using 'br/public:storage/storage-account:3.0.1'
41+
using 'br/public:avm/res/storage/storage-account:0.9.0'
4242
4343
param name = 'mystorage'
4444
```
27.2 KB
Loading
6.25 KB
Loading
22.8 KB
Loading

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

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ 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
55
ms.custom: devx-track-bicep
6-
ms.date: 02/02/2024
6+
ms.date: 06/06/2024
77
---
88

99
# Bicep modules
1010

1111
Bicep enables you to organize deployments into modules. A module is a Bicep file (or an ARM JSON template) that is deployed from another Bicep file. With modules, you improve the readability of your Bicep files by encapsulating complex details of your deployment. You can also easily reuse modules for different deployments.
1212

13-
To share modules with other people in your organization, create a [template spec](../bicep/template-specs.md), [public registry](https://github.com/Azure/bicep-registry-modules), or [private registry](private-module-registry.md). Template specs and modules in the registry are only available to users with the correct permissions.
13+
To share modules with other people in your organization, create a [template spec](../bicep/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.
1414

1515
> [!TIP]
1616
> 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:
@@ -93,32 +93,42 @@ For example, to deploy a file that is up one level in the directory from your ma
9393

9494
### File in registry
9595

96-
#### Public module registry
96+
#### Azure Verified Modules
9797

98-
The public module registry is hosted in a Microsoft container registry (MCR). The source code and the modules are stored in [GitHub](https://github.com/azure/bicep-registry-modules). To view the available modules and their versions, see [Bicep registry Module Index](https://aka.ms/br-module-index).
98+
> [!NOTE]
99+
> Non-AVM modules are retired from the public registry.
100+
101+
[Azure Verified Modules](https://azure.github.io/Azure-Verified-Modules/indexes/bicep/) are pre-built, pre-tested, and pre-verified modules for deploying resources on Azure. These modules are created by Microsoft or trusted partners and are designed to simplify and accelerate the deployment process for common Azure resources and configurations. Select the highlighted numbers in the following screenshot to see the list of modules.
99102

100-
:::image type="content" source="./media/modules/bicep-public-module-registry-modules.png" alt-text="The screenshot of public module registry.":::
103+
:::image type="content" source="./media/modules/bicep-azure-verified-modules-avm.png" alt-text="The screenshot of Azure Verified Modules(AVM).":::
101104

102-
Select the versions to see the available versions. You can also select **Source code** to see the module source code, and open the Readme files.
105+
The module list shows the latest version. Select the version number to see a list of available versions:
103106

104-
There are only a few published modules currently. More modules are coming. If you like to contribute to the registry, see the [contribution guide](https://github.com/Azure/bicep-registry-modules/blob/main/CONTRIBUTING.md).
107+
:::image type="content" source="./media/modules/bicep-azure-verified-modules-avm-version.png" alt-text="The screenshot of Azure Verified Modules(AVM).":::
105108

106-
To link to a public registry module, specify the module path with the following syntax:
109+
To link to an Azure verified module, specify the module path with the following syntax:
107110

108111
```bicep
109112
module <symbolic-name> 'br/public:<file-path>:<tag>' = {}
110113
```
111114

112-
- **br/public** is the alias for the public module registry. This alias is predefined in your configuration.
115+
- **br/public** is the alias for Azure Verfied Modules. This alias is predefined in your configuration.
113116
- **file path** can contain segments that can be separated by the `/` character.
114117
- **tag** is used for specifying a version for the module.
115118

116119
For example:
117120

118-
::: code language="bicep" source="~/azure-docs-bicep-samples/syntax-samples/modules/registry-definition-public.bicep" highlight="1" :::
121+
```bicep
122+
module storage 'br/public:avm/res/storage/storage-account:0.9.0' = {
123+
name: 'myStorage'
124+
params: {
125+
name: 'store${resourceGroup().name}'
126+
}
127+
}
128+
```
119129

120130
> [!NOTE]
121-
> **br/public** is the alias for the public registry. It can also be written as
131+
> **br/public** is the alias for Azure Verified Modules. It can also be written as:
122132
>
123133
> ```bicep
124134
> module <symbolic-name> 'br:mcr.microsoft.com/bicep/<file-path>:<tag>' = {}
@@ -149,7 +159,14 @@ The full path for a module in a registry can be long. Instead of providing the f
149159

150160
An alias for the public module registry has been predefined:
151161

152-
::: code language="bicep" source="~/azure-docs-bicep-samples/syntax-samples/modules/alias-definition-public.bicep" highlight="1" :::
162+
```bicep
163+
module storage 'br/public:avm/res/storage/storage-account:0.9.0' = {
164+
name: 'myStorage'
165+
params: {
166+
name: 'store${resourceGroup().name}'
167+
}
168+
}
169+
```
153170

154171
You can override the public alias in the bicepconfig.json file.
155172

articles/azure-resource-manager/bicep/parameter-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create parameters files for Bicep deployment
33
description: Create parameters file for passing in values during deployment of a Bicep file.
44
ms.topic: how-to
55
ms.custom: devx-track-bicep
6-
ms.date: 04/01/2024
6+
ms.date: 06/10/2024
77
---
88

99
# Create parameters files for Bicep deployment
@@ -43,7 +43,7 @@ using './azuredeploy.json'
4343
```
4444

4545
```bicep
46-
using 'br/public:storage/storage-account:3.0.1'
46+
using 'br/public:avm/res/storage/storage-account:0.9.0'
4747
...
4848
```
4949

articles/azure-resource-manager/bicep/private-module-registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Create private registry for Bicep module
33
description: Learn how to set up an Azure container registry for private Bicep modules
44
ms.topic: how-to
55
ms.custom: devx-track-bicep
6-
ms.date: 05/10/2024
6+
ms.date: 06/10/2024
77
---
88

99
# Create private registry for Bicep modules
1010

11-
To share [modules](modules.md) within your organization, you can create a private module registry. You publish modules to that registry and give read access to users who need to deploy the modules. After the modules are shared in the registries, you can reference them from your Bicep files. To contribute to the public module registry, see the [contribution guide](https://github.com/Azure/bicep-registry-modules/blob/main/CONTRIBUTING.md).
11+
To share [modules](modules.md) within your organization, you can create a private module registry. You publish modules to that registry and give read access to users who need to deploy the modules. After the modules are shared in the registries, you can reference them from your Bicep files. To use Azure Verified Modules, see [Bicep Modules](https://azure.github.io/Azure-Verified-Modules/indexes/bicep/).
1212

1313
To work with module registries, you must have [Bicep CLI](./install.md) version **0.4.1008 or later**. To use with Azure CLI, you must also have version **2.31.0 or later**; to use with Azure PowerShell, you must also have version **7.0.0** or later.
1414

articles/azure-resource-manager/bicep/quickstart-private-module-registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: Publish modules to private module registry
33
description: Publish Bicep modules to private module registry and use the modules.
4-
ms.date: 04/18/2023
4+
ms.date: 06/10/2024
55
ms.topic: quickstart
66
ms.custom: mode-api, devx-track-bicep
77
#Customer intent: As a developer new to Azure deployment, I want to learn how to publish Bicep modules to private module registry.
88
---
99

1010
# Quickstart: Publish Bicep modules to private module registry
1111

12-
Learn how to publish Bicep modules to private modules registry, and how to call the modules from your Bicep files. Private module registry allows you to share Bicep modules within your organization. To learn more, see [Create private registry for Bicep modules](./private-module-registry.md). To contribute to the public module registry, see the [contribution guide](https://github.com/Azure/bicep-registry-modules/blob/main/CONTRIBUTING.md).
12+
Learn how to publish Bicep modules to private modules registry, and how to call the modules from your Bicep files. Private module registry allows you to share Bicep modules within your organization. To learn more, see [Create private registry for Bicep modules](./private-module-registry.md).
1313

1414
## Prerequisites
1515

0 commit comments

Comments
 (0)