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-apps/certificates-overview.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,9 @@ The following table lists the options available to manage certificates in Contai
21
21
|---|---|
22
22
|[Custom domain with a free certificate](./custom-domains-managed-certificates.md)| A private certificate that's free of charge and easy to use if you just need to secure your custom domain in Container Apps. |
23
23
|[Custom domain with an existing certificate](./custom-domains-certificates)| You can upload a private certificate if you already have one. |
24
-
25
-
If you chose to manage your own certificate, you can use [Azure Key Vault certificates](./key-vault-certificates-manage.md) to handle security.
24
+
|[Certificates from Azure Key Vault](./key-vault-certificates-manage.md)| When you use Azure Key Vault, you get features like automatic renewal and notifications for lifecycle events. |
26
25
27
26
## Next steps
28
27
29
28
> [!div class="nextstepaction"]
30
-
> [Set up custom domain with an existing certificate](custom-domains-certificates.md)
29
+
> [Certificates from Key Vault](custom-domains-certificates.md)
title: Manage Azure Key Vault certificates in Azure Container Apps
2
+
title: Import certificates from Azure Key Vault to Azure Container Apps
3
3
description: Learn to managing secure certificates in Azure Container Apps.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: container-apps
7
7
ms.topic: how-to
8
-
ms.date: 04/16/2024
8
+
ms.date: 04/22/2024
9
9
ms.author: cshoe
10
10
---
11
11
12
-
# Manage Azure Key Vault certificates in Azure Container Apps
12
+
# Import certificates from Azure Key Vault to Azure Container Apps (preview)
13
13
14
-
Securing communication across different services requires the management of critical security information such as secrets, credentials, certificates, and keys. Continuing to keep these values current requires reliable methods to handle updates, renewals, and monitoring of all your security related information. Managing these values by hand is error prone and mistakes are tough to detect and fix.
15
-
16
-
You can set up Azure Key Vault to manage your container app's certificates to handle updates, renewals, and monitoring. Links between your container app environment to Azure Key Vault use managed identity and security best practices.
17
-
18
-
You can use Azure Key Vault to manage your Container Apps environment's certificates via the `az containerapp env certificate upload` command.
14
+
You can set up Azure Key Vault to manage your container app's certificates to handle updates, renewals, and monitoring. Without Key Vault, you're left managing your certificate manually, which means you can't manage certificates in a central location and can't take advantage of lifecycle automation or notifications.
19
15
20
16
## Prerequisites
21
17
22
-
To manage certificates in Azure Key Vault, you need an existing instance of Key Vault, your container app environment properly configured, and your Azure CLI version up to date.
18
+
-[Azure Key Vault](/azure/key-vault/): Make sure you have a certificate stored in Azure Key Vault.
23
19
24
-
### Azure Key Vault
25
-
26
-
An [Azure Key Vault](/azure/key-vault/general/manage-with-cli2) instance is required to store your certificate. Make the following updates to your Key Vault instance:
20
+
-[Assign a Key Vault access policy](../key-vault/general/assign-access-policy-cli.md): By default, your container app doesn't have access to your vault. To use a key vault for a certificate deployment, you must [authorize read access for the resource provider to the vault](../key-vault/general/assign-access-policy-cli.md).
27
21
28
-
1. Open the [Azure portal](https://portal.azure.com) and find your instance of Azure Key Vault.
22
+
-[Azure CLI](/cli/azure/install-azure-cli): You need the Azure CLI updated with the Azure Container Apps extension version `0.3.49` or higher. Use the `list-available` command to view your extension's version number.
29
23
30
-
1. Edit the Identity Access Management (IAM) access control and set yourself as a *Key Vault Administrator*.
24
+
```azurecli
25
+
az extension list-available --output table | findstr containerapp
26
+
```
31
27
32
-
1. Go to your certificate's details and copy the value for *Secret Identifier* and paste it into a text editor for use in an upcoming step.
28
+
If you need to upgrade your extension, then use the `upgrade` parameter with the `add` command:
33
29
34
-
By default, your container app doesn't have access to your vault. To use a key vault for a certificate deployment, you must [authorize read access for the resource provider to the vault](../key-vault/general/assign-access-policy-cli.md).
30
+
```azurecli
31
+
az extension add --name containerapp --upgrade`
32
+
```
35
33
36
-
### Azure Container Apps
34
+
## Enable managed identity
37
35
38
-
1. Open the [Azure portal](https://portal.azure.com) and find your instance of your Azure Container Apps environment.
36
+
An [Azure Key Vault](/azure/key-vault/general/manage-with-cli2) instance is required to store your certificate. Make the following updates to your Key Vault instance:
39
37
40
-
1.Go to the *Identity* tab and set *RBAC* to either **Key Vault Data Access Administrator** or **Key Vault Secrets User**.
38
+
1. Open the [Azure portal](https://portal.azure.com) and find your instance of Azure Key Vault.
41
39
42
-
### Azure CLI
40
+
1. Edit the Identity Access Management (IAM) access control and set yourself as a *Key Vault Administrator*.
43
41
44
-
You need the [Azure CLI](/cli/azure/install-azure-cli) with the Azure Container Apps extension version `0.3.49` or higher. Use the `list-available` command to view your extension's version number.
42
+
1. Go to your certificate's details and copy the value for *Secret Identifier* and paste it into a text editor for use in an upcoming step.
45
43
46
-
```azurecli
47
-
az extension list-available --output table | findstr containerapp
48
-
```
44
+
## Assign roles
49
45
50
-
If you need to upgrade your extension, then use the `upgrade` parameter with the `add` command:
46
+
1. Open the [Azure portal](https://portal.azure.com) and find your instance of your Azure Container Apps environment where you want to import a certificate.
51
47
52
-
```azurecli
53
-
az extension add --name containerapp --upgrade`
54
-
```
48
+
1. Go to the *Identity* tab and set *RBAC* to **Key Vault Secrets User**.
55
49
56
-
## Add a certificate
50
+
## Import a certificate
57
51
58
52
Once you authorize your container app to read the vault, you can use the `az containerapp env certificate upload` command to associate your vault with your Container Apps environment.
59
53
@@ -67,7 +61,7 @@ az containerapp env certificate upload \
0 commit comments