-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{Compute} az vm/ vmss create: Support Ephemeral OS disk with full caching with --ephemeral-os-disk-enable-full-caching
#33292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 6 commits
db41405
c0b08a1
4026fc9
7736c9b
0ff5f9d
7701487
2d67a8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -165,6 +165,7 @@ def normalize_disk_info(image_data_disks=None, | |||||||||||||||
| data_disk_sizes_gb=None, attach_data_disks=None, storage_sku=None, | ||||||||||||||||
| os_disk_caching=None, data_disk_cachings=None, size='', | ||||||||||||||||
| ephemeral_os_disk=False, ephemeral_os_disk_placement=None, | ||||||||||||||||
| ephemeral_os_disk_enable_full_caching=None, | ||||||||||||||||
| data_disk_delete_option=None, source_snapshots_or_disks=None, | ||||||||||||||||
| source_snapshots_or_disks_size_gb=None, source_disk_restore_point=None, | ||||||||||||||||
| source_disk_restore_point_size_gb=None): | ||||||||||||||||
|
|
@@ -204,6 +205,8 @@ def normalize_disk_info(image_data_disks=None, | |||||||||||||||
| os_disk_caching = 'ReadOnly' | ||||||||||||||||
| if ephemeral_os_disk_placement: | ||||||||||||||||
| info['os']['diffDiskSettings']['placement'] = ephemeral_os_disk_placement | ||||||||||||||||
| if ephemeral_os_disk_enable_full_caching is not None: | ||||||||||||||||
| info['os']['diffDiskSettings']['enableFullCaching'] = ephemeral_os_disk_enable_full_caching | ||||||||||||||||
|
||||||||||||||||
| info['os']['diffDiskSettings']['enableFullCaching'] = ephemeral_os_disk_enable_full_caching | |
| raise CLIError( | |
| '--ephemeral-os-disk-enable-full-caching requires the ARM template ' | |
| 'resource apiVersion for Microsoft.Compute/virtualMachines and ' | |
| 'Microsoft.Compute/virtualMachineScaleSets to be 2025-11-01 or later. ' | |
| 'Update the template resource apiVersion before enabling this property.' | |
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,3 +12,4 @@ | |
| from ._assign import * | ||
| from ._remove import * | ||
| from ._show import * | ||
| from ._wait import * | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new argument is available for both
vm createandvmss create, but (1) it is missing amin_apigate even though the feature requires2025-11-01, and (2) the help text says "this VMSS" even when used withaz vm create. Please add an appropriatemin_api(likely2025-11-01) and adjust the help to refer to "VM/VMSS" (or "VM or VMSS").