Skip to content

Commit 1ea6fdf

Browse files
committed
changes
1 parent f5dffd0 commit 1ea6fdf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/postgresql/flexible-server/how-to-create-server-customer-managed-key-azure-api.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Create and manage Azure Database for PostgreSQL - Flexible Server with data encrypted by Customer Managed Keys using Azure REST API
2+
title: Create and manage Azure Database for PostgreSQL - Flexible Server with data encrypted by Customer Managed Keys using Azure REST API
33
description: Create and manage Azure Database for PostgreSQL - Flexible Server with data encrypted by Customer Managed Keys using Azure REST API
44
author: gennadNY
55
ms.author: gennadyk
@@ -21,6 +21,10 @@ Prerequisites:
2121
- Azure managed identity in region where Postgres Flex Server will be created.
2222
- Key Vault with key in region where Postgres Flex Server will be created. Follow this [tutorial](../../key-vault/general/quick-create-portal.md) to create Key Vault and generate key.
2323

24+
25+
> [!NOTE]
26+
> API examples below are based on 2022-12-01 API version
27+
2428
You can create a PostgreSQL Flexible Server encrypted with Customer Managed Key by using the [create API](https://learn.microsoft.com/rest/api/postgresql/flexibleserver/servers/create?tabs=HTTP):
2529
```rest
2630
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}?api-version=2022-12-01
@@ -49,7 +53,7 @@ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{
4953
}
5054
```
5155
Key Vault Uri can be copied from key properties **Key Identifier** field in Azure Key Vault Portal UI, as shown in image below:
52-
:::image type="content" source="./media/how-to-create-server-customer-managed-key-azure-api/keyuri-portal.png" alt-text =" Key properties and URI on Azure Key Vault Portal page." :::
56+
:::image type="content" source="./media/how-to-create-server-customer-managed-key-azure-api/key-uri-portal.png" alt-text =" Screenshot of key properties and URI on Azure Key Vault Portal page." :::
5357
You can also programmatically fetch Key Vault Uri using [Azure REST API](https://learn.microsoft.com/rest/api/keyvault/keyvault/vaults/get?tabs=HTTP)
5458

5559
## Next steps

0 commit comments

Comments
 (0)