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/container-registry/tutorial-enable-artifact-cache-auth-cli.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,23 @@ ms.author: tejaswikolli
11
11
12
12
This article is part five of a six-part tutorial series. [Part one](tutorial-artifact-cache.md) provides an overview of Artifact Cache, its features, benefits, and limitations. In [part two](tutorial-enable-artifact-cache.md), you learn how to enable Artifact Cache feature by using the Azure portal. In [part three](tutorial-enable-artifact-cache-cli.md), you learn how to enable Artifact Cache feature by using the Azure CLI. In [part four](tutorial-enable-artifact-cache-auth.md), you learn how to enable Artifact Cache feature with authentication by using Azure portal.
13
13
14
-
This article walks you through the steps of enabling Artifact Cache with authentication by using the Azure CLI. You have to use the Credential set to make an authenticated pull or to access a private repository.
14
+
This article walks you through the steps of enabling Artifact Cache with authentication by using the Azure CLI. You have to use the Credentials to make an authenticated pull or to access a private repository.
15
15
16
16
## Prerequisites
17
17
18
18
* You can use the [Azure Cloud Shell][Azure Cloud Shell] or a local installation of the Azure CLI to run the command examples in this article. If you'd like to use it locally, version 2.46.0 or later is required. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][Install Azure CLI].
19
-
* You have an existing Key Vault to store credentials. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials]
19
+
* You have an existing Key Vault to store the credentials. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials]
20
20
* You can set and retrieve secrets from your Key Vault. Learn more about [set and retrieve a secret from Key Vault.][set-and-retrieve-a-secret]
21
21
22
22
## Configure Artifact Cache with authentication - Azure CLI
23
23
24
-
### Create a Credential Set - Azure CLI
24
+
### Create Credentials - Azure CLI
25
25
26
-
Before configuring a Credential Set, you have to create and store secrets in the Azure KeyVault and retrieve the secrets from the Key Vault. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials] and to [set and retrieve a secret from Key Vault.][set-and-retrieve-a-secret].
26
+
Before configuring the Credentials, you have to create and store secrets in the Azure KeyVault and retrieve the secrets from the Key Vault. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials] and to [set and retrieve a secret from Key Vault.][set-and-retrieve-a-secret].
27
27
28
-
1. Run [az acr credential set create][az-acr-credential-set-create] command to create a credential set.
28
+
1. Run [az acr credential set create][az-acr-credential-set-create] command to create the credentials.
29
29
30
-
- For example, To create a credential set for a given `MyRegistry` Azure Container Registry.
30
+
- For example, To create the credentials for a given `MyRegistry` Azure Container Registry.
31
31
32
32
```azurecli-interactive
33
33
az acr credential-set create
@@ -40,39 +40,39 @@ Before configuring a Credential Set, you have to create and store secrets in the
40
40
41
41
2. Run [az acr credential set update][az-acr-credential-set-update] to update the username or password KV secret ID on a credential set.
42
42
43
-
- For example, to update the username or password KV secret ID on a credential set a given `MyRegistry` Azure Container Registry.
43
+
- For example, to update the username or password KV secret ID on the credentials for a given `MyRegistry` Azure Container Registry.
44
44
45
45
```azurecli-interactive
46
46
az acr credential-set update -r MyRegistry -n MyRule -p https://MyKeyvault.vault.azure.net/secrets/newsecretname
47
47
```
48
48
49
-
3. Run [az-acr-credential-set-show][az-acr-credential-set-show] to show a credential set.
49
+
3. Run [az-acr-credential-set-show][az-acr-credential-set-show] to show the credentials.
50
50
51
-
- For example, to show a credential set for a given `MyRegistry` Azure Container Registry.
51
+
- For example, to show the credentials for a given `MyRegistry` Azure Container Registry.
52
52
53
53
```azurecli-interactive
54
54
az acr credential-set show -r MyRegistry -n MyCredSet
55
55
```
56
56
57
-
### Create a cache rule with a Credential Set - Azure CLI
57
+
### Create a cache rule with the Credentials - Azure CLI
58
58
59
59
1. Run [az acr cache create][az-acr-cache-create] command to create a cache rule.
60
60
61
-
- For example, to create a cache rule with a credential set for a given `MyRegistry` Azure Container Registry.
61
+
- For example, to create a cache rule with the credentials for a given `MyRegistry` Azure Container Registry.
Before configuring a Credential Set, you require to create and store secrets in the Azure KeyVault and retrieve the secrets from the Key Vault. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials] and to [set and retrieve a secret from Key Vault.][set-and-retrieve-a-secret].
75
+
Before configuring the Credentials, you require to create and store secrets in the Azure KeyVault and retrieve the secrets from the Key Vault. Learn more about [creating and storing credentials in a Key Vault.][create-and-store-keyvault-credentials] and to [set and retrieve a secret from Key Vault.][set-and-retrieve-a-secret].
76
76
77
-
1. Navigate to **Credentials** > **Add credential set** > **Create new credentials**.
77
+
1. Navigate to **Credentials** > **Create credentials**.
78
78
79
79
80
-
:::image type="content" source="./media/container-registry-artifact-cache/add-credential-set-05.png" alt-text="Screenshot for adding credential set.":::
80
+
:::image type="content" source="./media/container-registry-artifact-cache/add-credential-set-05.png" alt-text="Screenshot for adding credentials.":::
81
81
82
82
83
-
:::image type="content" source="./media/container-registry-artifact-cache/create-credential-set-06.png" alt-text="Screenshot for create new credential set.":::
83
+
:::image type="content" source="./media/container-registry-artifact-cache/create-credential-set-06.png" alt-text="Screenshot for create new credentials.":::
84
84
85
85
86
86
1. Enter **Name** for the new credentials for your source registry.
0 commit comments