Skip to content

Commit 3880bac

Browse files
authored
Merge pull request #698 from Azure/revert-691-feature-attach-detach-2
Revert "[Compute] az vm disk attach-detach-data-disk: Add new attach-detach data disk command"
2 parents b2262ad + 14a4935 commit 3880bac

File tree

6 files changed

+16
-34
lines changed

6 files changed

+16
-34
lines changed

Commands/tree.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232854,33 +232854,26 @@
232854232854
},
232855232855
"disk": {
232856232856
"commands": {
232857-
"attach-detach": {
232857+
"attach-detach-data-disk": {
232858232858
"help": {
232859232859
"short": "Attach and detach data disks to/from the virtual machine."
232860232860
},
232861232861
"names": [
232862232862
"vm",
232863232863
"disk",
232864-
"attach-detach"
232864+
"attach-detach-data-disk"
232865232865
],
232866232866
"versions": [
232867232867
{
232868-
"examples": [
232869-
{
232870-
"commands": [
232871-
"vm disk attach-detach --resource-group {resourceGroup} --vm-name {vmName} --data-disks-to-attach \"[{lun:1,disk-id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{disk1Name}',disk-encryption-set:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}'},caching:ReadOnly,delete-option:Delete,write-accelerator-enabled:True},{lun:2,disk-id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{disk2Name}',disk-encryption-set:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}'},caching:ReadWrite,delete-option:Detach,write-accelerator-enabled:False}]\" --data-disks-to-detach \"[{disk-id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{disk3Name}',detach-option:ForceDetach},{disk-id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{disk4Name}',detach-option:ForceDetach}]\""
232872-
],
232873-
"name": "Virtual Machine attach detach multiple data disks"
232874-
}
232875-
],
232876232868
"name": "2024-03-01",
232877232869
"resources": [
232878232870
{
232879232871
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/attachdetachdatadisks",
232880232872
"plane": "mgmt-plane",
232881232873
"version": "2024-03-01"
232882232874
}
232883-
]
232875+
],
232876+
"stage": "Preview"
232884232877
}
232885232878
]
232886232879
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _vm disk attach-detach-data-disk_
2+
3+
Attach and detach data disks to/from the virtual machine.
4+
5+
## Versions
6+
7+
### [2024-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lcy97fS9hdHRhY2hkZXRhY2hkYXRhZGlza3M=/2024-03-01.xml) **Preview**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/attachdetachdatadisks 2024-03-01 -->

Commands/vm/disk/_attach-detach.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

Commands/vm/disk/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Azure Virtual Machines use disks as a place to store an operating system, applic
1919

2020
## Commands
2121

22-
- [attach-detach](/Commands/vm/disk/_attach-detach.md)
22+
- [attach-detach-data-disk](/Commands/vm/disk/_attach-detach-data-disk.md)
2323
: Attach and detach data disks to/from the virtual machine.

Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lcy97fS9hdHRhY2hkZXRhY2hkYXRhZGlza3M=/2024-03-01.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lcy97fS9hdHRhY2hkZXRhY2hkYXRhZGlza3M=/2024-03-01.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<CodeGen plane="mgmt-plane">
33
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/attachdetachdatadisks" version="2024-03-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vYXR0YWNoRGV0YWNoRGF0YURpc2tz/V/MjAyNC0wMy0wMQ=="/>
44
<commandGroup name="vm disk">
5-
<command name="attach-detach" version="2024-03-01" confirmation="">
5+
<command name="attach-detach-data-disk" version="2024-03-01" confirmation="">
66
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/attachdetachdatadisks" version="2024-03-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZXMve3ZtTmFtZX0vYXR0YWNoRGV0YWNoRGF0YURpc2tz/V/MjAyNC0wMy0wMQ=="/>
77
<argGroup name="">
88
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
@@ -14,7 +14,6 @@
1414
<argGroup name="Parameters">
1515
<arg type="array<object>" var="$parameters.dataDisksToAttach" options="data-disks-to-attach" group="Parameters">
1616
<help short="The list of managed data disks to be attached."/>
17-
<format minLength="1"/>
1817
<item type="object">
1918
<arg type="string" var="$parameters.dataDisksToAttach[].caching" options="caching" group="">
2019
<help short="Specify the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**"/>
@@ -50,7 +49,6 @@
5049
</arg>
5150
<arg type="array<object>" var="$parameters.dataDisksToDetach" options="data-disks-to-detach" group="Parameters">
5251
<help short="The list of managed data disks to be detached."/>
53-
<format minLength="1"/>
5452
<item type="object">
5553
<arg type="string" var="$parameters.dataDisksToDetach[].detachOption" options="detach-option">
5654
<help short="Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details."/>
@@ -82,7 +80,6 @@
8280
<json>
8381
<schema type="object" name="parameters" required="True" clientFlatten="True">
8482
<prop type="array<object>" name="dataDisksToAttach" arg="$parameters.dataDisksToAttach" identifiers="diskId">
85-
<format minLength="1"/>
8683
<item type="object">
8784
<prop type="string" name="caching" arg="$parameters.dataDisksToAttach[].caching">
8885
<enum>
@@ -106,7 +103,6 @@
106103
</item>
107104
</prop>
108105
<prop type="array<object>" name="dataDisksToDetach" arg="$parameters.dataDisksToDetach" identifiers="diskId">
109-
<format minLength="1"/>
110106
<item type="object">
111107
<prop type="string" name="detachOption" arg="$parameters.dataDisksToDetach[].detachOption">
112108
<enum>

0 commit comments

Comments
 (0)