注: この質問は、同じシナリオを提示する一連の質問の一部です。一連の質問にはそれぞれ、定められた目標を満たす独自の解決策が含まれています。質問セットによっては、正しい解決策が複数ある場合もあれば、正しい解決策がない場合もあります。
このセクションの質問に回答した後は、その質問に戻ることはできません。そのため、これらの質問はレビュー画面に表示されません。
image1 という名前のイメージを含む Registry1 という名前の Azure コンテナー レジストリがあります。
image1 を使用してコンテナ インスタンスをデプロイしようとすると、エラー メッセージが表示されます。
image1 を使用してコンテナ インスタンスをデプロイできる必要があります。
解決策: Registry1 の管理者ユーザーを有効に設定します。
これは目標を満たしていますか?
正解:A
When deploying an Azure Container Instance (ACI) using an image from an Azure Container Registry (ACR), the deployment must authenticate to the registry to pull the image. By default, ACR is secured, and you cannot pull images anonymously unless they are public.
According to the Azure Administrator study guide, enabling the Admin user option in ACR generates two access credentials (username and password) that can be used for authentication when pulling container images. When the Admin user setting is disabled, you cannot authenticate directly using those credentials, and automated deployments may fail with authentication errors.
By enabling the Admin user setting, Azure creates a service-level user account for the registry with permissions to push and pull images. These credentials can then be referenced securely in your container instance configuration - either through the Azure portal, ARM template, or CLI parameters such as -- registry-username and --registry-password.
This configuration allows ACI to authenticate successfully against the ACR and pull the required image (image1) for deployment.
Therefore, enabling the Admin user for the container registry meets the goal of allowing the deployment of the container instance using image1.