Skip to content

Commit 54e205f

Browse files
updates
1 parent 7ef201f commit 54e205f

File tree

3 files changed

+28
-36
lines changed

3 files changed

+28
-36
lines changed

articles/container-apps/TOC.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,15 @@
162162
items:
163163
- name: Overview
164164
href: certificates-overview.md
165-
- name: Manage Key Vault certificates
166-
href: key-vault-certificates-manage.md
167165
- name: Custom domain with a free certificate
168166
href: custom-domains-managed-certificates.md
169167
displayName: managed certificate
170168
- name: Custom domain with an existing certificate
171169
href: custom-domains-certificates.md
172170
- name: Custom DNS suffix for your environment
173171
href: environment-custom-dns-suffix.md
174-
172+
- name: Certificates from Key Vault
173+
href: key-vault-certificates-manage.md
175174
- name: Authentication
176175
items:
177176
- name: Overview

articles/container-apps/certificates-overview.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ The following table lists the options available to manage certificates in Contai
2121
|---|---|
2222
| [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. |
2323
| [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. |
2625

2726
## Next steps
2827

2928
> [!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)
Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,53 @@
11
---
2-
title: Manage Azure Key Vault certificates in Azure Container Apps
2+
title: Import certificates from Azure Key Vault to Azure Container Apps
33
description: Learn to managing secure certificates in Azure Container Apps.
44
services: container-apps
55
author: craigshoemaker
66
ms.service: container-apps
77
ms.topic: how-to
8-
ms.date: 04/16/2024
8+
ms.date: 04/22/2024
99
ms.author: cshoe
1010
---
1111

12-
# Manage Azure Key Vault certificates in Azure Container Apps
12+
# Import certificates from Azure Key Vault to Azure Container Apps (preview)
1313

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.
1915

2016
## Prerequisites
2117

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.
2319

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).
2721

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.
2923

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+
```
3127
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:
3329
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+
```
3533
36-
### Azure Container Apps
34+
## Enable managed identity
3735
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:
3937
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.
4139
42-
### Azure CLI
40+
1. Edit the Identity Access Management (IAM) access control and set yourself as a *Key Vault Administrator*.
4341
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.
4543
46-
```azurecli
47-
az extension list-available --output table | findstr containerapp
48-
```
44+
## Assign roles
4945
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.
5147
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**.
5549
56-
## Add a certificate
50+
## Import a certificate
5751
5852
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.
5953
@@ -67,7 +61,7 @@ az containerapp env certificate upload \
6761
--certificate-identity <CERTIFICATE_IDENTITY>
6862
```
6963

70-
## Next steps
64+
## Related
7165

7266
> [!div class="nextstepaction"]
7367
> [Manage secrets](manage-secrets.md)

0 commit comments

Comments
 (0)