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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/private-module-registry.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ A Bicep registry is hosted on [Azure Container Registry (ACR)](../../container-r
55
55
56
56
## Publish files to registry
57
57
58
-
After setting up the container registry, you can publish files to it. Use the [publish](bicep-cli.md#publish) command and provide any Bicep files you intend to use as modules. Specify the target location for the module in your registry. The publish command will create an ARM template which will be stored in the registry. This means if publishing a Bicep file that references other local modules, these modules will be fully expanded as one JSON file and published to the registry.
58
+
After setting up the container registry, you can publish files to it. Use the [publish](bicep-cli.md#publish) command and provide any Bicep files you intend to use as modules. Specify the target location for the module in your registry. The publish command creates an ARM template, which is stored in the registry. This means if publishing a Bicep file that references other local modules, these modules are fully expanded as one JSON file and published to the registry.
With the with source switch, you see an additional layer in the manifest:
94
+
With the with source switch, you see an another layer in the manifest:
95
95
96
96
:::image type="content" source="./media/private-module-registry/bicep-module-with-source-manifest.png" lightbox="./media/private-module-registry/bicep-module-with-source-manifest.png" alt-text="Screenshot of bicep module registry with source.":::
97
97
98
-
Note that if the Bicep module references a module in a Private Registry, the ACR endpoint will be visible. To hide the full endpoint, you can configure an alias for the private registry.
98
+
If the Bicep module references a module in a Private Registry, the ACR endpoint is visible. To hide the full endpoint, you can configure an alias for the private registry.
99
99
100
100
## View files in registry
101
101
@@ -105,9 +105,9 @@ To see the published module in the portal:
105
105
1. Search for **container registries**.
106
106
1. Select your registry.
107
107
1. Select **Services** -> **Repositories** from the left menu.
108
-
1. Select the module path (repository). In the preceding example, the module path name is **bicep/modules/storage**.
108
+
1. Select the module path (repository). In the preceding example, the module path name is **bicep/modules/storage**.
109
109
1. Select the tag. In the preceding example, the tag is **v1**.
110
-
1. The **Artifact reference** matches the reference you'll use in the Bicep file.
110
+
1. The **Artifact reference** matches the reference you use in the Bicep file.
@@ -116,7 +116,7 @@ You're now ready to reference the file in the registry from a Bicep file. For ex
116
116
---
117
117
## Working with Bicep registry files
118
118
119
-
When leveraging bicep files that are hosted in a remote registry, it's important to understand how your local machine will interact with the registry. When you first declare the reference to the registry, your local editor will try to communicate with the Azure Container Registry and download a copy of the registry to your local cache.
119
+
When using bicep files that are hosted in a remote registry, it's important to understand how your local machine interacts with the registry. When you first declare the reference to the registry, your local editor tries to communicate with the Azure Container Registry and download a copy of the registry to your local cache.
120
120
121
121
The local cache is found in:
122
122
@@ -138,17 +138,16 @@ The local cache is found in:
138
138
~/.bicep
139
139
```
140
140
141
-
Any changes made to the remote registry will not be recognized by your local machine until a `restore` has been ran with the specified file that includes the registry reference.
141
+
Your local machine can recognize any changes made to the remote registry until you run a `restore` with the specified file that includes the registry reference.
142
142
143
143
```azurecli
144
144
az bicep restore --file <bicep-file> [--force]
145
145
```
146
146
147
-
For more information refer to the [`restore` command.](bicep-cli.md#restore)
148
-
147
+
For more information, see the [`restore` command.](bicep-cli.md#restore)
149
148
150
149
## Next steps
151
150
152
-
* To learn about modules, see [Bicep modules](modules.md).
153
-
* To configure aliases for a module registry, see [Add module settings in the Bicep config file](bicep-config-modules.md).
154
-
* For more information about publishing and restoring modules, see [Bicep CLI commands](bicep-cli.md).
151
+
- To learn about modules, see [Bicep modules](modules.md).
152
+
- To configure aliases for a module registry, see [Add module settings in the Bicep config file](bicep-config-modules.md).
153
+
- For more information about publishing and restoring modules, see [Bicep CLI commands](bicep-cli.md).
0 commit comments