Skip to content

Commit 0387e17

Browse files
Merge pull request #218297 from vivgk/cmk-ga-1
cmk-ga-pull
2 parents b32917f + 2ae61ec commit 0387e17

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

articles/mysql/flexible-server/concepts-customer-managed-key.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Data encryption with customer managed keys – Azure Database for MySQL – Flexible Server Preview
2+
title: Data encryption with customer managed keys – Azure Database for MySQL – Flexible Server
33
description: Learn how data encryption with customer-managed keys for Azure Database for MySQL flexible server enables you to bring your own key (BYOK) for data protection at rest
44
author: vivgk
55
ms.author: vivgk
@@ -10,15 +10,12 @@ ms.subservice: flexible-server
1010
ms.topic: conceptual
1111
---
1212

13-
# Customer managed keys data encryption – Azure Database for MySQL – Flexible Server Preview
13+
# Customer managed keys data encryption – Azure Database for MySQL – Flexible Server
1414

1515
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1616

1717
With data encryption with customer-managed keys for Azure Database for MySQL - Flexible Server Preview, you can bring your own key (BYOK) for data protection at rest and implement separation of duties for managing keys and data. With customer managed keys (CMKs), the customer is responsible for and in a full control of key lifecycle management (key creation, upload, rotation, deletion), key usage permissions, and auditing operations on keys.
1818

19-
> [!Note]
20-
> In the Public Preview, we can't enable geo redundancy on a flexible server that has CMK enabled, nor can we enable geo redundancy on a flexible server that has CMK enabled.
21-
2219
## Benefits
2320

2421
Data encryption with customer-managed keys for Azure Database for MySQL Flexible server provides the following benefits:
@@ -117,11 +114,11 @@ To monitor the database state, and to enable alerting for the loss of transparen
117114

118115
## Replica with a customer managed key in Key Vault
119116

120-
Once Azure Database for MySQL flexible server is encrypted with a customer's managed key stored in Key Vault, any newly created copy of the server is also encrypted. When trying to encrypt Azure Database for MySQL flexible server with a customer managed key that already has a replica(s), we recommend configuring the replica(s) as well by adding the managed identity and key.
117+
Once Azure Database for MySQL flexible server is encrypted with a customer's managed key stored in Key Vault, any newly created copy of the server is also encrypted. When trying to encrypt Azure Database for MySQL flexible server with a customer managed key that already has a replica(s), we recommend configuring the replica(s) as well by adding the managed identity and key. If the flexible server is configured with geo-redundancy backup, the replica must be configured with the managed identity and key to which the identity has access and which resides in the server's geo-paired region.
121118

122119
## Restore with a customer managed key in Key Vault
123120

124-
When attempting to restore an Azure Database for MySQL flexible server, you're given the option to select the User managed identity, and Key to encrypt the restore server.
121+
When attempting to restore an Azure Database for MySQL flexible server, you're given the option to select the User managed identity, and Key to encrypt the restore server. If the flexible server is configured with geo-redundancy backup, the restore server must be configured with the managed identity and key to which the identity has access and which resides in the server's geo-paired region.
125122

126123
To avoid issues while setting up customer-managed data encryption during restore or read replica creation, it's important to follow these steps on the source and restored/replica servers:
127124

articles/mysql/flexible-server/how-to-data-encryption-cli.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Set data encryption for Azure Database for MySQL flexible server by using the Azure CLI Preview
2+
title: Set data encryption for Azure Database for MySQL flexible server by using the Azure CLI
33
description: Learn how to set up and manage data encryption for your Azure Database for MySQL flexible server using Azure CLI.
44
author: vivgk
55
ms.author: vivgk
@@ -10,7 +10,7 @@ ms.subservice: flexible-server
1010
ms.topic: how-to
1111
---
1212

13-
# Data encryption for Azure Database for MySQL - Flexible Server with Azure CLI Preview
13+
# Data encryption for Azure Database for MySQL - Flexible Server with Azure CLI
1414

1515
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1616

@@ -90,16 +90,25 @@ Set or change key and identity for data encryption:
9090
az mysql flexible-server update --resource-group testGroup --name testserver \\ --key \<key identifier of newKey\> --identity newIdentity
9191
```
9292

93-
Set or change key, identity, backup key and backup identity for data encryption with geo redundant backup:
93+
Disable data encryption for flexible server:
9494

9595
```azurecli-interactive
96-
az mysql flexible-server update --resource-group testGroup --name testserver \\ --key \<key identifier of newKey\> --identity newIdentity \\ --backup-key \<key identifier of newBackupKey\> --backup-identity newBackupIdentity
96+
az mysql flexible-server update --resource-group testGroup --name testserver --disable-data-encryption
9797
```
9898

99-
Disable data encryption for flexible server:
99+
## Create flexible server with geo redundant backup and data encryption enabled
100+
101+
```azurecli-interactive
102+
az mysql flexible-server create -g testGroup -n testServer --location testLocation \\
103+
--geo-redundant-backup Enabled \\
104+
--key <key identifier of testKey> --identity testIdentity \\
105+
--backup-key <key identifier of testBackupKey> --backup-identity testBackupIdentity
106+
```
107+
108+
Set or change key, identity, backup key and backup identity for data encryption with geo redundant backup:
100109

101110
```azurecli-interactive
102-
az mysql flexible-server update --resource-group testGroup --name testserver --disable-data-encryption
111+
az mysql flexible-server update --resource-group testGroup --name testserver \\ --key \<key identifier of newKey\> --identity newIdentity \\ --backup-key \<key identifier of newBackupKey\> --backup-identity newBackupIdentity
103112
```
104113

105114
## Use an Azure Resource Manager template to enable data encryption

articles/mysql/flexible-server/how-to-data-encryption-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Set data encryption for Azure Database for MySQL flexible server by using the Azure portal Preview
2+
title: Set data encryption for Azure Database for MySQL flexible server by using the Azure portal
33
description: Learn how to set up and manage data encryption for your Azure Database for MySQL - Flexible Server using Azure portal.
44
author: vivgk
55
ms.author: vivgk
@@ -10,7 +10,7 @@ ms.subservice: flexible-server
1010
ms.topic: how-to
1111
---
1212

13-
# Data encryption for Azure Database for MySQL - Flexible Server by using the Azure portal Preview
13+
# Data encryption for Azure Database for MySQL - Flexible Server by using the Azure portal
1414

1515
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1616

0 commit comments

Comments
 (0)