Skip to content

Commit 5e845bf

Browse files
committed
Workaround fix for User story: 1723278. Replaces PR: #116001
1 parent e713b87 commit 5e845bf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
60.5 KB
Loading

articles/spring-cloud/spring-cloud-tutorial-custom-domain.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,30 @@ To upload your certificate to key vault:
3333

3434
![Import certificate 1](./media/custom-dns-tutorial/import-certificate-a.png)
3535

36+
To grant Azure Spring Cloud access to your key vault before you import certificate:
37+
1. Go to your key vault instance.
38+
1. In the left navigation pane, click **Access Police**.
39+
1. On the upper menu, click **Add Access Policy**.
40+
1. Fill in the info, and click **Add** button, then **Save** access police.
41+
42+
| Secret permission | Certificate permission | Select principal |
43+
|--|--|--|
44+
| Get, List | Get, List | Azure Spring Cloud Domain-Management |
45+
46+
![Import certificate 2](./media/custom-dns-tutorial/import-certificate-b.png)
47+
48+
Or, you can use the Azure CLI to grant Azure Spring Cloud access to key vault.
49+
50+
Get the object id via the following command.
51+
```
52+
az ad sp show --id 03b39d0f-4213-4864-a245-b1476ec03169 --query objectId
53+
```
54+
55+
Grant Azure Spring Cloud read access to key vault, replace the object id in the following command.
56+
```
57+
az keyvault set-policy -g <key vault resource group> -n <key vault name> --object-id <object id> --certificate-permissions get list --secret-permissions get list
58+
```
59+
3660
To import certificate to Azure Spring Cloud:
3761
1. Go to your service instance.
3862
1. From the left navigation pane of your app, select **TLS/SSL settings**.

0 commit comments

Comments
 (0)