Skip to content

Commit 6cf9a9b

Browse files
authored
Merge pull request #701 from cxznmhdcxz/disk-encryption-set-migrate
{Compute} `az disk-encryption-set`: Migrate to AAZ
2 parents 1f29d04 + 44a9056 commit 6cf9a9b

File tree

17 files changed

+1710
-0
lines changed

17 files changed

+1710
-0
lines changed

Commands/disk-encryption-set/_create.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,39 @@ Create a disk encryption set
1111
### [2022-03-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2022-03-02.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2022-03-02 -->
14+
15+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
16+
17+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 -->
18+
19+
#### examples
20+
21+
- Create a disk encryption set
22+
```bash
23+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault
24+
```
25+
26+
- Create a disk encryption set with a system assigned identity.
27+
```bash
28+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned
29+
```
30+
31+
- Create a disk encryption set with a user assigned identity.
32+
```bash
33+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-user-assigned myAssignedId
34+
```
35+
36+
- Create a disk encryption set with system assigned identity and a user assigned identity.
37+
```bash
38+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned --mi-user-assigned myAssignedId
39+
```
40+
41+
- Create a disk encryption set with multi-tenant application client id to access key vault in a different tenant.
42+
```bash
43+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId
44+
```
45+
46+
- Create a disk encryption set.
47+
```bash
48+
disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --encryption-type EncryptionAtRestWithPlatformAndCustomerKeys
49+
```

Commands/disk-encryption-set/_delete.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Delete a disk encryption set.
2525
```bash
2626
disk-encryption-set delete --name MyDiskEncryptionSet --resource-group MyResourceGroup
2727
```
28+
29+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 -->
32+
33+
#### examples
34+
35+
- Delete a disk encryption set.
36+
```bash
37+
disk-encryption-set delete --name MyDiskEncryptionSet --resource-group MyResourceGroup
38+
```

Commands/disk-encryption-set/_list-associated-resources.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ List all resources that are encrypted with this disk encryption set.
1111
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fS9hc3NvY2lhdGVkcmVzb3VyY2Vz/2023-04-02.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{}/associatedresources 2023-04-02 -->
14+
15+
#### examples
16+
17+
- List all resources that are encrypted with a disk encryption set.
18+
```bash
19+
disk-encryption-set list-associated-resources --resource-group myResourceGroup --disk-encryption-set-name myDiskEncryptionSet
20+
```

Commands/disk-encryption-set/_list.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,20 @@ List disk encryption sets.
1313

1414
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/diskencryptionsets 2022-03-02 -->
1515
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets 2022-03-02 -->
16+
17+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cw==/2023-04-02.xml) **Stable**
18+
19+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/diskencryptionsets 2023-04-02 -->
20+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets 2023-04-02 -->
21+
22+
#### examples
23+
24+
- List all disk encryption sets in a subscription.
25+
```bash
26+
disk-encryption-set list
27+
```
28+
29+
- List all disk encryption sets in a resource group.
30+
```bash
31+
disk-encryption-set list --resource-group myResourceGroup
32+
```

Commands/disk-encryption-set/_show.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Get information about a disk encryption set.
2525
```bash
2626
disk-encryption-set show --name MyDiskEncryptionSet --resource-group MyResourceGroup
2727
```
28+
29+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 -->
32+
33+
#### examples
34+
35+
- Get information of a disk encryption sets
36+
```bash
37+
disk-encryption-set show --name MyDiskEncryptionSet --resource-group MyResourceGroup
38+
```

Commands/disk-encryption-set/_update.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,24 @@ Update a disk encryption set
1111
### [2022-03-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2022-03-02.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2022-03-02 -->
14+
15+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
16+
17+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 -->
18+
19+
#### examples
20+
21+
- Update a disk encryption set.
22+
```bash
23+
disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault
24+
```
25+
26+
- Update multi-tenant application client id of a disk encryption set.
27+
```bash
28+
disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId
29+
```
30+
31+
- Clear multi-tenant application client id of a disk encryption set.
32+
```bash
33+
disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id None
34+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _disk-encryption-set identity assign_
2+
3+
Assign the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 identity -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _disk-encryption-set identity remove_
2+
3+
Remove the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 identity -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _disk-encryption-set identity show_
2+
3+
Show the details of managed identities.
4+
5+
## Versions
6+
7+
### [2023-04-02](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2Rpc2tlbmNyeXB0aW9uc2V0cy97fQ==/2023-04-02.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/diskencryptionsets/{} 2023-04-02 identity -->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [Group] _disk-encryption-set identity_
2+
3+
Manage identities of a disk encryption set.
4+
5+
## Commands
6+
7+
- [assign](/Commands/disk-encryption-set/identity/_assign.md)
8+
: Assign the user or system managed identities.
9+
10+
- [remove](/Commands/disk-encryption-set/identity/_remove.md)
11+
: Remove the user or system managed identities.
12+
13+
- [show](/Commands/disk-encryption-set/identity/_show.md)
14+
: Show the details of managed identities.

0 commit comments

Comments
 (0)