Knowledge check

Completed

You create and publish a module to a private registry. You try to use it in the following Bicep file:

module myModule 'br:toycompany.azurecr.io/mymodule' = {
  name: 'myModule'
}

You sign in to Azure by using the Azure CLI.

1.

When you try to deploy the preceding Bicep file, Bicep gives you an error. What should you do to resolve the problem?

2.

Suppose you create a registry alias named MyToyCompany. Which of the following module paths is a valid reference that includes the alias?

3.

In which of these situations should you publish a new version of your module to a private registry?