Skip to content

Commit 791bd55

Browse files
committed
made the scripts interactive
1 parent 2035e6f commit 791bd55

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/mysql/flexible-server/tutorial-set-data-encryption-cli-mysql-flexible-server.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to set up and manage data encryption for your Azure Datab
44
author: vivgk
55
ms.author: vivgk
66
ms.reviewer: maghan
7-
ms.date: 09/19/2022
7+
ms.date: 09/15/2022
88
ms.service: mysql
99
ms.subservice: flexible-server
1010
ms.topic: conceptual
@@ -30,33 +30,33 @@ In this tutorial you'll learn how to:
3030

3131
- Login to Azure account using [az login](/cli/azure/reference-index#az-login) command. Note the id property, which refers to Subscription ID for your Azure account.
3232

33-
```azurecli
33+
```azurecli-interactive
3434
az login
3535
```
3636

3737
- If you have multiple subscriptions, choose the appropriate subscription in which you want to create the server using the az account set command.
3838

39-
```azurecli
39+
```azurecli-interactive
4040
az account set --subscription \<subscription id\>
4141
```
4242

4343
- In Azure Key Vault, create a key vault and a key. The key vault must have the following properties to use as a customer-managed key:
4444

4545
[Soft delete](../../key-vault/general/soft-delete-overview.md)
4646

47-
```azurecli
47+
```azurecli-interactive
4848
az resource update --id $(az keyvault show --name \ \<key\_vault\_name\> -o tsv | awk '{print $1}') --set \ properties.enableSoftDelete=true
4949
```
5050

5151
[Purge protected](../../key-vault/general/soft-delete-overview.md#purge-protection)
5252

53-
```azurecli
53+
```azurecli-interactive
5454
az keyvault update --name \<key\_vault\_name\> --resource-group \<resource\_group\_name\> --enable-purge-protection true
5555
```
5656

5757
Retention days set to 90 days
5858

59-
```azurecli
59+
```azurecli-interactive
6060
az keyvault update --name \<key\_vault\_name\> --resource-group \<resource\_group\_name\> --retention-days 90
6161
```
6262

@@ -70,21 +70,21 @@ The key must have the following attributes to use as a customer-managed key:
7070

7171
You can verify the above attributes of the key by using the following command:
7272

73-
```azurecli
73+
```azurecli-interactive
7474
az keyvault key show --vault-name \<key\_vault\_name\> -n \<key\_name\>
7575
```
7676

7777
## Update an existing MySQL flexible server with data encryption
7878

7979
Set or change key and identity for data encryption
8080

81-
```azurecli
81+
```azurecli-interactive
8282
az mysql flexible-server update --resource-group testGroup --name testserver \\ --key \<key identifier of newKey\> --identity newIdentity
8383
```
8484

8585
Set or change key, identity, backup key and backup identity for data encryption with geo redundant backup
8686

87-
```azurecli
87+
```azurecli-interactive
8888
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
8989
```
9090

0 commit comments

Comments
 (0)