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/postgresql/flexible-server/concepts-data-encryption.md
+44-39Lines changed: 44 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,8 @@ Follow the steps below to enable CMK while creating Postgres Flexible Server usi
189
189
190
190
### CLI:
191
191
192
+
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
193
+
192
194
Prerequisites:
193
195
194
196
- You must have an Azure subscription and be an administrator on that subscription.
## Update Customer Managed Key on the CMK enabled Flexible Server
223
-
224
-
### Portal
225
-
226
-
Prerequisites:
227
-
228
-
- Azure Active Directory (Azure AD) user-managed identity in region where Postgres Flex Server will be created. Follow this [tutorial](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md) to create identity.
229
-
230
-
- 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.
231
-
232
-
Follow the steps below to update CMK on CMK enabled Flexible Server using Azure portal:
233
-
234
-
1. Navigate to Azure Database for PostgreSQL - Flexible Server create a page via the Azure portal.
235
-
236
-
1. Navigate to Data Encryption screen under Security tab
237
-
238
-
1. Select different identity to connect to Azure Key Vault, remembering that this identity needs to have proper access rights to the Key Vault
239
-
240
-
1. Select different key by choosing subscription, Key Vault and key from dropdowns provided.
241
224
242
225
243
-
### CLI
244
-
245
-
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
246
-
247
-
248
-
Prerequisites:
249
-
- You must have an Azure subscription and be an administrator on that subscription.
250
-
- 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.
251
-
252
-
Follow the steps below to change\rotate key or identity after creation of server with data encryption.
253
-
1. Change key/identity for data encryption for existing server, first lets get new key identifier
ARM templates are a form of infrastructure as code, a concept where you define the infrastructure you need to be deployed.
264
228
Using ARM templates in managing your Azure environment has many benefits, as declarative syntax removes the requirement of writing complicated deployment scripts to handle multiple deployment scenarios. For more on ARM templates see this [doc](../../azure-resource-manager/templates/overview.md)
@@ -267,7 +231,7 @@ Prerequisites:
267
231
- You must have an Azure subscription and be an administrator on that subscription.
268
232
- 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.
269
233
270
-
Following is an example Azure ARM template that creates server with Customer MANAGED kEY (CMK) based encryption as defined in *dataEncryptionData* section of ARM template
234
+
Following is an example Azure ARM template that creates server with Customer Managed Key (CMK) based encryption as defined in *dataEncryptionData* section of ARM template
@@ -596,6 +560,47 @@ Following is an example Azure ARM template that creates server with Customer MAN
596
560
]
597
561
}
598
562
```
563
+
## Update Customer Managed Key on the CMK enabled Flexible Server
564
+
565
+
### Portal
566
+
567
+
Prerequisites:
568
+
569
+
- Azure Active Directory (Azure AD) user-managed identity in region where Postgres Flex Server will be created. Follow this [tutorial](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md) to create identity.
570
+
571
+
- 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.
572
+
573
+
Follow the steps below to update CMK on CMK enabled Flexible Server using Azure portal:
574
+
575
+
1. Navigate to Azure Database for PostgreSQL - Flexible Server create a page via the Azure portal.
576
+
577
+
1. Navigate to Data Encryption screen under Security tab
578
+
579
+
1. Select different identity to connect to Azure Key Vault, remembering that this identity needs to have proper access rights to the Key Vault
580
+
581
+
1. Select different key by choosing subscription, Key Vault and key from dropdowns provided.
582
+
583
+
584
+
### CLI
585
+
586
+
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
587
+
588
+
589
+
Prerequisites:
590
+
- You must have an Azure subscription and be an administrator on that subscription.
591
+
- 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.
592
+
593
+
Follow the steps below to change\rotate key or identity after creation of server with data encryption.
594
+
1. Change key/identity for data encryption for existing server, first lets get new key identifier
0 commit comments