From e11525e7a2f8989d8cf6a4156d6adcd243c6a909 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 12 Aug 2026 17:28:07 +0000 Subject: [PATCH 1/2] Configurations: 'specification/compute/resource-manager/Microsoft.Compute/Compute/tspconfig.yaml', API Version: 2026-04-01, SDK Release Type: stable, and CommitSHA: 'f033bb63819c74607f4086c49ae7b07a22c35f78' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6692529 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- sdk/compute/azure-mgmt-compute/CHANGELOG.md | 55 + sdk/compute/azure-mgmt-compute/_metadata.json | 8 +- sdk/compute/azure-mgmt-compute/api.md | 3198 ++++++---- .../azure-mgmt-compute/api.metadata.yml | 4 +- .../apiview-properties.json | 42 +- .../azure/mgmt/compute/_client.py | 21 +- .../azure/mgmt/compute/_utils/model_base.py | 37 +- .../mgmt/compute/_utils/serialization.py | 6 +- .../azure/mgmt/compute/_version.py | 2 +- .../azure/mgmt/compute/aio/_client.py | 21 +- .../mgmt/compute/aio/operations/__init__.py | 4 + .../compute/aio/operations/_operations.py | 3617 ++++++++--- .../azure/mgmt/compute/models/__init__.py | 36 + .../azure/mgmt/compute/models/_enums.py | 182 +- .../azure/mgmt/compute/models/_models.py | 1772 ++++-- .../azure/mgmt/compute/operations/__init__.py | 4 + .../mgmt/compute/operations/_operations.py | 4382 ++++++++++--- .../azure/mgmt/compute/types.py | 5625 +++++++++-------- ..._migration_to_virtual_machine_scale_set.py | 2 +- ...et_convert_to_virtual_machine_scale_set.py | 2 +- .../availability_set_create.py | 2 +- ...set_create_with_scheduled_event_profile.py | 2 +- ...availability_set_delete_maximum_set_gen.py | 2 +- ...availability_set_delete_minimum_set_gen.py | 2 +- .../availability_set_get_maximum_set_gen.py | 2 +- .../availability_set_get_minimum_set_gen.py | 2 +- ...et_list_available_sizes_maximum_set_gen.py | 2 +- ...et_list_available_sizes_minimum_set_gen.py | 2 +- .../availability_set_list_by_subscription.py | 2 +- .../availability_set_list_maximum_set_gen.py | 2 +- .../availability_set_list_minimum_set_gen.py | 2 +- ..._migration_to_virtual_machine_scale_set.py | 2 +- ...availability_set_update_maximum_set_gen.py | 2 +- ...availability_set_update_minimum_set_gen.py | 2 +- ..._migration_to_virtual_machine_scale_set.py | 2 +- ...k_capacity_reservation_create_or_update.py | 2 +- .../block_capacity_reservation_get.py | 2 +- ...city_reservation_group_create_or_update.py | 2 +- .../block_capacity_reservation_group_get.py | 2 +- ...y_reservation_list_by_reservation_group.py | 2 +- .../capacity_reservation_create_or_update.py | 2 +- ...city_reservation_delete_maximum_set_gen.py | 2 +- ...city_reservation_delete_minimum_set_gen.py | 2 +- .../capacity_reservation_get.py | 2 +- ...city_reservation_group_create_or_update.py | 2 +- ...eservation_group_delete_maximum_set_gen.py | 2 +- ...eservation_group_delete_minimum_set_gen.py | 2 +- .../capacity_reservation_group_get.py | 2 +- ...eservation_group_list_by_resource_group.py | 2 +- ..._reservation_group_list_by_subscription.py | 2 +- ...by_subscription_with_resource_ids_query.py | 2 +- ...eservation_group_update_maximum_set_gen.py | 2 +- ...eservation_group_update_minimum_set_gen.py | 9 +- ...y_reservation_list_by_reservation_group.py | 2 +- ...city_reservation_update_maximum_set_gen.py | 2 +- ...city_reservation_update_minimum_set_gen.py | 16 +- .../dedicated_host_create_or_update.py | 2 +- .../dedicated_host_delete_maximum_set_gen.py | 2 +- .../dedicated_host_delete_minimum_set_gen.py | 2 +- .../generated_samples/dedicated_host_get.py | 2 +- .../dedicated_host_group_create_or_update.py | 2 +- ...t_group_create_or_update_with_ultra_ssd.py | 2 +- ...cated_host_group_delete_maximum_set_gen.py | 2 +- ...cated_host_group_delete_minimum_set_gen.py | 2 +- .../dedicated_host_group_get.py | 2 +- ..._ultra_ssd_enabled_dedicated_host_group.py | 2 +- ..._list_by_resource_group_maximum_set_gen.py | 2 +- ..._list_by_resource_group_minimum_set_gen.py | 2 +- ...up_list_by_subscription_maximum_set_gen.py | 2 +- ...up_list_by_subscription_minimum_set_gen.py | 2 +- ...cated_host_group_update_maximum_set_gen.py | 2 +- ...cated_host_group_update_minimum_set_gen.py | 2 +- .../dedicated_host_list_available_sizes.py | 2 +- ...host_list_by_host_group_maximum_set_gen.py | 2 +- ...host_list_by_host_group_minimum_set_gen.py | 2 +- .../dedicated_host_redeploy.py | 2 +- .../dedicated_host_restart.py | 2 +- .../dedicated_host_update_maximum_set_gen.py | 2 +- .../dedicated_host_update_minimum_set_gen.py | 2 +- .../dedicated_host_update_resize.py | 2 +- ...e_capacity_reservation_create_or_update.py | 50 + .../future_capacity_reservation_get.py | 43 + ..._reservation_list_by_reservation_group.py} | 11 +- ...ge_create_data_disk_from_ablob_included.py | 2 +- ...e_data_disk_from_amanaged_disk_included.py | 2 +- ...reate_data_disk_from_asnapshot_included.py | 2 +- .../image_create_from_ablob.py | 2 +- ...ate_from_ablob_with_disk_encryption_set.py | 2 +- .../image_create_from_amanaged_disk.py | 2 +- ..._amanaged_disk_with_disk_encryption_set.py | 2 +- .../image_create_from_asnapshot.py | 2 +- ...from_asnapshot_with_disk_encryption_set.py | 2 +- .../image_create_from_avm.py | 2 +- .../generated_samples/image_get.py | 2 +- .../image_list_by_resource_group.py | 2 +- .../image_list_by_subscription.py | 2 +- .../generated_samples/image_update.py | 2 +- .../images_delete_maximum_set_gen.py | 2 +- .../images_delete_minimum_set_gen.py | 2 +- .../interconnect_blocks_create_or_update.py | 2 +- ...onnect_blocks_create_or_update_any_zone.py | 2 +- .../interconnect_blocks_delete.py | 2 +- .../interconnect_blocks_get.py | 2 +- .../interconnect_blocks_get_instance_view.py | 2 +- ...erconnect_blocks_list_by_resource_group.py | 2 +- ...nterconnect_blocks_list_by_subscription.py | 2 +- .../interconnect_blocks_update.py | 2 +- .../log_analytics_request_rate_by_interval.py | 2 +- .../log_analytics_throttled_requests.py | 2 +- .../open_capacity_reservation_get.py | 43 + ...city_reservation_group_create_or_update.py | 56 + .../open_capacity_reservation_group_get.py | 42 + .../operations_list_maximum_set_gen.py | 2 +- .../operations_list_minimum_set_gen.py | 2 +- ...ximity_placement_group_create_or_update.py | 2 +- .../proximity_placement_group_delete.py | 2 +- .../proximity_placement_group_get.py | 2 +- ..._placement_group_list_by_resource_group.py | 2 +- ...ty_placement_group_list_by_subscription.py | 2 +- .../proximity_placement_group_patch.py | 2 +- ...store_point_collection_create_or_update.py | 2 +- ..._create_or_update_for_cross_region_copy.py | 2 +- ...point_collection_delete_maximum_set_gen.py | 2 +- ...point_collection_delete_minimum_set_gen.py | 2 +- .../restore_point_collection_get.py | 2 +- ...ction_get_with_contained_restore_points.py | 2 +- ...point_collection_list_by_resource_group.py | 2 +- ...e_point_collection_list_by_subscription.py | 2 +- ...point_collection_update_maximum_set_gen.py | 2 +- ...point_collection_update_minimum_set_gen.py | 45 +- .../restore_point_copy_between_regions.py | 2 +- .../generated_samples/restore_point_create.py | 2 +- .../restore_point_delete_maximum_set_gen.py | 2 +- .../restore_point_delete_minimum_set_gen.py | 2 +- .../generated_samples/restore_point_get.py | 2 +- .../restore_point_get_with_instance_view.py | 2 +- .../generated_samples/run_command_get.py | 2 +- .../generated_samples/run_command_list.py | 2 +- .../ssh_public_key_create.py | 2 +- .../ssh_public_key_delete_maximum_set_gen.py | 2 +- .../ssh_public_key_delete_minimum_set_gen.py | 2 +- .../ssh_public_key_generate_key_pair.py | 2 +- ...nerate_key_pair_encryption_with_ed25519.py | 2 +- ...y_generate_key_pair_encryption_with_rsa.py | 2 +- .../generated_samples/ssh_public_key_get.py | 2 +- ..._list_by_resource_group_maximum_set_gen.py | 2 +- ..._list_by_resource_group_minimum_set_gen.py | 2 +- ...ey_list_by_subscription_maximum_set_gen.py | 2 +- ...ey_list_by_subscription_minimum_set_gen.py | 2 +- .../ssh_public_key_update_maximum_set_gen.py | 2 +- .../ssh_public_key_update_minimum_set_gen.py | 2 +- ...d_capacity_reservation_create_or_update.py | 2 +- .../targeted_capacity_reservation_get.py | 2 +- ...city_reservation_group_create_or_update.py | 2 +- ...targeted_capacity_reservation_group_get.py | 2 +- ...y_reservation_list_by_reservation_group.py | 2 +- .../usage_list_maximum_set_gen.py | 2 +- .../usage_list_minimum_set_gen.py | 2 +- .../virtual_machine_assess_patches.py | 2 +- ...ttach_detach_data_disks_maximum_set_gen.py | 2 +- ...ttach_detach_data_disks_minimum_set_gen.py | 2 +- ...virtual_machine_capture_maximum_set_gen.py | 2 +- ...virtual_machine_capture_minimum_set_gen.py | 2 +- ...onvert_to_managed_disks_maximum_set_gen.py | 2 +- ...onvert_to_managed_disks_minimum_set_gen.py | 2 +- ..._from_an_unmanaged_generalized_os_image.py | 2 +- ...ne_create_from_acommunity_gallery_image.py | 2 +- ...rtual_machine_create_from_acustom_image.py | 2 +- ...e_create_from_ageneralized_shared_image.py | 2 +- ...chine_create_from_ashared_gallery_image.py | 2 +- ...e_create_from_aspecialized_shared_image.py | 2 +- ...l_machine_create_in_an_availability_set.py | 2 +- ...customer_assigned_platform_fault_domain.py | 2 +- ..._vm_with_automatic_by_platform_settings.py | 2 +- ...etting_assessment_mode_of_image_default.py | 2 +- ...ith_patch_setting_mode_of_image_default.py | 2 +- ..._setting_modes_of_automatic_by_platform.py | 2 +- ...age_vm_with_unmanaged_os_and_data_disks.py | 2 +- ..._vm_with_automatic_by_platform_settings.py | 2 +- ...etting_assessment_mode_of_image_default.py | 2 +- ...h_patch_setting_mode_of_automatic_by_os.py | 2 +- ...y_platform_and_enable_hot_patching_true.py | 2 +- ...ws_vm_with_patch_setting_mode_of_manual.py | 2 +- ..._setting_modes_of_automatic_by_platform.py | 2 +- ..._create_with_additional_disk_properties.py | 103 + ...rtual_machine_create_with_adiff_os_disk.py | 2 +- ...using_diff_disk_placement_as_cache_disk.py | 2 +- ..._using_diff_disk_placement_as_nvme_disk.py | 2 +- ...ng_diff_disk_placement_as_resource_disk.py | 2 +- ...ine_create_with_amarketplace_image_plan.py | 2 +- ...machine_create_with_application_profile.py | 2 +- ...al_machine_create_with_boot_diagnostics.py | 2 +- ...achine_create_with_capacity_reservation.py | 2 +- ...pacity_reservation_assignment_disabled.py} | 15 +- ...te_with_data_disks_from_source_resource.py | 2 +- ...eate_with_deterministic_processor_mode.py} | 21 +- ...achine_create_with_disk_controller_type.py | 2 +- ...reate_with_disk_encryption_set_resource.py | 2 +- ...al_machine_create_with_empty_data_disks.py | 2 +- ..._machine_create_with_encryption_at_host.py | 2 +- ...machine_create_with_encryption_identity.py | 2 +- ...hine_create_with_extensions_time_budget.py | 2 +- ...al_machine_create_with_fips1403_enabled.py | 2 +- ...machine_create_with_hibernation_enabled.py | 2 +- ...ne_create_with_managed_boot_diagnostics.py | 2 +- ...te_with_network_interface_configuration.py | 2 +- ...rk_interface_configuration_dns_settings.py | 2 +- ...eate_with_opportunistic_processor_mode.py} | 31 +- ...ine_create_with_password_authentication.py | 2 +- .../virtual_machine_create_with_placement.py | 2 +- ...ual_machine_create_with_premium_storage.py | 2 +- ...achine_create_with_proxy_agent_settings.py | 2 +- ...ne_create_with_scheduled_events_profile.py | 2 +- ...eate_with_security_type_confidential_vm.py | 2 +- ...fidential_vm_with_customer_managed_keys.py | 2 +- ..._confidential_vm_with_non_persisted_tpm.py | 2 +- ..._machine_create_with_spot_plus_priority.py | 79 + ..._machine_create_with_ssh_authentication.py | 2 +- ...rtual_machine_create_with_uefi_settings.py | 2 +- .../virtual_machine_create_with_user_data.py | 2 +- ..._machine_create_with_vm_size_properties.py | 2 +- ...ual_machine_deallocate_maximum_set_gen.py} | 6 +- ...tual_machine_deallocate_minimum_set_gen.py | 2 +- .../virtual_machine_delete_force.py | 2 +- ...diagnostic_run_command_create_or_update.py | 52 + ...l_machine_diagnostic_run_command_delete.py | 42 + ...tual_machine_diagnostic_run_command_get.py | 43 + ...ual_machine_diagnostic_run_command_list.py | 43 + ...l_machine_diagnostic_run_command_update.py | 50 + ...ension_create_or_update_maximum_set_gen.py | 2 +- ...ension_create_or_update_minimum_set_gen.py | 2 +- ...achine_extension_delete_maximum_set_gen.py | 2 +- ...achine_extension_delete_minimum_set_gen.py | 2 +- ...l_machine_extension_get_maximum_set_gen.py | 2 +- ...l_machine_extension_get_minimum_set_gen.py | 2 +- ...ine_extension_image_get_maximum_set_gen.py | 2 +- ...ine_extension_image_get_minimum_set_gen.py | 2 +- ...ension_image_list_types_maximum_set_gen.py | 2 +- ...ension_image_list_types_minimum_set_gen.py | 2 +- ...ion_image_list_versions_maximum_set_gen.py | 2 +- ...ion_image_list_versions_minimum_set_gen.py | 2 +- ...ist_versions_with_expand_properties_gen.py | 44 + ..._machine_extension_list_maximum_set_gen.py | 2 +- ..._machine_extension_list_minimum_set_gen.py | 2 +- .../virtual_machine_extension_update.py | 2 +- .../virtual_machine_generalize.py | 2 +- .../generated_samples/virtual_machine_get.py | 2 +- ...get_auto_placed_on_dedicated_host_group.py | 2 +- .../virtual_machine_get_instance_view.py | 2 +- ...iew_auto_placed_on_dedicated_host_group.py | 2 +- ..._get_with_deterministic_processor_mode.py} | 6 +- ...l_machine_get_with_disk_controller_type.py | 2 +- ..._get_with_opportunistic_processor_mode.py} | 13 +- ...ual_machine_get_with_vm_size_properties.py | 2 +- ...rtual_machine_image_get_maximum_set_gen.py | 2 +- ...rtual_machine_image_get_minimum_set_gen.py | 2 +- ...tual_machine_image_list_maximum_set_gen.py | 2 +- ...tual_machine_image_list_minimum_set_gen.py | 2 +- ...chine_image_list_offers_maximum_set_gen.py | 2 +- ...chine_image_list_offers_minimum_set_gen.py | 2 +- ...e_image_list_publishers_maximum_set_gen.py | 2 +- ...e_image_list_publishers_minimum_set_gen.py | 2 +- ...machine_image_list_skus_maximum_set_gen.py | 2 +- ...machine_image_list_skus_minimum_set_gen.py | 2 +- ...ne_images_edge_zone_get_maximum_set_gen.py | 2 +- ...ne_images_edge_zone_get_minimum_set_gen.py | 2 +- ..._zone_list_by_edge_zone_maximum_set_gen.py | 2 +- ..._zone_list_by_edge_zone_minimum_set_gen.py | 2 +- ...e_images_edge_zone_list_maximum_set_gen.py | 2 +- ...e_images_edge_zone_list_minimum_set_gen.py | 2 +- ...s_edge_zone_list_offers_maximum_set_gen.py | 2 +- ...s_edge_zone_list_offers_minimum_set_gen.py | 2 +- ...ge_zone_list_publishers_maximum_set_gen.py | 2 +- ...ge_zone_list_publishers_minimum_set_gen.py | 2 +- ...ges_edge_zone_list_skus_maximum_set_gen.py | 2 +- ...ges_edge_zone_list_skus_minimum_set_gen.py | 2 +- ...es_list_with_properties_maximum_set_gen.py | 2 +- ...es_list_with_properties_minimum_set_gen.py | 2 +- .../virtual_machine_install_patches.py | 2 +- ...irtual_machine_list_all_maximum_set_gen.py | 2 +- ...irtual_machine_list_all_minimum_set_gen.py | 2 +- ...virtual_machine_list_available_vm_sizes.py | 2 +- ...achine_list_by_subscription_by_location.py | 2 +- .../virtual_machine_list_maximum_set_gen.py | 2 +- .../virtual_machine_list_minimum_set_gen.py | 2 +- ...ne_migrate_to_virtual_machine_scale_set.py | 2 +- ...ine_perform_maintenance_maximum_set_gen.py | 2 +- ...ine_perform_maintenance_minimum_set_gen.py | 2 +- ...rtual_machine_power_off_maximum_set_gen.py | 2 +- ...rtual_machine_power_off_minimum_set_gen.py | 2 +- .../virtual_machine_reapply.py | 2 +- ...irtual_machine_redeploy_maximum_set_gen.py | 2 +- ...irtual_machine_redeploy_minimum_set_gen.py | 2 +- .../virtual_machine_reimage.py | 2 +- ...rtual_machine_reimage_non_ephemeral_vms.py | 2 +- ...virtual_machine_restart_maximum_set_gen.py | 2 +- ...virtual_machine_restart_minimum_set_gen.py | 2 +- ..._machine_retrieve_boot_diagnostics_data.py | 2 +- .../virtual_machine_run_command.py | 2 +- ...al_machine_run_command_create_or_update.py | 2 +- .../virtual_machine_run_command_delete.py | 2 +- .../virtual_machine_run_command_get.py | 2 +- .../virtual_machine_run_command_list.py | 2 +- .../virtual_machine_run_command_update.py | 2 +- ...chine_scale_set_approve_rolling_upgrade.py | 2 +- ..._single_placement_group_maximum_set_gen.py | 2 +- ..._single_placement_group_minimum_set_gen.py | 2 +- ..._diff_os_disk_using_diff_disk_placement.py | 2 +- ...disk_placement_and_full_caching_enabled.py | 98 - ..._using_diff_disk_placement_as_nvme_disk.py | 2 +- ..._from_an_unmanaged_generalized_os_image.py | 2 +- ...ine_scale_set_create_from_acustom_image.py | 2 +- ...t_create_from_ageneralized_shared_image.py | 2 +- ...t_create_from_aspecialized_shared_image.py | 2 +- ...le_tcp_state_tracking_network_interface.py | 2 +- ...create_from_with_fpga_network_interface.py | 2 +- ...ith_network_interface_with_dns_settings.py | 2 +- ..._platform_image_with_unmanaged_os_disks.py | 2 +- ...set_create_with_amarketplace_image_plan.py | 2 +- ...ale_set_create_with_application_profile.py | 2 +- ...scale_set_create_with_automatic_repairs.py | 2 +- ..._with_automatic_zone_rebalancing_policy.py | 2 +- ...t_create_with_azure_application_gateway.py | 2 +- ...ale_set_create_with_azure_load_balancer.py | 2 +- ..._scale_set_create_with_boot_diagnostics.py | 2 +- ...le_set_create_with_capacity_reservation.py | 2 +- ...eate_with_deterministic_processor_mode.py} | 18 +- ...hine_scale_set_create_with_diff_os_disk.py | 2 +- ...le_set_create_with_disk_controller_type.py | 2 +- ...reate_with_disk_encryption_set_resource.py | 2 +- ...create_with_empty_data_disks_on_each_vm.py | 2 +- ...cale_set_create_with_encryption_at_host.py | 2 +- ...th_extensions_suppress_failures_enabled.py | 2 +- ..._set_create_with_extensions_time_budget.py | 2 +- ..._set_create_with_external_health_policy.py | 101 - ..._with_high_speed_interconnect_placement.py | 2 +- ...cale_set_create_with_interconnect_block.py | 110 - ...et_create_with_managed_boot_diagnostics.py | 2 +- ...th_max_instance_percent_per_zone_policy.py | 2 +- ...ne_scale_set_create_with_max_zone_count.py | 2 +- ...eate_with_opportunistic_processor_mode.py} | 16 +- ...e_with_os_image_scheduled_event_enabled.py | 2 +- ...set_create_with_password_authentication.py | 2 +- ...machine_scale_set_create_with_placement.py | 2 +- ...e_scale_set_create_with_premium_storage.py | 2 +- ...ale_set_create_with_priority_mix_policy.py | 2 +- ..._with_protected_settings_from_key_vault.py | 2 +- ...le_set_create_with_proxy_agent_settings.py | 2 +- ...reate_with_resilient_vm_creation_policy.py | 2 +- ...reate_with_resilient_vm_deletion_policy.py | 2 +- ...e_scale_set_create_with_scale_in_policy.py | 2 +- ..._create_with_security_posture_reference.py | 2 +- ...eate_with_security_type_confidential_vm.py | 2 +- ..._confidential_vm_with_non_persisted_tpm.py | 2 +- ..._create_with_service_artifact_reference.py | 2 +- ...chine_scale_set_create_with_sku_profile.py | 2 +- ...set_create_with_sku_profile_prioritized.py | 2 +- ...ale_set_create_with_spot_plus_priority.py} | 20 +- ...et_create_with_spot_plus_priority_flex.py} | 33 +- ...ale_set_create_with_spot_restore_policy.py | 2 +- ...cale_set_create_with_ssh_authentication.py | 2 +- ..._with_terminate_scheduled_event_enabled.py | 2 +- ...ine_scale_set_create_with_uefi_settings.py | 2 +- ...machine_scale_set_create_with_user_data.py | 2 +- ...cale_set_create_with_vm_size_properties.py | 2 +- ..._set_create_with_vms_in_different_zones.py | 2 +- ..._zonal_platform_fault_domain_align_mode.py | 2 +- ...ne_scale_set_deallocate_maximum_set_gen.py | 2 +- ...ne_scale_set_deallocate_minimum_set_gen.py | 2 +- .../virtual_machine_scale_set_delete_force.py | 2 +- ...le_set_delete_instances_maximum_set_gen.py | 2 +- ...le_set_delete_instances_minimum_set_gen.py | 2 +- ...ension_create_or_update_maximum_set_gen.py | 2 +- ...ension_create_or_update_minimum_set_gen.py | 2 +- ...le_set_extension_delete_maximum_set_gen.py | 2 +- ...le_set_extension_delete_minimum_set_gen.py | 2 +- ...scale_set_extension_get_maximum_set_gen.py | 2 +- ...scale_set_extension_get_minimum_set_gen.py | 2 +- ...cale_set_extension_list_maximum_set_gen.py | 2 +- ...cale_set_extension_list_minimum_set_gen.py | 2 +- ...ine_scale_set_extension_rolling_upgrade.py | 2 +- ...le_set_extension_update_maximum_set_gen.py | 2 +- ...le_set_extension_update_minimum_set_gen.py | 2 +- ...form_update_domain_walk_maximum_set_gen.py | 2 +- ...form_update_domain_walk_minimum_set_gen.py | 2 +- .../virtual_machine_scale_set_get.py | 2 +- ...get_auto_placed_on_dedicated_host_group.py | 2 +- ...e_set_get_instance_view_maximum_set_gen.py | 2 +- ...e_set_get_instance_view_minimum_set_gen.py | 2 +- ..._get_os_upgrade_history_maximum_set_gen.py | 2 +- ..._get_os_upgrade_history_minimum_set_gen.py | 2 +- ...scale_set_get_with_disk_controller_type.py | 2 +- ...al_machine_scale_set_get_with_user_data.py | 2 +- ...ine_scale_set_life_cycle_hook_event_get.py | 2 +- ...ne_scale_set_life_cycle_hook_event_list.py | 2 +- ..._scale_set_life_cycle_hook_event_update.py | 2 +- ...hine_scale_set_list_all_maximum_set_gen.py | 2 +- ...hine_scale_set_list_all_minimum_set_gen.py | 2 +- ...le_set_list_by_subscription_by_location.py | 2 +- ..._machine_scale_set_list_maximum_set_gen.py | 2 +- ..._machine_scale_set_list_minimum_set_gen.py | 2 +- ...ine_scale_set_list_skus_maximum_set_gen.py | 2 +- ...ine_scale_set_list_skus_minimum_set_gen.py | 2 +- ..._scale_set_migrate_vm_availability_zone.py | 42 + ...set_perform_maintenance_maximum_set_gen.py | 2 +- ...set_perform_maintenance_minimum_set_gen.py | 2 +- ...ine_scale_set_power_off_maximum_set_gen.py | 2 +- ...ine_scale_set_power_off_minimum_set_gen.py | 2 +- ...chine_scale_set_reapply_maximum_set_gen.py | 2 +- ...chine_scale_set_reapply_minimum_set_gen.py | 2 +- ...hine_scale_set_redeploy_maximum_set_gen.py | 2 +- ...hine_scale_set_redeploy_minimum_set_gen.py | 2 +- ...e_scale_set_reimage_all_maximum_set_gen.py | 2 +- ...e_scale_set_reimage_all_minimum_set_gen.py | 2 +- ...chine_scale_set_reimage_maximum_set_gen.py | 2 +- ...chine_scale_set_reimage_minimum_set_gen.py | 2 +- ...chine_scale_set_restart_maximum_set_gen.py | 2 +- ...chine_scale_set_restart_minimum_set_gen.py | 2 +- ..._rolling_upgrade_cancel_maximum_set_gen.py | 2 +- ..._rolling_upgrade_cancel_minimum_set_gen.py | 2 +- ...ling_upgrade_get_latest_maximum_set_gen.py | 2 +- ...ling_upgrade_get_latest_minimum_set_gen.py | 2 +- ...pgrade_start_os_upgrade_maximum_set_gen.py | 2 +- ...pgrade_start_os_upgrade_minimum_set_gen.py | 2 +- .../virtual_machine_scale_set_scale_out.py | 2 +- ...estration_service_state_maximum_set_gen.py | 2 +- ...estration_service_state_minimum_set_gen.py | 2 +- ...machine_scale_set_start_maximum_set_gen.py | 2 +- ...machine_scale_set_start_minimum_set_gen.py | 2 +- ...le_set_update_instances_maximum_set_gen.py | 2 +- ...le_set_update_instances_minimum_set_gen.py | 2 +- ...achine_scale_set_update_maximum_set_gen.py | 2 +- ...achine_scale_set_update_minimum_set_gen.py | 50 +- ...ne_scale_set_vm_approve_rolling_upgrade.py | 2 +- ...ttach_detach_data_disks_maximum_set_gen.py | 2 +- ...ttach_detach_data_disks_minimum_set_gen.py | 2 +- ...scale_set_vm_deallocate_maximum_set_gen.py | 2 +- ...scale_set_vm_deallocate_minimum_set_gen.py | 2 +- ...rtual_machine_scale_set_vm_delete_force.py | 2 +- ...diagnostic_run_command_create_or_update.py | 55 + ...le_set_vm_diagnostic_run_command_delete.py | 43 + ...scale_set_vm_diagnostic_run_command_get.py | 44 + ...cale_set_vm_diagnostic_run_command_list.py | 44 + ...le_set_vm_diagnostic_run_command_update.py | 44 + ...l_machine_scale_set_vm_extension_create.py | 2 +- ...l_machine_scale_set_vm_extension_delete.py | 2 +- ...tual_machine_scale_set_vm_extension_get.py | 2 +- ...ual_machine_scale_set_vm_extension_list.py | 2 +- ...l_machine_scale_set_vm_extension_update.py | 2 +- ...iew_auto_placed_on_dedicated_host_group.py | 2 +- ...ce_view_with_capacity_reservation_type.py} | 10 +- ...e_set_vm_get_with_capacity_reservation.py} | 5 +- ...m_get_with_resilient_vm_deletion_status.py | 2 +- ...machine_scale_set_vm_get_with_user_data.py | 2 +- ...cale_set_vm_get_with_vm_size_properties.py | 2 +- ...chine_scale_set_vm_list_maximum_set_gen.py | 2 +- ...chine_scale_set_vm_list_minimum_set_gen.py | 2 +- ..._scale_set_vm_list_with_resiliency_view.py | 2 +- ..._vm_perform_maintenance_maximum_set_gen.py | 2 +- ..._vm_perform_maintenance_minimum_set_gen.py | 2 +- ..._scale_set_vm_power_off_maximum_set_gen.py | 2 +- ..._scale_set_vm_power_off_minimum_set_gen.py | 2 +- ...e_scale_set_vm_redeploy_maximum_set_gen.py | 2 +- ...e_scale_set_vm_redeploy_minimum_set_gen.py | 2 +- ...cale_set_vm_reimage_all_maximum_set_gen.py | 2 +- ...cale_set_vm_reimage_all_minimum_set_gen.py | 2 +- ...ne_scale_set_vm_reimage_maximum_set_gen.py | 2 +- ...ne_scale_set_vm_reimage_minimum_set_gen.py | 2 +- ...ne_scale_set_vm_restart_maximum_set_gen.py | 2 +- ...ne_scale_set_vm_restart_minimum_set_gen.py | 2 +- ...e_set_vm_retrieve_boot_diagnostics_data.py | 2 +- ...irtual_machine_scale_set_vm_run_command.py | 2 +- ...ale_set_vm_run_command_create_or_update.py | 2 +- ...machine_scale_set_vm_run_command_delete.py | 2 +- ...al_machine_scale_set_vm_run_command_get.py | 2 +- ...l_machine_scale_set_vm_run_command_list.py | 2 +- ...machine_scale_set_vm_run_command_update.py | 2 +- ..._machine_scale_set_vm_simulate_eviction.py | 2 +- ...hine_scale_set_vm_start_maximum_set_gen.py | 2 +- ...hine_scale_set_vm_start_minimum_set_gen.py | 2 +- ...ine_scale_set_vm_update_maximum_set_gen.py | 2 +- ...ine_scale_set_vm_update_minimum_set_gen.py | 2 +- .../virtual_machine_simulate_eviction.py | 2 +- ...tual_machine_sizes_list_maximum_set_gen.py | 2 +- ...tual_machine_sizes_list_minimum_set_gen.py | 2 +- .../virtual_machine_start_maximum_set_gen.py | 2 +- .../virtual_machine_start_minimum_set_gen.py | 2 +- ...data_disk_using_to_be_detached_property.py | 2 +- ...l_machine_update_force_detach_data_disk.py | 2 +- ...management_availability_sets_operations.py | 22 +- ...ment_availability_sets_operations_async.py | 22 +- ..._capacity_reservation_groups_operations.py | 26 +- ...ity_reservation_groups_operations_async.py | 26 +- ...gement_capacity_reservations_operations.py | 38 +- ..._capacity_reservations_operations_async.py | 38 +- ...gement_dedicated_host_groups_operations.py | 12 +- ..._dedicated_host_groups_operations_async.py | 12 +- ...e_management_dedicated_hosts_operations.py | 16 +- ...gement_dedicated_hosts_operations_async.py | 16 +- ...st_compute_management_images_operations.py | 12 +- ...pute_management_images_operations_async.py | 12 +- ...nagement_interconnect_blocks_operations.py | 12 +- ...nt_interconnect_blocks_operations_async.py | 12 +- ...ute_management_log_analytics_operations.py | 4 +- ...nagement_log_analytics_operations_async.py | 4 +- .../test_compute_management_operations.py | 2 +- ...est_compute_management_operations_async.py | 2 +- ...t_proximity_placement_groups_operations.py | 12 +- ...imity_placement_groups_operations_async.py | 12 +- ...nt_restore_point_collections_operations.py | 98 +- ...tore_point_collections_operations_async.py | 98 +- ...te_management_restore_points_operations.py | 49 +- ...agement_restore_points_operations_async.py | 49 +- ...e_management_ssh_public_keys_operations.py | 14 +- ...gement_ssh_public_keys_operations_async.py | 14 +- ...est_compute_management_usage_operations.py | 2 +- ...mpute_management_usage_operations_async.py | 2 +- ...hine_diagnostic_run_commands_operations.py | 181 + ...iagnostic_run_commands_operations_async.py | 188 + ...ual_machine_extension_images_operations.py | 6 +- ...chine_extension_images_operations_async.py | 6 +- ...t_virtual_machine_extensions_operations.py | 10 +- ...ual_machine_extensions_operations_async.py | 10 +- ...ual_machine_images_edge_zone_operations.py | 10 +- ...chine_images_edge_zone_operations_async.py | 10 +- ...ement_virtual_machine_images_operations.py | 14 +- ...virtual_machine_images_operations_async.py | 14 +- ...virtual_machine_run_commands_operations.py | 14 +- ...l_machine_run_commands_operations_async.py | 14 +- ...machine_scale_set_extensions_operations.py | 10 +- ...e_scale_set_extensions_operations_async.py | 10 +- ...e_set_life_cycle_hook_events_operations.py | 6 +- ...life_cycle_hook_events_operations_async.py | 6 +- ...e_scale_set_rolling_upgrades_operations.py | 8 +- ...e_set_rolling_upgrades_operations_async.py | 8 +- ...t_vm_diagnostic_run_commands_operations.py | 186 + ...iagnostic_run_commands_operations_async.py | 193 + ...hine_scale_set_vm_extensions_operations.py | 10 +- ...cale_set_vm_extensions_operations_async.py | 10 +- ...ne_scale_set_vm_run_commands_operations.py | 10 +- ...le_set_vm_run_commands_operations_async.py | 10 +- ...irtual_machine_scale_set_vms_operations.py | 106 +- ..._machine_scale_set_vms_operations_async.py | 101 +- ...t_virtual_machine_scale_sets_operations.py | 175 +- ...ual_machine_scale_sets_operations_async.py | 176 +- ...gement_virtual_machine_sizes_operations.py | 2 +- ..._virtual_machine_sizes_operations_async.py | 2 +- ..._management_virtual_machines_operations.py | 180 +- ...ement_virtual_machines_operations_async.py | 170 +- .../azure-mgmt-compute/tsp-location.yaml | 2 +- 550 files changed, 16628 insertions(+), 7344 deletions(-) create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_create_or_update.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_get.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_vm_list_with_virtual_machine_resource_id.py => future_capacity_reservation_list_by_reservation_group.py} (75%) create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_get.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_create_or_update.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_get.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_additional_disk_properties.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_create_with_adiff_os_disk_and_full_caching_enabled.py => virtual_machine_create_with_capacity_reservation_assignment_disabled.py} (80%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_create_with_zone_movement_enabled.py => virtual_machine_create_with_deterministic_processor_mode.py} (76%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_create_with_interconnect_block.py => virtual_machine_create_with_opportunistic_processor_mode.py} (64%) create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_spot_plus_priority.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_deallocate_with_hibernation.py => virtual_machine_deallocate_maximum_set_gen.py} (87%) create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_create_or_update.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_delete.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_get.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_list.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_update.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_with_expand_properties_gen.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_get_instance_view_with_interconnect_block.py => virtual_machine_get_with_deterministic_processor_mode.py} (84%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_deallocate_with_force_deallocate.py => virtual_machine_get_with_opportunistic_processor_mode.py} (79%) delete mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_and_full_caching_enabled.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_create_with_operation_recovery_settings.py => virtual_machine_scale_set_create_with_deterministic_processor_mode.py} (83%) delete mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_external_health_policy.py delete mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_interconnect_block.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_create_with_storage_fault_domain_alignment.py => virtual_machine_scale_set_create_with_opportunistic_processor_mode.py} (81%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_create_with_lifecycle_hooks_profile.py => virtual_machine_scale_set_create_with_spot_plus_priority.py} (85%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_create_with_automatic_sku_migration_policy.py => virtual_machine_scale_set_create_with_spot_plus_priority_flex.py} (73%) create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_migrate_vm_availability_zone.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_create_or_update.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_delete.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_get.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_list.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_update.py rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_vm_get_with_virtual_machine_resource_id.py => virtual_machine_scale_set_vm_get_instance_view_with_capacity_reservation_type.py} (77%) rename sdk/compute/azure-mgmt-compute/generated_samples/{virtual_machine_scale_set_vm_get_with_interconnect_block.py => virtual_machine_scale_set_vm_get_with_capacity_reservation.py} (85%) create mode 100644 sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations_async.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations.py create mode 100644 sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations_async.py diff --git a/sdk/compute/azure-mgmt-compute/CHANGELOG.md b/sdk/compute/azure-mgmt-compute/CHANGELOG.md index 0e5f82ee228d..7daa487a42e7 100644 --- a/sdk/compute/azure-mgmt-compute/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-compute/CHANGELOG.md @@ -1,5 +1,60 @@ # Release History +## 38.3.0 (2026-08-12) + +### Features Added + + - Client `ComputeManagementClient` added operation group `virtual_machine_diagnostic_run_commands` + - Client `ComputeManagementClient` added operation group `virtual_machine_scale_set_vm_diagnostic_run_commands` + - Model `CapacityReservationInstanceView` added property `reservation_state_info` + - Model `CapacityReservationInstanceViewWithName` added property `reservation_state_info` + - Model `CapacityReservationProfile` added property `disable_capacity_reservation_assignment` + - Model `CapacityReservationUtilization` added property `used_reserved_count_by_subscription` + - Model `HardwareProfile` added property `processor_mode` + - Model `HostEndpointSettings` added property `use_local_file_rules` + - Model `ManagedDiskParameters` added property `additional_disk_properties` + - Enum `ReservationType` added member `OPEN` + - Model `ScheduleProfile` added property `minimum_commitment_days` + - Model `ScheduleProfile` added property `modifiable_until` + - Model `StorageProfile` added property `disk_api_version` + - Model `VirtualMachineExtensionImageProperties` added property `extension_feature_metadata` + - Model `VirtualMachineExtensionImageProperties` added property `release_category` + - Model `VirtualMachineExtensionImageProperties` added property `release_notes` + - Model `VirtualMachineExtensionImageProperties` added property `run_profile` + - Model `VirtualMachineExtensionImageProperties` added property `urgency_level` + - Model `VirtualMachineInstanceView` added property `capacity_reservation_type` + - Model `VirtualMachineIpTag` added property `first_party_service_tag_id` + - Enum `VirtualMachinePriorityTypes` added member `SPOT_PLUS` + - Model `VirtualMachineScaleSetHardwareProfile` added property `processor_mode` + - Model `VirtualMachineScaleSetIpTag` added property `first_party_service_tag_id` + - Model `VirtualMachineScaleSetManagedDiskParameters` added property `additional_disk_properties` + - Model `VirtualMachineScaleSetStorageProfile` added property `disk_api_version` + - Model `VirtualMachineScaleSetUpdateStorageProfile` added property `disk_api_version` + - Model `VirtualMachineScaleSetVMInstanceView` added property `capacity_reservation_type` + - Model `VirtualMachineScaleSetVMProperties` added property `capacity_reservation` + - Added model `AdditionalDiskProperties` + - Added model `CapacityReservationStateInfo` + - Added enum `CapacityReservationType` + - Added enum `DiskApiVersion` + - Added model `DiskAvailabilityPolicy` + - Added model `ExtensionFeatureMetadata` + - Added model `ExtensionFeatureTag` + - Added enum `ListVersionsExpandOptions` + - Added model `MigrateVMAvailabilityZoneInput` + - Added enum `ProcessorMode` + - Added enum `ReleaseCategory` + - Added enum `ReservationState` + - Added enum `RunProfile` + - Added enum `UrgencyLevel` + - Added model `VirtualMachineDiagnosticRunCommand` + - Added enum `VirtualMachineDiskDelayAction` + - Added enum `VirtualMachineDiskNetworkAccessPolicy` + - Added model `VirtualMachineDiskProperties` + - Model `VirtualMachineExtensionImagesOperations` added parameter `expand` in method `list_versions` + - Model `VirtualMachineScaleSetsOperations` added method `begin_migrate_vm_availability_zone` + - Added operation group `VirtualMachineDiagnosticRunCommandsOperations` + - Added operation group `VirtualMachineScaleSetVMDiagnosticRunCommandsOperations` + ## 38.2.0 (2026-07-15) ### Features Added diff --git a/sdk/compute/azure-mgmt-compute/_metadata.json b/sdk/compute/azure-mgmt-compute/_metadata.json index 65dc35981bc5..850dfdae4417 100644 --- a/sdk/compute/azure-mgmt-compute/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/_metadata.json @@ -1,13 +1,13 @@ { "apiVersions": { - "Compute": "2026-03-01", + "Compute": "2026-04-01", "ComputeDisk": "2026-03-02", "ComputeGallery": "2025-12-03", "ComputeSku": "2021-07-01" }, - "commit": "3afe65f7239e0e1f26202c75d960266adddb1eeb", + "commit": "f033bb63819c74607f4086c49ae7b07a22c35f78", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/compute/resource-manager/Microsoft.Compute/Compute", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.1" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.35.1" } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/api.md b/sdk/compute/azure-mgmt-compute/api.md index f3f1ee4635fe..eca74721dacf 100644 --- a/sdk/compute/azure-mgmt-compute/api.md +++ b/sdk/compute/azure-mgmt-compute/api.md @@ -41,6 +41,7 @@ namespace azure.mgmt.compute ssh_public_keys: SshPublicKeysOperations tenant_level_shared_gallery_invites: TenantLevelSharedGalleryInvitesOperations usage: UsageOperations + virtual_machine_diagnostic_run_commands: VirtualMachineDiagnosticRunCommandsOperations virtual_machine_extension_images: VirtualMachineExtensionImagesOperations virtual_machine_extensions: VirtualMachineExtensionsOperations virtual_machine_images: VirtualMachineImagesOperations @@ -49,6 +50,7 @@ namespace azure.mgmt.compute virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations virtual_machine_scale_set_life_cycle_hook_events: VirtualMachineScaleSetLifeCycleHookEventsOperations virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations + virtual_machine_scale_set_vm_diagnostic_run_commands: VirtualMachineScaleSetVMDiagnosticRunCommandsOperations virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations @@ -120,6 +122,7 @@ namespace azure.mgmt.compute.aio ssh_public_keys: SshPublicKeysOperations tenant_level_shared_gallery_invites: TenantLevelSharedGalleryInvitesOperations usage: UsageOperations + virtual_machine_diagnostic_run_commands: VirtualMachineDiagnosticRunCommandsOperations virtual_machine_extension_images: VirtualMachineExtensionImagesOperations virtual_machine_extensions: VirtualMachineExtensionsOperations virtual_machine_images: VirtualMachineImagesOperations @@ -128,6 +131,7 @@ namespace azure.mgmt.compute.aio virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations virtual_machine_scale_set_life_cycle_hook_events: VirtualMachineScaleSetLifeCycleHookEventsOperations virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations + virtual_machine_scale_set_vm_diagnostic_run_commands: VirtualMachineScaleSetVMDiagnosticRunCommandsOperations virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations @@ -3554,6 +3558,120 @@ namespace azure.mgmt.compute.aio.operations ) -> AsyncItemPaged[Usage]: ... + class azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'run_command_name']}, api_versions_list=['2026-04-01']) + async def begin_delete( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def diagnostic_list_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> AsyncItemPaged[VirtualMachineDiagnosticRunCommand]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'run_command_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + async def get_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> VirtualMachineDiagnosticRunCommand: ... + + class azure.mgmt.compute.aio.operations.VirtualMachineExtensionImagesOperations: def __init__( @@ -3581,12 +3699,14 @@ namespace azure.mgmt.compute.aio.operations ) -> List[VirtualMachineExtensionImage]: ... @distributed_trace_async + @api_version_validation(params_added_on={'2026-04-01': ['expand']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01', '2026-04-01']) async def list_versions( self, location: str, publisher_name: str, type: str, *, + expand: Optional[Union[str, ListVersionsExpandOptions]] = ..., filter: Optional[str] = ..., orderby: Optional[str] = ..., top: Optional[int] = ..., @@ -4186,6 +4306,129 @@ namespace azure.mgmt.compute.aio.operations ) -> RollingUpgradeStatusInfo: ... + class azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'run_command_name']}, api_versions_list=['2026-04-01']) + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def diagnostic_list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> AsyncItemPaged[VirtualMachineDiagnosticRunCommand]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'run_command_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> VirtualMachineDiagnosticRunCommand: ... + + class azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMExtensionsOperations: def __init__( @@ -4884,6 +5127,39 @@ namespace azure.mgmt.compute.aio.operations **kwargs: Any ) -> AsyncLROPoller[None]: ... + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @overload async def begin_perform_maintenance( self, @@ -5507,7 +5783,7 @@ namespace azure.mgmt.compute.aio.operations ) -> AsyncLROPoller[VirtualMachine]: ... @distributed_trace_async - @api_version_validation(params_added_on={'2025-11-01': ['force_deallocate']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01']) + @api_version_validation(params_added_on={'2025-11-01': ['force_deallocate']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01', '2026-04-01']) async def begin_deallocate( self, resource_group_name: str, @@ -5963,6 +6239,20 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.AdditionalDiskProperties(_Model): + managed_disk_properties: Optional[VirtualMachineDiskProperties] + + @overload + def __init__( + self, + *, + managed_disk_properties: Optional[VirtualMachineDiskProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.compute.models.AdditionalReplicaSet(_Model): regional_replica_count: Optional[int] storage_account_type: Optional[Union[str, StorageAccountType]] @@ -6499,6 +6789,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.CapacityReservationInstanceView(_Model): + reservation_state_info: Optional[CapacityReservationStateInfo] statuses: Optional[list[InstanceViewStatus]] utilization_info: Optional[CapacityReservationUtilization] @@ -6506,6 +6797,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + reservation_state_info: Optional[CapacityReservationStateInfo] = ..., statuses: Optional[list[InstanceViewStatus]] = ..., utilization_info: Optional[CapacityReservationUtilization] = ... ) -> None: ... @@ -6520,6 +6812,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): name: Optional[str] + reservation_state_info: CapacityReservationStateInfo statuses: list[InstanceViewStatus] utilization_info: CapacityReservationUtilization @@ -6527,6 +6820,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + reservation_state_info: Optional[CapacityReservationStateInfo] = ..., statuses: Optional[list[InstanceViewStatus]] = ..., utilization_info: Optional[CapacityReservationUtilization] = ... ) -> None: ... @@ -6537,12 +6831,14 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.CapacityReservationProfile(_Model): capacity_reservation_group: Optional[SubResource] + disable_capacity_reservation_assignment: Optional[bool] @overload def __init__( self, *, - capacity_reservation_group: Optional[SubResource] = ... + capacity_reservation_group: Optional[SubResource] = ..., + disable_capacity_reservation_assignment: Optional[bool] = ... ) -> None: ... @overload @@ -6570,6 +6866,28 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.CapacityReservationStateInfo(_Model): + reservation_state: Optional[Union[str, ReservationState]] + + @overload + def __init__( + self, + *, + reservation_state: Optional[Union[str, ReservationState]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.compute.models.CapacityReservationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + BLOCK = "Block" + DISABLED = "Disabled" + NOT_ELIGIBLE = "NotEligible" + OPEN = "Open" + TARGETED = "Targeted" + + class azure.mgmt.compute.models.CapacityReservationUpdate(UpdateResource): properties: Optional[CapacityReservationProperties] sku: Optional[Sku] @@ -6598,6 +6916,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.CapacityReservationUtilization(_Model): current_capacity: Optional[int] + used_reserved_count_by_subscription: Optional[dict[str, int]] virtual_machines_allocated: Optional[list[SubResourceReadOnly]] @@ -7476,20 +7795,39 @@ namespace azure.mgmt.compute.models ) -> None: ... - class azure.mgmt.compute.models.DiskAccessProperties(_Model): - private_endpoint_connections: Optional[list[PrivateEndpointConnection]] - provisioning_state: Optional[str] - time_created: Optional[datetime] + class azure.mgmt.compute.models.DiskAccessProperties(_Model): + private_endpoint_connections: Optional[list[PrivateEndpointConnection]] + provisioning_state: Optional[str] + time_created: Optional[datetime] + + + class azure.mgmt.compute.models.DiskAccessUpdate(_Model): + tags: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.compute.models.DiskApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ENUM_2025_01_02 = "2025-01-02" + ENUM_2026_03_02 = "2026-03-02" - class azure.mgmt.compute.models.DiskAccessUpdate(_Model): - tags: Optional[dict[str, str]] + + class azure.mgmt.compute.models.DiskAvailabilityPolicy(_Model): + action_on_disk_delay: Optional[Union[str, VirtualMachineDiskDelayAction]] @overload def __init__( self, *, - tags: Optional[dict[str, str]] = ... + action_on_disk_delay: Optional[Union[str, VirtualMachineDiskDelayAction]] = ... ) -> None: ... @overload @@ -8301,6 +8639,36 @@ namespace azure.mgmt.compute.models EDGE_ZONE = "EdgeZone" + class azure.mgmt.compute.models.ExtensionFeatureMetadata(_Model): + extension_feature_tags: Optional[list[ExtensionFeatureTag]] + + @overload + def __init__( + self, + *, + extension_feature_tags: Optional[list[ExtensionFeatureTag]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.compute.models.ExtensionFeatureTag(_Model): + key: str + value: Optional[str] + + @overload + def __init__( + self, + *, + key: str, + value: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.compute.models.ExternalHealthPolicy(_Model): enabled: Optional[bool] expiry_duration: Optional[timedelta] @@ -9678,6 +10046,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.HardwareProfile(_Model): + processor_mode: Optional[Union[str, ProcessorMode]] vm_size: Optional[Union[str, VirtualMachineSizeTypes]] vm_size_properties: Optional[VMSizeProperties] @@ -9685,6 +10054,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + processor_mode: Optional[Union[str, ProcessorMode]] = ..., vm_size: Optional[Union[str, VirtualMachineSizeTypes]] = ..., vm_size_properties: Optional[VMSizeProperties] = ... ) -> None: ... @@ -9707,13 +10077,15 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.HostEndpointSettings(_Model): in_vm_access_control_profile_reference_id: Optional[str] mode: Optional[Union[str, Modes]] + use_local_file_rules: Optional[bool] @overload def __init__( self, *, in_vm_access_control_profile_reference_id: Optional[str] = ..., - mode: Optional[Union[str, Modes]] = ... + mode: Optional[Union[str, Modes]] = ..., + use_local_file_rules: Optional[bool] = ... ) -> None: ... @overload @@ -10458,6 +10830,10 @@ namespace azure.mgmt.compute.models IMAGE_DEFAULT = "ImageDefault" + class azure.mgmt.compute.models.ListVersionsExpandOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): + PROPERTIES = "properties" + + class azure.mgmt.compute.models.LogAnalyticsInputBase(_Model): blob_container_sas_uri: str from_time: datetime @@ -10528,6 +10904,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.ManagedDiskParameters(SubResource): + additional_disk_properties: Optional[AdditionalDiskProperties] disk_encryption_set: Optional[DiskEncryptionSetParameters] id: str security_profile: Optional[VMDiskSecurityProfile] @@ -10537,6 +10914,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + additional_disk_properties: Optional[AdditionalDiskProperties] = ..., disk_encryption_set: Optional[DiskEncryptionSetParameters] = ..., id: Optional[str] = ..., security_profile: Optional[VMDiskSecurityProfile] = ..., @@ -10577,6 +10955,22 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput(_Model): + instance_ids: list[str] + target_zone: Optional[str] + + @overload + def __init__( + self, + *, + instance_ids: list[str], + target_zone: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.compute.models.MigrateVMToVirtualMachineScaleSetInput(_Model): target_fault_domain: Optional[int] target_vm_size: Optional[str] @@ -11273,6 +11667,11 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.ProcessorMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DETERMINISTIC = "Deterministic" + OPPORTUNISTIC = "Opportunistic" + + class azure.mgmt.compute.models.PropertyUpdatesInProgress(_Model): target_tier: Optional[str] @@ -11535,6 +11934,14 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.ReleaseCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta): + BUG_FIX = "BugFix" + COMPATIBILITY_UPDATE = "CompatibilityUpdate" + NEW_FEATURE = "NewFeature" + OTHER = "Other" + SECURITY_FIX = "SecurityFix" + + class azure.mgmt.compute.models.RepairAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): REIMAGE = "Reimage" REPLACE = "Replace" @@ -11593,8 +12000,19 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.ReservationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + APPROVED = "Approved" + COMMITTED = "Committed" + DECLINED = "Declined" + FULFILLMENT_FAILED = "FulfillmentFailed" + LIVE = "Live" + PARTIALLY_FULFILLED = "PartiallyFulfilled" + PENDING = "Pending" + + class azure.mgmt.compute.models.ReservationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): BLOCK = "Block" + OPEN = "Open" TARGETED = "Targeted" @@ -12312,6 +12730,13 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.RunProfile(str, Enum, metaclass=CaseInsensitiveEnumMeta): + HYBRID = "Hybrid" + LONG_RUNNING = "LongRunning" + OTHER = "Other" + RUN_ONCE = "RunOnce" + + class azure.mgmt.compute.models.ScaleInPolicy(_Model): force_deletion: Optional[bool] prioritize_unhealthy_v_ms: Optional[bool] @@ -12332,6 +12757,8 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.ScheduleProfile(_Model): end: Optional[str] + minimum_commitment_days: Optional[int] + modifiable_until: Optional[datetime] start: Optional[str] @overload @@ -12339,6 +12766,7 @@ namespace azure.mgmt.compute.models self, *, end: Optional[str] = ..., + minimum_commitment_days: Optional[int] = ..., start: Optional[str] = ... ) -> None: ... @@ -13293,6 +13721,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.StorageProfile(_Model): align_regional_disks_to_vm_zone: Optional[bool] data_disks: Optional[list[DataDisk]] + disk_api_version: Optional[Union[str, DiskApiVersion]] disk_controller_type: Optional[Union[str, DiskControllerTypes]] image_reference: Optional[ImageReference] os_disk: Optional[OSDisk] @@ -13303,6 +13732,7 @@ namespace azure.mgmt.compute.models *, align_regional_disks_to_vm_zone: Optional[bool] = ..., data_disks: Optional[list[DataDisk]] = ..., + disk_api_version: Optional[Union[str, DiskApiVersion]] = ..., disk_controller_type: Optional[Union[str, DiskControllerTypes]] = ..., image_reference: Optional[ImageReference] = ..., os_disk: Optional[OSDisk] = ... @@ -13636,6 +14066,12 @@ namespace azure.mgmt.compute.models ROLLING_FORWARD = "RollingForward" + class azure.mgmt.compute.models.UrgencyLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + EMERGENCY = "Emergency" + EXPEDITED = "Expedited" + REGULAR = "Regular" + + class azure.mgmt.compute.models.Usage(_Model): current_value: int limit: int @@ -14177,6 +14613,73 @@ namespace azure.mgmt.compute.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand(TrackedResource): + id: str + location: str + name: str + properties: Optional[VirtualMachineRunCommandProperties] + system_data: SystemData + tags: dict[str, str] + type: str + + @overload + def __init__( + self, + *, + location: str, + properties: Optional[VirtualMachineRunCommandProperties] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.compute.models.VirtualMachineDiskDelayAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AUTOMATIC_REATTACH = "AutomaticReattach" + NONE = "None" + + + class azure.mgmt.compute.models.VirtualMachineDiskNetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ALLOW_ALL = "AllowAll" + ALLOW_PRIVATE = "AllowPrivate" + DENY_ALL = "DenyAll" + + + class azure.mgmt.compute.models.VirtualMachineDiskProperties(_Model): + availability_policy: Optional[DiskAvailabilityPolicy] + bursting_enabled: Optional[bool] + disk_access_id: Optional[str] + disk_iops_read_only: Optional[int] + disk_m_bps_read_only: Optional[int] + logical_sector_size: Optional[int] + max_shares: Optional[int] + network_access_policy: Optional[Union[str, VirtualMachineDiskNetworkAccessPolicy]] + optimized_for_frequent_attach: Optional[bool] + performance_plus: Optional[bool] + tier: Optional[str] + + @overload + def __init__( + self, + *, + availability_policy: Optional[DiskAvailabilityPolicy] = ..., + bursting_enabled: Optional[bool] = ..., + disk_access_id: Optional[str] = ..., + disk_iops_read_only: Optional[int] = ..., + disk_m_bps_read_only: Optional[int] = ..., + logical_sector_size: Optional[int] = ..., + max_shares: Optional[int] = ..., + network_access_policy: Optional[Union[str, VirtualMachineDiskNetworkAccessPolicy]] = ..., + optimized_for_frequent_attach: Optional[bool] = ..., + performance_plus: Optional[bool] = ..., + tier: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.compute.models.VirtualMachineEvictionPolicyTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): DEALLOCATE = "Deallocate" DELETE = "Delete" @@ -14262,9 +14765,14 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineExtensionImageProperties(_Model): compute_role: str + extension_feature_metadata: Optional[ExtensionFeatureMetadata] handler_schema: str operating_system: str + release_category: Optional[Union[str, ReleaseCategory]] + release_notes: Optional[str] + run_profile: Optional[Union[str, RunProfile]] supports_multiple_extensions: Optional[bool] + urgency_level: Optional[Union[str, UrgencyLevel]] vm_scale_set_enabled: Optional[bool] @overload @@ -14571,6 +15079,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineInstanceView(_Model): assigned_host: Optional[str] boot_diagnostics: Optional[BootDiagnosticsInstanceView] + capacity_reservation_type: Optional[Union[str, CapacityReservationType]] computer_name: Optional[str] disks: Optional[list[DiskInstanceView]] extensions: Optional[list[VirtualMachineExtensionInstanceView]] @@ -14613,6 +15122,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineIpTag(_Model): + first_party_service_tag_id: Optional[str] ip_tag_type: Optional[str] tag: Optional[str] @@ -14620,6 +15130,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + first_party_service_tag_id: Optional[str] = ..., ip_tag_type: Optional[str] = ..., tag: Optional[str] = ... ) -> None: ... @@ -14775,6 +15286,7 @@ namespace azure.mgmt.compute.models LOW = "Low" REGULAR = "Regular" SPOT = "Spot" + SPOT_PLUS = "SpotPlus" class azure.mgmt.compute.models.VirtualMachineProperties(_Model): @@ -15255,12 +15767,14 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetHardwareProfile(_Model): + processor_mode: Optional[Union[str, ProcessorMode]] vm_size_properties: Optional[VMSizeProperties] @overload def __init__( self, *, + processor_mode: Optional[Union[str, ProcessorMode]] = ..., vm_size_properties: Optional[VMSizeProperties] = ... ) -> None: ... @@ -15360,6 +15874,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetIpTag(_Model): + first_party_service_tag_id: Optional[str] ip_tag_type: Optional[str] tag: Optional[str] @@ -15367,6 +15882,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + first_party_service_tag_id: Optional[str] = ..., ip_tag_type: Optional[str] = ..., tag: Optional[str] = ... ) -> None: ... @@ -15376,6 +15892,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetManagedDiskParameters(_Model): + additional_disk_properties: Optional[AdditionalDiskProperties] disk_encryption_set: Optional[DiskEncryptionSetParameters] security_profile: Optional[VMDiskSecurityProfile] storage_account_type: Optional[Union[str, StorageAccountTypes]] @@ -15384,6 +15901,7 @@ namespace azure.mgmt.compute.models def __init__( self, *, + additional_disk_properties: Optional[AdditionalDiskProperties] = ..., disk_encryption_set: Optional[DiskEncryptionSetParameters] = ..., security_profile: Optional[VMDiskSecurityProfile] = ..., storage_account_type: Optional[Union[str, StorageAccountTypes]] = ... @@ -15735,6 +16253,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetStorageProfile(_Model): data_disks: Optional[list[VirtualMachineScaleSetDataDisk]] + disk_api_version: Optional[Union[str, DiskApiVersion]] disk_controller_type: Optional[Union[str, DiskControllerTypes]] image_reference: Optional[ImageReference] os_disk: Optional[VirtualMachineScaleSetOSDisk] @@ -15744,6 +16263,7 @@ namespace azure.mgmt.compute.models self, *, data_disks: Optional[list[VirtualMachineScaleSetDataDisk]] = ..., + disk_api_version: Optional[Union[str, DiskApiVersion]] = ..., disk_controller_type: Optional[Union[str, DiskControllerTypes]] = ..., image_reference: Optional[ImageReference] = ..., os_disk: Optional[VirtualMachineScaleSetOSDisk] = ... @@ -16059,6 +16579,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetUpdateStorageProfile(_Model): data_disks: Optional[list[VirtualMachineScaleSetDataDisk]] + disk_api_version: Optional[Union[str, DiskApiVersion]] disk_controller_type: Optional[Union[str, DiskControllerTypes]] image_reference: Optional[ImageReference] os_disk: Optional[VirtualMachineScaleSetUpdateOSDisk] @@ -16068,6 +16589,7 @@ namespace azure.mgmt.compute.models self, *, data_disks: Optional[list[VirtualMachineScaleSetDataDisk]] = ..., + disk_api_version: Optional[Union[str, DiskApiVersion]] = ..., disk_controller_type: Optional[Union[str, DiskControllerTypes]] = ..., image_reference: Optional[ImageReference] = ..., os_disk: Optional[VirtualMachineScaleSetUpdateOSDisk] = ... @@ -16256,6 +16778,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetVMInstanceView(_Model): assigned_host: Optional[str] boot_diagnostics: Optional[BootDiagnosticsInstanceView] + capacity_reservation_type: Optional[Union[str, CapacityReservationType]] computer_name: Optional[str] disks: Optional[list[DiskInstanceView]] extensions: Optional[list[VirtualMachineExtensionInstanceView]] @@ -16364,6 +16887,7 @@ namespace azure.mgmt.compute.models class azure.mgmt.compute.models.VirtualMachineScaleSetVMProperties(_Model): additional_capabilities: Optional[AdditionalCapabilities] availability_set: Optional[SubResource] + capacity_reservation: Optional[CapacityReservationProfile] diagnostics_profile: Optional[DiagnosticsProfile] hardware_profile: Optional[HardwareProfile] instance_view: Optional[VirtualMachineScaleSetVMInstanceView] @@ -16390,6 +16914,7 @@ namespace azure.mgmt.compute.models *, additional_capabilities: Optional[AdditionalCapabilities] = ..., availability_set: Optional[SubResource] = ..., + capacity_reservation: Optional[CapacityReservationProfile] = ..., diagnostics_profile: Optional[DiagnosticsProfile] = ..., hardware_profile: Optional[HardwareProfile] = ..., interconnect_block_profile: Optional[InterconnectBlockProfile] = ..., @@ -20168,95 +20693,209 @@ namespace azure.mgmt.compute.operations resource_group_name: str, ssh_public_key_name: str, **kwargs: Any - ) -> SshPublicKeyResource: ... + ) -> SshPublicKeyResource: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[SshPublicKeyResource]: ... + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged[SshPublicKeyResource]: ... + + @overload + def update( + self, + resource_group_name: str, + ssh_public_key_name: str, + parameters: SshPublicKeyUpdateResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> SshPublicKeyResource: ... + + @overload + def update( + self, + resource_group_name: str, + ssh_public_key_name: str, + parameters: SshPublicKeyUpdateResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> SshPublicKeyResource: ... + + @overload + def update( + self, + resource_group_name: str, + ssh_public_key_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> SshPublicKeyResource: ... + + + class azure.mgmt.compute.operations.TenantLevelSharedGalleryInvitesOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-12-03', params_added_on={'2025-12-03': ['api_version', 'location', 'shared_gallery_subscription_id', 'shared_gallery_name']}, api_versions_list=['2025-12-03']) + def begin_tenant_level_gallery_sharing_accept( + self, + location: str, + shared_gallery_subscription_id: str, + shared_gallery_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-12-03', params_added_on={'2025-12-03': ['api_version', 'location', 'shared_gallery_subscription_id', 'shared_gallery_name']}, api_versions_list=['2025-12-03']) + def begin_tenant_level_gallery_sharing_reject( + self, + location: str, + shared_gallery_subscription_id: str, + shared_gallery_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + + class azure.mgmt.compute.operations.UsageOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @distributed_trace + def list( + self, + location: str, + **kwargs: Any + ) -> ItemPaged[Usage]: ... + + + class azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... @distributed_trace - def list_by_resource_group( + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'run_command_name']}, api_versions_list=['2026-04-01']) + def begin_delete( self, resource_group_name: str, + vm_name: str, + run_command_name: str, **kwargs: Any - ) -> ItemPaged[SshPublicKeyResource]: ... - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged[SshPublicKeyResource]: ... + ) -> LROPoller[None]: ... @overload - def update( + def begin_update( self, resource_group_name: str, - ssh_public_key_name: str, - parameters: SshPublicKeyUpdateResource, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> SshPublicKeyResource: ... + ) -> LROPoller[None]: ... @overload - def update( + def begin_update( self, resource_group_name: str, - ssh_public_key_name: str, - parameters: SshPublicKeyUpdateResource, + vm_name: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, *, content_type: str = "application/json", **kwargs: Any - ) -> SshPublicKeyResource: ... + ) -> LROPoller[None]: ... @overload - def update( + def begin_update( self, resource_group_name: str, - ssh_public_key_name: str, - parameters: IO[bytes], + vm_name: str, + run_command_name: str, + run_command: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> SshPublicKeyResource: ... - - - class azure.mgmt.compute.operations.TenantLevelSharedGalleryInvitesOperations: - - def __init__( - self, - *args, - **kwargs - ) -> None: ... - - @distributed_trace - @api_version_validation(method_added_on='2025-12-03', params_added_on={'2025-12-03': ['api_version', 'location', 'shared_gallery_subscription_id', 'shared_gallery_name']}, api_versions_list=['2025-12-03']) - def begin_tenant_level_gallery_sharing_accept( - self, - location: str, - shared_gallery_subscription_id: str, - shared_gallery_name: str, - **kwargs: Any ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2025-12-03', params_added_on={'2025-12-03': ['api_version', 'location', 'shared_gallery_subscription_id', 'shared_gallery_name']}, api_versions_list=['2025-12-03']) - def begin_tenant_level_gallery_sharing_reject( + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def diagnostic_list_by_virtual_machine( self, - location: str, - shared_gallery_subscription_id: str, - shared_gallery_name: str, + resource_group_name: str, + vm_name: str, + *, + expand: Optional[str] = ..., **kwargs: Any - ) -> LROPoller[None]: ... - - - class azure.mgmt.compute.operations.UsageOperations: - - def __init__( - self, - *args, - **kwargs - ) -> None: ... + ) -> ItemPaged[VirtualMachineDiagnosticRunCommand]: ... @distributed_trace - def list( + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_name', 'run_command_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def get_by_virtual_machine( self, - location: str, + resource_group_name: str, + vm_name: str, + run_command_name: str, + *, + expand: Optional[str] = ..., **kwargs: Any - ) -> ItemPaged[Usage]: ... + ) -> VirtualMachineDiagnosticRunCommand: ... class azure.mgmt.compute.operations.VirtualMachineExtensionImagesOperations: @@ -20286,12 +20925,14 @@ namespace azure.mgmt.compute.operations ) -> List[VirtualMachineExtensionImage]: ... @distributed_trace + @api_version_validation(params_added_on={'2026-04-01': ['expand']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01', '2026-04-01']) def list_versions( self, location: str, publisher_name: str, type: str, *, + expand: Optional[Union[str, ListVersionsExpandOptions]] = ..., filter: Optional[str] = ..., orderby: Optional[str] = ..., top: Optional[int] = ..., @@ -20891,6 +21532,129 @@ namespace azure.mgmt.compute.operations ) -> RollingUpgradeStatusInfo: ... + class azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineDiagnosticRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'run_command_name']}, api_versions_list=['2026-04-01']) + def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def diagnostic_list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> ItemPaged[VirtualMachineDiagnosticRunCommand]: ... + + @distributed_trace + @api_version_validation(method_added_on='2026-04-01', params_added_on={'2026-04-01': ['api_version', 'subscription_id', 'resource_group_name', 'vm_scale_set_name', 'instance_id', 'run_command_name', 'expand', 'accept']}, api_versions_list=['2026-04-01']) + def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + *, + expand: Optional[str] = ..., + **kwargs: Any + ) -> VirtualMachineDiagnosticRunCommand: ... + + class azure.mgmt.compute.operations.VirtualMachineScaleSetVMExtensionsOperations: def __init__( @@ -21589,6 +22353,39 @@ namespace azure.mgmt.compute.operations **kwargs: Any ) -> LROPoller[None]: ... + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @overload def begin_perform_maintenance( self, @@ -22212,7 +23009,7 @@ namespace azure.mgmt.compute.operations ) -> LROPoller[VirtualMachine]: ... @distributed_trace - @api_version_validation(params_added_on={'2025-11-01': ['force_deallocate']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01']) + @api_version_validation(params_added_on={'2025-11-01': ['force_deallocate']}, api_versions_list=['2024-11-01', '2025-04-01', '2025-11-01', '2026-03-01', '2026-04-01']) def begin_deallocate( self, resource_group_name: str, @@ -22540,7 +23337,6 @@ namespace azure.mgmt.compute.types identities: list[AccessControlRulesIdentity] privileges: list[AccessControlRulesPrivilege] roleAssignments: list[AccessControlRulesRoleAssignment] - role_assignments: list[AccessControlRulesRoleAssignment] roles: list[AccessControlRulesRole] @@ -22550,11 +23346,11 @@ namespace azure.mgmt.compute.types key "name": Required[str] key "processName": str key "userName": str - exe_path: str - group_name: str + exePath: str + groupName: str name: str - process_name: str - user_name: str + processName: str + userName: str class azure.mgmt.compute.types.AccessControlRulesPrivilege(TypedDict, total=False): @@ -22563,7 +23359,6 @@ namespace azure.mgmt.compute.types name: str path: str queryParameters: dict[str, str] - query_parameters: dict[str, str] class azure.mgmt.compute.types.AccessControlRulesRole(TypedDict, total=False): @@ -22584,16 +23379,21 @@ namespace azure.mgmt.compute.types key "enableFips1403Encryption": bool key "hibernationEnabled": bool key "ultraSSDEnabled": bool - enable_fips1403_encryption: bool - hibernation_enabled: bool - ultra_ssd_enabled: bool + enableFips1403Encryption: bool + hibernationEnabled: bool + ultraSSDEnabled: bool + + + class azure.mgmt.compute.types.AdditionalDiskProperties(TypedDict, total=False): + key "managedDiskProperties": ForwardRef('VirtualMachineDiskProperties', module='types') + managedDiskProperties: VirtualMachineDiskProperties class azure.mgmt.compute.types.AdditionalReplicaSet(TypedDict, total=False): key "regionalReplicaCount": int key "storageAccountType": Union[str, StorageAccountType] - regional_replica_count: int - storage_account_type: Union[str, StorageAccountType] + regionalReplicaCount: int + storageAccountType: Union[str, StorageAccountType] class azure.mgmt.compute.types.AdditionalUnattendContent(TypedDict, total=False): @@ -22601,15 +23401,15 @@ namespace azure.mgmt.compute.types key "content": str key "passName": Union[str, PassNames] key "settingName": Union[str, SettingNames] - component_name: Union[str, ComponentNames] + componentName: Union[str, ComponentNames] content: str - pass_name: Union[str, PassNames] - setting_name: Union[str, SettingNames] + passName: Union[str, PassNames] + settingName: Union[str, SettingNames] class azure.mgmt.compute.types.AllInstancesDown(TypedDict, total=False): key "automaticallyApprove": bool - automatically_approve: bool + automaticallyApprove: bool class azure.mgmt.compute.types.ApiEntityReference(TypedDict, total=False): @@ -22640,14 +23440,11 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.ApplicationProfile(TypedDict, total=False): galleryApplications: list[VMGalleryApplication] - gallery_applications: list[VMGalleryApplication] class azure.mgmt.compute.types.AttachDetachDataDisksRequest(TypedDict, total=False): dataDisksToAttach: list[DataDisksToAttach] dataDisksToDetach: list[DataDisksToDetach] - data_disks_to_attach: list[DataDisksToAttach] - data_disks_to_detach: list[DataDisksToDetach] class azure.mgmt.compute.types.AutomaticOSUpgradePolicy(TypedDict, total=False): @@ -22655,10 +23452,10 @@ namespace azure.mgmt.compute.types key "enableAutomaticOSUpgrade": bool key "osRollingUpgradeDeferral": bool key "useRollingUpgradePolicy": bool - disable_automatic_rollback: bool - enable_automatic_os_upgrade: bool - os_rolling_upgrade_deferral: bool - use_rolling_upgrade_policy: bool + disableAutomaticRollback: bool + enableAutomaticOSUpgrade: bool + osRollingUpgradeDeferral: bool + useRollingUpgradePolicy: bool class azure.mgmt.compute.types.AutomaticRepairsPolicy(TypedDict, total=False): @@ -22666,8 +23463,8 @@ namespace azure.mgmt.compute.types key "gracePeriod": str key "repairAction": Union[str, RepairAction] enabled: bool - grace_period: str - repair_action: Union[str, RepairAction] + gracePeriod: str + repairAction: Union[str, RepairAction] class azure.mgmt.compute.types.AutomaticSkuMigrationPolicy(TypedDict, total=False): @@ -22680,13 +23477,13 @@ namespace azure.mgmt.compute.types key "rebalanceBehavior": Union[str, RebalanceBehavior] key "rebalanceStrategy": Union[str, RebalanceStrategy] enabled: bool - rebalance_behavior: Union[str, RebalanceBehavior] - rebalance_strategy: Union[str, RebalanceStrategy] + rebalanceBehavior: Union[str, RebalanceBehavior] + rebalanceStrategy: Union[str, RebalanceStrategy] class azure.mgmt.compute.types.AvailabilityPolicy(TypedDict, total=False): key "actionOnDiskDelay": Union[str, AvailabilityPolicyDiskDelay] - action_on_disk_delay: Union[str, AvailabilityPolicyDiskDelay] + actionOnDiskDelay: Union[str, AvailabilityPolicyDiskDelay] class azure.mgmt.compute.types.AvailabilitySet(TrackedResource): @@ -22702,7 +23499,7 @@ namespace azure.mgmt.compute.types name: str properties: AvailabilitySetProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -22713,14 +23510,13 @@ namespace azure.mgmt.compute.types key "proximityPlacementGroup": ForwardRef('SubResource', module='types') key "scheduledEventsPolicy": ForwardRef('ScheduledEventsPolicy', module='types') key "virtualMachineScaleSetMigrationInfo": ForwardRef('VirtualMachineScaleSetMigrationInfo', module='types') - platform_fault_domain_count: int - platform_update_domain_count: int - proximity_placement_group: SubResource - scheduled_events_policy: ScheduledEventsPolicy + platformFaultDomainCount: int + platformUpdateDomainCount: int + proximityPlacementGroup: SubResource + scheduledEventsPolicy: ScheduledEventsPolicy statuses: list[InstanceViewStatus] + virtualMachineScaleSetMigrationInfo: VirtualMachineScaleSetMigrationInfo virtualMachines: list[SubResource] - virtual_machine_scale_set_migration_info: VirtualMachineScaleSetMigrationInfo - virtual_machines: list[SubResource] class azure.mgmt.compute.types.AvailabilitySetUpdate(UpdateResource): @@ -22740,34 +23536,34 @@ namespace azure.mgmt.compute.types key "rebootPending": bool key "startTime": str key "status": Union[str, PatchOperationStatus] - assessment_activity_id: str - critical_and_security_patch_count: int + assessmentActivityId: str + criticalAndSecurityPatchCount: int error: ApiError - last_modified_time: str - other_patch_count: int - reboot_pending: bool - start_time: str + lastModifiedTime: str + otherPatchCount: int + rebootPending: bool + startTime: str status: Union[str, PatchOperationStatus] class azure.mgmt.compute.types.BillingProfile(TypedDict, total=False): key "maxPrice": float - max_price: float + maxPrice: float class azure.mgmt.compute.types.BootDiagnostics(TypedDict, total=False): key "enabled": bool key "storageUri": str enabled: bool - storage_uri: str + storageUri: str class azure.mgmt.compute.types.BootDiagnosticsInstanceView(TypedDict, total=False): key "consoleScreenshotBlobUri": str key "serialConsoleLogBlobUri": str key "status": ForwardRef('InstanceViewStatus', module='types') - console_screenshot_blob_uri: str - serial_console_log_blob_uri: str + consoleScreenshotBlobUri: str + serialConsoleLogBlobUri: str status: InstanceViewStatus @@ -22784,7 +23580,7 @@ namespace azure.mgmt.compute.types name: str properties: CapacityReservationProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -22801,7 +23597,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: CapacityReservationGroupProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -22809,9 +23605,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.CapacityReservationGroupInstanceView(TypedDict, total=False): capacityReservations: list[CapacityReservationInstanceViewWithName] - capacity_reservations: list[CapacityReservationInstanceViewWithName] sharedSubscriptionIds: list[SubResourceReadOnly] - shared_subscription_ids: list[SubResourceReadOnly] class azure.mgmt.compute.types.CapacityReservationGroupProperties(TypedDict, total=False): @@ -22819,12 +23613,10 @@ namespace azure.mgmt.compute.types key "reservationType": Union[str, ReservationType] key "sharingProfile": ForwardRef('ResourceSharingProfile', module='types') capacityReservations: list[SubResourceReadOnly] - capacity_reservations: list[SubResourceReadOnly] - instance_view: CapacityReservationGroupInstanceView - reservation_type: Union[str, ReservationType] - sharing_profile: ResourceSharingProfile + instanceView: CapacityReservationGroupInstanceView + reservationType: Union[str, ReservationType] + sharingProfile: ResourceSharingProfile virtualMachinesAssociated: list[SubResourceReadOnly] - virtual_machines_associated: list[SubResourceReadOnly] class azure.mgmt.compute.types.CapacityReservationGroupUpdate(UpdateResource): @@ -22834,22 +23626,28 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.CapacityReservationInstanceView(TypedDict, total=False): + key "reservationStateInfo": ForwardRef('CapacityReservationStateInfo', module='types') key "utilizationInfo": ForwardRef('CapacityReservationUtilization', module='types') + reservationStateInfo: CapacityReservationStateInfo statuses: list[InstanceViewStatus] - utilization_info: CapacityReservationUtilization + utilizationInfo: CapacityReservationUtilization class azure.mgmt.compute.types.CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): key "name": str + key "reservationStateInfo": ForwardRef('CapacityReservationStateInfo', module='types') key "utilizationInfo": ForwardRef('CapacityReservationUtilization', module='types') name: str + reservationStateInfo: CapacityReservationStateInfo statuses: list[InstanceViewStatus] - utilization_info: CapacityReservationUtilization + utilizationInfo: CapacityReservationUtilization class azure.mgmt.compute.types.CapacityReservationProfile(TypedDict, total=False): key "capacityReservationGroup": ForwardRef('SubResource', module='types') - capacity_reservation_group: SubResource + key "disableCapacityReservationAssignment": bool + capacityReservationGroup: SubResource + disableCapacityReservationAssignment: bool class azure.mgmt.compute.types.CapacityReservationProperties(TypedDict, total=False): @@ -22860,15 +23658,19 @@ namespace azure.mgmt.compute.types key "reservationId": str key "scheduleProfile": ForwardRef('ScheduleProfile', module='types') key "timeCreated": str - instance_view: CapacityReservationInstanceView - platform_fault_domain_count: int - provisioning_state: str - provisioning_time: str - reservation_id: str - schedule_profile: ScheduleProfile - time_created: str + instanceView: CapacityReservationInstanceView + platformFaultDomainCount: int + provisioningState: str + provisioningTime: str + reservationId: str + scheduleProfile: ScheduleProfile + timeCreated: str virtualMachinesAssociated: list[SubResourceReadOnly] - virtual_machines_associated: list[SubResourceReadOnly] + + + class azure.mgmt.compute.types.CapacityReservationStateInfo(TypedDict, total=False): + key "reservationState": Union[str, ReservationState] + reservationState: Union[str, ReservationState] class azure.mgmt.compute.types.CapacityReservationUpdate(UpdateResource): @@ -22881,9 +23683,9 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.CapacityReservationUtilization(TypedDict, total=False): key "currentCapacity": int - current_capacity: int + currentCapacity: int + usedReservedCountBySubscription: dict[str, int] virtualMachinesAllocated: list[SubResourceReadOnly] - virtual_machines_allocated: list[SubResourceReadOnly] class azure.mgmt.compute.types.CommunityGalleryInfo(TypedDict, total=False): @@ -22892,25 +23694,24 @@ namespace azure.mgmt.compute.types key "publicNamePrefix": str key "publisherContact": str key "publisherUri": str - community_gallery_enabled: bool + communityGalleryEnabled: bool eula: str + publicNamePrefix: str publicNames: list[str] - public_name_prefix: str - public_names: list[str] - publisher_contact: str - publisher_uri: str + publisherContact: str + publisherUri: str class azure.mgmt.compute.types.ConvertToVirtualMachineScaleSetInput(TypedDict, total=False): key "virtualMachineScaleSetName": str - virtual_machine_scale_set_name: str + virtualMachineScaleSetName: str class azure.mgmt.compute.types.CopyCompletionError(TypedDict, total=False): key "errorCode": Required[Union[str, CopyCompletionErrorReason]] key "errorMessage": Required[str] - error_code: Union[str, CopyCompletionErrorReason] - error_message: str + errorCode: Union[str, CopyCompletionErrorReason] + errorMessage: str class azure.mgmt.compute.types.CreationData(TypedDict, total=False): @@ -22929,21 +23730,21 @@ namespace azure.mgmt.compute.types key "sourceUri": str key "storageAccountId": str key "uploadSizeBytes": int - create_option: Union[str, DiskCreateOption] - elastic_san_resource_id: str - gallery_image_reference: ImageDiskReference - image_reference: ImageDiskReference - instant_access_duration_minutes: int - logical_sector_size: int - performance_plus: bool - provisioned_bandwidth_copy_speed: Union[str, ProvisionedBandwidthCopyOption] - security_data_uri: str - security_metadata_uri: str - source_resource_id: str - source_unique_id: str - source_uri: str - storage_account_id: str - upload_size_bytes: int + createOption: Union[str, DiskCreateOption] + elasticSanResourceId: str + galleryImageReference: ImageDiskReference + imageReference: ImageDiskReference + instantAccessDurationMinutes: int + logicalSectorSize: int + performancePlus: bool + provisionedBandwidthCopySpeed: Union[str, ProvisionedBandwidthCopyOption] + securityDataUri: str + securityMetadataUri: str + sourceResourceId: str + sourceUniqueId: str + sourceUri: str + storageAccountId: str + uploadSizeBytes: int class azure.mgmt.compute.types.DataDisk(TypedDict, total=False): @@ -22964,27 +23765,27 @@ namespace azure.mgmt.compute.types key "vhd": ForwardRef('VirtualHardDisk', module='types') key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - create_option: Union[str, DiskCreateOptionTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - detach_option: Union[str, DiskDetachOptionTypes] - disk_iops_read_write: int - disk_m_bps_read_write: int - disk_size_gb: int + createOption: Union[str, DiskCreateOptionTypes] + deleteOption: Union[str, DiskDeleteOptionTypes] + detachOption: Union[str, DiskDetachOptionTypes] + diskIOPSReadWrite: int + diskMBpsReadWrite: int + diskSizeGB: int image: VirtualHardDisk lun: int - managed_disk: ManagedDiskParameters + managedDisk: ManagedDiskParameters name: str - source_resource: ApiEntityReference - storage_fault_domain_alignment: Union[str, StorageFaultDomainAlignmentType] - to_be_detached: bool + sourceResource: ApiEntityReference + storageFaultDomainAlignment: Union[str, StorageFaultDomainAlignmentType] + toBeDetached: bool vhd: VirtualHardDisk - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.DataDiskImageEncryption(DiskImageEncryption): key "diskEncryptionSetId": str key "lun": Required[int] - disk_encryption_set_id: str + diskEncryptionSetId: str lun: int @@ -22996,18 +23797,18 @@ namespace azure.mgmt.compute.types key "lun": int key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - disk_encryption_set: DiskEncryptionSetParameters - disk_id: str + deleteOption: Union[str, DiskDeleteOptionTypes] + diskEncryptionSet: DiskEncryptionSetParameters + diskId: str lun: int - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.DataDisksToDetach(TypedDict, total=False): key "detachOption": Union[str, DiskDetachOptionTypes] key "diskId": Required[str] - detach_option: Union[str, DiskDetachOptionTypes] - disk_id: str + detachOption: Union[str, DiskDetachOptionTypes] + diskId: str class azure.mgmt.compute.types.DedicatedHost(TrackedResource): @@ -23023,7 +23824,7 @@ namespace azure.mgmt.compute.types name: str properties: DedicatedHostProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23032,12 +23833,11 @@ namespace azure.mgmt.compute.types key "count": float key "vmSize": str count: float - vm_size: str + vmSize: str class azure.mgmt.compute.types.DedicatedHostAvailableCapacity(TypedDict, total=False): allocatableVMs: list[DedicatedHostAllocatableVM] - allocatable_v_ms: list[DedicatedHostAllocatableVM] class azure.mgmt.compute.types.DedicatedHostGroup(TrackedResource): @@ -23051,7 +23851,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: DedicatedHostGroupProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -23066,16 +23866,16 @@ namespace azure.mgmt.compute.types key "instanceView": ForwardRef('DedicatedHostGroupInstanceView', module='types') key "platformFaultDomainCount": Required[int] key "supportAutomaticPlacement": bool - additional_capabilities: DedicatedHostGroupPropertiesAdditionalCapabilities + additionalCapabilities: DedicatedHostGroupPropertiesAdditionalCapabilities hosts: list[SubResourceReadOnly] - instance_view: DedicatedHostGroupInstanceView - platform_fault_domain_count: int - support_automatic_placement: bool + instanceView: DedicatedHostGroupInstanceView + platformFaultDomainCount: int + supportAutomaticPlacement: bool class azure.mgmt.compute.types.DedicatedHostGroupPropertiesAdditionalCapabilities(TypedDict, total=False): key "ultraSSDEnabled": bool - ultra_ssd_enabled: bool + ultraSSDEnabled: bool class azure.mgmt.compute.types.DedicatedHostGroupUpdate(UpdateResource): @@ -23088,8 +23888,8 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.DedicatedHostInstanceView(TypedDict, total=False): key "assetId": str key "availableCapacity": ForwardRef('DedicatedHostAvailableCapacity', module='types') - asset_id: str - available_capacity: DedicatedHostAvailableCapacity + assetId: str + availableCapacity: DedicatedHostAvailableCapacity statuses: list[InstanceViewStatus] @@ -23097,8 +23897,8 @@ namespace azure.mgmt.compute.types key "assetId": str key "availableCapacity": ForwardRef('DedicatedHostAvailableCapacity', module='types') key "name": str - asset_id: str - available_capacity: DedicatedHostAvailableCapacity + assetId: str + availableCapacity: DedicatedHostAvailableCapacity name: str statuses: list[InstanceViewStatus] @@ -23112,16 +23912,15 @@ namespace azure.mgmt.compute.types key "provisioningState": str key "provisioningTime": str key "timeCreated": str - auto_replace_on_failure: bool - host_id: str - instance_view: DedicatedHostInstanceView - license_type: Union[str, DedicatedHostLicenseTypes] - platform_fault_domain: int - provisioning_state: str - provisioning_time: str - time_created: str + autoReplaceOnFailure: bool + hostId: str + instanceView: DedicatedHostInstanceView + licenseType: Union[str, DedicatedHostLicenseTypes] + platformFaultDomain: int + provisioningState: str + provisioningTime: str + timeCreated: str virtualMachines: list[SubResourceReadOnly] - virtual_machines: list[SubResourceReadOnly] class azure.mgmt.compute.types.DedicatedHostUpdate(UpdateResource): @@ -23135,27 +23934,26 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.DefaultVirtualMachineScaleSetInfo(TypedDict, total=False): key "constrainedMaximumCapacity": bool key "defaultVirtualMachineScaleSet": ForwardRef('SubResource', module='types') - constrained_maximum_capacity: bool - default_virtual_machine_scale_set: SubResource + constrainedMaximumCapacity: bool + defaultVirtualMachineScaleSet: SubResource class azure.mgmt.compute.types.DiagnosticsProfile(TypedDict, total=False): key "bootDiagnostics": ForwardRef('BootDiagnostics', module='types') - boot_diagnostics: BootDiagnostics + bootDiagnostics: BootDiagnostics class azure.mgmt.compute.types.DiffDiskSettings(TypedDict, total=False): key "enableFullCaching": bool key "option": Union[str, DiffDiskOptions] key "placement": Union[str, DiffDiskPlacement] - enable_full_caching: bool + enableFullCaching: bool option: Union[str, DiffDiskOptions] placement: Union[str, DiffDiskPlacement] class azure.mgmt.compute.types.Disallowed(TypedDict, total=False): diskTypes: list[str] - disk_types: list[str] class azure.mgmt.compute.types.Disk(TrackedResource): @@ -23168,16 +23966,15 @@ namespace azure.mgmt.compute.types key "sku": ForwardRef('DiskSku', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str location: str + managedBy: str managedByExtended: list[str] - managed_by: str - managed_by_extended: list[str] name: str properties: DiskProperties sku: DiskSku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -23191,12 +23988,12 @@ namespace azure.mgmt.compute.types key "properties": ForwardRef('DiskAccessProperties', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str location: str name: str properties: DiskAccessProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23205,15 +24002,19 @@ namespace azure.mgmt.compute.types key "provisioningState": str key "timeCreated": str privateEndpointConnections: list[PrivateEndpointConnection] - private_endpoint_connections: list[PrivateEndpointConnection] - provisioning_state: str - time_created: str + provisioningState: str + timeCreated: str class azure.mgmt.compute.types.DiskAccessUpdate(TypedDict, total=False): tags: dict[str, str] + class azure.mgmt.compute.types.DiskAvailabilityPolicy(TypedDict, total=False): + key "actionOnDiskDelay": Union[str, VirtualMachineDiskDelayAction] + actionOnDiskDelay: Union[str, VirtualMachineDiskDelayAction] + + class azure.mgmt.compute.types.DiskEncryptionSet(TrackedResource): key "id": str key "identity": ForwardRef('EncryptionSetIdentity', module='types') @@ -23227,7 +24028,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: EncryptionSetProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23250,34 +24051,33 @@ namespace azure.mgmt.compute.types key "encryptionType": Union[str, DiskEncryptionSetType] key "federatedClientId": str key "rotationToLatestKeyVersionEnabled": bool - active_key: KeyForDiskEncryptionSet - encryption_type: Union[str, DiskEncryptionSetType] - federated_client_id: str - rotation_to_latest_key_version_enabled: bool + activeKey: KeyForDiskEncryptionSet + encryptionType: Union[str, DiskEncryptionSetType] + federatedClientId: str + rotationToLatestKeyVersionEnabled: bool class azure.mgmt.compute.types.DiskEncryptionSettings(TypedDict, total=False): key "diskEncryptionKey": ForwardRef('KeyVaultSecretReference', module='types') key "enabled": bool key "keyEncryptionKey": ForwardRef('KeyVaultKeyReference', module='types') - disk_encryption_key: KeyVaultSecretReference + diskEncryptionKey: KeyVaultSecretReference enabled: bool - key_encryption_key: KeyVaultKeyReference + keyEncryptionKey: KeyVaultKeyReference class azure.mgmt.compute.types.DiskImageEncryption(TypedDict, total=False): key "diskEncryptionSetId": str - disk_encryption_set_id: str + diskEncryptionSetId: str class azure.mgmt.compute.types.DiskInstanceView(TypedDict, total=False): key "name": str key "storageAlignmentStatus": Union[str, StorageAlignmentStatus] encryptionSettings: list[DiskEncryptionSettings] - encryption_settings: list[DiskEncryptionSettings] name: str statuses: list[InstanceViewStatus] - storage_alignment_status: Union[str, StorageAlignmentStatus] + storageAlignmentStatus: Union[str, StorageAlignmentStatus] class azure.mgmt.compute.types.DiskProperties(TypedDict, total=False): @@ -23313,40 +24113,39 @@ namespace azure.mgmt.compute.types key "tier": str key "timeCreated": str key "uniqueId": str - availability_policy: AvailabilityPolicy - bursting_enabled: bool - bursting_enabled_time: str - completion_percent: float - creation_data: CreationData - data_access_auth_mode: Union[str, DataAccessAuthMode] - disk_access_id: str - disk_iops_read_only: int - disk_iops_read_write: int - disk_m_bps_read_only: int - disk_m_bps_read_write: int - disk_size_bytes: int - disk_size_gb: int - disk_state: Union[str, DiskState] + LastOwnershipUpdateTime: str + availabilityPolicy: AvailabilityPolicy + burstingEnabled: bool + burstingEnabledTime: str + completionPercent: float + creationData: CreationData + dataAccessAuthMode: Union[str, DataAccessAuthMode] + diskAccessId: str + diskIOPSReadOnly: int + diskIOPSReadWrite: int + diskMBpsReadOnly: int + diskMBpsReadWrite: int + diskSizeBytes: int + diskSizeGB: int + diskState: Union[str, DiskState] encryption: Encryption - encryption_settings_collection: EncryptionSettingsCollection - hyper_v_generation: Union[str, HyperVGeneration] - last_ownership_update_time: str - max_shares: int - network_access_policy: Union[str, NetworkAccessPolicy] - optimized_for_frequent_attach: bool - os_type: Union[str, OperatingSystemTypes] - property_updates_in_progress: PropertyUpdatesInProgress - provisioning_state: str - public_network_access: Union[str, PublicNetworkAccess] - purchase_plan: DiskPurchasePlan - security_profile: DiskSecurityProfile + encryptionSettingsCollection: EncryptionSettingsCollection + hyperVGeneration: Union[str, HyperVGeneration] + maxShares: int + networkAccessPolicy: Union[str, NetworkAccessPolicy] + optimizedForFrequentAttach: bool + osType: Union[str, OperatingSystemTypes] + propertyUpdatesInProgress: PropertyUpdatesInProgress + provisioningState: str + publicNetworkAccess: Union[str, PublicNetworkAccess] + purchasePlan: DiskPurchasePlan + securityProfile: DiskSecurityProfile shareInfo: list[ShareInfoElement] - share_info: list[ShareInfoElement] - supported_capabilities: SupportedCapabilities - supports_hibernation: bool + supportedCapabilities: SupportedCapabilities + supportsHibernation: bool tier: str - time_created: str - unique_id: str + timeCreated: str + uniqueId: str class azure.mgmt.compute.types.DiskPurchasePlan(TypedDict, total=False): @@ -23356,7 +24155,7 @@ namespace azure.mgmt.compute.types key "publisher": Required[str] name: str product: str - promotion_code: str + promotionCode: str publisher: str @@ -23366,7 +24165,7 @@ namespace azure.mgmt.compute.types key "sourceDiskRestorePoint": ForwardRef('ApiEntityReference', module='types') encryption: RestorePointEncryption id: str - source_disk_restore_point: ApiEntityReference + sourceDiskRestorePoint: ApiEntityReference class azure.mgmt.compute.types.DiskRestorePointInstanceView(TypedDict, total=False): @@ -23374,14 +24173,14 @@ namespace azure.mgmt.compute.types key "replicationStatus": ForwardRef('DiskRestorePointReplicationStatus', module='types') key "snapshotAccessState": Union[str, SnapshotAccessState] id: str - replication_status: DiskRestorePointReplicationStatus - snapshot_access_state: Union[str, SnapshotAccessState] + replicationStatus: DiskRestorePointReplicationStatus + snapshotAccessState: Union[str, SnapshotAccessState] class azure.mgmt.compute.types.DiskRestorePointReplicationStatus(TypedDict, total=False): key "completionPercent": int key "status": ForwardRef('InstanceViewStatus', module='types') - completion_percent: int + completionPercent: int status: InstanceViewStatus @@ -23389,9 +24188,9 @@ namespace azure.mgmt.compute.types key "confidentialVMVersion": Union[str, ConfidentialVMVersion] key "secureVMDiskEncryptionSetId": str key "securityType": Union[str, DiskSecurityTypes] - confidential_vm_version: Union[str, ConfidentialVMVersion] - secure_vm_disk_encryption_set_id: str - security_type: Union[str, DiskSecurityTypes] + confidentialVMVersion: Union[str, ConfidentialVMVersion] + secureVMDiskEncryptionSetId: str + securityType: Union[str, DiskSecurityTypes] class azure.mgmt.compute.types.DiskSku(TypedDict, total=False): @@ -23431,57 +24230,55 @@ namespace azure.mgmt.compute.types key "supportedCapabilities": ForwardRef('SupportedCapabilities', module='types') key "supportsHibernation": bool key "tier": str - availability_policy: AvailabilityPolicy - bursting_enabled: bool - data_access_auth_mode: Union[str, DataAccessAuthMode] - disk_access_id: str - disk_iops_read_only: int - disk_iops_read_write: int - disk_m_bps_read_only: int - disk_m_bps_read_write: int - disk_size_gb: int + availabilityPolicy: AvailabilityPolicy + burstingEnabled: bool + dataAccessAuthMode: Union[str, DataAccessAuthMode] + diskAccessId: str + diskIOPSReadOnly: int + diskIOPSReadWrite: int + diskMBpsReadOnly: int + diskMBpsReadWrite: int + diskSizeGB: int encryption: Encryption - encryption_settings_collection: EncryptionSettingsCollection - max_shares: int - network_access_policy: Union[str, NetworkAccessPolicy] - optimized_for_frequent_attach: bool - os_type: Union[str, OperatingSystemTypes] - property_updates_in_progress: PropertyUpdatesInProgress - public_network_access: Union[str, PublicNetworkAccess] - purchase_plan: DiskPurchasePlan - supported_capabilities: SupportedCapabilities - supports_hibernation: bool + encryptionSettingsCollection: EncryptionSettingsCollection + maxShares: int + networkAccessPolicy: Union[str, NetworkAccessPolicy] + optimizedForFrequentAttach: bool + osType: Union[str, OperatingSystemTypes] + propertyUpdatesInProgress: PropertyUpdatesInProgress + publicNetworkAccess: Union[str, PublicNetworkAccess] + purchasePlan: DiskPurchasePlan + supportedCapabilities: SupportedCapabilities + supportsHibernation: bool tier: str class azure.mgmt.compute.types.Encryption(TypedDict, total=False): key "diskEncryptionSetId": str key "type": Union[str, EncryptionType] - disk_encryption_set_id: str + diskEncryptionSetId: str type: Union[str, EncryptionType] class azure.mgmt.compute.types.EncryptionIdentity(TypedDict, total=False): key "userAssignedIdentityResourceId": str - user_assigned_identity_resource_id: str + userAssignedIdentityResourceId: str class azure.mgmt.compute.types.EncryptionImages(TypedDict, total=False): key "osDiskImage": ForwardRef('OSDiskImageEncryption', module='types') dataDiskImages: list[DataDiskImageEncryption] - data_disk_images: list[DataDiskImageEncryption] - os_disk_image: OSDiskImageEncryption + osDiskImage: OSDiskImageEncryption class azure.mgmt.compute.types.EncryptionSetIdentity(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": Union[str, DiskEncryptionSetIdentityType] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, DiskEncryptionSetIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentitiesValue] - user_assigned_identities: dict[str, UserAssignedIdentitiesValue] class azure.mgmt.compute.types.EncryptionSetProperties(TypedDict, total=False): @@ -23492,15 +24289,14 @@ namespace azure.mgmt.compute.types key "lastKeyRotationTimestamp": str key "provisioningState": str key "rotationToLatestKeyVersionEnabled": bool - active_key: KeyForDiskEncryptionSet - auto_key_rotation_error: ApiError - encryption_type: Union[str, DiskEncryptionSetType] - federated_client_id: str - last_key_rotation_timestamp: str + activeKey: KeyForDiskEncryptionSet + autoKeyRotationError: ApiError + encryptionType: Union[str, DiskEncryptionSetType] + federatedClientId: str + lastKeyRotationTimestamp: str previousKeys: list[KeyForDiskEncryptionSet] - previous_keys: list[KeyForDiskEncryptionSet] - provisioning_state: str - rotation_to_latest_key_version_enabled: bool + provisioningState: str + rotationToLatestKeyVersionEnabled: bool class azure.mgmt.compute.types.EncryptionSettingsCollection(TypedDict, total=False): @@ -23508,22 +24304,21 @@ namespace azure.mgmt.compute.types key "encryptionSettingsVersion": str enabled: bool encryptionSettings: list[EncryptionSettingsElement] - encryption_settings: list[EncryptionSettingsElement] - encryption_settings_version: str + encryptionSettingsVersion: str class azure.mgmt.compute.types.EncryptionSettingsElement(TypedDict, total=False): key "diskEncryptionKey": ForwardRef('KeyVaultAndSecretReference', module='types') key "keyEncryptionKey": ForwardRef('KeyVaultAndKeyReference', module='types') - disk_encryption_key: KeyVaultAndSecretReference - key_encryption_key: KeyVaultAndKeyReference + diskEncryptionKey: KeyVaultAndSecretReference + keyEncryptionKey: KeyVaultAndKeyReference class azure.mgmt.compute.types.EventGridAndResourceGraph(TypedDict, total=False): key "enable": bool key "scheduledEventsApiVersion": str enable: bool - scheduled_events_api_version: str + scheduledEventsApiVersion: str class azure.mgmt.compute.types.ExecutedValidation(TypedDict, total=False): @@ -23531,7 +24326,7 @@ namespace azure.mgmt.compute.types key "status": Union[str, ValidationStatus] key "type": str key "version": str - execution_time: str + executionTime: str status: Union[str, ValidationStatus] type: str version: str @@ -23549,8 +24344,8 @@ namespace azure.mgmt.compute.types key "expiryDuration": str key "gracePeriod": str enabled: bool - expiry_duration: str - grace_period: str + expiryDuration: str + gracePeriod: str class azure.mgmt.compute.types.Gallery(TrackedResource): @@ -23566,7 +24361,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23582,7 +24377,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryApplicationProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23603,7 +24398,7 @@ namespace azure.mgmt.compute.types key "name": Required[str] key "required": bool key "type": Union[str, GalleryApplicationCustomActionParameterType] - default_value: str + defaultValue: str description: str name: str required: bool @@ -23618,13 +24413,12 @@ namespace azure.mgmt.compute.types key "releaseNoteUri": str key "supportedOSType": Required[Union[str, OperatingSystemTypes]] customActions: list[GalleryApplicationCustomAction] - custom_actions: list[GalleryApplicationCustomAction] description: str - end_of_life_date: str + endOfLifeDate: str eula: str - privacy_statement_uri: str - release_note_uri: str - supported_os_type: Union[str, OperatingSystemTypes] + privacyStatementUri: str + releaseNoteUri: str + supportedOSType: Union[str, OperatingSystemTypes] class azure.mgmt.compute.types.GalleryApplicationUpdate(UpdateResourceDefinition): @@ -23650,7 +24444,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryApplicationVersionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23660,10 +24454,10 @@ namespace azure.mgmt.compute.types key "publishingProfile": Required[GalleryApplicationVersionPublishingProfile] key "replicationStatus": ForwardRef('ReplicationStatus', module='types') key "safetyProfile": ForwardRef('GalleryApplicationVersionSafetyProfile', module='types') - provisioning_state: Union[str, GalleryProvisioningState] - publishing_profile: GalleryApplicationVersionPublishingProfile - replication_status: ReplicationStatus - safety_profile: GalleryApplicationVersionSafetyProfile + provisioningState: Union[str, GalleryProvisioningState] + publishingProfile: GalleryApplicationVersionPublishingProfile + replicationStatus: ReplicationStatus + safetyProfile: GalleryApplicationVersionSafetyProfile class azure.mgmt.compute.types.GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): @@ -23679,29 +24473,25 @@ namespace azure.mgmt.compute.types key "storageAccountStrategy": Union[str, StorageAccountStrategy] key "storageAccountType": Union[str, StorageAccountType] advancedSettings: dict[str, str] - advanced_settings: dict[str, str] customActions: list[GalleryApplicationCustomAction] - custom_actions: list[GalleryApplicationCustomAction] - enable_health_check: bool - end_of_life_date: str - exclude_from_latest: bool - manage_actions: UserArtifactManage - published_date: str - replica_count: int - replication_mode: Union[str, ReplicationMode] + enableHealthCheck: bool + endOfLifeDate: str + excludeFromLatest: bool + manageActions: UserArtifactManage + publishedDate: str + replicaCount: int + replicationMode: Union[str, ReplicationMode] settings: UserArtifactSettings source: UserArtifactSource - storage_account_strategy: Union[str, StorageAccountStrategy] - storage_account_type: Union[str, StorageAccountType] + storageAccountStrategy: Union[str, StorageAccountStrategy] + storageAccountType: Union[str, StorageAccountType] targetExtendedLocations: list[GalleryTargetExtendedLocation] targetRegions: list[TargetRegion] - target_extended_locations: list[GalleryTargetExtendedLocation] - target_regions: list[TargetRegion] class azure.mgmt.compute.types.GalleryApplicationVersionSafetyProfile(GalleryArtifactSafetyProfileBase): key "allowDeletionOfReplicatedLocations": bool - allow_deletion_of_replicated_locations: bool + allowDeletionOfReplicatedLocations: bool class azure.mgmt.compute.types.GalleryApplicationVersionUpdate(UpdateResourceDefinition): @@ -23724,31 +24514,29 @@ namespace azure.mgmt.compute.types key "replicationMode": Union[str, ReplicationMode] key "storageAccountStrategy": Union[str, StorageAccountStrategy] key "storageAccountType": Union[str, StorageAccountType] - end_of_life_date: str - exclude_from_latest: bool - published_date: str - replica_count: int - replication_mode: Union[str, ReplicationMode] - storage_account_strategy: Union[str, StorageAccountStrategy] - storage_account_type: Union[str, StorageAccountType] + endOfLifeDate: str + excludeFromLatest: bool + publishedDate: str + replicaCount: int + replicationMode: Union[str, ReplicationMode] + storageAccountStrategy: Union[str, StorageAccountStrategy] + storageAccountType: Union[str, StorageAccountType] targetExtendedLocations: list[GalleryTargetExtendedLocation] targetRegions: list[TargetRegion] - target_extended_locations: list[GalleryTargetExtendedLocation] - target_regions: list[TargetRegion] class azure.mgmt.compute.types.GalleryArtifactSafetyProfileBase(TypedDict, total=False): key "allowDeletionOfReplicatedLocations": bool - allow_deletion_of_replicated_locations: bool + allowDeletionOfReplicatedLocations: bool class azure.mgmt.compute.types.GalleryArtifactVersionFullSource(GalleryArtifactVersionSource): key "communityGalleryImageId": str key "id": str key "virtualMachineId": str - community_gallery_image_id: str + communityGalleryImageId: str id: str - virtual_machine_id: str + virtualMachineId: str class azure.mgmt.compute.types.GalleryArtifactVersionSource(TypedDict, total=False): @@ -23761,9 +24549,9 @@ namespace azure.mgmt.compute.types key "lun": Required[int] key "sizeInGB": int key "source": ForwardRef('GalleryDiskImageSource', module='types') - host_caching: Union[str, HostCaching] + hostCaching: Union[str, HostCaching] lun: int - size_in_gb: int + sizeInGB: int source: GalleryDiskImageSource @@ -23771,8 +24559,8 @@ namespace azure.mgmt.compute.types key "hostCaching": Union[str, HostCaching] key "sizeInGB": int key "source": ForwardRef('GalleryDiskImageSource', module='types') - host_caching: Union[str, HostCaching] - size_in_gb: int + hostCaching: Union[str, HostCaching] + sizeInGB: int source: GalleryDiskImageSource @@ -23781,7 +24569,7 @@ namespace azure.mgmt.compute.types key "storageAccountId": str key "uri": str id: str - storage_account_id: str + storageAccountId: str uri: str @@ -23794,18 +24582,17 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.GalleryIdentifier(TypedDict, total=False): key "uniqueName": str - unique_name: str + uniqueName: str class azure.mgmt.compute.types.GalleryIdentity(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": Union[str, ResourceIdentityType] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ResourceIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentitiesValue] - user_assigned_identities: dict[str, UserAssignedIdentitiesValue] class azure.mgmt.compute.types.GalleryImage(TrackedResource): @@ -23819,7 +24606,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryImageProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23829,7 +24616,7 @@ namespace azure.mgmt.compute.types key "startsAtVersion": str key "value": str name: str - starts_at_version: str + startsAtVersion: str value: str @@ -23858,22 +24645,22 @@ namespace azure.mgmt.compute.types key "purchasePlan": ForwardRef('ImagePurchasePlan', module='types') key "recommended": ForwardRef('RecommendedMachineConfiguration', module='types') key "releaseNoteUri": str - allow_update_image: bool + allowUpdateImage: bool architecture: Union[str, Architecture] description: str disallowed: Disallowed - end_of_life_date: str + endOfLifeDate: str eula: str features: list[GalleryImageFeature] - hyper_v_generation: Union[str, HyperVGeneration] + hyperVGeneration: Union[str, HyperVGeneration] identifier: GalleryImageIdentifier - os_state: Union[str, OperatingSystemStateTypes] - os_type: Union[str, OperatingSystemTypes] - privacy_statement_uri: str - provisioning_state: Union[str, GalleryProvisioningState] - purchase_plan: ImagePurchasePlan + osState: Union[str, OperatingSystemStateTypes] + osType: Union[str, OperatingSystemTypes] + privacyStatementUri: str + provisioningState: Union[str, GalleryProvisioningState] + purchasePlan: ImagePurchasePlan recommended: RecommendedMachineConfiguration - release_note_uri: str + releaseNoteUri: str class azure.mgmt.compute.types.GalleryImageUpdate(UpdateResourceDefinition): @@ -23899,7 +24686,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryImageVersionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -23913,14 +24700,14 @@ namespace azure.mgmt.compute.types key "securityProfile": ForwardRef('ImageVersionSecurityProfile', module='types') key "storageProfile": Required[GalleryImageVersionStorageProfile] key "validationsProfile": ForwardRef('ValidationsProfile', module='types') - provisioning_state: Union[str, GalleryProvisioningState] - publishing_profile: GalleryImageVersionPublishingProfile - replication_status: ReplicationStatus + provisioningState: Union[str, GalleryProvisioningState] + publishingProfile: GalleryImageVersionPublishingProfile + replicationStatus: ReplicationStatus restore: bool - safety_profile: GalleryImageVersionSafetyProfile - security_profile: ImageVersionSecurityProfile - storage_profile: GalleryImageVersionStorageProfile - validations_profile: ValidationsProfile + safetyProfile: GalleryImageVersionSafetyProfile + securityProfile: ImageVersionSecurityProfile + storageProfile: GalleryImageVersionStorageProfile + validationsProfile: ValidationsProfile class azure.mgmt.compute.types.GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase): @@ -23931,44 +24718,39 @@ namespace azure.mgmt.compute.types key "replicationMode": Union[str, ReplicationMode] key "storageAccountStrategy": Union[str, StorageAccountStrategy] key "storageAccountType": Union[str, StorageAccountType] - end_of_life_date: str - exclude_from_latest: bool - published_date: str - replica_count: int - replication_mode: Union[str, ReplicationMode] - storage_account_strategy: Union[str, StorageAccountStrategy] - storage_account_type: Union[str, StorageAccountType] + endOfLifeDate: str + excludeFromLatest: bool + publishedDate: str + replicaCount: int + replicationMode: Union[str, ReplicationMode] + storageAccountStrategy: Union[str, StorageAccountStrategy] + storageAccountType: Union[str, StorageAccountType] targetExtendedLocations: list[GalleryTargetExtendedLocation] targetRegions: list[TargetRegion] - target_extended_locations: list[GalleryTargetExtendedLocation] - target_regions: list[TargetRegion] class azure.mgmt.compute.types.GalleryImageVersionSafetyProfile(GalleryArtifactSafetyProfileBase): key "allowDeletionOfReplicatedLocations": bool key "blockDeletionBeforeEndOfLife": bool key "reportedForPolicyViolation": bool - allow_deletion_of_replicated_locations: bool - block_deletion_before_end_of_life: bool + allowDeletionOfReplicatedLocations: bool + blockDeletionBeforeEndOfLife: bool policyViolations: list[PolicyViolation] - policy_violations: list[PolicyViolation] - reported_for_policy_violation: bool + reportedForPolicyViolation: bool class azure.mgmt.compute.types.GalleryImageVersionStorageProfile(TypedDict, total=False): key "osDiskImage": ForwardRef('GalleryOSDiskImage', module='types') key "source": ForwardRef('GalleryArtifactVersionFullSource', module='types') dataDiskImages: list[GalleryDataDiskImage] - data_disk_images: list[GalleryDataDiskImage] - os_disk_image: GalleryOSDiskImage + osDiskImage: GalleryOSDiskImage source: GalleryArtifactVersionFullSource class azure.mgmt.compute.types.GalleryImageVersionUefiSettings(TypedDict, total=False): key "additionalSignatures": ForwardRef('UefiKeySignatures', module='types') - additional_signatures: UefiKeySignatures + additionalSignatures: UefiKeySignatures signatureTemplateNames: list[Union[str, UefiSignatureTemplateName]] - signature_template_names: list[Union[str, UefiSignatureTemplateName]] class azure.mgmt.compute.types.GalleryImageVersionUpdate(UpdateResourceDefinition): @@ -23994,7 +24776,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryInVMAccessControlProfileProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -24004,10 +24786,10 @@ namespace azure.mgmt.compute.types key "description": str key "osType": Required[Union[str, OperatingSystemTypes]] key "provisioningState": Union[str, GalleryProvisioningState] - applicable_host_endpoint: Union[str, EndpointTypes] + applicableHostEndpoint: Union[str, EndpointTypes] description: str - os_type: Union[str, OperatingSystemTypes] - provisioning_state: Union[str, GalleryProvisioningState] + osType: Union[str, OperatingSystemTypes] + provisioningState: Union[str, GalleryProvisioningState] class azure.mgmt.compute.types.GalleryInVMAccessControlProfileUpdate(UpdateResourceDefinition): @@ -24033,7 +24815,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryInVMAccessControlProfileVersionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -24046,15 +24828,14 @@ namespace azure.mgmt.compute.types key "publishedDate": str key "replicationStatus": ForwardRef('ReplicationStatus', module='types') key "rules": ForwardRef('AccessControlRules', module='types') - default_access: Union[str, EndpointAccess] - exclude_from_latest: bool + defaultAccess: Union[str, EndpointAccess] + excludeFromLatest: bool mode: Union[str, AccessControlRulesMode] - provisioning_state: Union[str, GalleryProvisioningState] - published_date: str - replication_status: ReplicationStatus + provisioningState: Union[str, GalleryProvisioningState] + publishedDate: str + replicationStatus: ReplicationStatus rules: AccessControlRules targetLocations: list[TargetRegion] - target_locations: list[TargetRegion] class azure.mgmt.compute.types.GalleryInVMAccessControlProfileVersionUpdate(UpdateResourceDefinition): @@ -24073,8 +24854,8 @@ namespace azure.mgmt.compute.types key "hostCaching": Union[str, HostCaching] key "sizeInGB": int key "source": ForwardRef('GalleryDiskImageSource', module='types') - host_caching: Union[str, HostCaching] - size_in_gb: int + hostCaching: Union[str, HostCaching] + sizeInGB: int source: GalleryDiskImageSource @@ -24087,15 +24868,15 @@ namespace azure.mgmt.compute.types key "softDeletePolicy": ForwardRef('SoftDeletePolicy', module='types') description: str identifier: GalleryIdentifier - provisioning_state: Union[str, GalleryProvisioningState] - sharing_profile: SharingProfile - sharing_status: SharingStatus - soft_delete_policy: SoftDeletePolicy + provisioningState: Union[str, GalleryProvisioningState] + sharingProfile: SharingProfile + sharingStatus: SharingStatus + softDeletePolicy: SoftDeletePolicy class azure.mgmt.compute.types.GalleryResourceProfilePropertiesBase(TypedDict, total=False): key "provisioningState": Union[str, GalleryProvisioningState] - provisioning_state: Union[str, GalleryProvisioningState] + provisioningState: Union[str, GalleryProvisioningState] class azure.mgmt.compute.types.GalleryResourceProfileVersionPropertiesBase(TypedDict, total=False): @@ -24103,12 +24884,11 @@ namespace azure.mgmt.compute.types key "provisioningState": Union[str, GalleryProvisioningState] key "publishedDate": str key "replicationStatus": ForwardRef('ReplicationStatus', module='types') - exclude_from_latest: bool - provisioning_state: Union[str, GalleryProvisioningState] - published_date: str - replication_status: ReplicationStatus + excludeFromLatest: bool + provisioningState: Union[str, GalleryProvisioningState] + publishedDate: str + replicationStatus: ReplicationStatus targetLocations: list[TargetRegion] - target_locations: list[TargetRegion] class azure.mgmt.compute.types.GalleryScript(TrackedResource): @@ -24122,7 +24902,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryScriptProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -24135,12 +24915,11 @@ namespace azure.mgmt.compute.types key "name": Required[str] key "required": bool key "type": Union[str, GalleryScriptParameterType] - default_value: str + defaultValue: str description: str enumValues: list[str] - enum_values: list[str] - max_value: str - min_value: str + maxValue: str + minValue: str name: str required: bool type: Union[str, GalleryScriptParameterType] @@ -24155,12 +24934,12 @@ namespace azure.mgmt.compute.types key "releaseNoteUri": str key "supportedOSType": Required[Union[str, OperatingSystemTypes]] description: str - end_of_life_date: str + endOfLifeDate: str eula: str - privacy_statement_uri: str - provisioning_state: Union[str, GalleryProvisioningState] - release_note_uri: str - supported_os_type: Union[str, OperatingSystemTypes] + privacyStatementUri: str + provisioningState: Union[str, GalleryProvisioningState] + releaseNoteUri: str + supportedOSType: Union[str, OperatingSystemTypes] class azure.mgmt.compute.types.GalleryScriptUpdate(UpdateResourceDefinition): @@ -24186,7 +24965,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: GalleryScriptVersionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -24196,10 +24975,10 @@ namespace azure.mgmt.compute.types key "publishingProfile": Required[GalleryScriptVersionPublishingProfile] key "replicationStatus": ForwardRef('ReplicationStatus', module='types') key "safetyProfile": ForwardRef('GalleryScriptVersionSafetyProfile', module='types') - provisioning_state: Union[str, GalleryProvisioningState] - publishing_profile: GalleryScriptVersionPublishingProfile - replication_status: ReplicationStatus - safety_profile: GalleryScriptVersionSafetyProfile + provisioningState: Union[str, GalleryProvisioningState] + publishingProfile: GalleryScriptVersionPublishingProfile + replicationStatus: ReplicationStatus + safetyProfile: GalleryScriptVersionSafetyProfile class azure.mgmt.compute.types.GalleryScriptVersionPublishingProfile(GalleryArtifactPublishingProfileBase): @@ -24211,23 +24990,21 @@ namespace azure.mgmt.compute.types key "source": Required[ScriptSource] key "storageAccountStrategy": Union[str, StorageAccountStrategy] key "storageAccountType": Union[str, StorageAccountType] - end_of_life_date: str - exclude_from_latest: bool - published_date: str - replica_count: int - replication_mode: Union[str, ReplicationMode] + endOfLifeDate: str + excludeFromLatest: bool + publishedDate: str + replicaCount: int + replicationMode: Union[str, ReplicationMode] source: ScriptSource - storage_account_strategy: Union[str, StorageAccountStrategy] - storage_account_type: Union[str, StorageAccountType] + storageAccountStrategy: Union[str, StorageAccountStrategy] + storageAccountType: Union[str, StorageAccountType] targetExtendedLocations: list[GalleryTargetExtendedLocation] targetRegions: list[TargetRegion] - target_extended_locations: list[GalleryTargetExtendedLocation] - target_regions: list[TargetRegion] class azure.mgmt.compute.types.GalleryScriptVersionSafetyProfile(GalleryArtifactSafetyProfileBase): key "allowDeletionOfReplicatedLocations": bool - allow_deletion_of_replicated_locations: bool + allowDeletionOfReplicatedLocations: bool class azure.mgmt.compute.types.GalleryScriptVersionUpdate(UpdateResourceDefinition): @@ -24249,10 +25026,10 @@ namespace azure.mgmt.compute.types key "name": str key "storageAccountType": Union[str, EdgeZoneStorageAccountType] encryption: EncryptionImages - extended_location: GalleryExtendedLocation - extended_location_replica_count: int + extendedLocation: GalleryExtendedLocation + extendedLocationReplicaCount: int name: str - storage_account_type: Union[str, EdgeZoneStorageAccountType] + storageAccountType: Union[str, EdgeZoneStorageAccountType] class azure.mgmt.compute.types.GalleryUpdate(UpdateResourceDefinition): @@ -24274,7 +25051,7 @@ namespace azure.mgmt.compute.types key "description": str key "name": Required[str] key "required": bool - default_value: str + defaultValue: str description: str name: str required: bool @@ -24286,23 +25063,27 @@ namespace azure.mgmt.compute.types key "fileFormat": Union[str, FileFormat] key "getSecureVMGuestStateSAS": bool access: Union[str, AccessLevel] - duration_in_seconds: int - file_format: Union[str, FileFormat] - get_secure_vm_guest_state_sas: bool + durationInSeconds: int + fileFormat: Union[str, FileFormat] + getSecureVMGuestStateSAS: bool class azure.mgmt.compute.types.HardwareProfile(TypedDict, total=False): + key "processorMode": Union[str, ProcessorMode] key "vmSize": Union[str, VirtualMachineSizeTypes] key "vmSizeProperties": ForwardRef('VMSizeProperties', module='types') - vm_size: Union[str, VirtualMachineSizeTypes] - vm_size_properties: VMSizeProperties + processorMode: Union[str, ProcessorMode] + vmSize: Union[str, VirtualMachineSizeTypes] + vmSizeProperties: VMSizeProperties class azure.mgmt.compute.types.HostEndpointSettings(TypedDict, total=False): key "inVMAccessControlProfileReferenceId": str key "mode": Union[str, Modes] - in_vm_access_control_profile_reference_id: str + key "useLocalFileRules": bool + inVMAccessControlProfileReferenceId: str mode: Union[str, Modes] + useLocalFileRules: bool class azure.mgmt.compute.types.Image(TrackedResource): @@ -24313,12 +25094,12 @@ namespace azure.mgmt.compute.types key "properties": ForwardRef('ImageProperties', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str location: str name: str properties: ImageProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -24332,14 +25113,14 @@ namespace azure.mgmt.compute.types key "managedDisk": ForwardRef('SubResource', module='types') key "snapshot": ForwardRef('SubResource', module='types') key "storageAccountType": Union[str, StorageAccountTypes] - blob_uri: str + blobUri: str caching: Union[str, CachingTypes] - disk_encryption_set: DiskEncryptionSetParameters - disk_size_gb: int + diskEncryptionSet: DiskEncryptionSetParameters + diskSizeGB: int lun: int - managed_disk: SubResource + managedDisk: SubResource snapshot: SubResource - storage_account_type: Union[str, StorageAccountTypes] + storageAccountType: Union[str, StorageAccountTypes] class azure.mgmt.compute.types.ImageDisk(TypedDict, total=False): @@ -24350,13 +25131,13 @@ namespace azure.mgmt.compute.types key "managedDisk": ForwardRef('SubResource', module='types') key "snapshot": ForwardRef('SubResource', module='types') key "storageAccountType": Union[str, StorageAccountTypes] - blob_uri: str + blobUri: str caching: Union[str, CachingTypes] - disk_encryption_set: DiskEncryptionSetParameters - disk_size_gb: int - managed_disk: SubResource + diskEncryptionSet: DiskEncryptionSetParameters + diskSizeGB: int + managedDisk: SubResource snapshot: SubResource - storage_account_type: Union[str, StorageAccountTypes] + storageAccountType: Union[str, StorageAccountTypes] class azure.mgmt.compute.types.ImageDiskReference(TypedDict, total=False): @@ -24364,10 +25145,10 @@ namespace azure.mgmt.compute.types key "id": str key "lun": int key "sharedGalleryImageId": str - community_gallery_image_id: str + communityGalleryImageId: str id: str lun: int - shared_gallery_image_id: str + sharedGalleryImageId: str class azure.mgmt.compute.types.ImageOSDisk(ImageDisk): @@ -24380,15 +25161,15 @@ namespace azure.mgmt.compute.types key "osType": Required[Union[str, OperatingSystemTypes]] key "snapshot": ForwardRef('SubResource', module='types') key "storageAccountType": Union[str, StorageAccountTypes] - blob_uri: str + blobUri: str caching: Union[str, CachingTypes] - disk_encryption_set: DiskEncryptionSetParameters - disk_size_gb: int - managed_disk: SubResource - os_state: Union[str, OperatingSystemStateTypes] - os_type: Union[str, OperatingSystemTypes] + diskEncryptionSet: DiskEncryptionSetParameters + diskSizeGB: int + managedDisk: SubResource + osState: Union[str, OperatingSystemStateTypes] + osType: Union[str, OperatingSystemTypes] snapshot: SubResource - storage_account_type: Union[str, StorageAccountTypes] + storageAccountType: Union[str, StorageAccountTypes] class azure.mgmt.compute.types.ImageProperties(TypedDict, total=False): @@ -24396,10 +25177,10 @@ namespace azure.mgmt.compute.types key "provisioningState": str key "sourceVirtualMachine": ForwardRef('SubResource', module='types') key "storageProfile": ForwardRef('ImageStorageProfile', module='types') - hyper_v_generation: Union[str, HyperVGenerationTypes] - provisioning_state: str - source_virtual_machine: SubResource - storage_profile: ImageStorageProfile + hyperVGeneration: Union[str, HyperVGenerationTypes] + provisioningState: str + sourceVirtualMachine: SubResource + storageProfile: ImageStorageProfile class azure.mgmt.compute.types.ImagePurchasePlan(TypedDict, total=False): @@ -24420,12 +25201,12 @@ namespace azure.mgmt.compute.types key "sharedGalleryImageId": str key "sku": str key "version": str - community_gallery_image_id: str - exact_version: str + communityGalleryImageId: str + exactVersion: str id: str offer: str publisher: str - shared_gallery_image_id: str + sharedGalleryImageId: str sku: str version: str @@ -24434,9 +25215,8 @@ namespace azure.mgmt.compute.types key "osDisk": ForwardRef('ImageOSDisk', module='types') key "zoneResilient": bool dataDisks: list[ImageDataDisk] - data_disks: list[ImageDataDisk] - os_disk: ImageOSDisk - zone_resilient: bool + osDisk: ImageOSDisk + zoneResilient: bool class azure.mgmt.compute.types.ImageUpdate(UpdateResource): @@ -24447,7 +25227,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.ImageVersionSecurityProfile(TypedDict, total=False): key "uefiSettings": ForwardRef('GalleryImageVersionUefiSettings', module='types') - uefi_settings: GalleryImageVersionUefiSettings + uefiSettings: GalleryImageVersionUefiSettings class azure.mgmt.compute.types.ImmutabilityPolicy(TypedDict, total=False): @@ -24456,24 +25236,24 @@ namespace azure.mgmt.compute.types key "policyExpirationTime": str key "policyStartTime": str key "type": Union[str, ImmutabilityPolicyType] - immutability_duration_days: int - is_policy_expired: bool - policy_expiration_time: str - policy_start_time: str + immutabilityDurationDays: int + isPolicyExpired: bool + policyExpirationTime: str + policyStartTime: str type: Union[str, ImmutabilityPolicyType] class azure.mgmt.compute.types.ImmutabilityPolicyData(TypedDict, total=False): key "immutabilityDurationDays": Required[int] key "type": Required[Union[str, ImmutabilityPolicyType]] - immutability_duration_days: int + immutabilityDurationDays: int type: Union[str, ImmutabilityPolicyType] class azure.mgmt.compute.types.ImmutabilityPolicyLockData(TypedDict, total=False): key "immutabilityDurationDays": Required[int] key "type": Required[Union[str, ImmutabilityPolicyType]] - immutability_duration_days: int + immutabilityDurationDays: int type: Union[str, ImmutabilityPolicyType] @@ -24491,7 +25271,7 @@ namespace azure.mgmt.compute.types key "message": str key "time": str code: str - display_status: str + displayStatus: str level: Union[str, StatusLevelTypes] message: str time: str @@ -24512,7 +25292,7 @@ namespace azure.mgmt.compute.types placement: Placement properties: InterconnectBlockProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -24520,13 +25300,13 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.InterconnectBlockInstanceView(TypedDict, total=False): key "currentCapacity": int - current_capacity: int + currentCapacity: int statuses: list[InstanceViewStatus] class azure.mgmt.compute.types.InterconnectBlockProfile(TypedDict, total=False): key "interconnectBlock": ForwardRef('ApiEntityReference', module='types') - interconnect_block: ApiEntityReference + interconnectBlock: ApiEntityReference class azure.mgmt.compute.types.InterconnectBlockProperties(TypedDict, total=False): @@ -24536,14 +25316,13 @@ namespace azure.mgmt.compute.types key "provisioningState": str key "provisioningTime": str key "timeCreated": str - instance_view: InterconnectBlockInstanceView - interconnect_block_id: str - interconnect_group: ApiEntityReference - provisioning_state: str - provisioning_time: str - time_created: str + instanceView: InterconnectBlockInstanceView + interconnectBlockId: str + interconnectGroup: ApiEntityReference + provisioningState: str + provisioningTime: str + timeCreated: str virtualMachinesAssociated: list[SubResourceReadOnly] - virtual_machines_associated: list[SubResourceReadOnly] class azure.mgmt.compute.types.InterconnectBlockUpdate(UpdateResource): @@ -24554,48 +25333,48 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.InterconnectGroupProfile(TypedDict, total=False): key "interconnectGroup": ForwardRef('SubResource', module='types') - interconnect_group: SubResource + interconnectGroup: SubResource subgroups: list[SubResource] class azure.mgmt.compute.types.InterconnectInstanceView(TypedDict, total=False): key "interconnectSubgroupId": str - interconnect_subgroup_id: str + interconnectSubgroupId: str class azure.mgmt.compute.types.KeyForDiskEncryptionSet(TypedDict, total=False): key "keyUrl": Required[str] key "sourceVault": ForwardRef('SourceVault', module='types') - key_url: str - source_vault: SourceVault + keyUrl: str + sourceVault: SourceVault class azure.mgmt.compute.types.KeyVaultAndKeyReference(TypedDict, total=False): key "keyUrl": Required[str] key "sourceVault": Required[SourceVault] - key_url: str - source_vault: SourceVault + keyUrl: str + sourceVault: SourceVault class azure.mgmt.compute.types.KeyVaultAndSecretReference(TypedDict, total=False): key "secretUrl": Required[str] key "sourceVault": Required[SourceVault] - secret_url: str - source_vault: SourceVault + secretUrl: str + sourceVault: SourceVault class azure.mgmt.compute.types.KeyVaultKeyReference(TypedDict, total=False): key "keyUrl": Required[str] key "sourceVault": Required[SubResource] - key_url: str - source_vault: SubResource + keyUrl: str + sourceVault: SubResource class azure.mgmt.compute.types.KeyVaultSecretReference(TypedDict, total=False): key "secretUrl": Required[str] key "sourceVault": Required[SubResource] - secret_url: str - source_vault: SubResource + secretUrl: str + sourceVault: SubResource class azure.mgmt.compute.types.LastPatchInstallationSummary(TypedDict, total=False): @@ -24611,15 +25390,15 @@ namespace azure.mgmt.compute.types key "startTime": str key "status": Union[str, PatchOperationStatus] error: ApiError - excluded_patch_count: int - failed_patch_count: int - installation_activity_id: str - installed_patch_count: int - last_modified_time: str - maintenance_window_exceeded: bool - not_selected_patch_count: int - pending_patch_count: int - start_time: str + excludedPatchCount: int + failedPatchCount: int + installationActivityId: str + installedPatchCount: int + lastModifiedTime: str + maintenanceWindowExceeded: bool + notSelectedPatchCount: int + pendingPatchCount: int + startTime: str status: Union[str, PatchOperationStatus] @@ -24627,14 +25406,13 @@ namespace azure.mgmt.compute.types key "defaultAction": Union[str, LifecycleHookAction] key "type": Union[str, VMScaleSetLifecycleHookEventType] key "waitDuration": str - default_action: Union[str, LifecycleHookAction] + defaultAction: Union[str, LifecycleHookAction] type: Union[str, VMScaleSetLifecycleHookEventType] - wait_duration: str + waitDuration: str class azure.mgmt.compute.types.LifecycleHooksProfile(TypedDict, total=False): lifecycleHooks: list[LifecycleHook] - lifecycle_hooks: list[LifecycleHook] class azure.mgmt.compute.types.LinuxConfiguration(TypedDict, total=False): @@ -24643,38 +25421,35 @@ namespace azure.mgmt.compute.types key "patchSettings": ForwardRef('LinuxPatchSettings', module='types') key "provisionVMAgent": bool key "ssh": ForwardRef('SshConfiguration', module='types') - disable_password_authentication: bool - enable_vm_agent_platform_updates: bool - patch_settings: LinuxPatchSettings - provision_vm_agent: bool + disablePasswordAuthentication: bool + enableVMAgentPlatformUpdates: bool + patchSettings: LinuxPatchSettings + provisionVMAgent: bool ssh: SshConfiguration class azure.mgmt.compute.types.LinuxParameters(TypedDict, total=False): key "maintenanceRunId": str classificationsToInclude: list[Union[str, VMGuestPatchClassificationLinux]] - classifications_to_include: list[Union[str, VMGuestPatchClassificationLinux]] - maintenance_run_id: str + maintenanceRunId: str packageNameMasksToExclude: list[str] packageNameMasksToInclude: list[str] - package_name_masks_to_exclude: list[str] - package_name_masks_to_include: list[str] class azure.mgmt.compute.types.LinuxPatchSettings(TypedDict, total=False): key "assessmentMode": Union[str, LinuxPatchAssessmentMode] key "automaticByPlatformSettings": ForwardRef('LinuxVMGuestPatchAutomaticByPlatformSettings', module='types') key "patchMode": Union[str, LinuxVMGuestPatchMode] - assessment_mode: Union[str, LinuxPatchAssessmentMode] - automatic_by_platform_settings: LinuxVMGuestPatchAutomaticByPlatformSettings - patch_mode: Union[str, LinuxVMGuestPatchMode] + assessmentMode: Union[str, LinuxPatchAssessmentMode] + automaticByPlatformSettings: LinuxVMGuestPatchAutomaticByPlatformSettings + patchMode: Union[str, LinuxVMGuestPatchMode] class azure.mgmt.compute.types.LinuxVMGuestPatchAutomaticByPlatformSettings(TypedDict, total=False): key "bypassPlatformSafetyChecksOnUserSchedule": bool key "rebootSetting": Union[str, LinuxVMGuestPatchAutomaticByPlatformRebootSetting] - bypass_platform_safety_checks_on_user_schedule: bool - reboot_setting: Union[str, LinuxVMGuestPatchAutomaticByPlatformRebootSetting] + bypassPlatformSafetyChecksOnUserSchedule: bool + rebootSetting: Union[str, LinuxVMGuestPatchAutomaticByPlatformRebootSetting] class azure.mgmt.compute.types.LogAnalyticsInputBase(TypedDict, total=False): @@ -24686,14 +25461,14 @@ namespace azure.mgmt.compute.types key "groupByThrottlePolicy": bool key "groupByUserAgent": bool key "toTime": Required[str] - blob_container_sas_uri: str - from_time: str - group_by_client_application_id: bool - group_by_operation_name: bool - group_by_resource_name: bool - group_by_throttle_policy: bool - group_by_user_agent: bool - to_time: str + blobContainerSasUri: str + fromTime: str + groupByClientApplicationId: bool + groupByOperationName: bool + groupByResourceName: bool + groupByThrottlePolicy: bool + groupByUserAgent: bool + toTime: str class azure.mgmt.compute.types.MaintenanceRedeployStatus(TypedDict, total=False): @@ -24704,24 +25479,26 @@ namespace azure.mgmt.compute.types key "maintenanceWindowStartTime": str key "preMaintenanceWindowEndTime": str key "preMaintenanceWindowStartTime": str - is_customer_initiated_maintenance_allowed: bool - last_operation_message: str - last_operation_result_code: Union[str, MaintenanceOperationResultCodeTypes] - maintenance_window_end_time: str - maintenance_window_start_time: str - pre_maintenance_window_end_time: str - pre_maintenance_window_start_time: str + isCustomerInitiatedMaintenanceAllowed: bool + lastOperationMessage: str + lastOperationResultCode: Union[str, MaintenanceOperationResultCodeTypes] + maintenanceWindowEndTime: str + maintenanceWindowStartTime: str + preMaintenanceWindowEndTime: str + preMaintenanceWindowStartTime: str class azure.mgmt.compute.types.ManagedDiskParameters(SubResource): + key "additionalDiskProperties": ForwardRef('AdditionalDiskProperties', module='types') key "diskEncryptionSet": ForwardRef('DiskEncryptionSetParameters', module='types') key "id": str key "securityProfile": ForwardRef('VMDiskSecurityProfile', module='types') key "storageAccountType": Union[str, StorageAccountTypes] - disk_encryption_set: DiskEncryptionSetParameters + additionalDiskProperties: AdditionalDiskProperties + diskEncryptionSet: DiskEncryptionSetParameters id: str - security_profile: VMDiskSecurityProfile - storage_account_type: Union[str, StorageAccountTypes] + securityProfile: VMDiskSecurityProfile + storageAccountType: Union[str, StorageAccountTypes] class azure.mgmt.compute.types.MaxInstancePercentPerZonePolicy(TypedDict, total=False): @@ -24733,16 +25510,23 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.MigrateToVirtualMachineScaleSetInput(TypedDict, total=False): key "virtualMachineScaleSetFlexible": Required[SubResource] - virtual_machine_scale_set_flexible: SubResource + virtualMachineScaleSetFlexible: SubResource + + + class azure.mgmt.compute.types.MigrateVMAvailabilityZoneInput(TypedDict, total=False): + key "instanceIds": Required[list[str]] + key "targetZone": str + instanceIds: list[str] + targetZone: str class azure.mgmt.compute.types.MigrateVMToVirtualMachineScaleSetInput(TypedDict, total=False): key "targetFaultDomain": int key "targetVMSize": str key "targetZone": str - target_fault_domain: int - target_vm_size: str - target_zone: str + targetFaultDomain: int + targetVMSize: str + targetZone: str class azure.mgmt.compute.types.NetworkInterfaceReference(SubResource): @@ -24755,19 +25539,17 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.NetworkInterfaceReferenceProperties(TypedDict, total=False): key "deleteOption": Union[str, DeleteOptions] key "primary": bool - delete_option: Union[str, DeleteOptions] + deleteOption: Union[str, DeleteOptions] primary: bool class azure.mgmt.compute.types.NetworkProfile(TypedDict, total=False): key "interconnectGroupProfile": ForwardRef('InterconnectGroupProfile', module='types') key "networkApiVersion": Union[str, NetworkApiVersion] - interconnect_group_profile: InterconnectGroupProfile + interconnectGroupProfile: InterconnectGroupProfile + networkApiVersion: Union[str, NetworkApiVersion] networkInterfaceConfigurations: list[VirtualMachineNetworkInterfaceConfiguration] networkInterfaces: list[NetworkInterfaceReference] - network_api_version: Union[str, NetworkApiVersion] - network_interface_configurations: list[VirtualMachineNetworkInterfaceConfiguration] - network_interfaces: list[NetworkInterfaceReference] class azure.mgmt.compute.types.OSDisk(TypedDict, total=False): @@ -24785,39 +25567,39 @@ namespace azure.mgmt.compute.types key "vhd": ForwardRef('VirtualHardDisk', module='types') key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - create_option: Union[str, DiskCreateOptionTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - diff_disk_settings: DiffDiskSettings - disk_size_gb: int - encryption_settings: DiskEncryptionSettings + createOption: Union[str, DiskCreateOptionTypes] + deleteOption: Union[str, DiskDeleteOptionTypes] + diffDiskSettings: DiffDiskSettings + diskSizeGB: int + encryptionSettings: DiskEncryptionSettings image: VirtualHardDisk - managed_disk: ManagedDiskParameters + managedDisk: ManagedDiskParameters name: str - os_type: Union[str, OperatingSystemTypes] - storage_fault_domain_alignment: Union[str, StorageFaultDomainAlignmentType] + osType: Union[str, OperatingSystemTypes] + storageFaultDomainAlignment: Union[str, StorageFaultDomainAlignmentType] vhd: VirtualHardDisk - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.OSDiskImageEncryption(DiskImageEncryption): key "diskEncryptionSetId": str key "securityProfile": ForwardRef('OSDiskImageSecurityProfile', module='types') - disk_encryption_set_id: str - security_profile: OSDiskImageSecurityProfile + diskEncryptionSetId: str + securityProfile: OSDiskImageSecurityProfile class azure.mgmt.compute.types.OSDiskImageSecurityProfile(TypedDict, total=False): key "confidentialVMEncryptionType": Union[str, ConfidentialVMEncryptionType] key "secureVMDiskEncryptionSetId": str - confidential_vm_encryption_type: Union[str, ConfidentialVMEncryptionType] - secure_vm_disk_encryption_set_id: str + confidentialVMEncryptionType: Union[str, ConfidentialVMEncryptionType] + secureVMDiskEncryptionSetId: str class azure.mgmt.compute.types.OSImageNotificationProfile(TypedDict, total=False): key "enable": bool key "notBeforeTimeout": str enable: bool - not_before_timeout: str + notBeforeTimeout: str class azure.mgmt.compute.types.OSProfile(TypedDict, total=False): @@ -24829,38 +25611,38 @@ namespace azure.mgmt.compute.types key "linuxConfiguration": ForwardRef('LinuxConfiguration', module='types') key "requireGuestProvisionSignal": bool key "windowsConfiguration": ForwardRef('WindowsConfiguration', module='types') - admin_password: str - admin_username: str - allow_extension_operations: bool - computer_name: str - custom_data: str - linux_configuration: LinuxConfiguration - require_guest_provision_signal: bool + adminPassword: str + adminUsername: str + allowExtensionOperations: bool + computerName: str + customData: str + linuxConfiguration: LinuxConfiguration + requireGuestProvisionSignal: bool secrets: list[VaultSecretGroup] - windows_configuration: WindowsConfiguration + windowsConfiguration: WindowsConfiguration class azure.mgmt.compute.types.OSProfileProvisioningData(TypedDict, total=False): key "adminPassword": str key "customData": str - admin_password: str - custom_data: str + adminPassword: str + customData: str class azure.mgmt.compute.types.OperationRecoverySettings(TypedDict, total=False): key "reimageRecoveryPolicy": ForwardRef('ReimageRecoveryPolicy', module='types') key "restartRecoveryPolicy": ForwardRef('RestartRecoveryPolicy', module='types') key "startRecoveryPolicy": ForwardRef('StartRecoveryPolicy', module='types') - reimage_recovery_policy: ReimageRecoveryPolicy - restart_recovery_policy: RestartRecoveryPolicy - start_recovery_policy: StartRecoveryPolicy + reimageRecoveryPolicy: ReimageRecoveryPolicy + restartRecoveryPolicy: RestartRecoveryPolicy + startRecoveryPolicy: StartRecoveryPolicy class azure.mgmt.compute.types.OrchestrationServiceStateInput(TypedDict, total=False): key "action": Required[Union[str, OrchestrationServiceStateAction]] key "serviceName": Required[Union[str, OrchestrationServiceNames]] action: Union[str, OrchestrationServiceStateAction] - service_name: Union[str, OrchestrationServiceNames] + serviceName: Union[str, OrchestrationServiceNames] class azure.mgmt.compute.types.PatchSettings(TypedDict, total=False): @@ -24868,19 +25650,17 @@ namespace azure.mgmt.compute.types key "automaticByPlatformSettings": ForwardRef('WindowsVMGuestPatchAutomaticByPlatformSettings', module='types') key "enableHotpatching": bool key "patchMode": Union[str, WindowsVMGuestPatchMode] - assessment_mode: Union[str, WindowsPatchAssessmentMode] - automatic_by_platform_settings: WindowsVMGuestPatchAutomaticByPlatformSettings - enable_hotpatching: bool - patch_mode: Union[str, WindowsVMGuestPatchMode] + assessmentMode: Union[str, WindowsPatchAssessmentMode] + automaticByPlatformSettings: WindowsVMGuestPatchAutomaticByPlatformSettings + enableHotpatching: bool + patchMode: Union[str, WindowsVMGuestPatchMode] class azure.mgmt.compute.types.Placement(TypedDict, total=False): key "zonePlacementPolicy": Union[str, ZonePlacementPolicyType] excludeZones: list[str] - exclude_zones: list[str] includeZones: list[str] - include_zones: list[str] - zone_placement_policy: Union[str, ZonePlacementPolicyType] + zonePlacementPolicy: Union[str, ZonePlacementPolicyType] class azure.mgmt.compute.types.Plan(TypedDict, total=False): @@ -24890,7 +25670,7 @@ namespace azure.mgmt.compute.types key "publisher": str name: str product: str - promotion_code: str + promotionCode: str publisher: str @@ -24911,8 +25691,8 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.PriorityMixPolicy(TypedDict, total=False): key "baseRegularPriorityCount": int key "regularPriorityPercentageAboveBase": int - base_regular_priority_count: int - regular_priority_percentage_above_base: int + baseRegularPriorityCount: int + regularPriorityPercentageAboveBase: int class azure.mgmt.compute.types.PrivateEndpoint(TypedDict, total=False): @@ -24929,7 +25709,7 @@ namespace azure.mgmt.compute.types id: str name: str properties: PrivateEndpointConnectionProperties - system_data: SystemData + systemData: SystemData type: str @@ -24937,23 +25717,23 @@ namespace azure.mgmt.compute.types key "privateEndpoint": ForwardRef('PrivateEndpoint', module='types') key "privateLinkServiceConnectionState": Required[PrivateLinkServiceConnectionState] key "provisioningState": Union[str, PrivateEndpointConnectionProvisioningState] - private_endpoint: PrivateEndpoint - private_link_service_connection_state: PrivateLinkServiceConnectionState - provisioning_state: Union[str, PrivateEndpointConnectionProvisioningState] + privateEndpoint: PrivateEndpoint + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, PrivateEndpointConnectionProvisioningState] class azure.mgmt.compute.types.PrivateLinkServiceConnectionState(TypedDict, total=False): key "actionsRequired": str key "description": str key "status": Union[str, PrivateEndpointServiceConnectionStatus] - actions_required: str + actionsRequired: str description: str status: Union[str, PrivateEndpointServiceConnectionStatus] class azure.mgmt.compute.types.PropertyUpdatesInProgress(TypedDict, total=False): key "targetTier": str - target_tier: str + targetTier: str class azure.mgmt.compute.types.ProximityPlacementGroup(TrackedResource): @@ -24967,7 +25747,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: ProximityPlacementGroupProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -24978,19 +25758,15 @@ namespace azure.mgmt.compute.types key "intent": ForwardRef('ProximityPlacementGroupPropertiesIntent', module='types') key "proximityPlacementGroupType": Union[str, ProximityPlacementGroupType] availabilitySets: list[SubResourceWithColocationStatus] - availability_sets: list[SubResourceWithColocationStatus] - colocation_status: InstanceViewStatus + colocationStatus: InstanceViewStatus intent: ProximityPlacementGroupPropertiesIntent - proximity_placement_group_type: Union[str, ProximityPlacementGroupType] + proximityPlacementGroupType: Union[str, ProximityPlacementGroupType] virtualMachineScaleSets: list[SubResourceWithColocationStatus] virtualMachines: list[SubResourceWithColocationStatus] - virtual_machine_scale_sets: list[SubResourceWithColocationStatus] - virtual_machines: list[SubResourceWithColocationStatus] class azure.mgmt.compute.types.ProximityPlacementGroupPropertiesIntent(TypedDict, total=False): vmSizes: list[str] - vm_sizes: list[str] class azure.mgmt.compute.types.ProximityPlacementGroupUpdate(UpdateResource): @@ -25004,12 +25780,12 @@ namespace azure.mgmt.compute.types key "keyIncarnationId": int key "mode": Union[str, Mode] key "wireServer": ForwardRef('HostEndpointSettings', module='types') - add_proxy_agent_extension: bool + addProxyAgentExtension: bool enabled: bool imds: HostEndpointSettings - key_incarnation_id: int + keyIncarnationId: int mode: Union[str, Mode] - wire_server: HostEndpointSettings + wireServer: HostEndpointSettings class azure.mgmt.compute.types.ProxyResource(Resource): @@ -25019,7 +25795,7 @@ namespace azure.mgmt.compute.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -25034,7 +25810,7 @@ namespace azure.mgmt.compute.types key "memory": ForwardRef('ResourceRange', module='types') key "vCPUs": ForwardRef('ResourceRange', module='types') memory: ResourceRange - v_cp_us: ResourceRange + vCPUs: ResourceRange class azure.mgmt.compute.types.RegionalReplicationStatus(TypedDict, total=False): @@ -25064,7 +25840,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.ReplicationStatus(TypedDict, total=False): key "aggregatedState": Union[str, AggregatedReplicationState] - aggregated_state: Union[str, AggregatedReplicationState] + aggregatedState: Union[str, AggregatedReplicationState] summary: list[RegionalReplicationStatus] @@ -25078,15 +25854,15 @@ namespace azure.mgmt.compute.types key "groupByUserAgent": bool key "intervalLength": Required[Union[str, IntervalInMins]] key "toTime": Required[str] - blob_container_sas_uri: str - from_time: str - group_by_client_application_id: bool - group_by_operation_name: bool - group_by_resource_name: bool - group_by_throttle_policy: bool - group_by_user_agent: bool - interval_length: Union[str, IntervalInMins] - to_time: str + blobContainerSasUri: str + fromTime: str + groupByClientApplicationId: bool + groupByOperationName: bool + groupByResourceName: bool + groupByThrottlePolicy: bool + groupByUserAgent: bool + intervalLength: Union[str, IntervalInMins] + toTime: str class azure.mgmt.compute.types.ResiliencyPolicy(TypedDict, total=False): @@ -25095,16 +25871,16 @@ namespace azure.mgmt.compute.types key "resilientVMCreationPolicy": ForwardRef('ResilientVMCreationPolicy', module='types') key "resilientVMDeletionPolicy": ForwardRef('ResilientVMDeletionPolicy', module='types') key "zoneAllocationPolicy": ForwardRef('ZoneAllocationPolicy', module='types') - automatic_zone_rebalancing_policy: AutomaticZoneRebalancingPolicy - operation_recovery_settings: OperationRecoverySettings - resilient_vm_creation_policy: ResilientVMCreationPolicy - resilient_vm_deletion_policy: ResilientVMDeletionPolicy - zone_allocation_policy: ZoneAllocationPolicy + automaticZoneRebalancingPolicy: AutomaticZoneRebalancingPolicy + operationRecoverySettings: OperationRecoverySettings + resilientVMCreationPolicy: ResilientVMCreationPolicy + resilientVMDeletionPolicy: ResilientVMDeletionPolicy + zoneAllocationPolicy: ZoneAllocationPolicy class azure.mgmt.compute.types.ResiliencyProfile(TypedDict, total=False): key "zoneMovement": ForwardRef('ZoneMovement', module='types') - zone_movement: ZoneMovement + zoneMovement: ZoneMovement class azure.mgmt.compute.types.ResilientVMCreationPolicy(TypedDict, total=False): @@ -25124,7 +25900,7 @@ namespace azure.mgmt.compute.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -25137,7 +25913,6 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.ResourceSharingProfile(TypedDict, total=False): subscriptionIds: list[SubResource] - subscription_ids: list[SubResource] class azure.mgmt.compute.types.RestartRecoveryPolicy(TypedDict, total=False): @@ -25154,7 +25929,7 @@ namespace azure.mgmt.compute.types id: str name: str properties: RestorePointProperties - system_data: SystemData + systemData: SystemData type: str @@ -25169,7 +25944,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: RestorePointCollectionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -25179,11 +25954,10 @@ namespace azure.mgmt.compute.types key "provisioningState": str key "restorePointCollectionId": str key "source": ForwardRef('RestorePointCollectionSourceProperties', module='types') - instant_access: bool - provisioning_state: str + instantAccess: bool + provisioningState: str + restorePointCollectionId: str restorePoints: list[RestorePoint] - restore_point_collection_id: str - restore_points: list[RestorePoint] source: RestorePointCollectionSourceProperties @@ -25203,13 +25977,12 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.RestorePointEncryption(TypedDict, total=False): key "diskEncryptionSet": ForwardRef('DiskEncryptionSetParameters', module='types') key "type": Union[str, RestorePointEncryptionType] - disk_encryption_set: DiskEncryptionSetParameters + diskEncryptionSet: DiskEncryptionSetParameters type: Union[str, RestorePointEncryptionType] class azure.mgmt.compute.types.RestorePointInstanceView(TypedDict, total=False): diskRestorePoints: list[DiskRestorePointInstanceView] - disk_restore_points: list[DiskRestorePointInstanceView] statuses: list[InstanceViewStatus] @@ -25221,15 +25994,14 @@ namespace azure.mgmt.compute.types key "sourceMetadata": ForwardRef('RestorePointSourceMetadata', module='types') key "sourceRestorePoint": ForwardRef('ApiEntityReference', module='types') key "timeCreated": str - consistency_mode: Union[str, ConsistencyModeTypes] + consistencyMode: Union[str, ConsistencyModeTypes] excludeDisks: list[ApiEntityReference] - exclude_disks: list[ApiEntityReference] - instance_view: RestorePointInstanceView - instant_access_duration_minutes: int - provisioning_state: str - source_metadata: RestorePointSourceMetadata - source_restore_point: ApiEntityReference - time_created: str + instanceView: RestorePointInstanceView + instantAccessDurationMinutes: int + provisioningState: str + sourceMetadata: RestorePointSourceMetadata + sourceRestorePoint: ApiEntityReference + timeCreated: str class azure.mgmt.compute.types.RestorePointSourceMetadata(TypedDict, total=False): @@ -25243,16 +26015,16 @@ namespace azure.mgmt.compute.types key "storageProfile": ForwardRef('RestorePointSourceVMStorageProfile', module='types') key "userData": str key "vmId": str - diagnostics_profile: DiagnosticsProfile - hardware_profile: HardwareProfile - hyper_v_generation: Union[str, HyperVGenerationTypes] - license_type: str + diagnosticsProfile: DiagnosticsProfile + hardwareProfile: HardwareProfile + hyperVGeneration: Union[str, HyperVGenerationTypes] + licenseType: str location: str - os_profile: OSProfile - security_profile: SecurityProfile - storage_profile: RestorePointSourceVMStorageProfile - user_data: str - vm_id: str + osProfile: OSProfile + securityProfile: SecurityProfile + storageProfile: RestorePointSourceVMStorageProfile + userData: str + vmId: str class azure.mgmt.compute.types.RestorePointSourceVMDataDisk(TypedDict, total=False): @@ -25264,12 +26036,12 @@ namespace azure.mgmt.compute.types key "name": str key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - disk_restore_point: DiskRestorePointAttributes - disk_size_gb: int + diskRestorePoint: DiskRestorePointAttributes + diskSizeGB: int lun: int - managed_disk: ManagedDiskParameters + managedDisk: ManagedDiskParameters name: str - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.RestorePointSourceVMOSDisk(TypedDict, total=False): @@ -25282,22 +26054,21 @@ namespace azure.mgmt.compute.types key "osType": Union[str, OperatingSystemType] key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - disk_restore_point: DiskRestorePointAttributes - disk_size_gb: int - encryption_settings: DiskEncryptionSettings - managed_disk: ManagedDiskParameters + diskRestorePoint: DiskRestorePointAttributes + diskSizeGB: int + encryptionSettings: DiskEncryptionSettings + managedDisk: ManagedDiskParameters name: str - os_type: Union[str, OperatingSystemType] - write_accelerator_enabled: bool + osType: Union[str, OperatingSystemType] + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.RestorePointSourceVMStorageProfile(TypedDict, total=False): key "diskControllerType": Union[str, DiskControllerTypes] key "osDisk": ForwardRef('RestorePointSourceVMOSDisk', module='types') dataDisks: list[RestorePointSourceVMDataDisk] - data_disks: list[RestorePointSourceVMDataDisk] - disk_controller_type: Union[str, DiskControllerTypes] - os_disk: RestorePointSourceVMOSDisk + diskControllerType: Union[str, DiskControllerTypes] + osDisk: RestorePointSourceVMOSDisk class azure.mgmt.compute.types.RollingUpgradePolicy(TypedDict, total=False): @@ -25309,19 +26080,19 @@ namespace azure.mgmt.compute.types key "pauseTimeBetweenBatches": str key "prioritizeUnhealthyInstances": bool key "rollbackFailedInstancesOnPolicyBreach": bool - enable_cross_zone_upgrade: bool - max_batch_instance_percent: int - max_surge: bool - max_unhealthy_instance_percent: int - max_unhealthy_upgraded_instance_percent: int - pause_time_between_batches: str - prioritize_unhealthy_instances: bool - rollback_failed_instances_on_policy_breach: bool + enableCrossZoneUpgrade: bool + maxBatchInstancePercent: int + maxSurge: bool + maxUnhealthyInstancePercent: int + maxUnhealthyUpgradedInstancePercent: int + pauseTimeBetweenBatches: str + prioritizeUnhealthyInstances: bool + rollbackFailedInstancesOnPolicyBreach: bool class azure.mgmt.compute.types.RunCommandInput(TypedDict, total=False): key "commandId": Required[str] - command_id: str + commandId: str parameters: list[RunCommandInputParameter] script: list[str] @@ -25336,28 +26107,32 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.RunCommandManagedIdentity(TypedDict, total=False): key "clientId": str key "objectId": str - client_id: str - object_id: str + clientId: str + objectId: str class azure.mgmt.compute.types.ScaleInPolicy(TypedDict, total=False): key "forceDeletion": bool key "prioritizeUnhealthyVMs": bool - force_deletion: bool - prioritize_unhealthy_v_ms: bool + forceDeletion: bool + prioritizeUnhealthyVMs: bool rules: list[Union[str, VirtualMachineScaleSetScaleInRules]] class azure.mgmt.compute.types.ScheduleProfile(TypedDict, total=False): key "end": str + key "minimumCommitmentDays": int + key "modifiableUntil": str key "start": str end: str + minimumCommitmentDays: int + modifiableUntil: str start: str class azure.mgmt.compute.types.ScheduledEventsAdditionalPublishingTargets(TypedDict, total=False): key "eventGridAndResourceGraph": ForwardRef('EventGridAndResourceGraph', module='types') - event_grid_and_resource_graph: EventGridAndResourceGraph + eventGridAndResourceGraph: EventGridAndResourceGraph class azure.mgmt.compute.types.ScheduledEventsPolicy(TypedDict, total=False): @@ -25365,41 +26140,39 @@ namespace azure.mgmt.compute.types key "scheduledEventsAdditionalPublishingTargets": ForwardRef('ScheduledEventsAdditionalPublishingTargets', module='types') key "userInitiatedReboot": ForwardRef('UserInitiatedReboot', module='types') key "userInitiatedRedeploy": ForwardRef('UserInitiatedRedeploy', module='types') - all_instances_down: AllInstancesDown - scheduled_events_additional_publishing_targets: ScheduledEventsAdditionalPublishingTargets - user_initiated_reboot: UserInitiatedReboot - user_initiated_redeploy: UserInitiatedRedeploy + allInstancesDown: AllInstancesDown + scheduledEventsAdditionalPublishingTargets: ScheduledEventsAdditionalPublishingTargets + userInitiatedReboot: UserInitiatedReboot + userInitiatedRedeploy: UserInitiatedRedeploy class azure.mgmt.compute.types.ScheduledEventsProfile(TypedDict, total=False): key "osImageNotificationProfile": ForwardRef('OSImageNotificationProfile', module='types') key "terminateNotificationProfile": ForwardRef('TerminateNotificationProfile', module='types') - os_image_notification_profile: OSImageNotificationProfile - terminate_notification_profile: TerminateNotificationProfile + osImageNotificationProfile: OSImageNotificationProfile + terminateNotificationProfile: TerminateNotificationProfile class azure.mgmt.compute.types.ScriptSource(TypedDict, total=False): key "scriptLink": Required[str] parameters: list[GalleryScriptParameter] - script_link: str + scriptLink: str class azure.mgmt.compute.types.SecurityPostureReference(TypedDict, total=False): key "id": Required[str] key "isOverridable": bool excludeExtensions: list[str] - exclude_extensions: list[str] id: str - is_overridable: bool + isOverridable: bool class azure.mgmt.compute.types.SecurityPostureReferenceUpdate(TypedDict, total=False): key "id": str key "isOverridable": bool excludeExtensions: list[str] - exclude_extensions: list[str] id: str - is_overridable: bool + isOverridable: bool class azure.mgmt.compute.types.SecurityProfile(TypedDict, total=False): @@ -25408,11 +26181,11 @@ namespace azure.mgmt.compute.types key "proxyAgentSettings": ForwardRef('ProxyAgentSettings', module='types') key "securityType": Union[str, SecurityTypes] key "uefiSettings": ForwardRef('UefiSettings', module='types') - encryption_at_host: bool - encryption_identity: EncryptionIdentity - proxy_agent_settings: ProxyAgentSettings - security_type: Union[str, SecurityTypes] - uefi_settings: UefiSettings + encryptionAtHost: bool + encryptionIdentity: EncryptionIdentity + proxyAgentSettings: ProxyAgentSettings + securityType: Union[str, SecurityTypes] + uefiSettings: UefiSettings class azure.mgmt.compute.types.ServiceArtifactReference(TypedDict, total=False): @@ -25422,13 +26195,13 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.ShareInfoElement(TypedDict, total=False): key "vmUri": str - vm_uri: str + vmUri: str class azure.mgmt.compute.types.SharingProfile(TypedDict, total=False): key "communityGalleryInfo": ForwardRef('CommunityGalleryInfo', module='types') key "permissions": Union[str, GallerySharingPermissionTypes] - community_gallery_info: CommunityGalleryInfo + communityGalleryInfo: CommunityGalleryInfo groups: list[SharingProfileGroup] permissions: Union[str, GallerySharingPermissionTypes] @@ -25441,14 +26214,14 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.SharingStatus(TypedDict, total=False): key "aggregatedState": Union[str, SharingState] - aggregated_state: Union[str, SharingState] + aggregatedState: Union[str, SharingState] summary: list[RegionalSharingStatus] class azure.mgmt.compute.types.SharingUpdate(TypedDict, total=False): key "operationType": Required[Union[str, SharingUpdateOperationTypes]] groups: list[SharingProfileGroup] - operation_type: Union[str, SharingUpdateOperationTypes] + operationType: Union[str, SharingUpdateOperationTypes] class azure.mgmt.compute.types.Sku(TypedDict, total=False): @@ -25463,10 +26236,9 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.SkuProfile(TypedDict, total=False): key "allocationStrategy": Union[str, AllocationStrategy] key "automaticSkuMigrationPolicy": ForwardRef('AutomaticSkuMigrationPolicy', module='types') - allocation_strategy: Union[str, AllocationStrategy] - automatic_sku_migration_policy: AutomaticSkuMigrationPolicy + allocationStrategy: Union[str, AllocationStrategy] + automaticSkuMigrationPolicy: AutomaticSkuMigrationPolicy vmSizes: list[SkuProfileVMSize] - vm_sizes: list[SkuProfileVMSize] class azure.mgmt.compute.types.SkuProfileVMSize(TypedDict, total=False): @@ -25486,14 +26258,14 @@ namespace azure.mgmt.compute.types key "sku": ForwardRef('SnapshotSku', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str location: str - managed_by: str + managedBy: str name: str properties: SnapshotProperties sku: SnapshotSku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -25524,31 +26296,31 @@ namespace azure.mgmt.compute.types key "supportsHibernation": bool key "timeCreated": str key "uniqueId": str - completion_percent: float - copy_completion_error: CopyCompletionError - creation_data: CreationData - data_access_auth_mode: Union[str, DataAccessAuthMode] - disk_access_id: str - disk_size_bytes: int - disk_size_gb: int - disk_state: Union[str, DiskState] + completionPercent: float + copyCompletionError: CopyCompletionError + creationData: CreationData + dataAccessAuthMode: Union[str, DataAccessAuthMode] + diskAccessId: str + diskSizeBytes: int + diskSizeGB: int + diskState: Union[str, DiskState] encryption: Encryption - encryption_settings_collection: EncryptionSettingsCollection - hyper_v_generation: Union[str, HyperVGeneration] - immutability_policy: ImmutabilityPolicy + encryptionSettingsCollection: EncryptionSettingsCollection + hyperVGeneration: Union[str, HyperVGeneration] + immutabilityPolicy: ImmutabilityPolicy incremental: bool - incremental_snapshot_family_id: str - network_access_policy: Union[str, NetworkAccessPolicy] - os_type: Union[str, OperatingSystemTypes] - provisioning_state: str - public_network_access: Union[str, PublicNetworkAccess] - purchase_plan: DiskPurchasePlan - security_profile: DiskSecurityProfile - snapshot_access_state: Union[str, SnapshotAccessState] - supported_capabilities: SupportedCapabilities - supports_hibernation: bool - time_created: str - unique_id: str + incrementalSnapshotFamilyId: str + networkAccessPolicy: Union[str, NetworkAccessPolicy] + osType: Union[str, OperatingSystemTypes] + provisioningState: str + publicNetworkAccess: Union[str, PublicNetworkAccess] + purchasePlan: DiskPurchasePlan + securityProfile: DiskSecurityProfile + snapshotAccessState: Union[str, SnapshotAccessState] + supportedCapabilities: SupportedCapabilities + supportsHibernation: bool + timeCreated: str + uniqueId: str class azure.mgmt.compute.types.SnapshotSku(TypedDict, total=False): @@ -25578,22 +26350,22 @@ namespace azure.mgmt.compute.types key "snapshotAccessState": Union[str, SnapshotAccessState] key "supportedCapabilities": ForwardRef('SupportedCapabilities', module='types') key "supportsHibernation": bool - data_access_auth_mode: Union[str, DataAccessAuthMode] - disk_access_id: str - disk_size_gb: int + dataAccessAuthMode: Union[str, DataAccessAuthMode] + diskAccessId: str + diskSizeGB: int encryption: Encryption - encryption_settings_collection: EncryptionSettingsCollection - network_access_policy: Union[str, NetworkAccessPolicy] - os_type: Union[str, OperatingSystemTypes] - public_network_access: Union[str, PublicNetworkAccess] - snapshot_access_state: Union[str, SnapshotAccessState] - supported_capabilities: SupportedCapabilities - supports_hibernation: bool + encryptionSettingsCollection: EncryptionSettingsCollection + networkAccessPolicy: Union[str, NetworkAccessPolicy] + osType: Union[str, OperatingSystemTypes] + publicNetworkAccess: Union[str, PublicNetworkAccess] + snapshotAccessState: Union[str, SnapshotAccessState] + supportedCapabilities: SupportedCapabilities + supportsHibernation: bool class azure.mgmt.compute.types.SoftDeletePolicy(TypedDict, total=False): key "isSoftDeleteEnabled": bool - is_soft_delete_enabled: bool + isSoftDeleteEnabled: bool class azure.mgmt.compute.types.SourceVault(TypedDict, total=False): @@ -25605,23 +26377,22 @@ namespace azure.mgmt.compute.types key "enabled": bool key "restoreTimeout": str enabled: bool - restore_timeout: str + restoreTimeout: str class azure.mgmt.compute.types.SshConfiguration(TypedDict, total=False): publicKeys: list[SshPublicKey] - public_keys: list[SshPublicKey] class azure.mgmt.compute.types.SshGenerateKeyPairInputParameters(TypedDict, total=False): key "encryptionType": Union[str, SshEncryptionTypes] - encryption_type: Union[str, SshEncryptionTypes] + encryptionType: Union[str, SshEncryptionTypes] class azure.mgmt.compute.types.SshPublicKey(TypedDict, total=False): key "keyData": str key "path": str - key_data: str + keyData: str path: str @@ -25636,14 +26407,14 @@ namespace azure.mgmt.compute.types location: str name: str properties: SshPublicKeyResourceProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str class azure.mgmt.compute.types.SshPublicKeyResourceProperties(TypedDict, total=False): key "publicKey": str - public_key: str + publicKey: str class azure.mgmt.compute.types.SshPublicKeyUpdateResource(UpdateResource): @@ -25659,15 +26430,16 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.StorageProfile(TypedDict, total=False): key "alignRegionalDisksToVMZone": bool + key "diskApiVersion": Union[str, DiskApiVersion] key "diskControllerType": Union[str, DiskControllerTypes] key "imageReference": ForwardRef('ImageReference', module='types') key "osDisk": ForwardRef('OSDisk', module='types') - align_regional_disks_to_vm_zone: bool + alignRegionalDisksToVMZone: bool dataDisks: list[DataDisk] - data_disks: list[DataDisk] - disk_controller_type: Union[str, DiskControllerTypes] - image_reference: ImageReference - os_disk: OSDisk + diskApiVersion: Union[str, DiskApiVersion] + diskControllerType: Union[str, DiskControllerTypes] + imageReference: ImageReference + osDisk: OSDisk class azure.mgmt.compute.types.SubResource(TypedDict, total=False): @@ -25683,7 +26455,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.SubResourceWithColocationStatus(SubResource): key "colocationStatus": ForwardRef('InstanceViewStatus', module='types') key "id": str - colocation_status: InstanceViewStatus + colocationStatus: InstanceViewStatus id: str @@ -25692,10 +26464,10 @@ namespace azure.mgmt.compute.types key "architecture": Union[str, Architecture] key "diskControllerTypes": str key "supportedSecurityOption": Union[str, SupportedSecurityOption] - accelerated_network: bool + acceleratedNetwork: bool architecture: Union[str, Architecture] - disk_controller_types: str - supported_security_option: Union[str, SupportedSecurityOption] + diskControllerTypes: str + supportedSecurityOption: Union[str, SupportedSecurityOption] class azure.mgmt.compute.types.SystemData(TypedDict, total=False): @@ -25705,12 +26477,12 @@ namespace azure.mgmt.compute.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] class azure.mgmt.compute.types.TargetRegion(TypedDict, total=False): @@ -25720,19 +26492,18 @@ namespace azure.mgmt.compute.types key "regionalReplicaCount": int key "storageAccountType": Union[str, StorageAccountType] additionalReplicaSets: list[AdditionalReplicaSet] - additional_replica_sets: list[AdditionalReplicaSet] encryption: EncryptionImages - exclude_from_latest: bool + excludeFromLatest: bool name: str - regional_replica_count: int - storage_account_type: Union[str, StorageAccountType] + regionalReplicaCount: int + storageAccountType: Union[str, StorageAccountType] class azure.mgmt.compute.types.TerminateNotificationProfile(TypedDict, total=False): key "enable": bool key "notBeforeTimeout": str enable: bool - not_before_timeout: str + notBeforeTimeout: str class azure.mgmt.compute.types.ThrottledRequestsInput(LogAnalyticsInputBase): @@ -25744,14 +26515,14 @@ namespace azure.mgmt.compute.types key "groupByThrottlePolicy": bool key "groupByUserAgent": bool key "toTime": Required[str] - blob_container_sas_uri: str - from_time: str - group_by_client_application_id: bool - group_by_operation_name: bool - group_by_resource_name: bool - group_by_throttle_policy: bool - group_by_user_agent: bool - to_time: str + blobContainerSasUri: str + fromTime: str + groupByClientApplicationId: bool + groupByOperationName: bool + groupByResourceName: bool + groupByThrottlePolicy: bool + groupByUserAgent: bool + toTime: str class azure.mgmt.compute.types.TrackedResource(Resource): @@ -25763,7 +26534,7 @@ namespace azure.mgmt.compute.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -25785,8 +26556,8 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.UefiSettings(TypedDict, total=False): key "secureBootEnabled": bool key "vTpmEnabled": bool - secure_boot_enabled: bool - v_tpm_enabled: bool + secureBootEnabled: bool + vTpmEnabled: bool class azure.mgmt.compute.types.UpdateResource(TypedDict, total=False): @@ -25807,9 +26578,9 @@ namespace azure.mgmt.compute.types key "automaticOSUpgradePolicy": ForwardRef('AutomaticOSUpgradePolicy', module='types') key "mode": Union[str, UpgradeMode] key "rollingUpgradePolicy": ForwardRef('RollingUpgradePolicy', module='types') - automatic_os_upgrade_policy: AutomaticOSUpgradePolicy + automaticOSUpgradePolicy: AutomaticOSUpgradePolicy mode: Union[str, UpgradeMode] - rolling_upgrade_policy: RollingUpgradePolicy + rollingUpgradePolicy: RollingUpgradePolicy class azure.mgmt.compute.types.UserArtifactManage(TypedDict, total=False): @@ -25818,47 +26589,47 @@ namespace azure.mgmt.compute.types key "update": str install: str remove: str - update_property: str + update: str class azure.mgmt.compute.types.UserArtifactSettings(TypedDict, total=False): key "configFileName": str key "packageFileName": str key "scriptBehaviorAfterReboot": Union[str, GalleryApplicationScriptRebootBehavior] - config_file_name: str - package_file_name: str - script_behavior_after_reboot: Union[str, GalleryApplicationScriptRebootBehavior] + configFileName: str + packageFileName: str + scriptBehaviorAfterReboot: Union[str, GalleryApplicationScriptRebootBehavior] class azure.mgmt.compute.types.UserArtifactSource(TypedDict, total=False): key "defaultConfigurationLink": str key "mediaLink": Required[str] - default_configuration_link: str - media_link: str + defaultConfigurationLink: str + mediaLink: str class azure.mgmt.compute.types.UserAssignedIdentitiesValue(TypedDict, total=False): key "clientId": str key "principalId": str - client_id: str - principal_id: str + clientId: str + principalId: str class azure.mgmt.compute.types.UserInitiatedReboot(TypedDict, total=False): key "automaticallyApprove": bool - automatically_approve: bool + automaticallyApprove: bool class azure.mgmt.compute.types.UserInitiatedRedeploy(TypedDict, total=False): key "automaticallyApprove": bool - automatically_approve: bool + automaticallyApprove: bool class azure.mgmt.compute.types.VMDiskSecurityProfile(TypedDict, total=False): key "diskEncryptionSet": ForwardRef('DiskEncryptionSetParameters', module='types') key "securityEncryptionType": Union[str, SecurityEncryptionTypes] - disk_encryption_set: DiskEncryptionSetParameters - security_encryption_type: Union[str, SecurityEncryptionTypes] + diskEncryptionSet: DiskEncryptionSetParameters + securityEncryptionType: Union[str, SecurityEncryptionTypes] class azure.mgmt.compute.types.VMGalleryApplication(TypedDict, total=False): @@ -25868,17 +26639,17 @@ namespace azure.mgmt.compute.types key "packageReferenceId": Required[str] key "tags": str key "treatFailureAsDeploymentFailure": bool - configuration_reference: str - enable_automatic_upgrade: bool + configurationReference: str + enableAutomaticUpgrade: bool order: int - package_reference_id: str + packageReferenceId: str tags: str - treat_failure_as_deployment_failure: bool + treatFailureAsDeploymentFailure: bool class azure.mgmt.compute.types.VMScaleSetConvertToSinglePlacementGroupInput(TypedDict, total=False): key "activePlacementGroupId": str - active_placement_group_id: str + activePlacementGroupId: str class azure.mgmt.compute.types.VMScaleSetLifecycleHookEventAdditionalContext(TypedDict, total=False): @@ -25894,21 +26665,20 @@ namespace azure.mgmt.compute.types key "timeCreated": str key "type": Union[str, VMScaleSetLifecycleHookEventType] key "waitUntil": str - additional_context: VMScaleSetLifecycleHookEventAdditionalContext - default_action: Union[str, LifecycleHookAction] - max_wait_until: str + additionalContext: VMScaleSetLifecycleHookEventAdditionalContext + defaultAction: Union[str, LifecycleHookAction] + maxWaitUntil: str state: Union[str, VMScaleSetLifecycleHookEventState] targetResources: list[VMScaleSetLifecycleHookEventTargetResource] - target_resources: list[VMScaleSetLifecycleHookEventTargetResource] - time_created: str + timeCreated: str type: Union[str, VMScaleSetLifecycleHookEventType] - wait_until: str + waitUntil: str class azure.mgmt.compute.types.VMScaleSetLifecycleHookEventTargetResource(TypedDict, total=False): key "actionState": Union[str, LifecycleHookActionState] key "resource": ForwardRef('ApiEntityReference', module='types') - action_state: Union[str, LifecycleHookActionState] + actionState: Union[str, LifecycleHookActionState] resource: ApiEntityReference @@ -25932,31 +26702,28 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VMSizeProperties(TypedDict, total=False): key "vCPUsAvailable": int key "vCPUsPerCore": int - v_cpus_available: int - v_cpus_per_core: int + vCPUsAvailable: int + vCPUsPerCore: int class azure.mgmt.compute.types.ValidationsProfile(TypedDict, total=False): key "validationEtag": str executedValidations: list[ExecutedValidation] - executed_validations: list[ExecutedValidation] platformAttributes: list[PlatformAttribute] - platform_attributes: list[PlatformAttribute] - validation_etag: str + validationEtag: str class azure.mgmt.compute.types.VaultCertificate(TypedDict, total=False): key "certificateStore": str key "certificateUrl": str - certificate_store: str - certificate_url: str + certificateStore: str + certificateUrl: str class azure.mgmt.compute.types.VaultSecretGroup(TypedDict, total=False): key "sourceVault": ForwardRef('SubResource', module='types') - source_vault: SubResource + sourceVault: SubResource vaultCertificates: list[VaultCertificate] - vault_certificates: list[VaultCertificate] class azure.mgmt.compute.types.VirtualHardDisk(TypedDict, total=False): @@ -25978,17 +26745,17 @@ namespace azure.mgmt.compute.types key "systemData": ForwardRef('SystemData', module='types') key "type": str etag: str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str identity: VirtualMachineIdentity location: str - managed_by: str + managedBy: str name: str placement: Placement plan: Plan properties: VirtualMachineProperties resources: list[VirtualMachineExtension] - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -25997,18 +26764,58 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineAgentInstanceView(TypedDict, total=False): key "vmAgentVersion": str extensionHandlers: list[VirtualMachineExtensionHandlerInstanceView] - extension_handlers: list[VirtualMachineExtensionHandlerInstanceView] statuses: list[InstanceViewStatus] - vm_agent_version: str + vmAgentVersion: str class azure.mgmt.compute.types.VirtualMachineCaptureParameters(TypedDict, total=False): key "destinationContainerName": Required[str] key "overwriteVhds": Required[bool] key "vhdPrefix": Required[str] - destination_container_name: str - overwrite_vhds: bool - vhd_prefix: str + destinationContainerName: str + overwriteVhds: bool + vhdPrefix: str + + + class azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand(TrackedResource): + key "id": str + key "location": Required[str] + key "name": str + key "properties": ForwardRef('VirtualMachineRunCommandProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + properties: VirtualMachineRunCommandProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.compute.types.VirtualMachineDiskProperties(TypedDict, total=False): + key "availabilityPolicy": ForwardRef('DiskAvailabilityPolicy', module='types') + key "burstingEnabled": bool + key "diskAccessId": str + key "diskIOPSReadOnly": int + key "diskMBpsReadOnly": int + key "logicalSectorSize": int + key "maxShares": int + key "networkAccessPolicy": Union[str, VirtualMachineDiskNetworkAccessPolicy] + key "optimizedForFrequentAttach": bool + key "performancePlus": bool + key "tier": str + availabilityPolicy: DiskAvailabilityPolicy + burstingEnabled: bool + diskAccessId: str + diskIOPSReadOnly: int + diskMBpsReadOnly: int + logicalSectorSize: int + maxShares: int + networkAccessPolicy: Union[str, VirtualMachineDiskNetworkAccessPolicy] + optimizedForFrequentAttach: bool + performancePlus: bool + tier: str class azure.mgmt.compute.types.VirtualMachineExtension(TrackedResource): @@ -26022,7 +26829,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: VirtualMachineExtensionProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -26033,7 +26840,7 @@ namespace azure.mgmt.compute.types key "typeHandlerVersion": str status: InstanceViewStatus type: str - type_handler_version: str + typeHandlerVersion: str class azure.mgmt.compute.types.VirtualMachineExtensionInstanceView(TypedDict, total=False): @@ -26044,7 +26851,7 @@ namespace azure.mgmt.compute.types statuses: list[InstanceViewStatus] substatuses: list[InstanceViewStatus] type: str - type_handler_version: str + typeHandlerVersion: str class azure.mgmt.compute.types.VirtualMachineExtensionProperties(TypedDict, total=False): @@ -26060,20 +26867,19 @@ namespace azure.mgmt.compute.types key "suppressFailures": bool key "type": str key "typeHandlerVersion": str - auto_upgrade_minor_version: bool - enable_automatic_upgrade: bool - force_update_tag: str - instance_view: VirtualMachineExtensionInstanceView - protected_settings: Any - protected_settings_from_key_vault: KeyVaultSecretReference + autoUpgradeMinorVersion: bool + enableAutomaticUpgrade: bool + forceUpdateTag: str + instanceView: VirtualMachineExtensionInstanceView + protectedSettings: Any + protectedSettingsFromKeyVault: KeyVaultSecretReference provisionAfterExtensions: list[str] - provision_after_extensions: list[str] - provisioning_state: str + provisioningState: str publisher: str settings: Any - suppress_failures: bool + suppressFailures: bool type: str - type_handler_version: str + typeHandlerVersion: str class azure.mgmt.compute.types.VirtualMachineExtensionUpdate(UpdateResource): @@ -26093,16 +26899,16 @@ namespace azure.mgmt.compute.types key "suppressFailures": bool key "type": str key "typeHandlerVersion": str - auto_upgrade_minor_version: bool - enable_automatic_upgrade: bool - force_update_tag: str - protected_settings: Any - protected_settings_from_key_vault: KeyVaultSecretReference + autoUpgradeMinorVersion: bool + enableAutomaticUpgrade: bool + forceUpdateTag: str + protectedSettings: Any + protectedSettingsFromKeyVault: KeyVaultSecretReference publisher: str settings: Any - suppress_failures: bool + suppressFailures: bool type: str - type_handler_version: str + typeHandlerVersion: str class azure.mgmt.compute.types.VirtualMachineHealthStatus(TypedDict, total=False): @@ -26114,11 +26920,10 @@ namespace azure.mgmt.compute.types key "principalId": str key "tenantId": str key "type": Union[str, ResourceIdentityType] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ResourceIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentitiesValue] - user_assigned_identities: dict[str, UserAssignedIdentitiesValue] class azure.mgmt.compute.types.VirtualMachineInstallPatchesParameters(TypedDict, total=False): @@ -26126,15 +26931,16 @@ namespace azure.mgmt.compute.types key "maximumDuration": str key "rebootSetting": Required[Union[str, VMGuestPatchRebootSetting]] key "windowsParameters": ForwardRef('WindowsParameters', module='types') - linux_parameters: LinuxParameters - maximum_duration: str - reboot_setting: Union[str, VMGuestPatchRebootSetting] - windows_parameters: WindowsParameters + linuxParameters: LinuxParameters + maximumDuration: str + rebootSetting: Union[str, VMGuestPatchRebootSetting] + windowsParameters: WindowsParameters class azure.mgmt.compute.types.VirtualMachineInstanceView(TypedDict, total=False): key "assignedHost": str key "bootDiagnostics": ForwardRef('BootDiagnosticsInstanceView', module='types') + key "capacityReservationType": Union[str, CapacityReservationType] key "computerName": str key "hyperVGeneration": Union[str, HyperVGenerationType] key "interconnectInstanceView": ForwardRef('InterconnectInstanceView', module='types') @@ -26148,30 +26954,33 @@ namespace azure.mgmt.compute.types key "rdpThumbPrint": str key "vmAgent": ForwardRef('VirtualMachineAgentInstanceView', module='types') key "vmHealth": ForwardRef('VirtualMachineHealthStatus', module='types') - assigned_host: str - boot_diagnostics: BootDiagnosticsInstanceView - computer_name: str + assignedHost: str + bootDiagnostics: BootDiagnosticsInstanceView + capacityReservationType: Union[str, CapacityReservationType] + computerName: str disks: list[DiskInstanceView] extensions: list[VirtualMachineExtensionInstanceView] - hyper_v_generation: Union[str, HyperVGenerationType] - interconnect_instance_view: InterconnectInstanceView - is_vm_in_standby_pool: bool - maintenance_redeploy_status: MaintenanceRedeployStatus - os_name: str - os_version: str - patch_status: VirtualMachinePatchStatus - platform_fault_domain: int - platform_update_domain: int - rdp_thumb_print: str + hyperVGeneration: Union[str, HyperVGenerationType] + interconnectInstanceView: InterconnectInstanceView + isVMInStandbyPool: bool + maintenanceRedeployStatus: MaintenanceRedeployStatus + osName: str + osVersion: str + patchStatus: VirtualMachinePatchStatus + platformFaultDomain: int + platformUpdateDomain: int + rdpThumbPrint: str statuses: list[InstanceViewStatus] - vm_agent: VirtualMachineAgentInstanceView - vm_health: VirtualMachineHealthStatus + vmAgent: VirtualMachineAgentInstanceView + vmHealth: VirtualMachineHealthStatus class azure.mgmt.compute.types.VirtualMachineIpTag(TypedDict, total=False): + key "firstPartyServiceTagId": str key "ipTagType": str key "tag": str - ip_tag_type: str + firstPartyServiceTagId: str + ipTagType: str tag: str @@ -26196,23 +27005,22 @@ namespace azure.mgmt.compute.types key "ipConfigurations": Required[list[VirtualMachineNetworkInterfaceIPConfiguration]] key "networkSecurityGroup": ForwardRef('SubResource', module='types') key "primary": bool - auxiliary_mode: Union[str, NetworkInterfaceAuxiliaryMode] - auxiliary_sku: Union[str, NetworkInterfaceAuxiliarySku] - delete_option: Union[str, DeleteOptions] - disable_tcp_state_tracking: bool - dns_settings: VirtualMachineNetworkInterfaceDnsSettingsConfiguration - dscp_configuration: SubResource - enable_accelerated_networking: bool - enable_fpga: bool - enable_ip_forwarding: bool - ip_configurations: list[VirtualMachineNetworkInterfaceIPConfiguration] - network_security_group: SubResource + auxiliaryMode: Union[str, NetworkInterfaceAuxiliaryMode] + auxiliarySku: Union[str, NetworkInterfaceAuxiliarySku] + deleteOption: Union[str, DeleteOptions] + disableTcpStateTracking: bool + dnsSettings: VirtualMachineNetworkInterfaceDnsSettingsConfiguration + dscpConfiguration: SubResource + enableAcceleratedNetworking: bool + enableFpga: bool + enableIPForwarding: bool + ipConfigurations: list[VirtualMachineNetworkInterfaceIPConfiguration] + networkSecurityGroup: SubResource primary: bool class azure.mgmt.compute.types.VirtualMachineNetworkInterfaceDnsSettingsConfiguration(TypedDict, total=False): dnsServers: list[str] - dns_servers: list[str] class azure.mgmt.compute.types.VirtualMachineNetworkInterfaceIPConfiguration(TypedDict, total=False): @@ -26229,23 +27037,19 @@ namespace azure.mgmt.compute.types key "subnet": ForwardRef('SubResource', module='types') applicationGatewayBackendAddressPools: list[SubResource] applicationSecurityGroups: list[SubResource] - application_gateway_backend_address_pools: list[SubResource] - application_security_groups: list[SubResource] loadBalancerBackendAddressPools: list[SubResource] - load_balancer_backend_address_pools: list[SubResource] primary: bool - private_ip_address_version: Union[str, IPVersions] - public_ip_address_configuration: VirtualMachinePublicIPAddressConfiguration + privateIPAddressVersion: Union[str, IPVersions] + publicIPAddressConfiguration: VirtualMachinePublicIPAddressConfiguration subnet: SubResource class azure.mgmt.compute.types.VirtualMachinePatchStatus(TypedDict, total=False): key "availablePatchSummary": ForwardRef('AvailablePatchSummary', module='types') key "lastPatchInstallationSummary": ForwardRef('LastPatchInstallationSummary', module='types') - available_patch_summary: AvailablePatchSummary + availablePatchSummary: AvailablePatchSummary configurationStatuses: list[InstanceViewStatus] - configuration_statuses: list[InstanceViewStatus] - last_patch_installation_summary: LastPatchInstallationSummary + lastPatchInstallationSummary: LastPatchInstallationSummary class azure.mgmt.compute.types.VirtualMachineProperties(TypedDict, total=False): @@ -26278,35 +27082,35 @@ namespace azure.mgmt.compute.types key "userData": str key "virtualMachineScaleSet": ForwardRef('SubResource', module='types') key "vmId": str - additional_capabilities: AdditionalCapabilities - application_profile: ApplicationProfile - availability_set: SubResource - billing_profile: BillingProfile - capacity_reservation: CapacityReservationProfile - diagnostics_profile: DiagnosticsProfile - eviction_policy: Union[str, VirtualMachineEvictionPolicyTypes] - extensions_time_budget: str - hardware_profile: HardwareProfile + additionalCapabilities: AdditionalCapabilities + applicationProfile: ApplicationProfile + availabilitySet: SubResource + billingProfile: BillingProfile + capacityReservation: CapacityReservationProfile + diagnosticsProfile: DiagnosticsProfile + evictionPolicy: Union[str, VirtualMachineEvictionPolicyTypes] + extensionsTimeBudget: str + hardwareProfile: HardwareProfile host: SubResource - host_group: SubResource - instance_view: VirtualMachineInstanceView - interconnect_block_profile: InterconnectBlockProfile - license_type: str - network_profile: NetworkProfile - os_profile: OSProfile - platform_fault_domain: int + hostGroup: SubResource + instanceView: VirtualMachineInstanceView + interconnectBlockProfile: InterconnectBlockProfile + licenseType: str + networkProfile: NetworkProfile + osProfile: OSProfile + platformFaultDomain: int priority: Union[str, VirtualMachinePriorityTypes] - provisioning_state: str - proximity_placement_group: SubResource - resiliency_profile: ResiliencyProfile - scheduled_events_policy: ScheduledEventsPolicy - scheduled_events_profile: ScheduledEventsProfile - security_profile: SecurityProfile - storage_profile: StorageProfile - time_created: str - user_data: str - virtual_machine_scale_set: SubResource - vm_id: str + provisioningState: str + proximityPlacementGroup: SubResource + resiliencyProfile: ResiliencyProfile + scheduledEventsPolicy: ScheduledEventsPolicy + scheduledEventsProfile: ScheduledEventsProfile + securityProfile: SecurityProfile + storageProfile: StorageProfile + timeCreated: str + userData: str + virtualMachineScaleSet: SubResource + vmId: str class azure.mgmt.compute.types.VirtualMachinePublicIPAddressConfiguration(TypedDict, total=False): @@ -26326,30 +27130,29 @@ namespace azure.mgmt.compute.types key "publicIPAddressVersion": Union[str, IPVersions] key "publicIPAllocationMethod": Union[str, PublicIPAllocationMethod] key "publicIPPrefix": ForwardRef('SubResource', module='types') - delete_option: Union[str, DeleteOptions] - dns_settings: VirtualMachinePublicIPAddressDnsSettingsConfiguration - idle_timeout_in_minutes: int + deleteOption: Union[str, DeleteOptions] + dnsSettings: VirtualMachinePublicIPAddressDnsSettingsConfiguration + idleTimeoutInMinutes: int ipTags: list[VirtualMachineIpTag] - ip_tags: list[VirtualMachineIpTag] - public_ip_address_version: Union[str, IPVersions] - public_ip_allocation_method: Union[str, PublicIPAllocationMethod] - public_ip_prefix: SubResource + publicIPAddressVersion: Union[str, IPVersions] + publicIPAllocationMethod: Union[str, PublicIPAllocationMethod] + publicIPPrefix: SubResource class azure.mgmt.compute.types.VirtualMachinePublicIPAddressDnsSettingsConfiguration(TypedDict, total=False): key "domainNameLabel": Required[str] key "domainNameLabelScope": Union[str, DomainNameLabelScopeTypes] - domain_name_label: str - domain_name_label_scope: Union[str, DomainNameLabelScopeTypes] + domainNameLabel: str + domainNameLabelScope: Union[str, DomainNameLabelScopeTypes] class azure.mgmt.compute.types.VirtualMachineReimageParameters(TypedDict, total=False): key "exactVersion": str key "osProfile": ForwardRef('OSProfileProvisioningData', module='types') key "tempDisk": bool - exact_version: str - os_profile: OSProfileProvisioningData - temp_disk: bool + exactVersion: str + osProfile: OSProfileProvisioningData + tempDisk: bool class azure.mgmt.compute.types.VirtualMachineRunCommand(TrackedResource): @@ -26363,7 +27166,7 @@ namespace azure.mgmt.compute.types location: str name: str properties: VirtualMachineRunCommandProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -26376,13 +27179,13 @@ namespace azure.mgmt.compute.types key "exitCode": int key "output": str key "startTime": str - end_time: str + endTime: str error: str - execution_message: str - execution_state: Union[str, ExecutionState] - exit_code: int + executionMessage: str + executionState: Union[str, ExecutionState] + exitCode: int output: str - start_time: str + startTime: str statuses: list[InstanceViewStatus] @@ -26399,21 +27202,20 @@ namespace azure.mgmt.compute.types key "source": ForwardRef('VirtualMachineRunCommandScriptSource', module='types') key "timeoutInSeconds": int key "treatFailureAsDeploymentFailure": bool - async_execution: bool - error_blob_managed_identity: RunCommandManagedIdentity - error_blob_uri: str - instance_view: VirtualMachineRunCommandInstanceView - output_blob_managed_identity: RunCommandManagedIdentity - output_blob_uri: str + asyncExecution: bool + errorBlobManagedIdentity: RunCommandManagedIdentity + errorBlobUri: str + instanceView: VirtualMachineRunCommandInstanceView + outputBlobManagedIdentity: RunCommandManagedIdentity + outputBlobUri: str parameters: list[RunCommandInputParameter] protectedParameters: list[RunCommandInputParameter] - protected_parameters: list[RunCommandInputParameter] - provisioning_state: str - run_as_password: str - run_as_user: str + provisioningState: str + runAsPassword: str + runAsUser: str source: VirtualMachineRunCommandScriptSource - timeout_in_seconds: int - treat_failure_as_deployment_failure: bool + timeoutInSeconds: int + treatFailureAsDeploymentFailure: bool class azure.mgmt.compute.types.VirtualMachineRunCommandScriptSource(TypedDict, total=False): @@ -26423,12 +27225,12 @@ namespace azure.mgmt.compute.types key "scriptShell": Union[str, ScriptShellTypes] key "scriptUri": str key "scriptUriManagedIdentity": ForwardRef('RunCommandManagedIdentity', module='types') - command_id: str - gallery_script_reference_id: str + commandId: str + galleryScriptReferenceId: str script: str - script_shell: Union[str, ScriptShellTypes] - script_uri: str - script_uri_managed_identity: RunCommandManagedIdentity + scriptShell: Union[str, ScriptShellTypes] + scriptUri: str + scriptUriManagedIdentity: RunCommandManagedIdentity class azure.mgmt.compute.types.VirtualMachineRunCommandUpdate(UpdateResource): @@ -26451,7 +27253,7 @@ namespace azure.mgmt.compute.types key "systemData": ForwardRef('SystemData', module='types') key "type": str etag: str - extended_location: ExtendedLocation + extendedLocation: ExtendedLocation id: str identity: VirtualMachineScaleSetIdentity location: str @@ -26460,7 +27262,7 @@ namespace azure.mgmt.compute.types plan: Plan properties: VirtualMachineScaleSetProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -26479,16 +27281,16 @@ namespace azure.mgmt.compute.types key "storageFaultDomainAlignment": Union[str, StorageFaultDomainAlignmentType] key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - create_option: Union[str, DiskCreateOptionTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - disk_iops_read_write: int - disk_m_bps_read_write: int - disk_size_gb: int + createOption: Union[str, DiskCreateOptionTypes] + deleteOption: Union[str, DiskDeleteOptionTypes] + diskIOPSReadWrite: int + diskMBpsReadWrite: int + diskSizeGB: int lun: int - managed_disk: VirtualMachineScaleSetManagedDiskParameters + managedDisk: VirtualMachineScaleSetManagedDiskParameters name: str - storage_fault_domain_alignment: Union[str, StorageFaultDomainAlignmentType] - write_accelerator_enabled: bool + storageFaultDomainAlignment: Union[str, StorageFaultDomainAlignmentType] + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.VirtualMachineScaleSetExtension(SubResourceReadOnly): @@ -26505,7 +27307,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineScaleSetExtensionProfile(TypedDict, total=False): key "extensionsTimeBudget": str extensions: list[VirtualMachineScaleSetExtension] - extensions_time_budget: str + extensionsTimeBudget: str class azure.mgmt.compute.types.VirtualMachineScaleSetExtensionProperties(TypedDict, total=False): @@ -26520,19 +27322,18 @@ namespace azure.mgmt.compute.types key "suppressFailures": bool key "type": str key "typeHandlerVersion": str - auto_upgrade_minor_version: bool - enable_automatic_upgrade: bool - force_update_tag: str - protected_settings: Any - protected_settings_from_key_vault: KeyVaultSecretReference + autoUpgradeMinorVersion: bool + enableAutomaticUpgrade: bool + forceUpdateTag: str + protectedSettings: Any + protectedSettingsFromKeyVault: KeyVaultSecretReference provisionAfterExtensions: list[str] - provision_after_extensions: list[str] - provisioning_state: str + provisioningState: str publisher: str settings: Any - suppress_failures: bool + suppressFailures: bool type: str - type_handler_version: str + typeHandlerVersion: str class azure.mgmt.compute.types.VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): @@ -26547,8 +27348,10 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineScaleSetHardwareProfile(TypedDict, total=False): + key "processorMode": Union[str, ProcessorMode] key "vmSizeProperties": ForwardRef('VMSizeProperties', module='types') - vm_size_properties: VMSizeProperties + processorMode: Union[str, ProcessorMode] + vmSizeProperties: VMSizeProperties class azure.mgmt.compute.types.VirtualMachineScaleSetIPConfiguration(TypedDict, total=False): @@ -26565,15 +27368,11 @@ namespace azure.mgmt.compute.types key "subnet": ForwardRef('ApiEntityReference', module='types') applicationGatewayBackendAddressPools: list[SubResource] applicationSecurityGroups: list[SubResource] - application_gateway_backend_address_pools: list[SubResource] - application_security_groups: list[SubResource] loadBalancerBackendAddressPools: list[SubResource] loadBalancerInboundNatPools: list[SubResource] - load_balancer_backend_address_pools: list[SubResource] - load_balancer_inbound_nat_pools: list[SubResource] primary: bool - private_ip_address_version: Union[str, IPVersion] - public_ip_address_configuration: VirtualMachineScaleSetPublicIPAddressConfiguration + privateIPAddressVersion: Union[str, IPVersion] + publicIPAddressConfiguration: VirtualMachineScaleSetPublicIPAddressConfiguration subnet: ApiEntityReference @@ -26581,34 +27380,37 @@ namespace azure.mgmt.compute.types key "principalId": str key "tenantId": str key "type": Union[str, ResourceIdentityType] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ResourceIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentitiesValue] - user_assigned_identities: dict[str, UserAssignedIdentitiesValue] class azure.mgmt.compute.types.VirtualMachineScaleSetIpTag(TypedDict, total=False): + key "firstPartyServiceTagId": str key "ipTagType": str key "tag": str - ip_tag_type: str + firstPartyServiceTagId: str + ipTagType: str tag: str class azure.mgmt.compute.types.VirtualMachineScaleSetManagedDiskParameters(TypedDict, total=False): + key "additionalDiskProperties": ForwardRef('AdditionalDiskProperties', module='types') key "diskEncryptionSet": ForwardRef('DiskEncryptionSetParameters', module='types') key "securityProfile": ForwardRef('VMDiskSecurityProfile', module='types') key "storageAccountType": Union[str, StorageAccountTypes] - disk_encryption_set: DiskEncryptionSetParameters - security_profile: VMDiskSecurityProfile - storage_account_type: Union[str, StorageAccountTypes] + additionalDiskProperties: AdditionalDiskProperties + diskEncryptionSet: DiskEncryptionSetParameters + securityProfile: VMDiskSecurityProfile + storageAccountType: Union[str, StorageAccountTypes] class azure.mgmt.compute.types.VirtualMachineScaleSetMigrationInfo(TypedDict, total=False): key "defaultVirtualMachineScaleSetInfo": ForwardRef('DefaultVirtualMachineScaleSetInfo', module='types') key "migrateToVirtualMachineScaleSet": ForwardRef('SubResource', module='types') - default_virtual_machine_scale_set_info: DefaultVirtualMachineScaleSetInfo - migrate_to_virtual_machine_scale_set: SubResource + defaultVirtualMachineScaleSetInfo: DefaultVirtualMachineScaleSetInfo + migrateToVirtualMachineScaleSet: SubResource class azure.mgmt.compute.types.VirtualMachineScaleSetNetworkConfiguration(TypedDict, total=False): @@ -26621,7 +27423,6 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineScaleSetNetworkConfigurationDnsSettings(TypedDict, total=False): dnsServers: list[str] - dns_servers: list[str] class azure.mgmt.compute.types.VirtualMachineScaleSetNetworkConfigurationProperties(TypedDict, total=False): @@ -26636,16 +27437,16 @@ namespace azure.mgmt.compute.types key "ipConfigurations": Required[list[VirtualMachineScaleSetIPConfiguration]] key "networkSecurityGroup": ForwardRef('SubResource', module='types') key "primary": bool - auxiliary_mode: Union[str, NetworkInterfaceAuxiliaryMode] - auxiliary_sku: Union[str, NetworkInterfaceAuxiliarySku] - delete_option: Union[str, DeleteOptions] - disable_tcp_state_tracking: bool - dns_settings: VirtualMachineScaleSetNetworkConfigurationDnsSettings - enable_accelerated_networking: bool - enable_fpga: bool - enable_ip_forwarding: bool - ip_configurations: list[VirtualMachineScaleSetIPConfiguration] - network_security_group: SubResource + auxiliaryMode: Union[str, NetworkInterfaceAuxiliaryMode] + auxiliarySku: Union[str, NetworkInterfaceAuxiliarySku] + deleteOption: Union[str, DeleteOptions] + disableTcpStateTracking: bool + dnsSettings: VirtualMachineScaleSetNetworkConfigurationDnsSettings + enableAcceleratedNetworking: bool + enableFpga: bool + enableIPForwarding: bool + ipConfigurations: list[VirtualMachineScaleSetIPConfiguration] + networkSecurityGroup: SubResource primary: bool @@ -26653,11 +27454,10 @@ namespace azure.mgmt.compute.types key "healthProbe": ForwardRef('ApiEntityReference', module='types') key "interconnectGroupProfile": ForwardRef('InterconnectGroupProfile', module='types') key "networkApiVersion": Union[str, NetworkApiVersion] - health_probe: ApiEntityReference - interconnect_group_profile: InterconnectGroupProfile + healthProbe: ApiEntityReference + interconnectGroupProfile: InterconnectGroupProfile + networkApiVersion: Union[str, NetworkApiVersion] networkInterfaceConfigurations: list[VirtualMachineScaleSetNetworkConfiguration] - network_api_version: Union[str, NetworkApiVersion] - network_interface_configurations: list[VirtualMachineScaleSetNetworkConfiguration] class azure.mgmt.compute.types.VirtualMachineScaleSetOSDisk(TypedDict, total=False): @@ -26673,18 +27473,17 @@ namespace azure.mgmt.compute.types key "storageFaultDomainAlignment": Union[str, StorageFaultDomainAlignmentType] key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - create_option: Union[str, DiskCreateOptionTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - diff_disk_settings: DiffDiskSettings - disk_size_gb: int + createOption: Union[str, DiskCreateOptionTypes] + deleteOption: Union[str, DiskDeleteOptionTypes] + diffDiskSettings: DiffDiskSettings + diskSizeGB: int image: VirtualHardDisk - managed_disk: VirtualMachineScaleSetManagedDiskParameters + managedDisk: VirtualMachineScaleSetManagedDiskParameters name: str - os_type: Union[str, OperatingSystemTypes] - storage_fault_domain_alignment: Union[str, StorageFaultDomainAlignmentType] + osType: Union[str, OperatingSystemTypes] + storageFaultDomainAlignment: Union[str, StorageFaultDomainAlignmentType] vhdContainers: list[str] - vhd_containers: list[str] - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.VirtualMachineScaleSetOSProfile(TypedDict, total=False): @@ -26696,15 +27495,15 @@ namespace azure.mgmt.compute.types key "linuxConfiguration": ForwardRef('LinuxConfiguration', module='types') key "requireGuestProvisionSignal": bool key "windowsConfiguration": ForwardRef('WindowsConfiguration', module='types') - admin_password: str - admin_username: str - allow_extension_operations: bool - computer_name_prefix: str - custom_data: str - linux_configuration: LinuxConfiguration - require_guest_provision_signal: bool + adminPassword: str + adminUsername: str + allowExtensionOperations: bool + computerNamePrefix: str + customData: str + linuxConfiguration: LinuxConfiguration + requireGuestProvisionSignal: bool secrets: list[VaultSecretGroup] - windows_configuration: WindowsConfiguration + windowsConfiguration: WindowsConfiguration class azure.mgmt.compute.types.VirtualMachineScaleSetProperties(TypedDict, total=False): @@ -26734,32 +27533,32 @@ namespace azure.mgmt.compute.types key "virtualMachineProfile": ForwardRef('VirtualMachineScaleSetVMProfile', module='types') key "zonalPlatformFaultDomainAlignMode": Union[str, ZonalPlatformFaultDomainAlignMode] key "zoneBalance": bool - additional_capabilities: AdditionalCapabilities - automatic_repairs_policy: AutomaticRepairsPolicy - constrained_maximum_capacity: bool - do_not_run_extensions_on_overprovisioned_v_ms: bool - external_health_policy: ExternalHealthPolicy - high_speed_interconnect_placement: Union[str, HighSpeedInterconnectPlacement] - host_group: SubResource - lifecycle_hooks_profile: LifecycleHooksProfile - orchestration_mode: Union[str, OrchestrationMode] + additionalCapabilities: AdditionalCapabilities + automaticRepairsPolicy: AutomaticRepairsPolicy + constrainedMaximumCapacity: bool + doNotRunExtensionsOnOverprovisionedVMs: bool + externalHealthPolicy: ExternalHealthPolicy + highSpeedInterconnectPlacement: Union[str, HighSpeedInterconnectPlacement] + hostGroup: SubResource + lifecycleHooksProfile: LifecycleHooksProfile + orchestrationMode: Union[str, OrchestrationMode] overprovision: bool - platform_fault_domain_count: int - priority_mix_policy: PriorityMixPolicy - provisioning_state: str - proximity_placement_group: SubResource - resiliency_policy: ResiliencyPolicy - scale_in_policy: ScaleInPolicy - scheduled_events_policy: ScheduledEventsPolicy - single_placement_group: bool - sku_profile: SkuProfile - spot_restore_policy: SpotRestorePolicy - time_created: str - unique_id: str - upgrade_policy: UpgradePolicy - virtual_machine_profile: VirtualMachineScaleSetVMProfile - zonal_platform_fault_domain_align_mode: Union[str, ZonalPlatformFaultDomainAlignMode] - zone_balance: bool + platformFaultDomainCount: int + priorityMixPolicy: PriorityMixPolicy + provisioningState: str + proximityPlacementGroup: SubResource + resiliencyPolicy: ResiliencyPolicy + scaleInPolicy: ScaleInPolicy + scheduledEventsPolicy: ScheduledEventsPolicy + singlePlacementGroup: bool + skuProfile: SkuProfile + spotRestorePolicy: SpotRestorePolicy + timeCreated: str + uniqueId: str + upgradePolicy: UpgradePolicy + virtualMachineProfile: VirtualMachineScaleSetVMProfile + zonalPlatformFaultDomainAlignMode: Union[str, ZonalPlatformFaultDomainAlignMode] + zoneBalance: bool class azure.mgmt.compute.types.VirtualMachineScaleSetPublicIPAddressConfiguration(TypedDict, total=False): @@ -26775,8 +27574,8 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(TypedDict, total=False): key "domainNameLabel": Required[str] key "domainNameLabelScope": Union[str, DomainNameLabelScopeTypes] - domain_name_label: str - domain_name_label_scope: Union[str, DomainNameLabelScopeTypes] + domainNameLabel: str + domainNameLabelScope: Union[str, DomainNameLabelScopeTypes] class azure.mgmt.compute.types.VirtualMachineScaleSetPublicIPAddressConfigurationProperties(TypedDict, total=False): @@ -26785,13 +27584,12 @@ namespace azure.mgmt.compute.types key "idleTimeoutInMinutes": int key "publicIPAddressVersion": Union[str, IPVersion] key "publicIPPrefix": ForwardRef('SubResource', module='types') - delete_option: Union[str, DeleteOptions] - dns_settings: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings - idle_timeout_in_minutes: int + deleteOption: Union[str, DeleteOptions] + dnsSettings: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + idleTimeoutInMinutes: int ipTags: list[VirtualMachineScaleSetIpTag] - ip_tags: list[VirtualMachineScaleSetIpTag] - public_ip_address_version: Union[str, IPVersion] - public_ip_prefix: SubResource + publicIPAddressVersion: Union[str, IPVersion] + publicIPPrefix: SubResource class azure.mgmt.compute.types.VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): @@ -26799,23 +27597,23 @@ namespace azure.mgmt.compute.types key "forceUpdateOSDiskForEphemeral": bool key "osProfile": ForwardRef('OSProfileProvisioningData', module='types') key "tempDisk": bool - exact_version: str - force_update_os_disk_for_ephemeral: bool + exactVersion: str + forceUpdateOSDiskForEphemeral: bool instanceIds: list[str] - instance_ids: list[str] - os_profile: OSProfileProvisioningData - temp_disk: bool + osProfile: OSProfileProvisioningData + tempDisk: bool class azure.mgmt.compute.types.VirtualMachineScaleSetStorageProfile(TypedDict, total=False): + key "diskApiVersion": Union[str, DiskApiVersion] key "diskControllerType": Union[str, DiskControllerTypes] key "imageReference": ForwardRef('ImageReference', module='types') key "osDisk": ForwardRef('VirtualMachineScaleSetOSDisk', module='types') dataDisks: list[VirtualMachineScaleSetDataDisk] - data_disks: list[VirtualMachineScaleSetDataDisk] - disk_controller_type: Union[str, DiskControllerTypes] - image_reference: ImageReference - os_disk: VirtualMachineScaleSetOSDisk + diskApiVersion: Union[str, DiskApiVersion] + diskControllerType: Union[str, DiskControllerTypes] + imageReference: ImageReference + osDisk: VirtualMachineScaleSetOSDisk class azure.mgmt.compute.types.VirtualMachineScaleSetUpdate(UpdateResource): @@ -26847,15 +27645,11 @@ namespace azure.mgmt.compute.types key "subnet": ForwardRef('ApiEntityReference', module='types') applicationGatewayBackendAddressPools: list[SubResource] applicationSecurityGroups: list[SubResource] - application_gateway_backend_address_pools: list[SubResource] - application_security_groups: list[SubResource] loadBalancerBackendAddressPools: list[SubResource] loadBalancerInboundNatPools: list[SubResource] - load_balancer_backend_address_pools: list[SubResource] - load_balancer_inbound_nat_pools: list[SubResource] primary: bool - private_ip_address_version: Union[str, IPVersion] - public_ip_address_configuration: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + privateIPAddressVersion: Union[str, IPVersion] + publicIPAddressConfiguration: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration subnet: ApiEntityReference @@ -26878,17 +27672,16 @@ namespace azure.mgmt.compute.types key "enableIPForwarding": bool key "networkSecurityGroup": ForwardRef('SubResource', module='types') key "primary": bool - auxiliary_mode: Union[str, NetworkInterfaceAuxiliaryMode] - auxiliary_sku: Union[str, NetworkInterfaceAuxiliarySku] - delete_option: Union[str, DeleteOptions] - disable_tcp_state_tracking: bool - dns_settings: VirtualMachineScaleSetNetworkConfigurationDnsSettings - enable_accelerated_networking: bool - enable_fpga: bool - enable_ip_forwarding: bool + auxiliaryMode: Union[str, NetworkInterfaceAuxiliaryMode] + auxiliarySku: Union[str, NetworkInterfaceAuxiliarySku] + deleteOption: Union[str, DeleteOptions] + disableTcpStateTracking: bool + dnsSettings: VirtualMachineScaleSetNetworkConfigurationDnsSettings + enableAcceleratedNetworking: bool + enableFpga: bool + enableIPForwarding: bool ipConfigurations: list[VirtualMachineScaleSetUpdateIPConfiguration] - ip_configurations: list[VirtualMachineScaleSetUpdateIPConfiguration] - network_security_group: SubResource + networkSecurityGroup: SubResource primary: bool @@ -26896,11 +27689,10 @@ namespace azure.mgmt.compute.types key "healthProbe": ForwardRef('ApiEntityReference', module='types') key "interconnectGroupProfile": ForwardRef('InterconnectGroupProfile', module='types') key "networkApiVersion": Union[str, NetworkApiVersion] - health_probe: ApiEntityReference - interconnect_group_profile: InterconnectGroupProfile + healthProbe: ApiEntityReference + interconnectGroupProfile: InterconnectGroupProfile + networkApiVersion: Union[str, NetworkApiVersion] networkInterfaceConfigurations: list[VirtualMachineScaleSetUpdateNetworkConfiguration] - network_api_version: Union[str, NetworkApiVersion] - network_interface_configurations: list[VirtualMachineScaleSetUpdateNetworkConfiguration] class azure.mgmt.compute.types.VirtualMachineScaleSetUpdateOSDisk(TypedDict, total=False): @@ -26913,25 +27705,24 @@ namespace azure.mgmt.compute.types key "storageFaultDomainAlignment": Union[str, StorageFaultDomainAlignmentType] key "writeAcceleratorEnabled": bool caching: Union[str, CachingTypes] - delete_option: Union[str, DiskDeleteOptionTypes] - diff_disk_settings: DiffDiskSettings - disk_size_gb: int + deleteOption: Union[str, DiskDeleteOptionTypes] + diffDiskSettings: DiffDiskSettings + diskSizeGB: int image: VirtualHardDisk - managed_disk: VirtualMachineScaleSetManagedDiskParameters - storage_fault_domain_alignment: Union[str, StorageFaultDomainAlignmentType] + managedDisk: VirtualMachineScaleSetManagedDiskParameters + storageFaultDomainAlignment: Union[str, StorageFaultDomainAlignmentType] vhdContainers: list[str] - vhd_containers: list[str] - write_accelerator_enabled: bool + writeAcceleratorEnabled: bool class azure.mgmt.compute.types.VirtualMachineScaleSetUpdateOSProfile(TypedDict, total=False): key "customData": str key "linuxConfiguration": ForwardRef('LinuxConfiguration', module='types') key "windowsConfiguration": ForwardRef('WindowsConfiguration', module='types') - custom_data: str - linux_configuration: LinuxConfiguration + customData: str + linuxConfiguration: LinuxConfiguration secrets: list[VaultSecretGroup] - windows_configuration: WindowsConfiguration + windowsConfiguration: WindowsConfiguration class azure.mgmt.compute.types.VirtualMachineScaleSetUpdateProperties(TypedDict, total=False): @@ -26950,21 +27741,21 @@ namespace azure.mgmt.compute.types key "upgradePolicy": ForwardRef('UpgradePolicy', module='types') key "virtualMachineProfile": ForwardRef('VirtualMachineScaleSetUpdateVMProfile', module='types') key "zonalPlatformFaultDomainAlignMode": Union[str, ZonalPlatformFaultDomainAlignMode] - additional_capabilities: AdditionalCapabilities - automatic_repairs_policy: AutomaticRepairsPolicy - do_not_run_extensions_on_overprovisioned_v_ms: bool - lifecycle_hooks_profile: LifecycleHooksProfile + additionalCapabilities: AdditionalCapabilities + automaticRepairsPolicy: AutomaticRepairsPolicy + doNotRunExtensionsOnOverprovisionedVMs: bool + lifecycleHooksProfile: LifecycleHooksProfile overprovision: bool - priority_mix_policy: PriorityMixPolicy - proximity_placement_group: SubResource - resiliency_policy: ResiliencyPolicy - scale_in_policy: ScaleInPolicy - single_placement_group: bool - sku_profile: SkuProfile - spot_restore_policy: SpotRestorePolicy - upgrade_policy: UpgradePolicy - virtual_machine_profile: VirtualMachineScaleSetUpdateVMProfile - zonal_platform_fault_domain_align_mode: Union[str, ZonalPlatformFaultDomainAlignMode] + priorityMixPolicy: PriorityMixPolicy + proximityPlacementGroup: SubResource + resiliencyPolicy: ResiliencyPolicy + scaleInPolicy: ScaleInPolicy + singlePlacementGroup: bool + skuProfile: SkuProfile + spotRestorePolicy: SpotRestorePolicy + upgradePolicy: UpgradePolicy + virtualMachineProfile: VirtualMachineScaleSetUpdateVMProfile + zonalPlatformFaultDomainAlignMode: Union[str, ZonalPlatformFaultDomainAlignMode] class azure.mgmt.compute.types.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(TypedDict, total=False): @@ -26980,21 +27771,22 @@ namespace azure.mgmt.compute.types key "dnsSettings": ForwardRef('VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings', module='types') key "idleTimeoutInMinutes": int key "publicIPPrefix": ForwardRef('SubResource', module='types') - delete_option: Union[str, DeleteOptions] - dns_settings: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings - idle_timeout_in_minutes: int - public_ip_prefix: SubResource + deleteOption: Union[str, DeleteOptions] + dnsSettings: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + idleTimeoutInMinutes: int + publicIPPrefix: SubResource class azure.mgmt.compute.types.VirtualMachineScaleSetUpdateStorageProfile(TypedDict, total=False): + key "diskApiVersion": Union[str, DiskApiVersion] key "diskControllerType": Union[str, DiskControllerTypes] key "imageReference": ForwardRef('ImageReference', module='types') key "osDisk": ForwardRef('VirtualMachineScaleSetUpdateOSDisk', module='types') dataDisks: list[VirtualMachineScaleSetDataDisk] - data_disks: list[VirtualMachineScaleSetDataDisk] - disk_controller_type: Union[str, DiskControllerTypes] - image_reference: ImageReference - os_disk: VirtualMachineScaleSetUpdateOSDisk + diskApiVersion: Union[str, DiskApiVersion] + diskControllerType: Union[str, DiskControllerTypes] + imageReference: ImageReference + osDisk: VirtualMachineScaleSetUpdateOSDisk class azure.mgmt.compute.types.VirtualMachineScaleSetUpdateVMProfile(TypedDict, total=False): @@ -27011,19 +27803,19 @@ namespace azure.mgmt.compute.types key "securityProfile": ForwardRef('SecurityProfile', module='types') key "storageProfile": ForwardRef('VirtualMachineScaleSetUpdateStorageProfile', module='types') key "userData": str - billing_profile: BillingProfile - diagnostics_profile: DiagnosticsProfile - extension_profile: VirtualMachineScaleSetExtensionProfile - hardware_profile: VirtualMachineScaleSetHardwareProfile - interconnect_block_profile: InterconnectBlockProfile - license_type: str - network_profile: VirtualMachineScaleSetUpdateNetworkProfile - os_profile: VirtualMachineScaleSetUpdateOSProfile - scheduled_events_profile: ScheduledEventsProfile - security_posture_reference: SecurityPostureReferenceUpdate - security_profile: SecurityProfile - storage_profile: VirtualMachineScaleSetUpdateStorageProfile - user_data: str + billingProfile: BillingProfile + diagnosticsProfile: DiagnosticsProfile + extensionProfile: VirtualMachineScaleSetExtensionProfile + hardwareProfile: VirtualMachineScaleSetHardwareProfile + interconnectBlockProfile: InterconnectBlockProfile + licenseType: str + networkProfile: VirtualMachineScaleSetUpdateNetworkProfile + osProfile: VirtualMachineScaleSetUpdateOSProfile + scheduledEventsProfile: ScheduledEventsProfile + securityPostureReference: SecurityPostureReferenceUpdate + securityProfile: SecurityProfile + storageProfile: VirtualMachineScaleSetUpdateStorageProfile + userData: str class azure.mgmt.compute.types.VirtualMachineScaleSetVM(TrackedResource): @@ -27041,14 +27833,14 @@ namespace azure.mgmt.compute.types etag: str id: str identity: VirtualMachineIdentity - instance_id: str + instanceId: str location: str name: str plan: Plan properties: VirtualMachineScaleSetVMProperties resources: list[VirtualMachineExtension] sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str zones: list[str] @@ -27080,17 +27872,17 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.VirtualMachineScaleSetVMInstanceIDs(TypedDict, total=False): instanceIds: list[str] - instance_ids: list[str] class azure.mgmt.compute.types.VirtualMachineScaleSetVMInstanceRequiredIDs(TypedDict, total=False): key "instanceIds": Required[list[str]] - instance_ids: list[str] + instanceIds: list[str] class azure.mgmt.compute.types.VirtualMachineScaleSetVMInstanceView(TypedDict, total=False): key "assignedHost": str key "bootDiagnostics": ForwardRef('BootDiagnosticsInstanceView', module='types') + key "capacityReservationType": Union[str, CapacityReservationType] key "computerName": str key "hyperVGeneration": Union[str, HyperVGeneration] key "interconnectInstanceView": ForwardRef('InterconnectInstanceView', module='types') @@ -27103,30 +27895,30 @@ namespace azure.mgmt.compute.types key "rdpThumbPrint": str key "vmAgent": ForwardRef('VirtualMachineAgentInstanceView', module='types') key "vmHealth": ForwardRef('VirtualMachineHealthStatus', module='types') - assigned_host: str - boot_diagnostics: BootDiagnosticsInstanceView - computer_name: str + assignedHost: str + bootDiagnostics: BootDiagnosticsInstanceView + capacityReservationType: Union[str, CapacityReservationType] + computerName: str disks: list[DiskInstanceView] extensions: list[VirtualMachineExtensionInstanceView] - hyper_v_generation: Union[str, HyperVGeneration] - interconnect_instance_view: InterconnectInstanceView - maintenance_redeploy_status: MaintenanceRedeployStatus - os_name: str - os_version: str - placement_group_id: str - platform_fault_domain: int - platform_update_domain: int - rdp_thumb_print: str + hyperVGeneration: Union[str, HyperVGeneration] + interconnectInstanceView: InterconnectInstanceView + maintenanceRedeployStatus: MaintenanceRedeployStatus + osName: str + osVersion: str + placementGroupId: str + platformFaultDomain: int + platformUpdateDomain: int + rdpThumbPrint: str statuses: list[InstanceViewStatus] - vm_agent: VirtualMachineAgentInstanceView - vm_health: VirtualMachineHealthStatus + vmAgent: VirtualMachineAgentInstanceView + vmHealth: VirtualMachineHealthStatus class azure.mgmt.compute.types.VirtualMachineScaleSetVMNetworkProfileConfiguration(TypedDict, total=False): key "interconnectGroupProfile": ForwardRef('InterconnectGroupProfile', module='types') - interconnect_group_profile: InterconnectGroupProfile + interconnectGroupProfile: InterconnectGroupProfile networkInterfaceConfigurations: list[VirtualMachineScaleSetNetworkConfiguration] - network_interface_configurations: list[VirtualMachineScaleSetNetworkConfiguration] class azure.mgmt.compute.types.VirtualMachineScaleSetVMProfile(TypedDict, total=False): @@ -27149,30 +27941,31 @@ namespace azure.mgmt.compute.types key "storageProfile": ForwardRef('VirtualMachineScaleSetStorageProfile', module='types') key "timeCreated": str key "userData": str - application_profile: ApplicationProfile - billing_profile: BillingProfile - capacity_reservation: CapacityReservationProfile - diagnostics_profile: DiagnosticsProfile - eviction_policy: Union[str, VirtualMachineEvictionPolicyTypes] - extension_profile: VirtualMachineScaleSetExtensionProfile - hardware_profile: VirtualMachineScaleSetHardwareProfile - interconnect_block_profile: InterconnectBlockProfile - license_type: str - network_profile: VirtualMachineScaleSetNetworkProfile - os_profile: VirtualMachineScaleSetOSProfile + applicationProfile: ApplicationProfile + billingProfile: BillingProfile + capacityReservation: CapacityReservationProfile + diagnosticsProfile: DiagnosticsProfile + evictionPolicy: Union[str, VirtualMachineEvictionPolicyTypes] + extensionProfile: VirtualMachineScaleSetExtensionProfile + hardwareProfile: VirtualMachineScaleSetHardwareProfile + interconnectBlockProfile: InterconnectBlockProfile + licenseType: str + networkProfile: VirtualMachineScaleSetNetworkProfile + osProfile: VirtualMachineScaleSetOSProfile priority: Union[str, VirtualMachinePriorityTypes] - scheduled_events_profile: ScheduledEventsProfile - security_posture_reference: SecurityPostureReference - security_profile: SecurityProfile - service_artifact_reference: ServiceArtifactReference - storage_profile: VirtualMachineScaleSetStorageProfile - time_created: str - user_data: str + scheduledEventsProfile: ScheduledEventsProfile + securityPostureReference: SecurityPostureReference + securityProfile: SecurityProfile + serviceArtifactReference: ServiceArtifactReference + storageProfile: VirtualMachineScaleSetStorageProfile + timeCreated: str + userData: str class azure.mgmt.compute.types.VirtualMachineScaleSetVMProperties(TypedDict, total=False): key "additionalCapabilities": ForwardRef('AdditionalCapabilities', module='types') key "availabilitySet": ForwardRef('SubResource', module='types') + key "capacityReservation": ForwardRef('CapacityReservationProfile', module='types') key "diagnosticsProfile": ForwardRef('DiagnosticsProfile', module='types') key "hardwareProfile": ForwardRef('HardwareProfile', module='types') key "instanceView": ForwardRef('VirtualMachineScaleSetVMInstanceView', module='types') @@ -27192,34 +27985,35 @@ namespace azure.mgmt.compute.types key "userData": str key "virtualMachineResourceId": str key "vmId": str - additional_capabilities: AdditionalCapabilities - availability_set: SubResource - diagnostics_profile: DiagnosticsProfile - hardware_profile: HardwareProfile - instance_view: VirtualMachineScaleSetVMInstanceView - interconnect_block_profile: InterconnectBlockProfile - latest_model_applied: bool - license_type: str - model_definition_applied: str - network_profile: NetworkProfile - network_profile_configuration: VirtualMachineScaleSetVMNetworkProfileConfiguration - os_profile: OSProfile - protection_policy: VirtualMachineScaleSetVMProtectionPolicy - provisioning_state: str - resilient_vm_deletion_status: Union[str, ResilientVMDeletionStatus] - security_profile: SecurityProfile - storage_profile: StorageProfile - time_created: str - user_data: str - virtual_machine_resource_id: str - vm_id: str + additionalCapabilities: AdditionalCapabilities + availabilitySet: SubResource + capacityReservation: CapacityReservationProfile + diagnosticsProfile: DiagnosticsProfile + hardwareProfile: HardwareProfile + instanceView: VirtualMachineScaleSetVMInstanceView + interconnectBlockProfile: InterconnectBlockProfile + latestModelApplied: bool + licenseType: str + modelDefinitionApplied: str + networkProfile: NetworkProfile + networkProfileConfiguration: VirtualMachineScaleSetVMNetworkProfileConfiguration + osProfile: OSProfile + protectionPolicy: VirtualMachineScaleSetVMProtectionPolicy + provisioningState: str + resilientVMDeletionStatus: Union[str, ResilientVMDeletionStatus] + securityProfile: SecurityProfile + storageProfile: StorageProfile + timeCreated: str + userData: str + virtualMachineResourceId: str + vmId: str class azure.mgmt.compute.types.VirtualMachineScaleSetVMProtectionPolicy(TypedDict, total=False): key "protectFromScaleIn": bool key "protectFromScaleSetActions": bool - protect_from_scale_in: bool - protect_from_scale_set_actions: bool + protectFromScaleIn: bool + protectFromScaleSetActions: bool class azure.mgmt.compute.types.VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): @@ -27227,10 +28021,10 @@ namespace azure.mgmt.compute.types key "forceUpdateOSDiskForEphemeral": bool key "osProfile": ForwardRef('OSProfileProvisioningData', module='types') key "tempDisk": bool - exact_version: str - force_update_os_disk_for_ephemeral: bool - os_profile: OSProfileProvisioningData - temp_disk: bool + exactVersion: str + forceUpdateOSDiskForEphemeral: bool + osProfile: OSProfileProvisioningData + tempDisk: bool class azure.mgmt.compute.types.VirtualMachineUpdate(UpdateResource): @@ -27251,7 +28045,7 @@ namespace azure.mgmt.compute.types class azure.mgmt.compute.types.WinRMListener(TypedDict, total=False): key "certificateUrl": str key "protocol": Union[str, ProtocolTypes] - certificate_url: str + certificateUrl: str protocol: Union[str, ProtocolTypes] @@ -27263,49 +28057,43 @@ namespace azure.mgmt.compute.types key "timeZone": str key "winRM": ForwardRef('WinRMConfiguration', module='types') additionalUnattendContent: list[AdditionalUnattendContent] - additional_unattend_content: list[AdditionalUnattendContent] - enable_automatic_updates: bool - enable_vm_agent_platform_updates: bool - patch_settings: PatchSettings - provision_vm_agent: bool - time_zone: str - win_rm: WinRMConfiguration + enableAutomaticUpdates: bool + enableVMAgentPlatformUpdates: bool + patchSettings: PatchSettings + provisionVMAgent: bool + timeZone: str + winRM: WinRMConfiguration class azure.mgmt.compute.types.WindowsParameters(TypedDict, total=False): key "excludeKbsRequiringReboot": bool key "maxPatchPublishDate": str classificationsToInclude: list[Union[str, VMGuestPatchClassificationWindows]] - classifications_to_include: list[Union[str, VMGuestPatchClassificationWindows]] - exclude_kbs_requiring_reboot: bool + excludeKbsRequiringReboot: bool kbNumbersToExclude: list[str] kbNumbersToInclude: list[str] - kb_numbers_to_exclude: list[str] - kb_numbers_to_include: list[str] - max_patch_publish_date: str + maxPatchPublishDate: str patchNameMasksToExclude: list[str] patchNameMasksToInclude: list[str] - patch_name_masks_to_exclude: list[str] - patch_name_masks_to_include: list[str] class azure.mgmt.compute.types.WindowsVMGuestPatchAutomaticByPlatformSettings(TypedDict, total=False): key "bypassPlatformSafetyChecksOnUserSchedule": bool key "rebootSetting": Union[str, WindowsVMGuestPatchAutomaticByPlatformRebootSetting] - bypass_platform_safety_checks_on_user_schedule: bool - reboot_setting: Union[str, WindowsVMGuestPatchAutomaticByPlatformRebootSetting] + bypassPlatformSafetyChecksOnUserSchedule: bool + rebootSetting: Union[str, WindowsVMGuestPatchAutomaticByPlatformRebootSetting] class azure.mgmt.compute.types.ZoneAllocationPolicy(TypedDict, total=False): key "maxInstancePercentPerZonePolicy": ForwardRef('MaxInstancePercentPerZonePolicy', module='types') key "maxZoneCount": int - max_instance_percent_per_zone_policy: MaxInstancePercentPerZonePolicy - max_zone_count: int + maxInstancePercentPerZonePolicy: MaxInstancePercentPerZonePolicy + maxZoneCount: int class azure.mgmt.compute.types.ZoneMovement(TypedDict, total=False): key "isEnabled": bool - is_enabled: bool + isEnabled: bool ``` \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/api.metadata.yml b/sdk/compute/azure-mgmt-compute/api.metadata.yml index cdb7a9762bc8..3a26a74f1190 100644 --- a/sdk/compute/azure-mgmt-compute/api.metadata.yml +++ b/sdk/compute/azure-mgmt-compute/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: aa8523dac5e700508168a7916def557832481b19c014a3c32fd02e290a82f0d0 -parserVersion: 0.3.28 +apiMdSha256: 3d5ec521b5f7516b071a6bac6b9ee4e4dbf6a397c66c721381394ef56ede3b7d +parserVersion: 0.3.31 pythonVersion: 3.13.14 diff --git a/sdk/compute/azure-mgmt-compute/apiview-properties.json b/sdk/compute/azure-mgmt-compute/apiview-properties.json index 966c93ad23cd..340a3263ab0a 100644 --- a/sdk/compute/azure-mgmt-compute/apiview-properties.json +++ b/sdk/compute/azure-mgmt-compute/apiview-properties.json @@ -8,6 +8,7 @@ "azure.mgmt.compute.models.AccessControlRulesRoleAssignment": "ComputeGallery.AccessControlRulesRoleAssignment", "azure.mgmt.compute.models.AccessUri": "ComputeDisk.AccessUri", "azure.mgmt.compute.models.AdditionalCapabilities": "Compute.AdditionalCapabilities", + "azure.mgmt.compute.models.AdditionalDiskProperties": "Compute.AdditionalDiskProperties", "azure.mgmt.compute.models.AdditionalReplicaSet": "ComputeGallery.AdditionalReplicaSet", "azure.mgmt.compute.models.AdditionalUnattendContent": "Compute.AdditionalUnattendContent", "azure.mgmt.compute.models.AllInstancesDown": "Compute.AllInstancesDown", @@ -42,6 +43,7 @@ "azure.mgmt.compute.models.CapacityReservationInstanceViewWithName": "Compute.CapacityReservationInstanceViewWithName", "azure.mgmt.compute.models.CapacityReservationProfile": "Compute.CapacityReservationProfile", "azure.mgmt.compute.models.CapacityReservationProperties": "Compute.CapacityReservationProperties", + "azure.mgmt.compute.models.CapacityReservationStateInfo": "Compute.CapacityReservationStateInfo", "azure.mgmt.compute.models.CapacityReservationUpdate": "Compute.CapacityReservationUpdate", "azure.mgmt.compute.models.CapacityReservationUtilization": "Compute.CapacityReservationUtilization", "azure.mgmt.compute.models.CloudError": "Common.CloudError", @@ -86,6 +88,7 @@ "azure.mgmt.compute.models.DiskAccess": "ComputeDisk.DiskAccess", "azure.mgmt.compute.models.DiskAccessProperties": "ComputeDisk.DiskAccessProperties", "azure.mgmt.compute.models.DiskAccessUpdate": "ComputeDisk.DiskAccessUpdate", + "azure.mgmt.compute.models.DiskAvailabilityPolicy": "Compute.DiskAvailabilityPolicy", "azure.mgmt.compute.models.DiskEncryptionSet": "ComputeDisk.DiskEncryptionSet", "azure.mgmt.compute.models.SubResource": "Common.SubResource", "azure.mgmt.compute.models.DiskEncryptionSetParameters": "Compute.DiskEncryptionSetParameters", @@ -119,6 +122,8 @@ "azure.mgmt.compute.models.EventGridAndResourceGraph": "Compute.EventGridAndResourceGraph", "azure.mgmt.compute.models.ExecutedValidation": "ComputeGallery.ExecutedValidation", "azure.mgmt.compute.models.ExtendedLocation": "Common.ExtendedLocation", + "azure.mgmt.compute.models.ExtensionFeatureMetadata": "Compute.ExtensionFeatureMetadata", + "azure.mgmt.compute.models.ExtensionFeatureTag": "Compute.ExtensionFeatureTag", "azure.mgmt.compute.models.ExternalHealthPolicy": "Compute.ExternalHealthPolicy", "azure.mgmt.compute.models.Gallery": "ComputeGallery.Gallery", "azure.mgmt.compute.models.GalleryApplication": "ComputeGallery.GalleryApplication", @@ -224,6 +229,7 @@ "azure.mgmt.compute.models.ManagedDiskParameters": "Compute.ManagedDiskParameters", "azure.mgmt.compute.models.MaxInstancePercentPerZonePolicy": "Compute.MaxInstancePercentPerZonePolicy", "azure.mgmt.compute.models.MigrateToVirtualMachineScaleSetInput": "Compute.MigrateToVirtualMachineScaleSetInput", + "azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput": "Compute.MigrateVMAvailabilityZoneInput", "azure.mgmt.compute.models.MigrateVMToVirtualMachineScaleSetInput": "Compute.MigrateVMToVirtualMachineScaleSetInput", "azure.mgmt.compute.models.NetworkInterfaceReference": "Compute.NetworkInterfaceReference", "azure.mgmt.compute.models.NetworkInterfaceReferenceProperties": "Compute.NetworkInterfaceReferenceProperties", @@ -388,6 +394,8 @@ "azure.mgmt.compute.models.VirtualMachineAssessPatchesResult": "Compute.VirtualMachineAssessPatchesResult", "azure.mgmt.compute.models.VirtualMachineCaptureParameters": "Compute.VirtualMachineCaptureParameters", "azure.mgmt.compute.models.VirtualMachineCaptureResult": "Compute.VirtualMachineCaptureResult", + "azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand": "Compute.VirtualMachineDiagnosticRunCommand", + "azure.mgmt.compute.models.VirtualMachineDiskProperties": "Compute.ManagedDiskProperties", "azure.mgmt.compute.models.VirtualMachineExtension": "Compute.VirtualMachineExtension", "azure.mgmt.compute.models.VirtualMachineExtensionHandlerInstanceView": "Compute.VirtualMachineExtensionHandlerInstanceView", "azure.mgmt.compute.models.VirtualMachineExtensionImage": "Compute.VirtualMachineExtensionImage", @@ -524,8 +532,11 @@ "azure.mgmt.compute.models.OperatingSystemTypes": "Common.OperatingSystemTypes", "azure.mgmt.compute.models.StorageAccountTypes": "Compute.StorageAccountTypes", "azure.mgmt.compute.models.SecurityEncryptionTypes": "Compute.SecurityEncryptionTypes", + "azure.mgmt.compute.models.VirtualMachineDiskDelayAction": "Compute.AvailabilityPolicyDiskDelay", + "azure.mgmt.compute.models.VirtualMachineDiskNetworkAccessPolicy": "Compute.NetworkAccessPolicy", "azure.mgmt.compute.models.DiskDeleteOptionTypes": "Compute.DiskDeleteOptionTypes", "azure.mgmt.compute.models.DiskControllerTypes": "Compute.DiskControllerTypes", + "azure.mgmt.compute.models.DiskApiVersion": "Compute.DiskApiVersion", "azure.mgmt.compute.models.DomainNameLabelScopeTypes": "Compute.DomainNameLabelScopeTypes", "azure.mgmt.compute.models.IPVersion": "Compute.IPVersion", "azure.mgmt.compute.models.DeleteOptions": "Compute.DeleteOptions", @@ -539,6 +550,7 @@ "azure.mgmt.compute.models.Modes": "Compute.Modes", "azure.mgmt.compute.models.VirtualMachinePriorityTypes": "Compute.VirtualMachinePriorityTypes", "azure.mgmt.compute.models.VirtualMachineEvictionPolicyTypes": "Compute.VirtualMachineEvictionPolicyTypes", + "azure.mgmt.compute.models.ProcessorMode": "Compute.ProcessorMode", "azure.mgmt.compute.models.VirtualMachineScaleSetScaleInRules": "Compute.VirtualMachineScaleSetScaleInRules", "azure.mgmt.compute.models.OrchestrationMode": "Compute.OrchestrationMode", "azure.mgmt.compute.models.RebalanceStrategy": "Compute.RebalanceStrategy", @@ -570,6 +582,7 @@ "azure.mgmt.compute.models.MaintenanceOperationResultCodeTypes": "Compute.MaintenanceOperationResultCodeTypes", "azure.mgmt.compute.models.StorageAlignmentStatus": "Compute.StorageAlignmentStatus", "azure.mgmt.compute.models.PatchOperationStatus": "Compute.PatchOperationStatus", + "azure.mgmt.compute.models.CapacityReservationType": "Compute.CapacityReservationType", "azure.mgmt.compute.models.InstanceViewTypes": "Compute.InstanceViewTypes", "azure.mgmt.compute.models.ExpandTypeForListVMs": "Compute.ExpandTypeForListVMs", "azure.mgmt.compute.models.ExpandTypesForListVMs": "Compute.ExpandTypesForListVMs", @@ -580,6 +593,10 @@ "azure.mgmt.compute.models.VMGuestPatchRebootSetting": "Compute.VMGuestPatchRebootSetting", "azure.mgmt.compute.models.VMGuestPatchClassificationWindows": "Compute.VMGuestPatchClassificationWindows", "azure.mgmt.compute.models.VMGuestPatchClassificationLinux": "Compute.VMGuestPatchClassificationLinux", + "azure.mgmt.compute.models.ReleaseCategory": "Compute.ReleaseCategory", + "azure.mgmt.compute.models.UrgencyLevel": "Compute.UrgencyLevel", + "azure.mgmt.compute.models.RunProfile": "Compute.RunProfile", + "azure.mgmt.compute.models.ListVersionsExpandOptions": "Compute.ListVersionsExpandOptions", "azure.mgmt.compute.models.ProximityPlacementGroupType": "Compute.ProximityPlacementGroupType", "azure.mgmt.compute.models.DedicatedHostLicenseTypes": "Compute.DedicatedHostLicenseTypes", "azure.mgmt.compute.models.OperatingSystemStateTypes": "Common.OperatingSystemStateTypes", @@ -590,6 +607,7 @@ "azure.mgmt.compute.models.SnapshotAccessState": "Common.SnapshotAccessState", "azure.mgmt.compute.models.RestorePointCollectionExpandOptions": "Compute.RestorePointCollectionExpandOptions", "azure.mgmt.compute.models.RestorePointExpandOptions": "Compute.RestorePointExpandOptions", + "azure.mgmt.compute.models.ReservationState": "Compute.ReservationState", "azure.mgmt.compute.models.ReservationType": "Compute.ReservationType", "azure.mgmt.compute.models.CapacityReservationGroupInstanceViewTypes": "Compute.CapacityReservationGroupInstanceViewTypes", "azure.mgmt.compute.models.ExpandTypesForGetCapacityReservationGroups": "Compute.ExpandTypesForGetCapacityReservationGroups", @@ -716,6 +734,8 @@ "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetsOperations.begin_start": "Compute.VirtualMachineScaleSets.start", "azure.mgmt.compute.operations.VirtualMachineScaleSetsOperations.begin_scale_out": "Compute.VirtualMachineScaleSets.scaleOut", "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetsOperations.begin_scale_out": "Compute.VirtualMachineScaleSets.scaleOut", + "azure.mgmt.compute.operations.VirtualMachineScaleSetsOperations.begin_migrate_vm_availability_zone": "Compute.VirtualMachineScaleSets.migrateVMAvailabilityZone", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetsOperations.begin_migrate_vm_availability_zone": "Compute.VirtualMachineScaleSets.migrateVMAvailabilityZone", "azure.mgmt.compute.operations.VirtualMachineScaleSetsOperations.list_by_location": "Compute.VirtualMachineScaleSetsOperationGroup.listByLocation", "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetsOperations.list_by_location": "Compute.VirtualMachineScaleSetsOperationGroup.listByLocation", "azure.mgmt.compute.operations.VirtualMachineScaleSetExtensionsOperations.get": "Compute.VirtualMachineScaleSetExtensions.get", @@ -964,6 +984,26 @@ "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations.begin_delete": "Compute.VirtualMachineScaleSetVMRunCommands.delete", "azure.mgmt.compute.operations.VirtualMachineScaleSetVMRunCommandsOperations.list": "Compute.VirtualMachineScaleSetVMRunCommands.list", "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations.list": "Compute.VirtualMachineScaleSetVMRunCommands.list", + "azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations.get_by_virtual_machine": "Compute.VirtualMachineDiagnosticRunCommands.getByVirtualMachine", + "azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations.get_by_virtual_machine": "Compute.VirtualMachineDiagnosticRunCommands.getByVirtualMachine", + "azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_create_or_update": "Compute.VirtualMachineDiagnosticRunCommands.createOrUpdate", + "azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_create_or_update": "Compute.VirtualMachineDiagnosticRunCommands.createOrUpdate", + "azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_update": "Compute.VirtualMachineDiagnosticRunCommands.update", + "azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_update": "Compute.VirtualMachineDiagnosticRunCommands.update", + "azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_delete": "Compute.VirtualMachineDiagnosticRunCommands.delete", + "azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations.begin_delete": "Compute.VirtualMachineDiagnosticRunCommands.delete", + "azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations.diagnostic_list_by_virtual_machine": "Compute.VirtualMachineDiagnosticRunCommands.diagnosticListByVirtualMachine", + "azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations.diagnostic_list_by_virtual_machine": "Compute.VirtualMachineDiagnosticRunCommands.diagnosticListByVirtualMachine", + "azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.get": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.get", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.get": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.get", + "azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_create_or_update": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.createOrUpdate", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_create_or_update": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.createOrUpdate", + "azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_update": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.update", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_update": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.update", + "azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_delete": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.delete", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.begin_delete": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.delete", + "azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.diagnostic_list": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.diagnosticList", + "azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations.diagnostic_list": "Compute.VirtualMachineScaleSetVMDiagnosticRunCommands.diagnosticList", "azure.mgmt.compute.operations.DisksOperations.get": "ComputeDisk.Disks.get", "azure.mgmt.compute.aio.operations.DisksOperations.get": "ComputeDisk.Disks.get", "azure.mgmt.compute.operations.DisksOperations.begin_create_or_update": "ComputeDisk.Disks.createOrUpdate", @@ -1263,5 +1303,5 @@ "azure.mgmt.compute.operations.GallerySharingProfileOperations.begin_update": "ComputeGallery.Galleries.gallerySharingProfileUpdate", "azure.mgmt.compute.aio.operations.GallerySharingProfileOperations.begin_update": "ComputeGallery.Galleries.gallerySharingProfileUpdate" }, - "CrossLanguageVersion": "e3f97638089f" + "CrossLanguageVersion": "d417af4698c9" } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_client.py index 848321d22758..9496368e4e25 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -59,6 +60,7 @@ SshPublicKeysOperations, TenantLevelSharedGalleryInvitesOperations, UsageOperations, + VirtualMachineDiagnosticRunCommandsOperations, VirtualMachineExtensionImagesOperations, VirtualMachineExtensionsOperations, VirtualMachineImagesEdgeZoneOperations, @@ -67,6 +69,7 @@ VirtualMachineScaleSetExtensionsOperations, VirtualMachineScaleSetLifeCycleHookEventsOperations, VirtualMachineScaleSetRollingUpgradesOperations, + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations, VirtualMachineScaleSetVMExtensionsOperations, VirtualMachineScaleSetVMRunCommandsOperations, VirtualMachineScaleSetVMsOperations, @@ -85,7 +88,7 @@ from azure.core.credentials import TokenCredential -class ComputeManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +class ComputeManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Compute Client. :ivar operations: Operations operations @@ -143,6 +146,14 @@ class ComputeManagementClient: # pylint: disable=client-accepts-api-version-key operations :vartype virtual_machine_scale_set_vm_run_commands: azure.mgmt.compute.operations.VirtualMachineScaleSetVMRunCommandsOperations + :ivar virtual_machine_diagnostic_run_commands: VirtualMachineDiagnosticRunCommandsOperations + operations + :vartype virtual_machine_diagnostic_run_commands: + azure.mgmt.compute.operations.VirtualMachineDiagnosticRunCommandsOperations + :ivar virtual_machine_scale_set_vm_diagnostic_run_commands: + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations operations + :vartype virtual_machine_scale_set_vm_diagnostic_run_commands: + azure.mgmt.compute.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations :ivar disks: DisksOperations operations :vartype disks: azure.mgmt.compute.operations.DisksOperations :ivar disk_accesses: DiskAccessesOperations operations @@ -334,6 +345,14 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.virtual_machine_diagnostic_run_commands = VirtualMachineDiagnosticRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.virtual_machine_scale_set_vm_diagnostic_run_commands = ( + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + ) self.disks = DisksOperations(self._client, self._config, self._serialize, self._deserialize) self.disk_accesses = DiskAccessesOperations(self._client, self._config, self._serialize, self._deserialize) self.disk_encryption_sets = DiskEncryptionSetsOperations( diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/model_base.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/model_base.py index a79d3782e99c..88aaf1823543 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/model_base.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/serialization.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/serialization.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py index 3fe0219b087a..96dbb6597453 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "38.2.0" +VERSION = "38.3.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_client.py index 7bee651dd566..5de6d1f358fa 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -59,6 +60,7 @@ SshPublicKeysOperations, TenantLevelSharedGalleryInvitesOperations, UsageOperations, + VirtualMachineDiagnosticRunCommandsOperations, VirtualMachineExtensionImagesOperations, VirtualMachineExtensionsOperations, VirtualMachineImagesEdgeZoneOperations, @@ -67,6 +69,7 @@ VirtualMachineScaleSetExtensionsOperations, VirtualMachineScaleSetLifeCycleHookEventsOperations, VirtualMachineScaleSetRollingUpgradesOperations, + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations, VirtualMachineScaleSetVMExtensionsOperations, VirtualMachineScaleSetVMRunCommandsOperations, VirtualMachineScaleSetVMsOperations, @@ -85,7 +88,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ComputeManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +class ComputeManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Compute Client. :ivar operations: Operations operations @@ -144,6 +147,14 @@ class ComputeManagementClient: # pylint: disable=client-accepts-api-version-key operations :vartype virtual_machine_scale_set_vm_run_commands: azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations + :ivar virtual_machine_diagnostic_run_commands: VirtualMachineDiagnosticRunCommandsOperations + operations + :vartype virtual_machine_diagnostic_run_commands: + azure.mgmt.compute.aio.operations.VirtualMachineDiagnosticRunCommandsOperations + :ivar virtual_machine_scale_set_vm_diagnostic_run_commands: + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations operations + :vartype virtual_machine_scale_set_vm_diagnostic_run_commands: + azure.mgmt.compute.aio.operations.VirtualMachineScaleSetVMDiagnosticRunCommandsOperations :ivar disks: DisksOperations operations :vartype disks: azure.mgmt.compute.aio.operations.DisksOperations :ivar disk_accesses: DiskAccessesOperations operations @@ -342,6 +353,14 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.virtual_machine_diagnostic_run_commands = VirtualMachineDiagnosticRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.virtual_machine_scale_set_vm_diagnostic_run_commands = ( + VirtualMachineScaleSetVMDiagnosticRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + ) self.disks = DisksOperations(self._client, self._config, self._serialize, self._deserialize) self.disk_accesses = DiskAccessesOperations(self._client, self._config, self._serialize, self._deserialize) self.disk_encryption_sets = DiskEncryptionSetsOperations( diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/__init__.py index 8527e797b539..12fa8353a31a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/__init__.py @@ -32,6 +32,8 @@ from ._operations import InterconnectBlocksOperations # type: ignore from ._operations import VirtualMachineRunCommandsOperations # type: ignore from ._operations import VirtualMachineScaleSetVMRunCommandsOperations # type: ignore +from ._operations import VirtualMachineDiagnosticRunCommandsOperations # type: ignore +from ._operations import VirtualMachineScaleSetVMDiagnosticRunCommandsOperations # type: ignore from ._operations import DisksOperations # type: ignore from ._operations import DiskAccessesOperations # type: ignore from ._operations import DiskEncryptionSetsOperations # type: ignore @@ -91,6 +93,8 @@ "InterconnectBlocksOperations", "VirtualMachineRunCommandsOperations", "VirtualMachineScaleSetVMRunCommandsOperations", + "VirtualMachineDiagnosticRunCommandsOperations", + "VirtualMachineScaleSetVMDiagnosticRunCommandsOperations", "DisksOperations", "DiskAccessesOperations", "DiskEncryptionSetsOperations", diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_operations.py index 1a14c7e59e4f..740c8a059d84 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_operations.py @@ -216,6 +216,11 @@ build_tenant_level_shared_gallery_invites_tenant_level_gallery_sharing_accept_request, build_tenant_level_shared_gallery_invites_tenant_level_gallery_sharing_reject_request, build_usage_list_request, + build_virtual_machine_diagnostic_run_commands_create_or_update_request, + build_virtual_machine_diagnostic_run_commands_delete_request, + build_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine_request, + build_virtual_machine_diagnostic_run_commands_get_by_virtual_machine_request, + build_virtual_machine_diagnostic_run_commands_update_request, build_virtual_machine_extension_images_get_request, build_virtual_machine_extension_images_list_types_request, build_virtual_machine_extension_images_list_versions_request, @@ -255,6 +260,11 @@ build_virtual_machine_scale_set_rolling_upgrades_get_latest_request, build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_request, build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request, + build_virtual_machine_scale_set_vm_diagnostic_run_commands_create_or_update_request, + build_virtual_machine_scale_set_vm_diagnostic_run_commands_delete_request, + build_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list_request, + build_virtual_machine_scale_set_vm_diagnostic_run_commands_get_request, + build_virtual_machine_scale_set_vm_diagnostic_run_commands_update_request, build_virtual_machine_scale_set_vm_extensions_create_or_update_request, build_virtual_machine_scale_set_vm_extensions_delete_request, build_virtual_machine_scale_set_vm_extensions_get_request, @@ -297,6 +307,7 @@ build_virtual_machine_scale_sets_list_by_location_request, build_virtual_machine_scale_sets_list_request, build_virtual_machine_scale_sets_list_skus_request, + build_virtual_machine_scale_sets_migrate_vm_availability_zone_request, build_virtual_machine_scale_sets_perform_maintenance_request, build_virtual_machine_scale_sets_power_off_request, build_virtual_machine_scale_sets_reapply_request, @@ -345,7 +356,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -373,7 +384,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -442,7 +453,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineScaleSetsOperations: # pylint: disable=too-many-public-methods +class VirtualMachineScaleSetsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -494,7 +505,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_request( @@ -569,7 +580,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -769,7 +780,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -849,7 +860,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1048,7 +1059,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1119,7 +1130,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_delete_request( @@ -1189,7 +1200,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1248,7 +1259,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1332,7 +1343,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualMachineScale _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1421,7 +1432,7 @@ async def _approve_rolling_upgrade_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1598,7 +1609,7 @@ async def begin_approve_rolling_upgrade( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -1764,7 +1775,7 @@ async def convert_to_single_placement_group( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -1830,7 +1841,7 @@ async def _deallocate_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2034,7 +2045,7 @@ async def begin_deallocate( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -2106,7 +2117,7 @@ async def _delete_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2296,7 +2307,7 @@ async def begin_delete_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2386,7 +2397,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( # pylint: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RecoveryWalkResponse] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_update_domain_walk_request( @@ -2463,7 +2474,7 @@ async def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_instance_view_request( @@ -2532,7 +2543,7 @@ async def _update_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2704,7 +2715,7 @@ async def begin_update_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2769,7 +2780,7 @@ def get_os_upgrade_history( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.UpgradeOperationHistoricalStatusInfo]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -2860,7 +2871,7 @@ async def _perform_maintenance_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3050,7 +3061,7 @@ async def begin_perform_maintenance( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -3119,7 +3130,7 @@ async def _power_off_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3323,7 +3334,7 @@ async def begin_power_off( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -3385,7 +3396,7 @@ async def _reapply_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_reapply_request( @@ -3452,7 +3463,7 @@ async def begin_reapply( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -3515,7 +3526,7 @@ async def _redeploy_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3693,7 +3704,7 @@ async def begin_redeploy( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -3764,7 +3775,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_reimage_input else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3950,7 +3961,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_reimage_input else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -4017,7 +4028,7 @@ async def _reimage_all_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4195,7 +4206,7 @@ async def begin_reimage_all( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -4262,7 +4273,7 @@ async def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4436,7 +4447,7 @@ async def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -4501,7 +4512,7 @@ async def _set_orchestration_service_state_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4666,7 +4677,7 @@ async def begin_set_orchestration_service_state( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4732,7 +4743,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetSku]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -4823,7 +4834,7 @@ async def _start_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4997,7 +5008,7 @@ async def begin_start( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -5049,7 +5060,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] }, - api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) async def _scale_out_initial( self, @@ -5069,7 +5080,7 @@ async def _scale_out_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5214,7 +5225,7 @@ async def begin_scale_out( params_added_on={ "2025-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] }, - api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) async def begin_scale_out( self, @@ -5241,7 +5252,7 @@ async def begin_scale_out( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5287,6 +5298,249 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] + }, + api_versions_list=["2026-04-01"], + ) + async def _migrate_vm_availability_zone_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: Union[_models.MigrateVMAvailabilityZoneInput, _types.MigrateVMAvailabilityZoneInput, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_sets_migrate_vm_availability_zone_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: _models.MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: ~azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: _types.MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: ~azure.mgmt.compute.types.MigrateVMAvailabilityZoneInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] + }, + api_versions_list=["2026-04-01"], + ) + async def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: Union[_models.MigrateVMAvailabilityZoneInput, _types.MigrateVMAvailabilityZoneInput, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Is either a + MigrateVMAvailabilityZoneInput type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput or + ~azure.mgmt.compute.types.MigrateVMAvailabilityZoneInput or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._migrate_vm_availability_zone_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @distributed_trace def list_by_location(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualMachineScaleSet"]: """Gets all the VM scale sets under the specified subscription for the specified location. @@ -5301,7 +5555,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncItemPaged["_mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -5372,7 +5626,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -5426,7 +5680,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_get_request( @@ -5496,7 +5750,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5687,7 +5941,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5760,7 +6014,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5952,7 +6206,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -6018,7 +6272,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_delete_request( @@ -6087,7 +6341,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6150,7 +6404,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetExtension]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6222,7 +6476,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineScaleSetLifeCycleHookEventsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetLifeCycleHookEventsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -6268,7 +6522,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VMScaleSetLifecycleHookEvent] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_life_cycle_hook_events_get_request( @@ -6453,7 +6707,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VMScaleSetLifecycleHookEvent] = kwargs.pop("cls", None) @@ -6531,7 +6785,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VMScaleSetLifecycleHookEvent]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6603,7 +6857,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -6660,7 +6914,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_get_request( @@ -6732,7 +6986,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -6936,7 +7190,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -7011,7 +7265,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -7215,7 +7469,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -7286,7 +7540,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_delete_request( @@ -7358,7 +7612,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7440,7 +7694,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_list_request( @@ -7490,7 +7744,7 @@ async def list( return deserialized # type: ignore -class VirtualMachinesOperations: # pylint: disable=too-many-public-methods +class VirtualMachinesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -7544,7 +7798,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) _request = build_virtual_machines_get_request( @@ -7619,7 +7873,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -7823,7 +8077,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -7903,7 +8157,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8102,7 +8356,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8173,7 +8427,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_delete_request( @@ -8243,7 +8497,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -8318,7 +8572,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -8421,7 +8675,7 @@ def list_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -8507,7 +8761,7 @@ async def _assess_patches_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_assess_patches_request( @@ -8575,7 +8829,7 @@ async def begin_assess_patches( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineAssessPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -8641,7 +8895,7 @@ async def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8813,7 +9067,7 @@ async def begin_attach_detach_data_disks( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8882,7 +9136,7 @@ async def _capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9059,7 +9313,7 @@ async def begin_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9124,7 +9378,7 @@ async def _convert_to_managed_disks_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_convert_to_managed_disks_request( @@ -9191,7 +9445,7 @@ async def begin_convert_to_managed_disks( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9236,7 +9490,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @api_version_validation( params_added_on={"2025-11-01": ["force_deallocate"]}, - api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) async def _deallocate_initial( self, @@ -9258,7 +9512,7 @@ async def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_deallocate_request( @@ -9311,7 +9565,7 @@ async def _deallocate_initial( @distributed_trace_async @api_version_validation( params_added_on={"2025-11-01": ["force_deallocate"]}, - api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) async def begin_deallocate( self, @@ -9342,7 +9596,7 @@ async def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9416,7 +9670,7 @@ async def generalize(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_generalize_request( @@ -9470,7 +9724,7 @@ async def _install_patches_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9648,7 +9902,7 @@ async def begin_install_patches( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineInstallPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9726,7 +9980,7 @@ async def instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machines_instance_view_request( @@ -9787,7 +10041,7 @@ async def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_perform_maintenance_request( @@ -9853,7 +10107,7 @@ async def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9910,7 +10164,7 @@ async def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_power_off_request( @@ -9982,7 +10236,7 @@ async def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10038,7 +10292,7 @@ async def _reapply_initial(self, resource_group_name: str, vm_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_reapply_request( @@ -10102,7 +10356,7 @@ async def begin_reapply(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10157,7 +10411,7 @@ async def _redeploy_initial(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_redeploy_request( @@ -10221,7 +10475,7 @@ async def begin_redeploy(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10284,7 +10538,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -10478,7 +10732,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -10537,7 +10791,7 @@ async def _restart_initial(self, resource_group_name: str, vm_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_restart_request( @@ -10601,7 +10855,7 @@ async def begin_restart(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10680,7 +10934,7 @@ async def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machines_retrieve_boot_diagnostics_data_request( @@ -10752,7 +11006,7 @@ async def simulate_eviction(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_simulate_eviction_request( @@ -10798,7 +11052,7 @@ async def _start_initial(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_start_request( @@ -10862,7 +11116,7 @@ async def begin_start(self, resource_group_name: str, vm_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10924,7 +11178,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11013,7 +11267,7 @@ async def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11182,7 +11436,7 @@ async def begin_run_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -11255,7 +11509,7 @@ async def _migrate_to_vm_scale_set_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11430,7 +11684,7 @@ async def begin_migrate_to_vm_scale_set( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -11490,7 +11744,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncItemPaged["_mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11561,7 +11815,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineExtensionsOperations: +class VirtualMachineExtensionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11614,7 +11868,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_get_request( @@ -11682,7 +11936,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11867,7 +12121,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -11940,7 +12194,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -12126,7 +12380,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -12196,7 +12450,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_delete_request( @@ -12265,7 +12519,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12338,7 +12592,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_list_request( @@ -12387,7 +12641,7 @@ async def list( return deserialized # type: ignore -class VirtualMachineExtensionImagesOperations: +class VirtualMachineExtensionImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12434,7 +12688,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtensionImage] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_get_request( @@ -12508,7 +12762,7 @@ async def list_types( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_types_request( @@ -12556,6 +12810,10 @@ async def list_types( return deserialized # type: ignore @distributed_trace_async + @api_version_validation( + params_added_on={"2026-04-01": ["expand"]}, + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], + ) async def list_versions( self, location: str, @@ -12565,6 +12823,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, + expand: Optional[Union[str, _models.ListVersionsExpandOptions]] = None, **kwargs: Any ) -> List[_models.VirtualMachineExtensionImage]: """Gets a list of virtual machine extension image versions. @@ -12581,6 +12840,10 @@ async def list_versions( :paramtype top: int :keyword orderby: Default value is None. :paramtype orderby: str + :keyword expand: Expand the response to include additional read-only metadata. Allowed values: + ``properties`` — returns extended metadata (``releaseCategory``, ``urgencyLevel``, + ``runProfile``). "properties" Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.models.ListVersionsExpandOptions :return: list of VirtualMachineExtensionImage :rtype: list[~azure.mgmt.compute.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: @@ -12596,7 +12859,7 @@ async def list_versions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_versions_request( @@ -12607,6 +12870,7 @@ async def list_versions( filter=filter, top=top, orderby=orderby, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -12648,7 +12912,7 @@ async def list_versions( return deserialized # type: ignore -class AvailabilitySetsOperations: +class AvailabilitySetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12689,7 +12953,7 @@ async def get(self, resource_group_name: str, availability_set_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) _request = build_availability_sets_get_request( @@ -12851,7 +13115,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -13023,7 +13287,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -13104,7 +13368,7 @@ async def delete(self, resource_group_name: str, availability_set_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_delete_request( @@ -13152,7 +13416,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.AvailabilitySet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13238,7 +13502,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.AvailabilitySet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13327,7 +13591,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13526,7 +13790,7 @@ async def start_migration_to_virtual_machine_scale_set( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -13596,7 +13860,7 @@ async def cancel_migration_to_virtual_machine_scale_set( # pylint: disable=name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request( @@ -13754,7 +14018,7 @@ async def validate_migration_to_virtual_machine_scale_set( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -13818,7 +14082,7 @@ async def _convert_to_virtual_machine_scale_set_initial( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -13995,7 +14259,7 @@ async def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -14043,7 +14307,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ProximityPlacementGroupsOperations: +class ProximityPlacementGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14094,7 +14358,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_get_request( @@ -14260,7 +14524,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -14435,7 +14699,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -14516,7 +14780,7 @@ async def delete(self, resource_group_name: str, proximity_placement_group_name: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_delete_request( @@ -14567,7 +14831,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.ProximityPlacementGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14649,7 +14913,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Proximi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.ProximityPlacementGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14719,7 +14983,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DedicatedHostGroupsOperations: +class DedicatedHostGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14772,7 +15036,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_get_request( @@ -14947,7 +15211,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -15119,7 +15383,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -15200,7 +15464,7 @@ async def delete(self, resource_group_name: str, host_group_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_delete_request( @@ -15251,7 +15515,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHostGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15333,7 +15597,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Dedicat _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHostGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15403,7 +15667,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DedicatedHostsOperations: +class DedicatedHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15459,7 +15723,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) _request = build_dedicated_hosts_get_request( @@ -15527,7 +15791,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -15709,7 +15973,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -15780,7 +16044,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -15961,7 +16225,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -16031,7 +16295,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_delete_request( @@ -16100,7 +16364,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16163,7 +16427,7 @@ def list_by_host_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16256,7 +16520,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16342,7 +16606,7 @@ async def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_redeploy_request( @@ -16414,7 +16678,7 @@ async def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16472,7 +16736,7 @@ async def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_restart_request( @@ -16544,7 +16808,7 @@ async def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16589,7 +16853,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ImagesOperations: +class ImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16634,7 +16898,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.Image] = kwargs.pop("cls", None) _request = build_images_get_request( @@ -16700,7 +16964,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -16869,7 +17133,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -16938,7 +17202,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -17107,7 +17371,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -17170,7 +17434,7 @@ async def _delete_initial(self, resource_group_name: str, image_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_images_delete_request( @@ -17234,7 +17498,7 @@ async def begin_delete(self, resource_group_name: str, image_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17292,7 +17556,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Image]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17374,7 +17638,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Image"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Image]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17444,7 +17708,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RestorePointCollectionsOperations: +class RestorePointCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17496,7 +17760,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) _request = build_restore_point_collections_get_request( @@ -17670,7 +17934,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -17845,7 +18109,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -17916,7 +18180,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_point_collections_delete_request( @@ -17983,7 +18247,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18041,7 +18305,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.RestorePointCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18125,7 +18389,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.RestorePointCollect _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.RestorePointCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18195,7 +18459,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RestorePointsOperations: +class RestorePointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18249,7 +18513,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) _request = build_restore_points_get_request( @@ -18317,7 +18581,7 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -18502,7 +18766,7 @@ async def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -18572,7 +18836,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_points_delete_request( @@ -18641,7 +18905,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18686,7 +18950,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class CapacityReservationGroupsOperations: +class CapacityReservationGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18741,7 +19005,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_get_request( @@ -18916,7 +19180,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -19099,7 +19363,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -19183,7 +19447,7 @@ async def delete(self, resource_group_name: str, capacity_reservation_group_name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_delete_request( @@ -19244,7 +19508,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservationGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -19348,7 +19612,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservationGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -19420,7 +19684,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CapacityReservationsOperations: +class CapacityReservationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19475,7 +19739,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) _request = build_capacity_reservations_get_request( @@ -19543,7 +19807,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19733,7 +19997,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -19804,7 +20068,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19986,7 +20250,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20056,7 +20320,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_capacity_reservations_delete_request( @@ -20116,8 +20380,12 @@ async def begin_delete( """The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to `https://aka.ms/CapacityReservation `_ for more details. - Note: Block capacity reservations cannot be deleted after it has been successfully allocated - until the schedule end time. + Note: Block capacity reservations cannot be deleted after they have been successfully allocated + until the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can + be deleted if their reservation state is one of: Pending, Declined, FulfillmentFailed, or + Approved. Otherwise, Future capacity reservations in the Committed, Live, or PartiallyFulfilled + state cannot be deleted until minimumCommitmentDays have elapsed since their scheduled start + date. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -20133,7 +20401,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -20206,7 +20474,7 @@ def list_by_capacity_reservation_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20279,7 +20547,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class InterconnectBlocksOperations: +class InterconnectBlocksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -20331,7 +20599,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) _request = build_interconnect_blocks_get_request( @@ -20397,7 +20665,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -20570,7 +20838,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20639,7 +20907,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -20812,7 +21080,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20877,7 +21145,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_interconnect_blocks_delete_request( @@ -20944,7 +21212,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21004,7 +21272,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.InterconnectBlock]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -21086,7 +21354,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Interco _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.InterconnectBlock]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -21156,7 +21424,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineRunCommandsOperations: +class VirtualMachineRunCommandsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21210,7 +21478,7 @@ async def get_by_virtual_machine( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_by_virtual_machine_request( @@ -21278,7 +21546,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -21343,29 +21611,1940 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, run_command_name: str, - run_command: _models.VirtualMachineRunCommand, + run_command: _models.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or + ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_run_commands_update_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or + ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_machine_run_commands_delete_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_virtual_machine( + self, resource_group_name: str, vm_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualMachineRunCommand"]: + """The operation to get all run commands of a Virtual Machine. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: An iterator like instance of VirtualMachineRunCommand + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_run_commands_list_by_virtual_machine_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualMachineRunCommand], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.RunCommandDocumentBase"]: + """Lists all available run commands for a subscription in a location. + + :param location: The name of the Azure region. Required. + :type location: str + :return: An iterator like instance of RunCommandDocumentBase + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.RunCommandDocumentBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.RunCommandDocumentBase]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_run_commands_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.RunCommandDocumentBase], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunCommandDocument: + """Gets specific run command for a subscription in a location. + + :param location: The name of the Azure region. Required. + :type location: str + :param command_id: Specifies a commandId of predefined built-in script. Command IDs available + for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands + `_, Windows at + `https://aka.ms/RunCommandManagedWindows#available-commands + `_. Required. + :type command_id: str + :return: RunCommandDocument. The RunCommandDocument is compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.RunCommandDocument + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) + + _request = build_virtual_machine_run_commands_get_request( + location=location, + command_id=command_id, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RunCommandDocument, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.aio.ComputeManagementClient`'s + :attr:`virtual_machine_scale_set_vm_run_commands` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ComputeManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.VirtualMachineRunCommand: + """The operation to get the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: VirtualMachineRunCommand. The VirtualMachineRunCommand is compatible with + MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + + _request = build_virtual_machine_scale_set_vm_run_commands_get_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or + ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_set_vm_run_commands_update_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Is either a VirtualMachineRunCommandUpdate type + or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or + ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualMachineRunCommand"]: + """The operation to get all run commands of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: An iterator like instance of VirtualMachineRunCommand + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_scale_set_vm_run_commands_list_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualMachineRunCommand], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class VirtualMachineDiagnosticRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.aio.ComputeManagementClient`'s + :attr:`virtual_machine_diagnostic_run_commands` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ComputeManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + async def get_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.VirtualMachineDiagnosticRunCommand: + """The operation to get the diagnostic run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. + :type run_command_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: VirtualMachineDiagnosticRunCommand. The VirtualMachineDiagnosticRunCommand is + compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineDiagnosticRunCommand] = kwargs.pop("cls", None) + + _request = build_virtual_machine_diagnostic_run_commands_get_by_virtual_machine_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualMachineDiagnosticRunCommand, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_diagnostic_run_commands_create_or_update_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _models.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21375,29 +23554,28 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, run_command_name: str, - run_command: _types.VirtualMachineRunCommand, + run_command: _types.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21411,61 +23589,76 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def begin_create_or_update( self, resource_group_name: str, vm_name: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or - ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineDiagnosticRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand or + ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -21485,12 +23678,9 @@ async def begin_create_or_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -21505,16 +23695,29 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def _update_initial( self, resource_group_name: str, @@ -21534,7 +23737,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -21545,7 +23748,7 @@ async def _update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_run_commands_update_request( + _request = build_virtual_machine_diagnostic_run_commands_update_request( resource_group_name=resource_group_name, vm_name=vm_name, run_command_name=run_command_name, @@ -21576,7 +23779,7 @@ async def _update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21602,25 +23805,24 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> AsyncLROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21634,25 +23836,24 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> AsyncLROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21666,29 +23867,43 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> AsyncLROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def begin_update( self, resource_group_name: str, @@ -21696,31 +23911,30 @@ async def begin_update( run_command_name: str, run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> AsyncLROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -21740,16 +23954,9 @@ async def begin_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -21764,16 +23971,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "run_command_name"] + }, + api_versions_list=["2026-04-01"], + ) async def _delete_initial( self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: @@ -21788,10 +24000,10 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_machine_run_commands_delete_request( + _request = build_virtual_machine_diagnostic_run_commands_delete_request( resource_group_name=resource_group_name, vm_name=vm_name, run_command_name=run_command_name, @@ -21820,7 +24032,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21838,17 +24050,24 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "run_command_name"] + }, + api_versions_list=["2026-04-01"], + ) async def begin_delete( self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """The operation to delete the run command. + """The operation to delete the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -21857,7 +24076,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21902,10 +24121,17 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_virtual_machine( + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "expand", "accept"] + }, + api_versions_list=["2026-04-01"], + ) + def diagnostic_list_by_virtual_machine( self, resource_group_name: str, vm_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualMachineRunCommand"]: - """The operation to get all run commands of a Virtual Machine. + ) -> AsyncItemPaged["_models.VirtualMachineDiagnosticRunCommand"]: + """The operation to get all diagnostic run commands of a Virtual Machine. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -21914,16 +24140,16 @@ def list_by_virtual_machine( :type vm_name: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: An iterator like instance of VirtualMachineRunCommand + :return: An iterator like instance of VirtualMachineDiagnosticRunCommand :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineDiagnosticRunCommand]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -21936,7 +24162,7 @@ def list_by_virtual_machine( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_machine_run_commands_list_by_virtual_machine_request( + _request = build_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine_request( resource_group_name=resource_group_name, vm_name=vm_name, subscription_id=self._config.subscription_id, @@ -21966,91 +24192,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualMachineRunCommand], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.RunCommandDocumentBase"]: - """Lists all available run commands for a subscription in a location. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of RunCommandDocumentBase - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.RunCommandDocumentBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.RunCommandDocumentBase]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_machine_run_commands_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.RunCommandDocumentBase], + List[_models.VirtualMachineDiagnosticRunCommand], deserialized.get("value", []), ) if cls: @@ -22069,7 +24211,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22078,89 +24220,15 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace_async - async def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunCommandDocument: - """Gets specific run command for a subscription in a location. - :param location: The name of the Azure region. Required. - :type location: str - :param command_id: Specifies a commandId of predefined built-in script. Command IDs available - for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands - `_, Windows at - `https://aka.ms/RunCommandManagedWindows#available-commands - `_. Required. - :type command_id: str - :return: RunCommandDocument. The RunCommandDocument is compatible with MutableMapping - :rtype: ~azure.mgmt.compute.models.RunCommandDocument - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) - - _request = build_virtual_machine_run_commands_get_request( - location=location, - command_id=command_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.RunCommandDocument, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - -class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetVMDiagnosticRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.compute.aio.ComputeManagementClient`'s - :attr:`virtual_machine_scale_set_vm_run_commands` attribute. + :attr:`virtual_machine_scale_set_vm_diagnostic_run_commands` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -22171,6 +24239,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def get( self, resource_group_name: str, @@ -22180,8 +24264,8 @@ async def get( *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.VirtualMachineRunCommand: - """The operation to get the VMSS VM run command. + ) -> _models.VirtualMachineDiagnosticRunCommand: + """The operation to get the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22190,13 +24274,13 @@ async def get( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: VirtualMachineRunCommand. The VirtualMachineRunCommand is compatible with - MutableMapping - :rtype: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :return: VirtualMachineDiagnosticRunCommand. The VirtualMachineDiagnosticRunCommand is + compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22210,10 +24294,10 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineDiagnosticRunCommand] = kwargs.pop("cls", None) - _request = build_virtual_machine_scale_set_vm_run_commands_get_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_get_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -22245,7 +24329,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22253,20 +24337,38 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + deserialized = _deserialize(_models.VirtualMachineDiagnosticRunCommand, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def _create_or_update_initial( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -22280,7 +24382,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -22291,7 +24393,7 @@ async def _create_or_update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_create_or_update_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -22323,7 +24425,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22347,12 +24449,12 @@ async def begin_create_or_update( vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: _models.VirtualMachineRunCommand, + run_command: _models.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22361,17 +24463,16 @@ async def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22382,12 +24483,12 @@ async def begin_create_or_update( vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: _types.VirtualMachineRunCommand, + run_command: _types.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22396,17 +24497,16 @@ async def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22421,8 +24521,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22431,31 +24531,48 @@ async def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def begin_create_or_update( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22464,23 +24581,22 @@ async def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or - ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineDiagnosticRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand or + ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -22501,12 +24617,9 @@ async def begin_create_or_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -22521,16 +24634,30 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def _update_initial( self, resource_group_name: str, @@ -22551,7 +24678,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -22562,7 +24689,7 @@ async def _update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_scale_set_vm_run_commands_update_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_update_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -22594,7 +24721,7 @@ async def _update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22621,8 +24748,8 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22631,16 +24758,15 @@ async def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22655,8 +24781,8 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22665,16 +24791,15 @@ async def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22689,8 +24814,8 @@ async def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22699,20 +24824,35 @@ async def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) async def begin_update( self, resource_group_name: str, @@ -22721,8 +24861,8 @@ async def begin_update( run_command_name: str, run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> AsyncLROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22731,23 +24871,22 @@ async def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -22768,16 +24907,9 @@ async def begin_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -22792,16 +24924,28 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + ] + }, + api_versions_list=["2026-04-01"], + ) async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: @@ -22816,10 +24960,10 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_delete_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -22849,7 +24993,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22867,10 +25011,24 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + ] + }, + api_versions_list=["2026-04-01"], + ) async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """The operation to delete the VMSS VM run command. + """The operation to delete the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22879,7 +25037,7 @@ async def begin_delete( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -22888,7 +25046,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -22934,7 +25092,22 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + def diagnostic_list( self, resource_group_name: str, vm_scale_set_name: str, @@ -22942,8 +25115,8 @@ def list( *, expand: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualMachineRunCommand"]: - """The operation to get all run commands of an instance in Virtual Machine Scaleset. + ) -> AsyncItemPaged["_models.VirtualMachineDiagnosticRunCommand"]: + """The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -22954,16 +25127,16 @@ def list( :type instance_id: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: An iterator like instance of VirtualMachineRunCommand + :return: An iterator like instance of VirtualMachineDiagnosticRunCommand :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineDiagnosticRunCommand]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -22976,7 +25149,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_machine_scale_set_vm_run_commands_list_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -23007,7 +25180,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualMachineRunCommand], + List[_models.VirtualMachineDiagnosticRunCommand], deserialized.get("value", []), ) if cls: @@ -23026,7 +25199,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23036,7 +25209,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DisksOperations: +class DisksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24269,7 +26442,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DiskAccessesOperations: +class DiskAccessesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -25800,7 +27973,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DiskEncryptionSetsOperations: +class DiskEncryptionSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -26774,7 +28947,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SnapshotsOperations: +class SnapshotsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28599,7 +30772,7 @@ def get_long_running_output(pipeline_response): ) -class GalleriesOperations: +class GalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -29473,7 +31646,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryImagesOperations: +class GalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -30299,7 +32472,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryImageVersionsOperations: +class GalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -31199,7 +33372,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryApplicationsOperations: +class GalleryApplicationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -32038,7 +34211,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryApplicationVersionsOperations: +class GalleryApplicationVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -32969,7 +35142,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryScriptsOperations: +class GalleryScriptsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -33909,7 +36082,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryScriptVersionsOperations: +class GalleryScriptVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -34938,7 +37111,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryInVMAccessControlProfilesOperations: # pylint: disable=name-too-long +class GalleryInVMAccessControlProfilesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -35801,7 +37974,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GalleryInVMAccessControlProfileVersionsOperations: # pylint: disable=name-too-long +class GalleryInVMAccessControlProfileVersionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -36734,7 +38907,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SharedGalleriesOperations: +class SharedGalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -36911,7 +39084,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SharedGalleryImagesOperations: +class SharedGalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37102,7 +39275,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SharedGalleryImageVersionsOperations: +class SharedGalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37311,7 +39484,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CommunityGalleriesOperations: +class CommunityGalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37399,7 +39572,7 @@ async def get(self, location: str, public_gallery_name: str, **kwargs: Any) -> _ return deserialized # type: ignore -class CommunityGalleryImagesOperations: +class CommunityGalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37581,7 +39754,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CommunityGalleryImageVersionsOperations: +class CommunityGalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37778,7 +39951,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SharedGalleryInvitesOperations: +class SharedGalleryInvitesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -38100,7 +40273,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class TenantLevelSharedGalleryInvitesOperations: # pylint: disable=name-too-long +class TenantLevelSharedGalleryInvitesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -38396,7 +40569,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ResourceSkusOperations: +class ResourceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -38504,7 +40677,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -38535,7 +40708,7 @@ async def _start_extension_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_request( @@ -38603,7 +40776,7 @@ async def begin_start_extension_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -38660,7 +40833,7 @@ async def _start_os_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( @@ -38728,7 +40901,7 @@ async def begin_start_os_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -38785,7 +40958,7 @@ async def _cancel_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_cancel_request( @@ -38851,7 +41024,7 @@ async def begin_cancel( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -38921,7 +41094,7 @@ async def get_latest( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RollingUpgradeStatusInfo] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( @@ -38969,7 +41142,7 @@ async def get_latest( return deserialized # type: ignore -class VirtualMachineScaleSetVMsOperations: # pylint: disable=too-many-public-methods +class VirtualMachineScaleSetVMsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -39026,7 +41199,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_request( @@ -39103,7 +41276,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -39319,7 +41492,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -39393,7 +41566,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_delete_request( @@ -39472,7 +41645,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39553,7 +41726,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetVM]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -39641,7 +41814,7 @@ async def _approve_rolling_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( @@ -39709,7 +41882,7 @@ async def begin_approve_rolling_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39767,7 +41940,7 @@ async def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_deallocate_request( @@ -39838,7 +42011,7 @@ async def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39911,7 +42084,7 @@ async def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_instance_view_request( @@ -39984,7 +42157,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_vm_reimage_input else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -40179,7 +42352,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_vm_reimage_input else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -40241,7 +42414,7 @@ async def _reimage_all_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_reimage_all_request( @@ -40311,7 +42484,7 @@ async def begin_reimage_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -40383,7 +42556,7 @@ async def simulate_eviction( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_simulate_eviction_request( @@ -40437,7 +42610,7 @@ async def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -40623,7 +42796,7 @@ async def begin_attach_detach_data_disks( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -40689,7 +42862,7 @@ async def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_perform_maintenance_request( @@ -40758,7 +42931,7 @@ async def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -40822,7 +42995,7 @@ async def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_power_off_request( @@ -40904,7 +43077,7 @@ async def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -40963,7 +43136,7 @@ async def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_redeploy_request( @@ -41033,7 +43206,7 @@ async def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -41091,7 +43264,7 @@ async def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_restart_request( @@ -41160,7 +43333,7 @@ async def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -41244,7 +43417,7 @@ async def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( @@ -41307,7 +43480,7 @@ async def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_start_request( @@ -41376,7 +43549,7 @@ async def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -41439,7 +43612,7 @@ async def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -41621,7 +43794,7 @@ async def begin_run_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -41674,7 +43847,7 @@ def get_long_running_output(pipeline_response): ) -class SshPublicKeysOperations: +class SshPublicKeysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -41717,7 +43890,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) _request = build_ssh_public_keys_get_request( @@ -41879,7 +44052,7 @@ async def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -42051,7 +44224,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -42132,7 +44305,7 @@ async def delete(self, resource_group_name: str, ssh_public_key_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_ssh_public_keys_delete_request( @@ -42184,7 +44357,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.SshPublicKeyResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -42267,7 +44440,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SshPubl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.SshPublicKeyResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -42465,7 +44638,7 @@ async def generate_key_pair( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[_models.SshPublicKeyGenerateKeyPairResult] = kwargs.pop("cls", None) @@ -42527,7 +44700,7 @@ async def generate_key_pair( return deserialized # type: ignore -class UsageOperations: +class UsageOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -42558,7 +44731,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -42629,7 +44802,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineSizesOperations: +class VirtualMachineSizesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -42660,7 +44833,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualM _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -42731,7 +44904,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualMachineImagesEdgeZoneOperations: +class VirtualMachineImagesEdgeZoneOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -42773,7 +44946,7 @@ async def list_publishers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_publishers_request( @@ -42848,7 +45021,7 @@ async def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_offers_request( @@ -42926,7 +45099,7 @@ async def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_skus_request( @@ -43025,7 +45198,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_request( @@ -43111,7 +45284,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_get_request( @@ -43163,7 +45336,7 @@ async def get( return deserialized # type: ignore -class VirtualMachineImagesOperations: +class VirtualMachineImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -43206,7 +45379,7 @@ async def list_by_edge_zone( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VmImagesInEdgeZoneListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_by_edge_zone_request( @@ -43274,7 +45447,7 @@ async def list_publishers(self, location: str, **kwargs: Any) -> List[_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_publishers_request( @@ -43345,7 +45518,7 @@ async def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_offers_request( @@ -43419,7 +45592,7 @@ async def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_skus_request( @@ -43512,7 +45685,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_request( @@ -43608,7 +45781,7 @@ async def list_with_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_with_properties_request( @@ -43691,7 +45864,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_get_request( @@ -43742,7 +45915,7 @@ async def get( return deserialized # type: ignore -class LogAnalyticsOperations: +class LogAnalyticsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -43776,7 +45949,7 @@ async def _export_request_rate_by_interval_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -43936,7 +46109,7 @@ async def begin_export_request_rate_by_interval( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -44003,7 +46176,7 @@ async def _export_throttled_requests_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -44160,7 +46333,7 @@ async def begin_export_throttled_requests( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -44211,7 +46384,7 @@ def get_long_running_output(pipeline_response): ) -class DiskRestorePointOperations: +class DiskRestorePointOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -44831,7 +47004,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class SoftDeletedResourceOperations: +class SoftDeletedResourceOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -44948,7 +47121,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class GallerySharingProfileOperations: +class GallerySharingProfileOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/__init__.py index a5e51b425e0c..58fb2adff52d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/__init__.py @@ -22,6 +22,7 @@ AccessControlRulesRoleAssignment, AccessUri, AdditionalCapabilities, + AdditionalDiskProperties, AdditionalReplicaSet, AdditionalUnattendContent, AllInstancesDown, @@ -53,6 +54,7 @@ CapacityReservationInstanceViewWithName, CapacityReservationProfile, CapacityReservationProperties, + CapacityReservationStateInfo, CapacityReservationUpdate, CapacityReservationUtilization, CloudError, @@ -95,6 +97,7 @@ DiskAccess, DiskAccessProperties, DiskAccessUpdate, + DiskAvailabilityPolicy, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSetUpdate, @@ -126,6 +129,8 @@ EventGridAndResourceGraph, ExecutedValidation, ExtendedLocation, + ExtensionFeatureMetadata, + ExtensionFeatureTag, ExternalHealthPolicy, Gallery, GalleryApplication, @@ -230,6 +235,7 @@ ManagedDiskParameters, MaxInstancePercentPerZonePolicy, MigrateToVirtualMachineScaleSetInput, + MigrateVMAvailabilityZoneInput, MigrateVMToVirtualMachineScaleSetInput, NetworkInterfaceReference, NetworkInterfaceReferenceProperties, @@ -413,6 +419,8 @@ VirtualMachineAssessPatchesResult, VirtualMachineCaptureParameters, VirtualMachineCaptureResult, + VirtualMachineDiagnosticRunCommand, + VirtualMachineDiskProperties, VirtualMachineExtension, VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, @@ -530,6 +538,7 @@ CachingTypes, CapacityReservationGroupInstanceViewTypes, CapacityReservationInstanceViewTypes, + CapacityReservationType, ComponentNames, ConfidentialVMEncryptionType, ConfidentialVMVersion, @@ -541,6 +550,7 @@ DeleteOptions, DiffDiskOptions, DiffDiskPlacement, + DiskApiVersion, DiskControllerTypes, DiskCreateOption, DiskCreateOptionTypes, @@ -588,6 +598,7 @@ LinuxPatchAssessmentMode, LinuxVMGuestPatchAutomaticByPlatformRebootSetting, LinuxVMGuestPatchMode, + ListVersionsExpandOptions, MaintenanceOperationResultCodeTypes, Mode, Modes, @@ -611,6 +622,7 @@ PolicyViolationCategory, PrivateEndpointConnectionProvisioningState, PrivateEndpointServiceConnectionStatus, + ProcessorMode, ProtocolTypes, ProvisionedBandwidthCopyOption, ProximityPlacementGroupType, @@ -620,10 +632,12 @@ PublicNetworkAccess, RebalanceBehavior, RebalanceStrategy, + ReleaseCategory, RepairAction, ReplicationMode, ReplicationState, ReplicationStatusTypes, + ReservationState, ReservationType, ResilientVMDeletionStatus, ResourceIdOptionsForGetCapacityReservationGroups, @@ -636,6 +650,7 @@ RestorePointExpandOptions, RollingUpgradeActionType, RollingUpgradeStatusCode, + RunProfile, ScriptShellTypes, SecurityEncryptionTypes, SecurityTypes, @@ -662,6 +677,7 @@ UpgradeMode, UpgradeOperationInvoker, UpgradeState, + UrgencyLevel, VMGuestPatchClassificationLinux, VMGuestPatchClassificationWindows, VMGuestPatchRebootBehavior, @@ -670,6 +686,8 @@ VMScaleSetLifecycleHookEventState, VMScaleSetLifecycleHookEventType, ValidationStatus, + VirtualMachineDiskDelayAction, + VirtualMachineDiskNetworkAccessPolicy, VirtualMachineEvictionPolicyTypes, VirtualMachinePriorityTypes, VirtualMachineScaleSetScaleInRules, @@ -694,6 +712,7 @@ "AccessControlRulesRoleAssignment", "AccessUri", "AdditionalCapabilities", + "AdditionalDiskProperties", "AdditionalReplicaSet", "AdditionalUnattendContent", "AllInstancesDown", @@ -725,6 +744,7 @@ "CapacityReservationInstanceViewWithName", "CapacityReservationProfile", "CapacityReservationProperties", + "CapacityReservationStateInfo", "CapacityReservationUpdate", "CapacityReservationUtilization", "CloudError", @@ -767,6 +787,7 @@ "DiskAccess", "DiskAccessProperties", "DiskAccessUpdate", + "DiskAvailabilityPolicy", "DiskEncryptionSet", "DiskEncryptionSetParameters", "DiskEncryptionSetUpdate", @@ -798,6 +819,8 @@ "EventGridAndResourceGraph", "ExecutedValidation", "ExtendedLocation", + "ExtensionFeatureMetadata", + "ExtensionFeatureTag", "ExternalHealthPolicy", "Gallery", "GalleryApplication", @@ -902,6 +925,7 @@ "ManagedDiskParameters", "MaxInstancePercentPerZonePolicy", "MigrateToVirtualMachineScaleSetInput", + "MigrateVMAvailabilityZoneInput", "MigrateVMToVirtualMachineScaleSetInput", "NetworkInterfaceReference", "NetworkInterfaceReferenceProperties", @@ -1085,6 +1109,8 @@ "VirtualMachineAssessPatchesResult", "VirtualMachineCaptureParameters", "VirtualMachineCaptureResult", + "VirtualMachineDiagnosticRunCommand", + "VirtualMachineDiskProperties", "VirtualMachineExtension", "VirtualMachineExtensionHandlerInstanceView", "VirtualMachineExtensionImage", @@ -1199,6 +1225,7 @@ "CachingTypes", "CapacityReservationGroupInstanceViewTypes", "CapacityReservationInstanceViewTypes", + "CapacityReservationType", "ComponentNames", "ConfidentialVMEncryptionType", "ConfidentialVMVersion", @@ -1210,6 +1237,7 @@ "DeleteOptions", "DiffDiskOptions", "DiffDiskPlacement", + "DiskApiVersion", "DiskControllerTypes", "DiskCreateOption", "DiskCreateOptionTypes", @@ -1257,6 +1285,7 @@ "LinuxPatchAssessmentMode", "LinuxVMGuestPatchAutomaticByPlatformRebootSetting", "LinuxVMGuestPatchMode", + "ListVersionsExpandOptions", "MaintenanceOperationResultCodeTypes", "Mode", "Modes", @@ -1280,6 +1309,7 @@ "PolicyViolationCategory", "PrivateEndpointConnectionProvisioningState", "PrivateEndpointServiceConnectionStatus", + "ProcessorMode", "ProtocolTypes", "ProvisionedBandwidthCopyOption", "ProximityPlacementGroupType", @@ -1289,10 +1319,12 @@ "PublicNetworkAccess", "RebalanceBehavior", "RebalanceStrategy", + "ReleaseCategory", "RepairAction", "ReplicationMode", "ReplicationState", "ReplicationStatusTypes", + "ReservationState", "ReservationType", "ResilientVMDeletionStatus", "ResourceIdOptionsForGetCapacityReservationGroups", @@ -1305,6 +1337,7 @@ "RestorePointExpandOptions", "RollingUpgradeActionType", "RollingUpgradeStatusCode", + "RunProfile", "ScriptShellTypes", "SecurityEncryptionTypes", "SecurityTypes", @@ -1331,6 +1364,7 @@ "UpgradeMode", "UpgradeOperationInvoker", "UpgradeState", + "UrgencyLevel", "VMGuestPatchClassificationLinux", "VMGuestPatchClassificationWindows", "VMGuestPatchRebootBehavior", @@ -1339,6 +1373,8 @@ "VMScaleSetLifecycleHookEventState", "VMScaleSetLifecycleHookEventType", "ValidationStatus", + "VirtualMachineDiskDelayAction", + "VirtualMachineDiskNetworkAccessPolicy", "VirtualMachineEvictionPolicyTypes", "VirtualMachinePriorityTypes", "VirtualMachineScaleSetScaleInRules", diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_enums.py index 97b04ad7301e..2eda43156faa 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_enums.py @@ -137,6 +137,35 @@ class CapacityReservationInstanceViewTypes(str, Enum, metaclass=CaseInsensitiveE """INSTANCE_VIEW.""" +class CapacityReservationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies which type of capacity reservation the virtual machine will consume capacity from if + eligible or whether it is explicitly opted out from being associated and consuming capacity + from any reserved capacity available in the subscription. Minimum api-version: 2026-04-01. + """ + + NOT_ELIGIBLE = "NotEligible" + """The virtual machine is not eligible to be implicitly associated with an open capacity + reservation and is not explicitly associated with any capacity reservation group, so it will + consume capacity from the publicly available capacity.""" + TARGETED = "Targeted" + """The virtual machine will consume capacity from a specific matching capacity reservation when + associated with a capacity reservation group resource of type targeted, but can fall back to + consume capacity from the publicly available capacity if there is no capacity available in the + targeted reservation.""" + OPEN = "Open" + """The virtual machine if eligible will implicitly associate and consume any available capacity + from a matching open capacity reservation created or shared in the subscription. **Note:** The + VM should not be explicitly associated with the open capacity reservation group resource + containing the matching reservation.""" + DISABLED = "Disabled" + """The virtual machine has capacity reservation assignment disabled and will not be allowed to + implicitly or explicitly associate with any type of capacity reservation.""" + BLOCK = "Block" + """The virtual machine consumes capacity from a specific matching capacity reservation when + associated with a capacity reservation group resource of type block, and will hit capacity + failures if there is no available capacity in the block reservation.""" + + class ComponentNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.""" @@ -265,6 +294,17 @@ class DiffDiskPlacement(str, Enum, metaclass=CaseInsensitiveEnumMeta): """NVME_DISK.""" +class DiskApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD. + """ + + ENUM_2025_01_02 = "2025-01-02" + """The 2025-01-02 Disk RP API version.""" + ENUM_2026_03_02 = "2026-03-02" + """The 2026-03-02 Disk RP API version.""" + + class DiskControllerTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported for virtual machines whose operating system disk and VM sku supports @@ -891,6 +931,13 @@ class LinuxVMGuestPatchMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """AUTOMATIC_BY_PLATFORM.""" +class ListVersionsExpandOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Defines the allowed values for the $expand query parameter on the ListVersions operation.""" + + PROPERTIES = "properties" + """Expand to include all properties in the response.""" + + class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The Last Maintenance Operation Result Code.""" @@ -1159,6 +1206,18 @@ class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiv """REJECTED.""" +class ProcessorMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the processor frequency behavior for the virtual machine. See each member for the + behavior it controls. + """ + + DETERMINISTIC = "Deterministic" + """Ensures predictable and consistent processor frequency at the base/nominal level. Turbo/Boost + is disabled.""" + OPPORTUNISTIC = "Opportunistic" + """Allows higher frequency bursts when thermal and power headroom permits.""" + + class ProtocolTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**.""" @@ -1248,6 +1307,21 @@ class RebalanceStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): """RECREATE.""" +class ReleaseCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Enumerates the type of change introduced in the extension version.""" + + OTHER = "Other" + """Other type of change.""" + BUG_FIX = "BugFix" + """Bug fix change.""" + SECURITY_FIX = "SecurityFix" + """Security fix change.""" + COMPATIBILITY_UPDATE = "CompatibilityUpdate" + """Compatibility update change.""" + NEW_FEATURE = "NewFeature" + """New feature change.""" + + class RepairAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. @@ -1294,19 +1368,53 @@ class ReplicationStatusTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """UEFI_SETTINGS.""" +class ReservationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The current state of a Future capacity reservation.""" + + PENDING = "Pending" + """The capacity reservation request has been submitted and is awaiting evaluation.""" + DECLINED = "Declined" + """The capacity reservation request was rejected, and will not change again without user action.""" + APPROVED = "Approved" + """The capacity reservation request has been approved by Azure and is awaiting fulfillment.""" + FULFILLMENT_FAILED = "FulfillmentFailed" + """A failure occurred while attempting to fulfill the capacity reservation request.""" + COMMITTED = "Committed" + """The capacity reservation is locked and cannot be updated or deleted prior to going live.""" + LIVE = "Live" + """The capacity reservation is active and available for use, and cannot be modified or deleted + until the minimum commitment period has elapsed.""" + PARTIALLY_FULFILLED = "PartiallyFulfilled" + """Azure was only able to deliver a portion of the requested capacity. The capacity reservation + cannot be modified or deleted until the minimum commitment period has elapsed. The portion of + fulfilled capacity can be viewed by inspecting the capacity reservation's instance view, + displayed as currentCapacity within the utilizationInfo.""" + + class ReservationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity - reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - reservation when a capacity reservation group is provided. The reservation type is immutable - and cannot be changed after it is assigned. + reservations that enable a VM to consume capacity only from this capacity block when it is + associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to + consume capacity from an explicitly associated capacity reservation group and fall back to the + publicly available capacity if the reservation is full, and 'Open' for reservations that a VM + consumes when it is eligible from an implicitly associated capacity reservation group with the + matching VM size and zone without associating that capacity reservation group and fall back to + the publicly available capacity if the reservation is full. Future capacity reservations can be + created in 'Targeted' or 'Open' capacity reservation groups. The reservation type is immutable + and cannot be changed after the capacity reservation group is created. """ TARGETED = "Targeted" - """To consume on demand allocated capacity reservation when a capacity reservation group is - provided.""" + """Reservations that enable a VM to consume capacity from an explicitly associated capacity + reservation group and fall back to the publicly available capacity if the reservation is full.""" BLOCK = "Block" - """To consume scheduled allocated block capacity reservation when a capacity reservation group is - provided.""" + """Block capacity reservations that enable a VM to consume capacity only from this capacity block + when it is associated using a capacity reservation group.""" + OPEN = "Open" + """Reservations that a VM consumes when it is eligible from an implicitly associated capacity + reservation group with the matching VM size and zone without associating that capacity + reservation group, and fall back to the publicly available capacity if the reservation is full. + Minimum api-version: 2026-04-01.""" class ResilientVMDeletionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -1431,6 +1539,19 @@ class RollingUpgradeStatusCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """FAULTED.""" +class RunProfile(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the execution profile for the extension.""" + + OTHER = "Other" + """Other execution profile.""" + RUN_ONCE = "RunOnce" + """Run once execution profile.""" + LONG_RUNNING = "LongRunning" + """Long running execution profile.""" + HYBRID = "Hybrid" + """Hybrid execution profile.""" + + class ScriptShellTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Script shell types.""" @@ -1753,6 +1874,17 @@ class UpgradeState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """FAULTED.""" +class UrgencyLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Defines urgency levels for extension updates.""" + + REGULAR = "Regular" + """Regular urgency level.""" + EXPEDITED = "Expedited" + """Expedited urgency level.""" + EMERGENCY = "Emergency" + """Emergency urgency level.""" + + class ValidationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """This property specifies the status of the validationProfile of the image version.""" @@ -1764,6 +1896,27 @@ class ValidationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """SUCCEEDED.""" +class VirtualMachineDiskDelayAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Determines how to handle disks with slow I/O.""" + + NONE = "None" + """Defaults to behavior without availability policy specified, which is VM restart upon slow disk + I/O.""" + AUTOMATIC_REATTACH = "AutomaticReattach" + """Upon a disk I/O failure or slow response, try detaching then reattaching the disk.""" + + +class VirtualMachineDiskNetworkAccessPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Policy for accessing the disk via network.""" + + ALLOW_ALL = "AllowAll" + """The disk can be exported or uploaded from any network.""" + ALLOW_PRIVATE = "AllowPrivate" + """The disk can be exported or uploaded using a DiskAccess resource's private endpoints.""" + DENY_ALL = "DenyAll" + """The disk cannot be exported.""" + + class VirtualMachineEvictionPolicyTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the eviction policy for the Azure Spot VM/VMSS.""" @@ -1775,16 +1928,21 @@ class VirtualMachineEvictionPolicyTypes(str, Enum, metaclass=CaseInsensitiveEnum class VirtualMachinePriorityTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the priority for a standalone virtual machine or the virtual machines in the scale - set. 'Low' enum will be deprecated in the future, please use 'Spot' as the enum to deploy Azure - Spot VM/VMSS. + set. """ REGULAR = "Regular" - """REGULAR.""" + """Regular Priority for a standalone virtual machine or the virtual machines in the scale set. + This is the default priority and it will be used to deploy regular VM/VMSS.""" LOW = "Low" - """LOW.""" + """Low priority for a standalone virtual machine or the virtual machines in the scale set. Will be + Deprecated, use Spot instead.""" SPOT = "Spot" - """SPOT.""" + """Spot priority for a standalone virtual machine or the virtual machines in the scale set.""" + SPOT_PLUS = "SpotPlus" + """SpotPlus priority for a standalone virtual machine or the virtual machines in the scale set. + This is an enum value that will be used to deploy Azure Spot Plus VM/VMSS, which is the next + generation of Azure Spot VM/VMSS with more reliability and longer running time.""" class VirtualMachineScaleSetScaleInRules(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py index 4c71e13c4d6b..6aa92498a784 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class AccessControlRules(_Model): +class AccessControlRules(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the Access Control Rules specification for an inVMAccessControlProfile version. :ivar privileges: A list of privileges. @@ -68,7 +68,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessControlRulesIdentity(_Model): +class AccessControlRulesIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of an Access Control Rule Identity. :ivar name: The name of the identity. Required. @@ -118,7 +118,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessControlRulesPrivilege(_Model): +class AccessControlRulesPrivilege(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of an Access Control Rule Privilege. :ivar name: The name of the privilege. Required. @@ -158,7 +158,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessControlRulesRole(_Model): +class AccessControlRulesRole(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of an Access Control Rule Role. :ivar name: The name of the role. Required. @@ -191,7 +191,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AccessControlRulesRoleAssignment(_Model): +class AccessControlRulesRoleAssignment(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of an Access Control Rule RoleAssignment. :ivar role: The name of the role. Required. @@ -244,7 +244,7 @@ class AccessUri(_Model): """A SAS uri for accessing a VM metadata.""" -class AdditionalCapabilities(_Model): +class AdditionalCapabilities(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Enables or disables a capability on the virtual machine or virtual machine scale set. :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have one or more @@ -298,7 +298,40 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdditionalReplicaSet(_Model): +class AdditionalDiskProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Specifies additional properties for a managed disk that can be set at the time of implicit + creation of the disk. + + :ivar managed_disk_properties: Specifies the managed disk properties that can be set at the + time of implicit creation of the disk. + :vartype managed_disk_properties: ~azure.mgmt.compute.models.VirtualMachineDiskProperties + """ + + managed_disk_properties: Optional["_models.VirtualMachineDiskProperties"] = rest_field( + name="managedDiskProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the managed disk properties that can be set at the time of implicit creation of the + disk.""" + + @overload + def __init__( + self, + *, + managed_disk_properties: Optional["_models.VirtualMachineDiskProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AdditionalReplicaSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the additional replica set information. :ivar storage_account_type: Specifies the storage account type to be used to create the direct @@ -340,7 +373,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdditionalUnattendContent(_Model): +class AdditionalUnattendContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. @@ -400,7 +433,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AllInstancesDown(_Model): +class AllInstancesDown(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies if Scheduled Events should be auto-approved when all instances are down. :ivar automatically_approve: Specifies if Scheduled Events should be auto-approved when all @@ -432,7 +465,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AlternativeOption(_Model): +class AlternativeOption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the alternative option specified by the Publisher for this image when this image is deprecated. @@ -472,7 +505,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApiEntityReference(_Model): +class ApiEntityReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The API entity reference. :ivar id: The ARM resource id in the form of @@ -502,7 +535,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApiError(_Model): +class ApiError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Api error. :ivar details: The Api error details. @@ -552,7 +585,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApiErrorBase(_Model): +class ApiErrorBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Api error base. :ivar code: The error code. @@ -590,7 +623,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationProfile(_Model): +class ApplicationProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the list of gallery applications that should be made available to the VM/VMSS. :ivar gallery_applications: Specifies the gallery applications that should be made available to @@ -621,7 +654,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AttachDetachDataDisksRequest(_Model): +class AttachDetachDataDisksRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the input for attaching and detaching a list of managed data disks. :ivar data_disks_to_attach: The list of managed data disks to be attached. @@ -658,7 +691,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutomaticOSUpgradePolicy(_Model): +class AutomaticOSUpgradePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used for performing automatic OS upgrade. :ivar enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be @@ -729,7 +762,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutomaticOSUpgradeProperties(_Model): +class AutomaticOSUpgradeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes automatic OS upgrade properties on the image. :ivar automatic_os_upgrade_supported: Specifies whether automatic OS upgrade is supported on @@ -760,7 +793,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutomaticRepairsPolicy(_Model): +class AutomaticRepairsPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the configuration parameters for automatic repairs on the virtual machine scale set. :ivar enabled: Specifies whether automatic repairs should be enabled on the virtual machine @@ -816,7 +849,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutomaticSkuMigrationPolicy(_Model): +class AutomaticSkuMigrationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the configuration parameters used to control automatic SKU migration for the virtual machine scale set. When enabled, the platform may migrate instances to a different VM size from the SKU profile depending on platform demands. @@ -848,7 +881,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutomaticZoneRebalancingPolicy(_Model): +class AutomaticZoneRebalancingPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing automatic AZ balancing. :ivar enabled: Specifies whether Automatic AZ Balancing should be enabled on the virtual @@ -899,7 +932,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailabilityPolicy(_Model): +class AvailabilityPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """In the case of an availability or connectivity issue with the data disk, specify the behavior of your VM. @@ -960,7 +993,7 @@ class Resource(_Model): """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1004,7 +1037,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailabilitySet(TrackedResource): +class AvailabilitySet(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets @@ -1097,7 +1130,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AvailabilitySetProperties(_Model): +class AvailabilitySetProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a resource. :ivar platform_update_domain_count: Update Domain count. @@ -1172,7 +1205,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UpdateResource(_Model): +class UpdateResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Update Resource model definition. :ivar tags: Resource tags. @@ -1200,7 +1233,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailabilitySetUpdate(UpdateResource): +class AvailabilitySetUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. @@ -1325,7 +1358,7 @@ class AvailablePatchSummary(_Model): the list of them.""" -class BillingProfile(_Model): +class BillingProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01. @@ -1372,7 +1405,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BootDiagnostics(_Model): +class BootDiagnostics(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. @@ -1437,7 +1470,7 @@ class BootDiagnosticsInstanceView(_Model): errors encountered in enabling boot diagnostics.""" -class CapacityReservation(TrackedResource): +class CapacityReservation(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the capacity reservation. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1540,7 +1573,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CapacityReservationGroup(TrackedResource): +class CapacityReservationGroup(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved @@ -1647,7 +1680,7 @@ class CapacityReservationGroupInstanceView(_Model): `_ for more details.""" -class CapacityReservationGroupProperties(_Model): +class CapacityReservationGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """capacity reservation group Properties. :ivar capacity_reservations: A list of all capacity reservation resource ids that belong to @@ -1668,10 +1701,15 @@ class CapacityReservationGroupProperties(_Model): for more details. :vartype sharing_profile: ~azure.mgmt.compute.models.ResourceSharingProfile :ivar reservation_type: Indicates the type of capacity reservation. Allowed values are 'Block' - for block capacity reservations and 'Targeted' for reservations that enable a VM to consume a - specific capacity reservation when a capacity reservation group is provided. The reservation - type is immutable and cannot be changed after it is assigned. Known values are: "Targeted" and - "Block". + for block capacity reservations that enable a VM to consume capacity only from this capacity + block when it is associated using a capacity reservation group, 'Targeted' for reservations + that enable a VM to consume capacity from an explicitly associated capacity reservation group + and fall back to the publicly available capacity if the reservation is full, and 'Open' for + reservations that a VM consumes when it is eligible from an implicitly associated capacity + reservation group with the matching VM size and zone without associating that capacity + reservation group and fall back to the publicly available capacity if the reservation is full. + The reservation type is immutable and cannot be changed after the capacity reservation group is + created. Known values are: "Targeted", "Block", and "Open". :vartype reservation_type: str or ~azure.mgmt.compute.models.ReservationType """ @@ -1702,9 +1740,15 @@ class CapacityReservationGroupProperties(_Model): name="reservationType", visibility=["read", "create", "update", "delete", "query"] ) """Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity - reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - reservation when a capacity reservation group is provided. The reservation type is immutable - and cannot be changed after it is assigned. Known values are: \"Targeted\" and \"Block\".""" + reservations that enable a VM to consume capacity only from this capacity block when it is + associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to + consume capacity from an explicitly associated capacity reservation group and fall back to the + publicly available capacity if the reservation is full, and 'Open' for reservations that a VM + consumes when it is eligible from an implicitly associated capacity reservation group with the + matching VM size and zone without associating that capacity reservation group and fall back to + the publicly available capacity if the reservation is full. The reservation type is immutable + and cannot be changed after the capacity reservation group is created. Known values are: + \"Targeted\", \"Block\", and \"Open\".""" @overload def __init__( @@ -1725,7 +1769,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityReservationGroupUpdate(UpdateResource): +class CapacityReservationGroupUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the capacity reservation group. Only tags can be updated. :ivar tags: Resource tags. @@ -1784,7 +1828,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CapacityReservationInstanceView(_Model): +class CapacityReservationInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. @@ -1793,6 +1837,10 @@ class CapacityReservationInstanceView(_Model): :vartype utilization_info: ~azure.mgmt.compute.models.CapacityReservationUtilization :ivar statuses: The resource status information. :vartype statuses: list[~azure.mgmt.compute.models.InstanceViewStatus] + :ivar reservation_state_info: The reservation state information for a capacity reservation, + this detail is primarily provided for Future capacity reservations. Minimum API version: + 2026-04-01. + :vartype reservation_state_info: ~azure.mgmt.compute.models.CapacityReservationStateInfo """ utilization_info: Optional["_models.CapacityReservationUtilization"] = rest_field( @@ -1803,6 +1851,11 @@ class CapacityReservationInstanceView(_Model): visibility=["read", "create", "update", "delete", "query"] ) """The resource status information.""" + reservation_state_info: Optional["_models.CapacityReservationStateInfo"] = rest_field( + name="reservationStateInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """The reservation state information for a capacity reservation, this detail is primarily provided + for Future capacity reservations. Minimum API version: 2026-04-01.""" @overload def __init__( @@ -1810,6 +1863,7 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[list["_models.InstanceViewStatus"]] = None, + reservation_state_info: Optional["_models.CapacityReservationStateInfo"] = None, ) -> None: ... @overload @@ -1823,7 +1877,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): +class CapacityReservationInstanceViewWithName( + CapacityReservationInstanceView +): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. @@ -1831,6 +1887,10 @@ class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): :vartype utilization_info: ~azure.mgmt.compute.models.CapacityReservationUtilization :ivar statuses: The resource status information. :vartype statuses: list[~azure.mgmt.compute.models.InstanceViewStatus] + :ivar reservation_state_info: The reservation state information for a capacity reservation, + this detail is primarily provided for Future capacity reservations. Minimum API version: + 2026-04-01. + :vartype reservation_state_info: ~azure.mgmt.compute.models.CapacityReservationStateInfo :ivar name: The name of the capacity reservation. :vartype name: str """ @@ -1844,6 +1904,7 @@ def __init__( *, utilization_info: Optional["_models.CapacityReservationUtilization"] = None, statuses: Optional[list["_models.InstanceViewStatus"]] = None, + reservation_state_info: Optional["_models.CapacityReservationStateInfo"] = None, ) -> None: ... @overload @@ -1857,7 +1918,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityReservationProfile(_Model): +class CapacityReservationProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters of a capacity reservation Profile. :ivar capacity_reservation_group: Specifies the capacity reservation group resource id that @@ -1865,6 +1926,12 @@ class CapacityReservationProfile(_Model): capacity has been reserved. Please refer to `https://aka.ms/CapacityReservation `_ for more details. :vartype capacity_reservation_group: ~azure.mgmt.compute.models.SubResource + :ivar disable_capacity_reservation_assignment: Specifies whether the virtual machine is + explicitly opted out from being associated with any capacity reservation. When set to true, the + virtual machine will not be allowed to implicitly or explicitly associate with any type of + capacity reservation and will consume capacity from the publicly available capacity. Minimum + api-version: 2026-04-01. + :vartype disable_capacity_reservation_assignment: bool """ capacity_reservation_group: Optional["_models.SubResource"] = rest_field( @@ -1874,12 +1941,20 @@ class CapacityReservationProfile(_Model): virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to `https://aka.ms/CapacityReservation `_ for more details.""" + disable_capacity_reservation_assignment: Optional[bool] = rest_field( + name="disableCapacityReservationAssignment", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the virtual machine is explicitly opted out from being associated with any + capacity reservation. When set to true, the virtual machine will not be allowed to implicitly + or explicitly associate with any type of capacity reservation and will consume capacity from + the publicly available capacity. Minimum api-version: 2026-04-01.""" @overload def __init__( self, *, capacity_reservation_group: Optional["_models.SubResource"] = None, + disable_capacity_reservation_assignment: Optional[bool] = None, ) -> None: ... @overload @@ -1893,7 +1968,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityReservationProperties(_Model): +class CapacityReservationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Capacity reservation. :ivar reservation_id: A unique id generated and assigned to the capacity reservation by the @@ -1916,13 +1991,16 @@ class CapacityReservationProperties(_Model): :ivar time_created: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime - :ivar schedule_profile: Defines the schedule for Block-type capacity reservations. Specifies - the schedule during which capacity reservation is active and VM or VMSS resource can be - allocated using reservation. This property is required and only supported when the capacity - reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable - after creation. Minimum API version: 2025-04-01. Please refer to + :ivar schedule_profile: Defines the schedule for Block and Future capacity reservations. + Specifies the schedule during which capacity reservation is active and VM or VMSS resource can + be allocated using reservation. For Block capacity reservations, the scheduleProfile, start, + and end fields are immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation `_ for more - details. + details. Minimum API version for Block capacity reservations: 2025-04-01. Future capacity + reservations must use this property with only a start time, which can be changed until the + ‘modifiableUntil’ time. Please refer to `https://aka.ms/futurecapacityreservation + `_ for more details. Minimum API version for Future + capacity reservations: 2026-04-01. :vartype schedule_profile: ~azure.mgmt.compute.models.ScheduleProfile """ @@ -1954,12 +2032,15 @@ class CapacityReservationProperties(_Model): schedule_profile: Optional["_models.ScheduleProfile"] = rest_field( name="scheduleProfile", visibility=["read", "create", "update", "delete", "query"] ) - """Defines the schedule for Block-type capacity reservations. Specifies the schedule during which - capacity reservation is active and VM or VMSS resource can be allocated using reservation. This - property is required and only supported when the capacity reservation group type is 'Block'. - The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: - 2025-04-01. Please refer to `https://aka.ms/blockcapacityreservation - `_ for more details.""" + """Defines the schedule for Block and Future capacity reservations. Specifies the schedule during + which capacity reservation is active and VM or VMSS resource can be allocated using + reservation. For Block capacity reservations, the scheduleProfile, start, and end fields are + immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation + `_ for more details. Minimum API version for Block + capacity reservations: 2025-04-01. Future capacity reservations must use this property with + only a start time, which can be changed until the ‘modifiableUntil’ time. Please refer to + `https://aka.ms/futurecapacityreservation `_ for more + details. Minimum API version for Future capacity reservations: 2026-04-01.""" @overload def __init__( @@ -1979,7 +2060,40 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapacityReservationUpdate(UpdateResource): +class CapacityReservationStateInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Details related to the current state for a Future capacity reservation. + + :ivar reservation_state: The current state of the capacity reservation. Known values are: + "Pending", "Declined", "Approved", "FulfillmentFailed", "Committed", "Live", and + "PartiallyFulfilled". + :vartype reservation_state: str or ~azure.mgmt.compute.models.ReservationState + """ + + reservation_state: Optional[Union[str, "_models.ReservationState"]] = rest_field( + name="reservationState", visibility=["read", "create", "update", "delete", "query"] + ) + """The current state of the capacity reservation. Known values are: \"Pending\", \"Declined\", + \"Approved\", \"FulfillmentFailed\", \"Committed\", \"Live\", and \"PartiallyFulfilled\".""" + + @overload + def __init__( + self, + *, + reservation_state: Optional[Union[str, "_models.ReservationState"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CapacityReservationUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the capacity reservation. sku.capacity cannot be updated for Block Capacity Reservation. Tags can be update for all Capacity Reservation Types. @@ -2072,6 +2186,13 @@ class CapacityReservationUtilization(_Model): :ivar virtual_machines_allocated: A list of all virtual machines resource ids allocated against the capacity reservation. :vartype virtual_machines_allocated: list[~azure.mgmt.compute.models.SubResourceReadOnly] + :ivar used_reserved_count_by_subscription: For open capacity reservations, this provides a map + of the used reserved capacity count keyed by the subscription id (a GUID) that is consuming the + capacity, i.e. each entry maps a consuming subscription id to the count of reserved capacity it + is currently using. This is populated only for open capacity reservations and is not reported + for targeted and block capacity reservations, which instead report allocation through + virtualMachinesAllocated. Minimum api-version: 2026-04-01. + :vartype used_reserved_count_by_subscription: dict[str, int] """ current_capacity: Optional[int] = rest_field(name="currentCapacity", visibility=["read"]) @@ -2081,9 +2202,18 @@ class CapacityReservationUtilization(_Model): name="virtualMachinesAllocated", visibility=["read"] ) """A list of all virtual machines resource ids allocated against the capacity reservation.""" + used_reserved_count_by_subscription: Optional[dict[str, int]] = rest_field( + name="usedReservedCountBySubscription", visibility=["read"] + ) + """For open capacity reservations, this provides a map of the used reserved capacity count keyed + by the subscription id (a GUID) that is consuming the capacity, i.e. each entry maps a + consuming subscription id to the count of reserved capacity it is currently using. This is + populated only for open capacity reservations and is not reported for targeted and block + capacity reservations, which instead report allocation through virtualMachinesAllocated. + Minimum api-version: 2026-04-01.""" -class CloudError(_Model): +class CloudError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An error response from the Compute service. :ivar error: Api error. @@ -2111,7 +2241,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PirCommunityGalleryResource(_Model): +class PirCommunityGalleryResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base information about the community gallery resource in azure compute gallery. :ivar name: Resource name. @@ -2173,7 +2303,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CommunityGallery(PirCommunityGalleryResource): +class CommunityGallery(PirCommunityGalleryResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Community Gallery that you want to create or update. :ivar name: Resource name. @@ -2232,7 +2362,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CommunityGalleryIdentifier(_Model): +class CommunityGalleryIdentifier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The identifier information of community gallery. :ivar unique_id: The unique id of this community gallery. @@ -2260,7 +2390,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryImage(PirCommunityGalleryResource): +class CommunityGalleryImage(PirCommunityGalleryResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image definition that you want to create or update. :ivar name: Resource name. @@ -2335,7 +2465,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CommunityGalleryImageIdentifier(_Model): +class CommunityGalleryImageIdentifier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the community gallery image definition identifier. :ivar publisher: The name of the gallery image definition publisher. @@ -2373,7 +2503,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryImageProperties(_Model): +class CommunityGalleryImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image definition. :ivar os_type: This property allows you to specify the type of the OS that is included in the @@ -2505,7 +2635,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryImageVersion(PirCommunityGalleryResource): +class CommunityGalleryImageVersion( + PirCommunityGalleryResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image version that you want to create or update. :ivar name: Resource name. @@ -2572,7 +2704,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CommunityGalleryImageVersionProperties(_Model): +class CommunityGalleryImageVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image version. :ivar published_date: The published date of the gallery image version Definition. This property @@ -2641,7 +2773,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryInfo(_Model): +class CommunityGalleryInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information of community gallery if current gallery is shared to community. :ivar publisher_uri: The link to the publisher website. Visible to all users. @@ -2702,7 +2834,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryMetadata(_Model): +class CommunityGalleryMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The metadata of community gallery. :ivar publisher_uri: The publisher URI of this community gallery. @@ -2757,7 +2889,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommunityGalleryProperties(_Model): +class CommunityGalleryProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a community gallery. :ivar disclaimer: The disclaimer for a community gallery resource. @@ -2799,7 +2931,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConvertToVirtualMachineScaleSetInput(_Model): +class ConvertToVirtualMachineScaleSetInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the Virtual Machine Scale Set to convert from Availability Set. :ivar virtual_machine_scale_set_name: Specifies information about the Virtual Machine Scale Set @@ -2831,7 +2963,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CopyCompletionError(_Model): +class CopyCompletionError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Indicates the error details if the background copy of a resource created via the CopyStart operation fails. @@ -2871,7 +3003,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CreationData(_Model): +class CreationData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Data used when creating a disk. :ivar create_option: This enumerates the possible sources of a disk's creation. Required. Known @@ -3029,7 +3161,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataDisk(_Model): +class DataDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a data disk. :ivar lun: Specifies the logical unit number of the data disk. This value is used to identify @@ -3231,7 +3363,7 @@ class DataDiskImage(_Model): within the VM and therefore must be unique for each data disk attached to a VM.""" -class DiskImageEncryption(_Model): +class DiskImageEncryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the disk image encryption base class. :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption @@ -3262,7 +3394,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataDiskImageEncryption(DiskImageEncryption): +class DataDiskImageEncryption(DiskImageEncryption): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains encryption settings for a data disk image. :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption @@ -3298,7 +3430,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataDisksToAttach(_Model): +class DataDisksToAttach(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the data disk to be attached. :ivar disk_id: ID of the managed data disk. Required. @@ -3375,7 +3507,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataDisksToDetach(_Model): +class DataDisksToDetach(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the data disk to be detached. :ivar disk_id: ID of the managed data disk. Required. @@ -3412,7 +3544,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHost(TrackedResource): +class DedicatedHost(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Dedicated host. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3496,7 +3628,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DedicatedHostAllocatableVM(_Model): +class DedicatedHostAllocatableVM(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the dedicated host unutilized capacity in terms of a specific VM size. :ivar vm_size: VM size in terms of which the unutilized capacity is represented. @@ -3530,7 +3662,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostAvailableCapacity(_Model): +class DedicatedHostAvailableCapacity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Dedicated host unutilized capacity. :ivar allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of @@ -3562,7 +3694,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostGroup(TrackedResource): +class DedicatedHostGroup(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. @@ -3642,7 +3774,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DedicatedHostGroupInstanceView(_Model): +class DedicatedHostGroupInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DedicatedHostGroupInstanceView. :ivar hosts: List of instance view of the dedicated hosts under the dedicated host group. @@ -3672,7 +3804,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostGroupProperties(_Model): +class DedicatedHostGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Dedicated Host Group Properties. :ivar platform_fault_domain_count: Number of fault domains that the host group can span. @@ -3737,7 +3869,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostGroupPropertiesAdditionalCapabilities(_Model): # pylint: disable=name-too-long +class DedicatedHostGroupPropertiesAdditionalCapabilities( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD @@ -3781,7 +3915,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostGroupUpdate(UpdateResource): +class DedicatedHostGroupUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. @@ -3850,7 +3984,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DedicatedHostInstanceView(_Model): +class DedicatedHostInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a dedicated host. :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the @@ -3892,7 +4026,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): +class DedicatedHostInstanceViewWithName( + DedicatedHostInstanceView +): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. @@ -3929,7 +4065,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostProperties(_Model): +class DedicatedHostProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the dedicated host. :ivar platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. @@ -4013,7 +4149,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DedicatedHostUpdate(UpdateResource): +class DedicatedHostUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. @@ -4112,7 +4248,7 @@ class DefaultVirtualMachineScaleSetInfo(_Model): triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.""" -class DiagnosticsProfile(_Model): +class DiagnosticsProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view @@ -4149,7 +4285,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiffDiskSettings(_Model): +class DiffDiskSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk. @@ -4214,7 +4350,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Disallowed(_Model): +class Disallowed(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the disallowed disk types. :ivar disk_types: A list of disk types. @@ -4244,7 +4380,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DisallowedConfiguration(_Model): +class DisallowedConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the disallowed configuration for a virtual machine image. :ivar vm_disk_type: VM disk types which are disallowed. Known values are: "None" and @@ -4275,7 +4411,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Disk(TrackedResource): +class Disk(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Disk resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4407,7 +4543,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DiskAccess(TrackedResource): +class DiskAccess(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """disk access resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4506,7 +4642,7 @@ class DiskAccessProperties(_Model): """The time when the disk access was created.""" -class DiskAccessUpdate(_Model): +class DiskAccessUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Used for updating a disk access resource. :ivar tags: Resource tags. @@ -4534,7 +4670,40 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskEncryptionSet(TrackedResource): +class DiskAvailabilityPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """In the case of an availability or connectivity issue with the disk, specify the behavior of + your VM. + + :ivar action_on_disk_delay: Determines how to handle disks with slow I/O. Known values are: + "None" and "AutomaticReattach". + :vartype action_on_disk_delay: str or ~azure.mgmt.compute.models.VirtualMachineDiskDelayAction + """ + + action_on_disk_delay: Optional[Union[str, "_models.VirtualMachineDiskDelayAction"]] = rest_field( + name="actionOnDiskDelay", visibility=["read", "create", "update", "delete", "query"] + ) + """Determines how to handle disks with slow I/O. Known values are: \"None\" and + \"AutomaticReattach\".""" + + @overload + def __init__( + self, + *, + action_on_disk_delay: Optional[Union[str, "_models.VirtualMachineDiskDelayAction"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiskEncryptionSet(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """disk encryption set resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4618,7 +4787,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SubResource(_Model): +class SubResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SubResource. :ivar id: Resource Id. @@ -4646,7 +4815,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskEncryptionSetParameters(SubResource): +class DiskEncryptionSetParameters(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer `https://aka.ms/mdssewithcmkoverview @@ -4674,7 +4843,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskEncryptionSettings(_Model): +class DiskEncryptionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Encryption Settings for a Disk. :ivar disk_encryption_key: Specifies the location of the disk encryption key, which is a Key @@ -4717,7 +4886,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskEncryptionSetUpdate(_Model): +class DiskEncryptionSetUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """disk encryption set update resource. :ivar properties: disk encryption set resource update properties. @@ -4786,7 +4955,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DiskEncryptionSetUpdateProperties(_Model): +class DiskEncryptionSetUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """disk encryption set resource update properties. :ivar encryption_type: The type of key used to encrypt the data of the disk. Known values are: @@ -4846,7 +5015,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskInstanceView(_Model): +class DiskInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of the disk. :ivar name: The disk name. @@ -4898,7 +5067,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskProperties(_Model): +class DiskProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Disk resource properties. :ivar time_created: The time when the disk was created. @@ -5187,7 +5356,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskPurchasePlan(_Model): +class DiskPurchasePlan(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. :ivar name: The plan ID. Required. @@ -5251,7 +5420,7 @@ class ProxyResource(Resource): """ -class DiskRestorePoint(ProxyResource): +class DiskRestorePoint(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of disk restore point. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -5343,7 +5512,7 @@ class SubResourceReadOnly(_Model): """Resource Id.""" -class DiskRestorePointAttributes(SubResourceReadOnly): +class DiskRestorePointAttributes(SubResourceReadOnly): # pylint: disable=docstring-keyword-should-match-keyword-only """Disk Restore Point details. :ivar id: Resource Id. @@ -5384,7 +5553,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskRestorePointInstanceView(_Model): +class DiskRestorePointInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a disk restore point. :ivar id: Disk restore point Id. @@ -5430,7 +5599,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskRestorePointProperties(_Model): +class DiskRestorePointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of an incremental disk restore point. :ivar time_created: The timestamp of restorePoint creation. @@ -5578,7 +5747,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskRestorePointReplicationStatus(_Model): +class DiskRestorePointReplicationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a disk restore point. :ivar status: The resource status information. @@ -5615,7 +5784,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskSecurityProfile(_Model): +class DiskSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the security related information for the resource. :ivar security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known @@ -5667,7 +5836,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskSku(_Model): +class DiskSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. @@ -5704,7 +5873,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DiskUpdate(_Model): +class DiskUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Disk update resource. :ivar properties: Disk resource update properties. @@ -5788,7 +5957,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DiskUpdateProperties(_Model): +class DiskUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Disk resource update properties. :ivar os_type: the Operating System type. Known values are: "Windows" and "Linux". @@ -5995,7 +6164,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Encryption(_Model): +class Encryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Encryption at rest settings for disk or snapshot. :ivar disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling @@ -6037,7 +6206,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionIdentity(_Model): +class EncryptionIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the Managed Identity used by ADE to get access token for keyvault operations. :ivar user_assigned_identity_resource_id: Specifies ARM Resource ID of one of the user @@ -6068,7 +6237,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionImages(_Model): +class EncryptionImages(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. @@ -6106,7 +6275,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionSetIdentity(_Model): +class EncryptionSetIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. @@ -6173,7 +6342,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionSetProperties(_Model): +class EncryptionSetProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """EncryptionSetProperties. :ivar encryption_type: The type of key used to encrypt the data of the disk. Known values are: @@ -6259,7 +6428,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionSettingsCollection(_Model): +class EncryptionSettingsCollection(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Encryption settings for disk or snapshot. :ivar enabled: Set this flag to true and provide DiskEncryptionKey and optional @@ -6311,7 +6480,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionSettingsElement(_Model): +class EncryptionSettingsElement(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Encryption settings for one disk volume. :ivar disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. @@ -6394,7 +6563,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -6422,7 +6591,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EventGridAndResourceGraph(_Model): +class EventGridAndResourceGraph(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies eventGridAndResourceGraph related Scheduled Event related configurations. :ivar enable: Specifies if event grid and resource graph is enabled for Scheduled event related @@ -6461,7 +6630,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExecutedValidation(_Model): +class ExecutedValidation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the executed Validation. :ivar type: This property specifies the type of image version validation. @@ -6510,7 +6679,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExtendedLocation(_Model): +class ExtendedLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The complex type of the extended location. :ivar name: The name of the extended location. @@ -6545,7 +6714,71 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExternalHealthPolicy(_Model): +class ExtensionFeatureMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Additional metadata about extension features, including compliance and capability tags. + + :ivar extension_feature_tags: List of additional metadata properties (e.g., compliance flags, + supported features). + :vartype extension_feature_tags: list[~azure.mgmt.compute.models.ExtensionFeatureTag] + """ + + extension_feature_tags: Optional[list["_models.ExtensionFeatureTag"]] = rest_field( + name="extensionFeatureTags", visibility=["read", "create", "update", "delete", "query"] + ) + """List of additional metadata properties (e.g., compliance flags, supported features).""" + + @overload + def __init__( + self, + *, + extension_feature_tags: Optional[list["_models.ExtensionFeatureTag"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExtensionFeatureTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Represents a key-value pair for extension feature metadata. + + :ivar key: The key of the feature tag. Required. + :vartype key: str + :ivar value: The value of the feature tag. + :vartype value: str + """ + + key: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The key of the feature tag. Required.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the feature tag.""" + + @overload + def __init__( + self, + *, + key: str, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExternalHealthPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the external health policy for the virtual machine scale set. :ivar enabled: If true, external health is enabled for this scale set. Cannot be set to true on @@ -6598,7 +6831,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Gallery(TrackedResource): +class Gallery(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Shared Image Gallery that you want to create or update. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -6679,7 +6912,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryApplication(TrackedResource): +class GalleryApplication(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Application Definition that you want to create or update. @@ -6755,7 +6988,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryApplicationCustomAction(_Model): +class GalleryApplicationCustomAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A custom action that can be performed with a Gallery Application Version. :ivar name: The name of the custom action. Must be unique within the Gallery Application @@ -6802,7 +7035,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationCustomActionParameter(_Model): +class GalleryApplicationCustomActionParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The definition of a parameter that can be passed to a custom action of a Gallery Application Version. @@ -6861,7 +7094,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationProperties(_Model): +class GalleryApplicationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery Application Definition. :ivar description: The description of this gallery Application Definition resource. This @@ -6938,7 +7171,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UpdateResourceDefinition(_Model): +class UpdateResourceDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Update Resource model definition. :ivar id: Resource Id. @@ -6978,7 +7211,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationUpdate(UpdateResourceDefinition): +class GalleryApplicationUpdate(UpdateResourceDefinition): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Application Definition that you want to update. :ivar id: Resource Id. @@ -7045,7 +7278,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryApplicationVersion(TrackedResource): +class GalleryApplicationVersion(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Application Version that you want to create or update. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -7112,7 +7345,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryApplicationVersionProperties(_Model): +class GalleryApplicationVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image version. :ivar publishing_profile: The publishing profile of a gallery image version. Required. @@ -7164,7 +7397,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryArtifactPublishingProfileBase(_Model): +class GalleryArtifactPublishingProfileBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the basic gallery artifact publishing profile. :ivar target_regions: The target regions where the Image Version is going to be replicated to. @@ -7273,7 +7506,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): # pylint: disable=name-too-long +class GalleryApplicationVersionPublishingProfile( + GalleryArtifactPublishingProfileBase +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The publishing profile of a gallery image version. :ivar target_regions: The target regions where the Image Version is going to be replicated to. @@ -7379,7 +7614,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryArtifactSafetyProfileBase(_Model): +class GalleryArtifactSafetyProfileBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the safety profile of the Gallery Artifact Version. :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery @@ -7411,7 +7646,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationVersionSafetyProfile(GalleryArtifactSafetyProfileBase): +class GalleryApplicationVersionSafetyProfile( + GalleryArtifactSafetyProfileBase +): # pylint: disable=docstring-keyword-should-match-keyword-only """The safety profile of the Gallery Application Version. :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery @@ -7437,7 +7674,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryApplicationVersionUpdate(UpdateResourceDefinition): +class GalleryApplicationVersionUpdate( + UpdateResourceDefinition +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Application Version that you want to update. :ivar id: Resource Id. @@ -7496,7 +7735,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryArtifactVersionSource(_Model): +class GalleryArtifactVersionSource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The gallery artifact version source. :ivar id: The id of the gallery artifact version source. @@ -7524,7 +7763,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryArtifactVersionFullSource(GalleryArtifactVersionSource): +class GalleryArtifactVersionFullSource( + GalleryArtifactVersionSource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The source of the gallery artifact version. :ivar id: The id of the gallery artifact version source. @@ -7568,7 +7809,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryDiskImage(_Model): +class GalleryDiskImage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the disk image base class. :ivar size_in_gb: This property indicates the size of the VHD to be created. @@ -7611,7 +7852,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryDataDiskImage(GalleryDiskImage): +class GalleryDataDiskImage(GalleryDiskImage): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the data disk image. :ivar size_in_gb: This property indicates the size of the VHD to be created. @@ -7652,7 +7893,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryDiskImageSource(GalleryArtifactVersionSource): +class GalleryDiskImageSource( + GalleryArtifactVersionSource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The source for the disk image. :ivar id: The id of the gallery artifact version source. @@ -7693,7 +7936,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryExtendedLocation(_Model): +class GalleryExtendedLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The name of the extended location. :ivar name: @@ -7739,7 +7982,7 @@ class GalleryIdentifier(_Model): """The unique name of the Shared Image Gallery. This name is generated automatically by Azure.""" -class GalleryIdentity(_Model): +class GalleryIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the virtual machine. :ivar principal_id: The principal id of the gallery identity. This property will only be @@ -7799,7 +8042,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImage(TrackedResource): +class GalleryImage(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image definition that you want to create or update. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -7883,7 +8126,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryImageFeature(_Model): +class GalleryImageFeature(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A feature for gallery image. :ivar name: The name of the gallery image feature. @@ -7923,7 +8166,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageIdentifier(_Model): +class GalleryImageIdentifier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the gallery image definition identifier. :ivar publisher: The name of the gallery image definition publisher. Required. @@ -7961,7 +8204,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageProperties(_Model): +class GalleryImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image definition. :ivar description: The description of this gallery image definition resource. This property is @@ -8110,7 +8353,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageUpdate(UpdateResourceDefinition): +class GalleryImageUpdate(UpdateResourceDefinition): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image definition that you want to update. :ivar id: Resource Id. @@ -8186,7 +8429,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryImageVersion(TrackedResource): +class GalleryImageVersion(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image version that you want to create or update. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8262,7 +8505,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryImageVersionProperties(_Model): +class GalleryImageVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image version. :ivar publishing_profile: The publishing profile of a gallery image Version. @@ -8338,7 +8581,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase): +class GalleryImageVersionPublishingProfile( + GalleryArtifactPublishingProfileBase +): # pylint: disable=docstring-keyword-should-match-keyword-only """The publishing profile of a gallery image Version. :ivar target_regions: The target regions where the Image Version is going to be replicated to. @@ -8399,7 +8644,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageVersionSafetyProfile(GalleryArtifactSafetyProfileBase): +class GalleryImageVersionSafetyProfile( + GalleryArtifactSafetyProfileBase +): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the safety profile of the Gallery Image Version. :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery @@ -8447,7 +8694,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageVersionStorageProfile(_Model): +class GalleryImageVersionStorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the storage profile of a Gallery Image Version. :ivar source: The source of the gallery artifact version. @@ -8491,7 +8738,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageVersionUefiSettings(_Model): +class GalleryImageVersionUefiSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains UEFI settings for the image version. :ivar signature_template_names: The name of the template(s) that contains default UEFI key @@ -8533,7 +8780,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryImageVersionUpdate(UpdateResourceDefinition): +class GalleryImageVersionUpdate( + UpdateResourceDefinition +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image version that you want to update. :ivar id: Resource Id. @@ -8601,7 +8850,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryInVMAccessControlProfile(TrackedResource): +class GalleryInVMAccessControlProfile(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery inVMAccessControlProfile that you want to create or update. @@ -8664,7 +8913,9 @@ class GalleryResourceProfilePropertiesBase(_Model): \"Updating\", \"Failed\", \"Succeeded\", \"Deleting\", and \"Migrating\".""" -class GalleryInVMAccessControlProfileProperties(GalleryResourceProfilePropertiesBase): # pylint: disable=name-too-long +class GalleryInVMAccessControlProfileProperties( + GalleryResourceProfilePropertiesBase +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes the properties of a gallery inVMAccessControlProfile. :ivar provisioning_state: The provisioning state, which only appears in the response. Known @@ -8718,7 +8969,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryInVMAccessControlProfileUpdate(UpdateResourceDefinition): +class GalleryInVMAccessControlProfileUpdate( + UpdateResourceDefinition +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery inVMAccessControlProfile that you want to update. :ivar id: Resource Id. @@ -8757,7 +9010,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryInVMAccessControlProfileVersion(TrackedResource): +class GalleryInVMAccessControlProfileVersion( + TrackedResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery inVMAccessControlProfile version that you want to create or update. @@ -8835,7 +9090,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryResourceProfileVersionPropertiesBase(_Model): # pylint: disable=name-too-long +class GalleryResourceProfileVersionPropertiesBase( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The properties of a gallery ResourceProfile version. :ivar target_locations: The target regions where the Resource Profile version is going to be @@ -8898,7 +9155,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class GalleryInVMAccessControlProfileVersionProperties( GalleryResourceProfileVersionPropertiesBase -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes the properties of an inVMAccessControlProfile version. :ivar target_locations: The target regions where the Resource Profile version is going to be @@ -8966,7 +9223,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryInVMAccessControlProfileVersionUpdate(UpdateResourceDefinition): # pylint: disable=name-too-long +class GalleryInVMAccessControlProfileVersionUpdate( + UpdateResourceDefinition +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specifies information about the gallery inVMAccessControlProfile version that you want to update. @@ -9036,7 +9295,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryOSDiskImage(GalleryDiskImage): +class GalleryOSDiskImage(GalleryDiskImage): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the OS disk image. :ivar size_in_gb: This property indicates the size of the VHD to be created. @@ -9067,7 +9326,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryProperties(_Model): +class GalleryProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Shared Image Gallery. :ivar description: The description of this Shared Image Gallery resource. This property is @@ -9129,7 +9388,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScript(TrackedResource): +class GalleryScript(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Script Definition that you want to create or update. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9176,7 +9435,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GenericGalleryParameter(_Model): +class GenericGalleryParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The definition of a generic gallery parameter. :ivar name: The name of the parameter. Required. @@ -9221,7 +9480,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptParameter(GenericGalleryParameter): +class GalleryScriptParameter(GenericGalleryParameter): # pylint: disable=docstring-keyword-should-match-keyword-only """The definition of a parameter that can be passed to a script of a Gallery Script Version. :ivar name: The name of the parameter. Required. @@ -9284,7 +9543,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptProperties(_Model): +class GalleryScriptProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery script definition. :ivar description: The description of this gallery script definition resource. This property is @@ -9360,7 +9619,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptUpdate(UpdateResourceDefinition): +class GalleryScriptUpdate(UpdateResourceDefinition): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Script Definition that you want to update. :ivar id: Resource Id. @@ -9427,7 +9686,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GalleryScriptVersion(TrackedResource): +class GalleryScriptVersion(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Concrete tracked resource types can be created by aliasing this type using a specific property type. @@ -9475,7 +9734,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptVersionProperties(_Model): +class GalleryScriptVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery script version. :ivar publishing_profile: The publishing profile of a gallery image version. Required. @@ -9526,7 +9785,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptVersionPublishingProfile(GalleryArtifactPublishingProfileBase): +class GalleryScriptVersionPublishingProfile( + GalleryArtifactPublishingProfileBase +): # pylint: disable=docstring-keyword-should-match-keyword-only """The publishing profile of a gallery image version. :ivar target_regions: The target regions where the Image Version is going to be replicated to. @@ -9593,7 +9854,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptVersionSafetyProfile(GalleryArtifactSafetyProfileBase): +class GalleryScriptVersionSafetyProfile( + GalleryArtifactSafetyProfileBase +): # pylint: disable=docstring-keyword-should-match-keyword-only """The safety profile of the Gallery Script Version. :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery @@ -9619,7 +9882,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryScriptVersionUpdate(UpdateResourceDefinition): +class GalleryScriptVersionUpdate( + UpdateResourceDefinition +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery Script Version that you want to update. :ivar id: Resource Id. @@ -9678,7 +9943,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GallerySoftDeletedResource(TrackedResource): +class GallerySoftDeletedResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The details information of soft-deleted resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9745,7 +10010,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GallerySoftDeletedResourceProperties(_Model): +class GallerySoftDeletedResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a soft-deleted resource. :ivar resource_arm_id: arm id of the soft-deleted resource. @@ -9790,7 +10055,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryTargetExtendedLocation(_Model): +class GalleryTargetExtendedLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """GalleryTargetExtendedLocation. :ivar name: The name of the region. @@ -9854,7 +10119,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GalleryUpdate(UpdateResourceDefinition): +class GalleryUpdate(UpdateResourceDefinition): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Shared Image Gallery that you want to update. :ivar id: Resource Id. @@ -9927,7 +10192,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class GrantAccessData(_Model): +class GrantAccessData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Data used for requesting a SAS. :ivar access: The Access Level, accepted values include None, Read, Write. Required. Known @@ -9981,7 +10246,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HardwareProfile(_Model): +class HardwareProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the hardware settings for the virtual machine. :ivar vm_size: Specifies the size of the virtual machine. The enum data type is currently @@ -10036,6 +10301,11 @@ class HardwareProfile(_Model): supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details. :vartype vm_size_properties: ~azure.mgmt.compute.models.VMSizeProperties + :ivar processor_mode: Specifies the processor mode for the virtual machine or virtual machine + scale set. Optional; if omitted, the platform default applies (currently Deterministic). This + property can be updated on a running VM or VMSS without deallocation or reboot. Minimum + api-version: 2026-04-01. Known values are: "Deterministic" and "Opportunistic". + :vartype processor_mode: str or ~azure.mgmt.compute.models.ProcessorMode """ vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = rest_field( @@ -10097,6 +10367,13 @@ class HardwareProfile(_Model): 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details.""" + processor_mode: Optional[Union[str, "_models.ProcessorMode"]] = rest_field( + name="processorMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if + omitted, the platform default applies (currently Deterministic). This property can be updated + on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. Known + values are: \"Deterministic\" and \"Opportunistic\".""" @overload def __init__( @@ -10104,6 +10381,7 @@ def __init__( *, vm_size: Optional[Union[str, "_models.VirtualMachineSizeTypes"]] = None, vm_size_properties: Optional["_models.VMSizeProperties"] = None, + processor_mode: Optional[Union[str, "_models.ProcessorMode"]] = None, ) -> None: ... @overload @@ -10117,7 +10395,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HostEndpointSettings(_Model): +class HostEndpointSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies particular host endpoint settings. :ivar mode: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing @@ -10130,6 +10408,9 @@ class HostEndpointSettings(_Model): resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}. :vartype in_vm_access_control_profile_reference_id: str + :ivar use_local_file_rules: When set to true, instructs the GuestProxyAgent inside the VM to + load additional access control rules defined in a local file on the VM. + :vartype use_local_file_rules: bool """ mode: Optional[Union[str, "_models.Modes"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) @@ -10143,6 +10424,11 @@ class HostEndpointSettings(_Model): ) """Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.""" + use_local_file_rules: Optional[bool] = rest_field( + name="useLocalFileRules", visibility=["read", "create", "update", "delete", "query"] + ) + """When set to true, instructs the GuestProxyAgent inside the VM to load additional access control + rules defined in a local file on the VM.""" @overload def __init__( @@ -10150,6 +10436,7 @@ def __init__( *, mode: Optional[Union[str, "_models.Modes"]] = None, in_vm_access_control_profile_reference_id: Optional[str] = None, + use_local_file_rules: Optional[bool] = None, ) -> None: ... @overload @@ -10163,7 +10450,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Image(TrackedResource): +class Image(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. @@ -10239,7 +10526,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ImageDisk(_Model): +class ImageDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a image disk. :ivar snapshot: The snapshot. @@ -10321,7 +10608,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageDataDisk(ImageDisk): +class ImageDataDisk(ImageDisk): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a data disk. :ivar snapshot: The snapshot. @@ -10381,7 +10668,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageDeprecationStatus(_Model): +class ImageDeprecationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes image deprecation status properties on the image. :ivar image_state: Describes the state of the image. Known values are: "Active", @@ -10431,7 +10718,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageDiskReference(_Model): +class ImageDiskReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The source image used for creating the disk. :ivar id: A relative uri containing either a Platform Image Repository, user image, or Azure @@ -10484,7 +10771,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageOSDisk(ImageDisk): +class ImageOSDisk(ImageDisk): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an Operating System disk. :ivar snapshot: The snapshot. @@ -10556,7 +10843,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageProperties(_Model): +class ImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of an Image. :ivar source_virtual_machine: The source virtual machine from which Image is created. @@ -10612,7 +10899,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImagePurchasePlan(_Model): +class ImagePurchasePlan(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the gallery image definition purchase plan. This is used by marketplace images. :ivar name: The plan ID. @@ -10650,7 +10937,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageReference(SubResource): +class ImageReference(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other @@ -10744,7 +11031,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageStorageProfile(_Model): +class ImageStorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a storage profile. :ivar os_disk: Specifies information about the operating system disk used by the virtual @@ -10798,7 +11085,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImageUpdate(UpdateResource): +class ImageUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The source user image virtual hard disk. Only tags may be updated. :ivar tags: Resource tags. @@ -10851,7 +11138,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ImageVersionSecurityProfile(_Model): +class ImageVersionSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The security profile of a gallery image version. :ivar uefi_settings: Contains UEFI settings for the image version. @@ -10914,7 +11201,7 @@ class ImmutabilityPolicy(_Model): """Indicates whether the immutability policy has expired.""" -class ImmutabilityPolicyData(_Model): +class ImmutabilityPolicyData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Data used for updating the immutability policy of a snapshot. :ivar immutability_duration_days: The immutability duration for the snapshot, in number of @@ -10956,7 +11243,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImmutabilityPolicyLockData(_Model): +class ImmutabilityPolicyLockData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Data used for locking the immutability policy of a snapshot. :ivar immutability_duration_days: The immutability duration for the snapshot, in number of @@ -10998,7 +11285,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InnerError(_Model): +class InnerError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Inner error details. :ivar exceptiontype: The exception type. @@ -11031,7 +11318,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InstanceViewStatus(_Model): +class InstanceViewStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Instance view status. :ivar code: The status code. @@ -11085,7 +11372,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectBlock(TrackedResource): +class InterconnectBlock(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Interconnect Block. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -11169,7 +11456,7 @@ class InterconnectBlockInstanceView(_Model): """The resource status information.""" -class InterconnectBlockProfile(_Model): +class InterconnectBlockProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters of an Interconnect Block Profile. :ivar interconnect_block: Specifies the Interconnect Block resource ID that should be used for @@ -11202,7 +11489,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectBlockProperties(_Model): +class InterconnectBlockProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Interconnect Block. :ivar virtual_machines_associated: A list of all virtual machine resource ids that are @@ -11267,7 +11554,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectBlockUpdate(UpdateResource): +class InterconnectBlockUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Interconnect Block. Only tags and sku.capacity can be updated. :ivar tags: Resource tags. @@ -11300,7 +11587,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectGroupProfile(_Model): +class InterconnectGroupProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the interconnect group profile for a virtual machine, used to associate the VM with an interconnect group and subgroups. @@ -11350,7 +11637,7 @@ class InterconnectInstanceView(_Model): """The ID (GUID) of the Interconnect subgroup in which the Virtual Machine was placed.""" -class KeyForDiskEncryptionSet(_Model): +class KeyForDiskEncryptionSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots. :ivar source_vault: Resource id of the KeyVault containing the key or secret. This property is @@ -11390,7 +11677,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultAndKeyReference(_Model): +class KeyVaultAndKeyReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. @@ -11426,7 +11713,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultAndSecretReference(_Model): +class KeyVaultAndSecretReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Key Vault Secret Url and vault id of the encryption key. :ivar source_vault: Resource id of the KeyVault containing the key or secret. Required. @@ -11461,7 +11748,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultKeyReference(_Model): +class KeyVaultKeyReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a reference to Key Vault Key. :ivar key_url: The URL referencing a key encryption key in Key Vault. Required. @@ -11496,7 +11783,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KeyVaultSecretReference(_Model): +class KeyVaultSecretReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a reference to Key Vault Secret. :ivar secret_url: The URL referencing a secret in a Key Vault. Required. @@ -11601,7 +11888,7 @@ class LastPatchInstallationSummary(_Model): the list of them.""" -class LifecycleHook(_Model): +class LifecycleHook(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a lifecycle hook. :ivar type: Specifies the type of the lifecycle hook. Known values are: @@ -11655,7 +11942,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LifecycleHooksProfile(_Model): +class LifecycleHooksProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the lifecycle hooks profile for the virtual machine scale set. :ivar lifecycle_hooks: Specifies the lifecycle hooks configured for the virtual machine scale @@ -11686,7 +11973,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinuxConfiguration(_Model): +class LinuxConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. @@ -11753,7 +12040,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinuxParameters(_Model): +class LinuxParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input for InstallPatches on a Linux VM, as directly received by the API. :ivar classifications_to_include: The update classifications to select when installing patches @@ -11809,7 +12096,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinuxPatchSettings(_Model): +class LinuxPatchSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies settings related to VM Guest Patching on Linux. :ivar patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual @@ -11873,7 +12160,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LinuxVMGuestPatchAutomaticByPlatformSettings(_Model): # pylint: disable=name-too-long +class LinuxVMGuestPatchAutomaticByPlatformSettings( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings. @@ -11915,7 +12204,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogAnalyticsInputBase(_Model): +class LogAnalyticsInputBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Api input base class for LogAnalytics Api. :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api @@ -12018,7 +12307,7 @@ class LogAnalyticsOutput(_Model): """Output file Uri path to blob container.""" -class MaintenanceRedeployStatus(_Model): +class MaintenanceRedeployStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Maintenance Operation Status. :ivar is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform @@ -12096,7 +12385,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedDiskParameters(SubResource): +class ManagedDiskParameters(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters of a managed disk. :ivar id: Resource Id. @@ -12111,6 +12400,10 @@ class ManagedDiskParameters(SubResource): :vartype disk_encryption_set: ~azure.mgmt.compute.models.DiskEncryptionSetParameters :ivar security_profile: Specifies the security profile for the managed disk. :vartype security_profile: ~azure.mgmt.compute.models.VMDiskSecurityProfile + :ivar additional_disk_properties: Specifies additional properties for the managed disk that can + be set at the time of implicit creation of the disk. This property is not captured for Restore + Points. + :vartype additional_disk_properties: ~azure.mgmt.compute.models.AdditionalDiskProperties """ storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = rest_field( @@ -12128,6 +12421,11 @@ class ManagedDiskParameters(SubResource): name="securityProfile", visibility=["read", "create", "update", "delete", "query"] ) """Specifies the security profile for the managed disk.""" + additional_disk_properties: Optional["_models.AdditionalDiskProperties"] = rest_field( + name="additionalDiskProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies additional properties for the managed disk that can be set at the time of implicit + creation of the disk. This property is not captured for Restore Points.""" @overload def __init__( @@ -12137,6 +12435,7 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, + additional_disk_properties: Optional["_models.AdditionalDiskProperties"] = None, ) -> None: ... @overload @@ -12150,7 +12449,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MaxInstancePercentPerZonePolicy(_Model): +class MaxInstancePercentPerZonePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set. @@ -12188,7 +12487,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigrateToVirtualMachineScaleSetInput(_Model): +class MigrateToVirtualMachineScaleSetInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the Virtual Machine Scale Set to migrate from Availability Set. :ivar virtual_machine_scale_set_flexible: Specifies information about the Virtual Machine Scale @@ -12220,7 +12519,46 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigrateVMToVirtualMachineScaleSetInput(_Model): +class MigrateVMAvailabilityZoneInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The input for MigrateVMAvailabilityZone. + + :ivar instance_ids: The virtual machine scale set instance ids to be migrated to the target + availability zone. Required. + :vartype instance_ids: list[str] + :ivar target_zone: The target logical availability zone ("1", "2" or "3") to migrate the + virtual machine scale set instances to. If omitted, the platform selects the target zone. + :vartype target_zone: str + """ + + instance_ids: list[str] = rest_field(name="instanceIds", visibility=["read", "create", "update", "delete", "query"]) + """The virtual machine scale set instance ids to be migrated to the target availability zone. + Required.""" + target_zone: Optional[str] = rest_field( + name="targetZone", visibility=["read", "create", "update", "delete", "query"] + ) + """The target logical availability zone (\"1\", \"2\" or \"3\") to migrate the virtual machine + scale set instances to. If omitted, the platform selects the target zone.""" + + @overload + def __init__( + self, + *, + instance_ids: list[str], + target_zone: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateVMToVirtualMachineScaleSetInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The input of virtual machine migration from Availability Set to Flexible Virtual Machine Scale Set. @@ -12267,7 +12605,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterfaceReference(SubResource): +class NetworkInterfaceReference(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a network interface reference. :ivar id: Resource Id. @@ -12320,7 +12658,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkInterfaceReferenceProperties(_Model): +class NetworkInterfaceReferenceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a network interface reference properties. :ivar primary: Specifies the primary network interface in case the virtual machine has more @@ -12359,7 +12697,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkProfile(_Model): +class NetworkProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the network interfaces or the networking configuration of the virtual machine. :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces @@ -12420,7 +12758,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """REST API Operation. :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -12508,7 +12846,7 @@ class OperationDisplay(_Model): views.""" -class OperationRecoverySettings(_Model): +class OperationRecoverySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used for operation recovery settings on a virtual machine scale set. @@ -12553,7 +12891,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OrchestrationServiceStateInput(_Model): +class OrchestrationServiceStateInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The input for OrchestrationServiceState. :ivar service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and @@ -12632,7 +12970,7 @@ class OrchestrationServiceSummary(_Model): 2025-04-01.""" -class OSDisk(_Model): +class OSDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the operating system disk used by the virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. @@ -12786,7 +13124,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSDiskImage(_Model): +class OSDiskImage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the os disk image information. :ivar operating_system: The operating system of the osDiskImage. Required. Known values are: @@ -12817,7 +13155,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSDiskImageEncryption(DiskImageEncryption): +class OSDiskImageEncryption(DiskImageEncryption): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains encryption settings for an OS disk image. :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption @@ -12851,7 +13189,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSDiskImageSecurityProfile(_Model): +class OSDiskImageSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains security profile for an OS disk image. :ivar confidential_vm_encryption_type: confidential VM encryption types. Known values are: @@ -12892,7 +13230,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSImageNotificationProfile(_Model): +class OSImageNotificationProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """OSImageNotificationProfile. :ivar not_before_timeout: Length of time a Virtual Machine being reimaged or having its OS @@ -12932,7 +13270,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSProfile(_Model): +class OSProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. @@ -13098,7 +13436,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OSProfileProvisioningData(_Model): +class OSProfileProvisioningData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Additional parameters for Reimaging Non-Ephemeral Virtual Machine. :ivar admin_password: Specifies the password of the administrator account.

@@ -13210,7 +13548,7 @@ class PatchInstallationDetail(_Model): \"Unknown\", \"Installed\", \"Failed\", \"Excluded\", \"NotSelected\", and \"Pending\".""" -class PatchSettings(_Model): +class PatchSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies settings related to VM Guest Patching on Windows. :ivar patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual @@ -13309,7 +13647,7 @@ class PirResource(_Model): """Resource location.""" -class PirSharedGalleryResource(PirResource): +class PirSharedGalleryResource(PirResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Base information about the shared gallery resource in pir. :ivar name: Resource name. @@ -13363,7 +13701,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class Placement(_Model): +class Placement(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the user-defined constraints for resource hardware placement. :ivar zone_placement_policy: Specifies the policy for resource's placement in availability @@ -13425,7 +13763,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Plan(_Model): +class Plan(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace @@ -13492,7 +13830,7 @@ class PlatformAttribute(_Model): """This property specifies the value of the corresponding name property. It is read-only.""" -class PolicyViolation(_Model): +class PolicyViolation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A policy violation reported against a gallery artifact. :ivar category: Describes the nature of the policy violation. Known values are: "Other", @@ -13529,7 +13867,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PriorityMixPolicy(_Model): +class PriorityMixPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot @@ -13584,7 +13922,7 @@ class PrivateEndpoint(_Model): """The ARM identifier for Private Endpoint.""" -class PrivateEndpointConnection(ProxyResource): +class PrivateEndpointConnection(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Private Endpoint Connection resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -13645,7 +13983,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateEndpointConnectionProperties(_Model): +class PrivateEndpointConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the PrivateEndpointConnectProperties. :ivar private_endpoint: The resource of private end point. @@ -13691,7 +14029,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResource(_Model): +class PrivateLinkResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A private link resource. :ivar properties: Resource properties. @@ -13753,7 +14091,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateLinkResourceListResult(_Model): +class PrivateLinkResourceListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of private link resources. :ivar value: Array of private link resources. @@ -13783,7 +14121,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResourceProperties(_Model): +class PrivateLinkResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a private link resource. :ivar group_id: The private link resource group id. @@ -13821,7 +14159,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceConnectionState(_Model): +class PrivateLinkServiceConnectionState(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A collection of information about the state of the connection between service consumer and provider. @@ -13867,7 +14205,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PropertyUpdatesInProgress(_Model): +class PropertyUpdatesInProgress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the disk for which update is pending. :ivar target_tier: The target performance tier of the disk if a tier change operation is in @@ -13898,7 +14236,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProximityPlacementGroup(TrackedResource): +class ProximityPlacementGroup(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the proximity placement group. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -13977,7 +14315,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ProximityPlacementGroupProperties(_Model): +class ProximityPlacementGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Proximity Placement Group. :ivar proximity_placement_group_type: Specifies the type of the proximity placement group. @@ -14048,7 +14386,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProximityPlacementGroupPropertiesIntent(_Model): +class ProximityPlacementGroupPropertiesIntent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the user intent of the proximity placement group. :ivar vm_sizes: Specifies possible sizes of virtual machines that can be created in the @@ -14080,7 +14418,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProximityPlacementGroupUpdate(UpdateResource): +class ProximityPlacementGroupUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the proximity placement group. :ivar tags: Resource tags. @@ -14105,7 +14443,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProxyAgentSettings(_Model): +class ProxyAgentSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies ProxyAgent settings for the virtual machine or virtual machine scale set. Minimum api-version: 2023-09-01. @@ -14181,7 +14519,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIPAddressSku(_Model): +class PublicIPAddressSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. :ivar name: Specify public IP sku name. Known values are: "Basic" and "Standard". @@ -14218,7 +14556,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PurchasePlan(_Model): +class PurchasePlan(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. :ivar publisher: The publisher ID. Required. @@ -14258,7 +14596,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RecommendedMachineConfiguration(_Model): +class RecommendedMachineConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. @@ -14336,7 +14674,7 @@ class RegionalReplicationStatus(_Model): """It indicates progress of the replication job.""" -class RegionalSharingStatus(_Model): +class RegionalSharingStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gallery regional sharing status. :ivar region: Region name. @@ -14375,7 +14713,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReimageRecoveryPolicy(_Model): +class ReimageRecoveryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing reimage recovery. :ivar enabled: Specifies whether reimage recovery should be enabled. The default value is @@ -14423,7 +14761,7 @@ class ReplicationStatus(_Model): """This is a summary of replication status for each region.""" -class RequestRateByIntervalInput(LogAnalyticsInputBase): +class RequestRateByIntervalInput(LogAnalyticsInputBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Api request input for LogAnalytics getRequestRateByInterval Api. :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api @@ -14480,7 +14818,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResiliencyPolicy(_Model): +class ResiliencyPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an resiliency policy - AutomaticZoneRebalancingPolicy, ResilientVMCreationPolicy, ResilientVMDeletionPolicy and OperationRecoverySettings (version > 2025-11-01). @@ -14545,7 +14883,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResiliencyProfile(_Model): +class ResiliencyProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gets resiliency solutions enabled on the VM. This includes backup or disaster recovery solutions. @@ -14576,7 +14914,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResilientVMCreationPolicy(_Model): +class ResilientVMCreationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing resilient VM creation. :ivar enabled: Specifies whether resilient VM creation should be enabled on the virtual machine @@ -14606,7 +14944,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResilientVMDeletionPolicy(_Model): +class ResilientVMDeletionPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing resilient VM deletion. :ivar enabled: Specifies whether resilient VM deletion should be enabled on the virtual machine @@ -14636,7 +14974,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceRange(_Model): +class ResourceRange(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the resource range. :ivar min: The minimum number of the resource. @@ -14669,7 +15007,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceSharingProfile(_Model): +class ResourceSharingProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceSharingProfile. :ivar subscription_ids: Specifies an array of subscription resource IDs that capacity @@ -14921,7 +15259,7 @@ class ResourceSkuZoneDetails(_Model): """A list of capabilities that are available for the SKU in the specified list of zones.""" -class RestartRecoveryPolicy(_Model): +class RestartRecoveryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing restart recovery. :ivar enabled: Specifies whether restart recovery should be enabled. The default value is @@ -14950,7 +15288,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePoint(ProxyResource): +class RestorePoint(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Restore Point details. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -15020,7 +15358,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RestorePointCollection(TrackedResource): +class RestorePointCollection(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Create or update Restore Point collection parameters. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -15093,7 +15431,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RestorePointCollectionProperties(_Model): +class RestorePointCollectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The restore point collection properties. :ivar source: The properties of the source resource that this restore point collection is @@ -15150,7 +15488,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointCollectionSourceProperties(_Model): +class RestorePointCollectionSourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the source resource that this restore point collection is created from. :ivar location: Location of the source resource used to create this restore point collection. @@ -15182,7 +15520,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointCollectionUpdate(UpdateResource): +class RestorePointCollectionUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Update Restore Point collection parameters. :ivar tags: Resource tags. @@ -15241,7 +15579,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RestorePointEncryption(_Model): +class RestorePointEncryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. @@ -15289,7 +15627,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointInstanceView(_Model): +class RestorePointInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a restore point. :ivar disk_restore_points: The disk restore points information. @@ -15326,7 +15664,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointProperties(_Model): +class RestorePointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The restore point properties. :ivar exclude_disks: List of disk resource ids that the customer wishes to exclude from the @@ -15413,7 +15751,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointSourceMetadata(_Model): +class RestorePointSourceMetadata(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. @@ -15489,7 +15827,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointSourceVMDataDisk(_Model): +class RestorePointSourceVMDataDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a data disk. :ivar lun: Gets the logical unit number. @@ -15548,7 +15886,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointSourceVMOSDisk(_Model): +class RestorePointSourceVMOSDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an Operating System disk. :ivar os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". @@ -15611,7 +15949,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorePointSourceVMStorageProfile(_Model): +class RestorePointSourceVMStorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the storage profile. :ivar os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. @@ -15696,7 +16034,7 @@ class RollbackStatusInfo(_Model): """Error details if OS rollback failed.""" -class RollingUpgradePolicy(_Model): +class RollingUpgradePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing a rolling upgrade. :ivar max_batch_instance_percent: The maximum percent of total virtual machine instances that @@ -15859,7 +16197,7 @@ class RollingUpgradeRunningStatus(_Model): """Last action time of the upgrade.""" -class RollingUpgradeStatusInfo(TrackedResource): +class RollingUpgradeStatusInfo(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of the latest virtual machine scale set rolling upgrade. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -15952,7 +16290,7 @@ class RollingUpgradeStatusInfoProperties(_Model): """Error details for this upgrade, if there are any.""" -class RunCommandDocumentBase(_Model): +class RunCommandDocumentBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Run Command metadata. :ivar schema: The VM run command schema. Required. @@ -16002,7 +16340,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandDocument(RunCommandDocumentBase): +class RunCommandDocument(RunCommandDocumentBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Run Command. :ivar schema: The VM run command schema. Required. @@ -16052,7 +16390,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandInput(_Model): +class RunCommandInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Capture Virtual Machine parameters. :ivar command_id: Specifies a commandId of predefined built-in script. Command IDs available @@ -16102,7 +16440,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandInputParameter(_Model): +class RunCommandInputParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a run command parameter. :ivar name: The run command parameter name. Required. @@ -16135,7 +16473,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandManagedIdentity(_Model): +class RunCommandManagedIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of @@ -16180,7 +16518,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandParameterDefinition(_Model): +class RunCommandParameterDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a run command parameter. :ivar name: The run command parameter name. Required. @@ -16225,7 +16563,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RunCommandResult(_Model): +class RunCommandResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RunCommandResult. :ivar value: Run command operation response. @@ -16255,7 +16593,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScaleInPolicy(_Model): +class ScaleInPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a scale-in policy for a virtual machine scale set. :ivar rules: The rules to be followed when scaling-in a virtual machine scale set.

@@ -16329,7 +16667,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScheduledEventsAdditionalPublishingTargets(_Model): # pylint: disable=name-too-long +class ScheduledEventsAdditionalPublishingTargets( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ScheduledEventsAdditionalPublishingTargets. :ivar event_grid_and_resource_graph: The configuration parameters used while creating @@ -16361,7 +16701,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScheduledEventsPolicy(_Model): +class ScheduledEventsPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations. @@ -16426,7 +16766,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScheduledEventsProfile(_Model): +class ScheduledEventsProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ScheduledEventsProfile. :ivar terminate_notification_profile: Specifies Terminate Scheduled Event related @@ -16465,30 +16805,56 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScheduleProfile(_Model): - """Defines the schedule for Block-type capacity reservations. Specifies the schedule during which - capacity reservation is active and VM or VMSS resource can be allocated using reservation. This - property is required and only supported when the capacity reservation group type is 'Block'. - The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: - 2025-04-01. Please refer to `https://aka.ms/blockcapacityreservation - `_ for more details. +class ScheduleProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines the schedule for Block and Future capacity reservations. Specifies the schedule during + which capacity reservation is active and VM or VMSS resource can be allocated using + reservation. For Block capacity reservations, the scheduleProfile, start, and end fields are + immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation + `_ for more details. Minimum API version for Block + capacity reservations: 2025-04-01. Future capacity reservations must use this property with + only a start time, which can be changed until the ‘modifiableUntil’ time. Please refer to + `https://aka.ms/futurecapacityreservation `_ for more + details. Minimum API version for Future capacity reservations: 2026-04-01. - :ivar start: The required start date for block capacity reservations. Must be today or within - 56 days in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. - Example: 2025-06-27. + :ivar start: The required start date for Block or Future capacity reservations. Block capacity + reservations: Must be today or within 56 days in the future. For same-day scheduling, requests + must be submitted before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in + the future, and maximum 6 months in the future. Minimum API version for Future capacity + reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future capacity + reservations. :vartype start: str - :ivar end: The required end date for block capacity reservations. Must be after the start date, + :ivar end: The required end date for Block capacity reservations. Must be after the start date, with a duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. :vartype end: str + :ivar minimum_commitment_days: The minimum number of days that must pass after the start date + before a Future capacity reservation can be updated or deleted once it has been committed. Will + be populated with a default value if not provided. + :vartype minimum_commitment_days: int + :ivar modifiable_until: The date/time until which a Future capacity reservation can be updated + or deleted. Read-only. + :vartype modifiable_until: ~datetime.datetime """ start: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The required start date for block capacity reservations. Must be today or within 56 days in the - future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Example: - 2025-06-27.""" + """The required start date for Block or Future capacity reservations. Block capacity reservations: + Must be today or within 56 days in the future. For same-day scheduling, requests must be + submitted before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in the + future, and maximum 6 months in the future. Minimum API version for Future capacity + reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future capacity + reservations.""" end: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The required end date for block capacity reservations. Must be after the start date, with a + """The required end date for Block capacity reservations. Must be after the start date, with a duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28.""" + minimum_commitment_days: Optional[int] = rest_field( + name="minimumCommitmentDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum number of days that must pass after the start date before a Future capacity + reservation can be updated or deleted once it has been committed. Will be populated with a + default value if not provided.""" + modifiable_until: Optional[datetime.datetime] = rest_field( + name="modifiableUntil", visibility=["read"], format="rfc3339" + ) + """The date/time until which a Future capacity reservation can be updated or deleted. Read-only.""" @overload def __init__( @@ -16496,6 +16862,7 @@ def __init__( *, start: Optional[str] = None, end: Optional[str] = None, + minimum_commitment_days: Optional[int] = None, ) -> None: ... @overload @@ -16509,7 +16876,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScriptSource(_Model): +class ScriptSource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The source script from which the Script Version is going to be created. :ivar script_link: Required. The link of the source script, it must be a readable storage blob @@ -16548,7 +16915,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPostureReference(_Model): +class SecurityPostureReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01. :ivar id: The security posture reference id in the form of @@ -16595,7 +16962,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPostureReferenceUpdate(_Model): +class SecurityPostureReferenceUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01. :ivar id: The security posture reference id in the form of @@ -16640,7 +17007,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityProfile(_Model): +class SecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the Security profile settings for the virtual machine or virtual machine scale set. :ivar uefi_settings: Specifies the security settings like secure boot and vTPM used while @@ -16717,7 +17084,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceArtifactReference(_Model): +class ServiceArtifactReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. @@ -16748,7 +17115,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGallery(PirSharedGalleryResource): +class SharedGallery(PirSharedGalleryResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the Shared Gallery that you want to create or update. :ivar name: Resource name. @@ -16805,7 +17172,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SharedGalleryDiskImage(_Model): +class SharedGalleryDiskImage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the disk image base class. :ivar disk_size_gb: This property indicates the size of the VHD to be created. @@ -16841,7 +17208,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryDataDiskImage(SharedGalleryDiskImage): +class SharedGalleryDataDiskImage(SharedGalleryDiskImage): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the data disk image. :ivar disk_size_gb: This property indicates the size of the VHD to be created. @@ -16879,7 +17246,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryIdentifier(_Model): +class SharedGalleryIdentifier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The identifier information of shared gallery. :ivar unique_id: The unique id of this shared gallery. @@ -16907,7 +17274,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryImage(PirSharedGalleryResource): +class SharedGalleryImage(PirSharedGalleryResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image definition that you want to create or update. :ivar name: Resource name. @@ -16979,7 +17346,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SharedGalleryImageProperties(_Model): +class SharedGalleryImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image definition. :ivar os_type: This property allows you to specify the type of the OS that is included in the @@ -17106,7 +17473,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryImageVersion(PirSharedGalleryResource): +class SharedGalleryImageVersion( + PirSharedGalleryResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery image version that you want to create or update. :ivar name: Resource name. @@ -17170,7 +17539,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SharedGalleryImageVersionProperties(_Model): +class SharedGalleryImageVersionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a gallery image version. :ivar published_date: The published date of the gallery image version Definition. This property @@ -17234,7 +17603,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryImageVersionStorageProfile(_Model): +class SharedGalleryImageVersionStorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the storage profile of a Gallery Image Version. :ivar os_disk_image: This is the OS disk image. @@ -17271,7 +17640,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedGalleryOSDiskImage(SharedGalleryDiskImage): +class SharedGalleryOSDiskImage(SharedGalleryDiskImage): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the OS disk image. :ivar disk_size_gb: This property indicates the size of the VHD to be created. @@ -17321,7 +17690,7 @@ class ShareInfoElement(_Model): """A relative URI containing the ID of the VM that has the disk attached.""" -class SharingProfile(_Model): +class SharingProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Profile for gallery sharing to subscription or tenant. :ivar permissions: This property allows you to specify the permission of sharing gallery. @@ -17367,7 +17736,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharingProfileGroup(_Model): +class SharingProfileGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Group of the gallery sharing profile. :ivar type: This property allows you to specify the type of sharing group. Possible values are: @@ -17404,7 +17773,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharingStatus(_Model): +class SharingStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Sharing status of current gallery. :ivar aggregated_state: Aggregated sharing state of current gallery. Known values are: @@ -17442,7 +17811,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharingUpdate(_Model): +class SharingUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the gallery sharing profile update. :ivar operation_type: This property allows you to specify the operation type of gallery sharing @@ -17483,7 +17852,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Sku(_Model): +class Sku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. @@ -17525,7 +17894,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuProfile(_Model): +class SkuProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the sku profile for the virtual machine scale set. With this property the customer is able to specify a list of VM sizes and an allocation strategy. @@ -17577,7 +17946,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SkuProfileVMSize(_Model): +class SkuProfileVMSize(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the VM Size. :ivar name: Specifies the name of the VM Size. @@ -17610,7 +17979,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Snapshot(TrackedResource): +class Snapshot(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Snapshot resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -17724,7 +18093,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SnapshotProperties(_Model): +class SnapshotProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Snapshot resource properties. :ivar time_created: The time when the snapshot was created. @@ -17939,7 +18308,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SnapshotSku(_Model): +class SnapshotSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. @@ -17975,7 +18344,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SnapshotUpdate(_Model): +class SnapshotUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Snapshot update resource. :ivar properties: Snapshot resource update properties. @@ -18051,7 +18420,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SnapshotUpdateProperties(_Model): +class SnapshotUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Snapshot resource update properties. :ivar os_type: the Operating System type. Known values are: "Windows" and "Linux". @@ -18169,7 +18538,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SoftDeletePolicy(_Model): +class SoftDeletePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains information about the soft deletion policy of the gallery. :ivar is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing @@ -18201,7 +18570,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SourceVault(_Model): +class SourceVault(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}. @@ -18230,7 +18599,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SpotRestorePolicy(_Model): +class SpotRestorePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. @@ -18271,7 +18640,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshConfiguration(_Model): +class SshConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SSH configuration for Linux based VMs running on Azure. :ivar public_keys: The list of SSH public keys used to authenticate with linux based VMs. @@ -18301,7 +18670,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshGenerateKeyPairInputParameters(_Model): +class SshGenerateKeyPairInputParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for GenerateSshKeyPair. :ivar encryption_type: The encryption type of the SSH keys to be generated. See @@ -18334,7 +18703,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshPublicKey(_Model): +class SshPublicKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. @@ -18379,7 +18748,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshPublicKeyGenerateKeyPairResult(_Model): +class SshPublicKeyGenerateKeyPairResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response from generation of an SSH key pair. :ivar private_key: Private key portion of the key pair used to authenticate to a virtual @@ -18426,7 +18795,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshPublicKeyResource(TrackedResource): +class SshPublicKeyResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the SSH public key. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -18493,7 +18862,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SshPublicKeyResourceProperties(_Model): +class SshPublicKeyResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the SSH public key. :ivar public_key: SSH public key used to authenticate to a virtual machine through ssh. If this @@ -18527,7 +18896,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SshPublicKeyUpdateResource(UpdateResource): +class SshPublicKeyUpdateResource(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the SSH public key. :ivar tags: Resource tags. @@ -18580,7 +18949,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StartRecoveryPolicy(_Model): +class StartRecoveryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters used while performing start recovery. :ivar enabled: Specifies whether start recovery should be enabled. The default value is false. @@ -18608,7 +18977,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageProfile(_Model): +class StorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the storage settings for the virtual machine disks. :ivar image_reference: Specifies information about the image to use. You can specify @@ -18636,6 +19005,10 @@ class StorageProfile(_Model): aligned/moved to the VM zone. This is applicable only for VMs with placement property set. Please note that this change is irreversible. Minimum api-version: 2024-11-01. :vartype align_regional_disks_to_vm_zone: bool + :ivar disk_api_version: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype disk_api_version: str or ~azure.mgmt.compute.models.DiskApiVersion """ image_reference: Optional["_models.ImageReference"] = rest_field( @@ -18673,6 +19046,12 @@ class StorageProfile(_Model): """Specifies whether the regional disks should be aligned/moved to the VM zone. This is applicable only for VMs with placement property set. Please note that this change is irreversible. Minimum api-version: 2024-11-01.""" + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = rest_field( + name="diskApiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" @overload def __init__( @@ -18683,6 +19062,7 @@ def __init__( data_disks: Optional[list["_models.DataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, align_regional_disks_to_vm_zone: Optional[bool] = None, + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = None, ) -> None: ... @overload @@ -18696,7 +19076,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubResourceWithColocationStatus(SubResource): +class SubResourceWithColocationStatus(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """SubResourceWithColocationStatus. :ivar id: Resource Id. @@ -18730,7 +19110,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SupportedCapabilities(_Model): +class SupportedCapabilities(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of supported capabilities persisted on the disk resource for VM use. :ivar disk_controller_types: The disk controllers that an OS disk supports. If set it can be @@ -18789,7 +19169,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -18856,7 +19236,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TargetRegion(_Model): +class TargetRegion(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the target region information. :ivar name: The name of the region. Required. @@ -18929,7 +19309,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TerminateNotificationProfile(_Model): +class TerminateNotificationProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """TerminateNotificationProfile. :ivar not_before_timeout: Configurable length of time a Virtual Machine being deleted will have @@ -18969,7 +19349,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ThrottledRequestsInput(LogAnalyticsInputBase): +class ThrottledRequestsInput(LogAnalyticsInputBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Api request input for LogAnalytics getThrottledRequests Api. :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api @@ -19016,7 +19396,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UefiKey(_Model): +class UefiKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A UEFI key signature. :ivar type: The type of key signature. Known values are: "sha256" and "x509". @@ -19051,7 +19431,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UefiKeySignatures(_Model): +class UefiKeySignatures(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Additional UEFI key signatures that will be added to the image in addition to the signature templates. @@ -19095,7 +19475,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UefiSettings(_Model): +class UefiSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. @@ -19215,7 +19595,7 @@ class UpgradeOperationHistoryStatus(_Model): """End time of the upgrade.""" -class UpgradePolicy(_Model): +class UpgradePolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an upgrade policy - automatic, manual, or rolling. :ivar mode: Specifies the mode of an upgrade to virtual machines in the scale set.

@@ -19269,7 +19649,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Usage(_Model): +class Usage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes Compute Resource Usage. :ivar unit: An enum describing the unit of usage measurement. Required. Default value is @@ -19313,7 +19693,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.unit: Literal["Count"] = "Count" -class UsageName(_Model): +class UsageName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Usage Names. :ivar value: The name of the resource. @@ -19348,7 +19728,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserArtifactManage(_Model): +class UserArtifactManage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """UserArtifactManage. :ivar install: Required. The path and arguments to install the gallery application. This is @@ -19397,7 +19777,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserArtifactSettings(_Model): +class UserArtifactSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. @@ -19454,7 +19834,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserArtifactSource(_Model): +class UserArtifactSource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The source image from which the Image Version is going to be created. :ivar media_link: Required. The mediaLink of the artifact, must be a readable storage page @@ -19506,7 +19886,7 @@ class UserAssignedIdentitiesValue(_Model): """The client id of user assigned identity.""" -class UserInitiatedReboot(_Model): +class UserInitiatedReboot(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies Reboot related Scheduled Event related configurations. :ivar automatically_approve: Specifies Reboot Scheduled Event related configurations. @@ -19536,7 +19916,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserInitiatedRedeploy(_Model): +class UserInitiatedRedeploy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies Redeploy related Scheduled Event related configurations. :ivar automatically_approve: Specifies Redeploy Scheduled Event related configurations. @@ -19566,7 +19946,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidationsProfile(_Model): +class ValidationsProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """This is the validations profile of a Gallery Image Version. :ivar validation_etag: The published time of the image version. @@ -19610,7 +19990,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultCertificate(_Model): +class VaultCertificate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. @@ -19676,7 +20056,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultSecretGroup(_Model): +class VaultSecretGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a set of certificates which are all in the same Key Vault. :ivar source_vault: The relative URL of the Key Vault containing all of the certificates in @@ -19715,7 +20095,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHardDisk(_Model): +class VirtualHardDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the uri of a disk. :ivar uri: Specifies the virtual hard disk's uri. @@ -19743,7 +20123,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachine(TrackedResource): +class VirtualMachine(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -19898,7 +20278,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineAgentInstanceView(_Model): +class VirtualMachineAgentInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of the VM Agent running on the virtual machine. :ivar vm_agent_version: The VM Agent full version. @@ -20005,7 +20385,7 @@ class VirtualMachineAssessPatchesResult(_Model): the list of them.""" -class VirtualMachineCaptureParameters(_Model): +class VirtualMachineCaptureParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Capture Virtual Machine parameters. :ivar vhd_prefix: The captured virtual hard disk's name prefix. Required. @@ -20047,7 +20427,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineCaptureResult(SubResource): +class VirtualMachineCaptureResult(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Output of virtual machine capture operation. :ivar id: Resource Id. @@ -20089,7 +20469,189 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtension(TrackedResource): +class VirtualMachineDiagnosticRunCommand( + TrackedResource +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Describes a Virtual Machine diagnostic run command. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.compute.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Describes the properties of a Virtual Machine diagnostic run command. + :vartype properties: ~azure.mgmt.compute.models.VirtualMachineRunCommandProperties + """ + + properties: Optional["_models.VirtualMachineRunCommandProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes the properties of a Virtual Machine diagnostic run command.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.VirtualMachineRunCommandProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VirtualMachineDiskProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Specifies the properties of a managed disk that can be set at the time of implicit creation of + the disk. + + :ivar tier: Performance tier of the disk (e.g., P4, S10) as described here: + `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ + `_. Does not apply to Ultra + disks. + :vartype tier: str + :ivar bursting_enabled: Set to true to enable bursting beyond the provisioned performance + target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. + :vartype bursting_enabled: bool + :ivar performance_plus: Set this flag to true to get a boost on the performance target of the + disk deployed. This flag can only be set on disk creation time and cannot be disabled after + enabled. + :vartype performance_plus: bool + :ivar optimized_for_frequent_attach: Setting this property to true improves reliability and + performance of data disks that are frequently (more than 5 times a day) detached from one + virtual machine and attached to another. This property should not be set for disks that are not + detached and attached frequently as it causes the disks to not align with the fault domain of + the virtual machine. + :vartype optimized_for_frequent_attach: bool + :ivar availability_policy: In the case of an availability or connectivity issue with the disk, + specify the behavior of your VM. + :vartype availability_policy: ~azure.mgmt.compute.models.DiskAvailabilityPolicy + :ivar max_shares: The maximum number of VMs that can attach to the disk at the same time. Value + greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies + to data disks only. + :vartype max_shares: int + :ivar network_access_policy: Policy for accessing the disk via network. Known values are: + "AllowAll", "AllowPrivate", and "DenyAll". + :vartype network_access_policy: str or + ~azure.mgmt.compute.models.VirtualMachineDiskNetworkAccessPolicy + :ivar disk_access_id: Azure resource Id of the DiskAccess resource for using private endpoints + on disks. + :vartype disk_access_id: str + :ivar disk_iops_read_only: The total number of IOPS that will be allowed across all VMs + mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + :vartype disk_iops_read_only: int + :ivar disk_m_bps_read_only: The total throughput (MBps) that will be allowed across all VMs + mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses + the ISO notation, of powers of 10. + :vartype disk_m_bps_read_only: int + :ivar logical_sector_size: Logical sector size in bytes for Ultra Disks. Supported values are + 512 and 4096. 4096 is the default. + :vartype logical_sector_size: int + """ + + tier: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Performance tier of the disk (e.g., P4, S10) as described here: + `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ + `_. Does not apply to Ultra + disks.""" + bursting_enabled: Optional[bool] = rest_field( + name="burstingEnabled", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting + is disabled by default. Does not apply to Ultra disks.""" + performance_plus: Optional[bool] = rest_field( + name="performancePlus", visibility=["read", "create", "update", "delete", "query"] + ) + """Set this flag to true to get a boost on the performance target of the disk deployed. This flag + can only be set on disk creation time and cannot be disabled after enabled.""" + optimized_for_frequent_attach: Optional[bool] = rest_field( + name="optimizedForFrequentAttach", visibility=["read", "create", "update", "delete", "query"] + ) + """Setting this property to true improves reliability and performance of data disks that are + frequently (more than 5 times a day) detached from one virtual machine and attached to another. + This property should not be set for disks that are not detached and attached frequently as it + causes the disks to not align with the fault domain of the virtual machine.""" + availability_policy: Optional["_models.DiskAvailabilityPolicy"] = rest_field( + name="availabilityPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """In the case of an availability or connectivity issue with the disk, specify the behavior of + your VM.""" + max_shares: Optional[int] = rest_field(name="maxShares", visibility=["read", "create", "update", "delete", "query"]) + """The maximum number of VMs that can attach to the disk at the same time. Value greater than one + indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks + only.""" + network_access_policy: Optional[Union[str, "_models.VirtualMachineDiskNetworkAccessPolicy"]] = rest_field( + name="networkAccessPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Policy for accessing the disk via network. Known values are: \"AllowAll\", \"AllowPrivate\", + and \"DenyAll\".""" + disk_access_id: Optional[str] = rest_field( + name="diskAccessId", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure resource Id of the DiskAccess resource for using private endpoints on disks.""" + disk_iops_read_only: Optional[int] = rest_field( + name="diskIOPSReadOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """The total number of IOPS that will be allowed across all VMs mounting the shared disk as + ReadOnly. One operation can transfer between 4k and 256k bytes.""" + disk_m_bps_read_only: Optional[int] = rest_field( + name="diskMBpsReadOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as + ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of + 10.""" + logical_sector_size: Optional[int] = rest_field( + name="logicalSectorSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the + default.""" + + @overload + def __init__( + self, + *, + tier: Optional[str] = None, + bursting_enabled: Optional[bool] = None, + performance_plus: Optional[bool] = None, + optimized_for_frequent_attach: Optional[bool] = None, + availability_policy: Optional["_models.DiskAvailabilityPolicy"] = None, + max_shares: Optional[int] = None, + network_access_policy: Optional[Union[str, "_models.VirtualMachineDiskNetworkAccessPolicy"]] = None, + disk_access_id: Optional[str] = None, + disk_iops_read_only: Optional[int] = None, + disk_m_bps_read_only: Optional[int] = None, + logical_sector_size: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VirtualMachineExtension(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Extension. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -20170,12 +20732,15 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineExtensionHandlerInstanceView(_Model): # pylint: disable=name-too-long +class VirtualMachineExtensionHandlerInstanceView( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The instance view of a virtual machine extension handler. :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. + :ivar type_handler_version: Specifies the Major.Minor.Patch.Hotfix version of the script + handler. Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. :vartype type_handler_version: str :ivar status: The extension handler status. :vartype status: ~azure.mgmt.compute.models.InstanceViewStatus @@ -20186,7 +20751,8 @@ class VirtualMachineExtensionHandlerInstanceView(_Model): # pylint: disable=nam type_handler_version: Optional[str] = rest_field( name="typeHandlerVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies the version of the script handler.""" + """Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will + deliver the latest Patch.Hotfix version in the Major.Minor series.""" status: Optional["_models.InstanceViewStatus"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -20212,7 +20778,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtensionImage(TrackedResource): +class VirtualMachineExtensionImage(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Extension Image. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -20245,6 +20811,11 @@ class VirtualMachineExtensionImage(TrackedResource): "handler_schema", "vm_scale_set_enabled", "supports_multiple_extensions", + "release_notes", + "release_category", + "urgency_level", + "run_profile", + "extension_feature_metadata", ] @overload @@ -20285,7 +20856,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineExtensionImageProperties(_Model): +class VirtualMachineExtensionImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Extension Image. :ivar operating_system: The operating system this extension supports. Required. @@ -20301,6 +20872,21 @@ class VirtualMachineExtensionImageProperties(_Model): :vartype vm_scale_set_enabled: bool :ivar supports_multiple_extensions: Whether the handler can support multiple extensions. :vartype supports_multiple_extensions: bool + :ivar release_notes: Summary of changes or updates in this extension version. + :vartype release_notes: str + :ivar release_category: Categorizes the type of change introduced (e.g., BugFix, SecurityFix, + CompatibilityUpdate, NewFeature, Other). Known values are: "Other", "BugFix", "SecurityFix", + "CompatibilityUpdate", and "NewFeature". + :vartype release_category: str or ~azure.mgmt.compute.models.ReleaseCategory + :ivar urgency_level: Indicates the urgency level for applying this extension update. Known + values are: "Regular", "Expedited", and "Emergency". + :vartype urgency_level: str or ~azure.mgmt.compute.models.UrgencyLevel + :ivar run_profile: Specifies when and how the extension should be executed. Known values are: + "Other", "RunOnce", "LongRunning", and "Hybrid". + :vartype run_profile: str or ~azure.mgmt.compute.models.RunProfile + :ivar extension_feature_metadata: Additional metadata about extension features, including + compliance and capability tags. + :vartype extension_feature_metadata: ~azure.mgmt.compute.models.ExtensionFeatureMetadata """ operating_system: str = rest_field( @@ -20322,6 +20908,24 @@ class VirtualMachineExtensionImageProperties(_Model): name="supportsMultipleExtensions", visibility=["read", "create", "update", "delete", "query"] ) """Whether the handler can support multiple extensions.""" + release_notes: Optional[str] = rest_field(name="releaseNotes", visibility=["read"]) + """Summary of changes or updates in this extension version.""" + release_category: Optional[Union[str, "_models.ReleaseCategory"]] = rest_field( + name="releaseCategory", visibility=["read"] + ) + """Categorizes the type of change introduced (e.g., BugFix, SecurityFix, CompatibilityUpdate, + NewFeature, Other). Known values are: \"Other\", \"BugFix\", \"SecurityFix\", + \"CompatibilityUpdate\", and \"NewFeature\".""" + urgency_level: Optional[Union[str, "_models.UrgencyLevel"]] = rest_field(name="urgencyLevel", visibility=["read"]) + """Indicates the urgency level for applying this extension update. Known values are: \"Regular\", + \"Expedited\", and \"Emergency\".""" + run_profile: Optional[Union[str, "_models.RunProfile"]] = rest_field(name="runProfile", visibility=["read"]) + """Specifies when and how the extension should be executed. Known values are: \"Other\", + \"RunOnce\", \"LongRunning\", and \"Hybrid\".""" + extension_feature_metadata: Optional["_models.ExtensionFeatureMetadata"] = rest_field( + name="extensionFeatureMetadata", visibility=["read"] + ) + """Additional metadata about extension features, including compliance and capability tags.""" @overload def __init__( @@ -20345,14 +20949,15 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtensionInstanceView(_Model): +class VirtualMachineExtensionInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a virtual machine extension. :ivar name: The virtual machine extension name. :vartype name: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. + :ivar type_handler_version: Specifies the Major.Minor.Patch.Hotfix version of the script + handler. Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. :vartype type_handler_version: str :ivar substatuses: The resource status information. :vartype substatuses: list[~azure.mgmt.compute.models.InstanceViewStatus] @@ -20367,7 +20972,8 @@ class VirtualMachineExtensionInstanceView(_Model): type_handler_version: Optional[str] = rest_field( name="typeHandlerVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies the version of the script handler.""" + """Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will + deliver the latest Patch.Hotfix version in the Major.Minor series.""" substatuses: Optional[list["_models.InstanceViewStatus"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -20399,7 +21005,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtensionProperties(_Model): +class VirtualMachineExtensionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Extension. :ivar force_update_tag: How the extension handler should be forced to update even if the @@ -20409,7 +21015,9 @@ class VirtualMachineExtensionProperties(_Model): :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. + :ivar type_handler_version: Specifies the Major.Minor version of the script handler. Customer + is able to specify only the Major.Minor version of an extension, Azure platform will deliver + the latest Patch.Hotfix version in the Major.Minor series. :vartype type_handler_version: str :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not @@ -20451,7 +21059,9 @@ class VirtualMachineExtensionProperties(_Model): type_handler_version: Optional[str] = rest_field( name="typeHandlerVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" auto_upgrade_minor_version: Optional[bool] = rest_field( name="autoUpgradeMinorVersion", visibility=["read", "create", "update", "delete", "query"] ) @@ -20520,7 +21130,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtensionsListResult(_Model): +class VirtualMachineExtensionsListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The List Extension operation response. :ivar value: The list of extensions. @@ -20550,7 +21160,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineExtensionUpdate(UpdateResource): +class VirtualMachineExtensionUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Extension. :ivar tags: Resource tags. @@ -20614,7 +21224,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineExtensionUpdateProperties(_Model): +class VirtualMachineExtensionUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Extension. :ivar force_update_tag: How the extension handler should be forced to update even if the @@ -20624,7 +21234,9 @@ class VirtualMachineExtensionUpdateProperties(_Model): :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. + :ivar type_handler_version: Specifies the Major.Minor version of the script handler. Customer + is able to specify only the Major.Minor version of an extension, Azure platform will deliver + the latest Patch.Hotfix version in the Major.Minor series. :vartype type_handler_version: str :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not @@ -20659,7 +21271,9 @@ class VirtualMachineExtensionUpdateProperties(_Model): type_handler_version: Optional[str] = rest_field( name="typeHandlerVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" auto_upgrade_minor_version: Optional[bool] = rest_field( name="autoUpgradeMinorVersion", visibility=["read", "create", "update", "delete", "query"] ) @@ -20727,7 +21341,7 @@ class VirtualMachineHealthStatus(_Model): """The health status information for the VM.""" -class VirtualMachineIdentity(_Model): +class VirtualMachineIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the virtual machine. :ivar principal_id: The principal id of virtual machine identity. This property will only be @@ -20787,7 +21401,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineImageResource(SubResource): +class VirtualMachineImageResource(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual machine image resource information. :ivar id: Resource Id. @@ -20839,7 +21453,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineImage(VirtualMachineImageResource): +class VirtualMachineImage(VirtualMachineImageResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Image. :ivar id: Resource Id. @@ -20916,7 +21530,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineImageFeature(_Model): +class VirtualMachineImageFeature(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies additional capabilities supported by the image. :ivar name: The name of the feature. @@ -20949,7 +21563,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineImageProperties(_Model): +class VirtualMachineImageProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Image. :ivar plan: Used for establishing the purchase context of any 3rd Party artifact through @@ -21035,7 +21649,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineInstallPatchesParameters(_Model): +class VirtualMachineInstallPatchesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input for InstallPatches as directly received by the API. :ivar maximum_duration: Specifies the maximum amount of time that the operation will run. It @@ -21171,7 +21785,7 @@ class VirtualMachineInstallPatchesResult(_Model): the list of them.""" -class VirtualMachineInstanceView(_Model): +class VirtualMachineInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a virtual machine. :ivar platform_update_domain: Specifies the update domain of the virtual machine. @@ -21217,6 +21831,12 @@ class VirtualMachineInstanceView(_Model): :ivar interconnect_instance_view: The Interconnect runtime view of the Virtual Machine. Minimum api-version: 2026-03-01. :vartype interconnect_instance_view: ~azure.mgmt.compute.models.InterconnectInstanceView + :ivar capacity_reservation_type: Specifies which type of capacity reservation the virtual + machine will consume capacity from if eligible or whether it is explicitly opted out from being + associated and consuming capacity from any reserved capacity available in the subscription. + Minimum api-version: 2026-04-01. Known values are: "NotEligible", "Targeted", "Open", + "Disabled", and "Block". + :vartype capacity_reservation_type: str or ~azure.mgmt.compute.models.CapacityReservationType """ platform_update_domain: Optional[int] = rest_field( @@ -21286,6 +21906,13 @@ class VirtualMachineInstanceView(_Model): name="interconnectInstanceView", visibility=["read"] ) """The Interconnect runtime view of the Virtual Machine. Minimum api-version: 2026-03-01.""" + capacity_reservation_type: Optional[Union[str, "_models.CapacityReservationType"]] = rest_field( + name="capacityReservationType", visibility=["read"] + ) + """Specifies which type of capacity reservation the virtual machine will consume capacity from if + eligible or whether it is explicitly opted out from being associated and consuming capacity + from any reserved capacity available in the subscription. Minimum api-version: 2026-04-01. + Known values are: \"NotEligible\", \"Targeted\", \"Open\", \"Disabled\", and \"Block\".""" @overload def __init__( @@ -21318,13 +21945,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineIpTag(_Model): +class VirtualMachineIpTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the IP tag associated with the public IP address. :ivar ip_tag_type: IP tag type. Example: FirstPartyUsage. :vartype ip_tag_type: str :ivar tag: IP tag associated with the public IP. Example: SQL, Storage etc. :vartype tag: str + :ivar first_party_service_tag_id: The first party service tag resource identifier associated + with the public IP address. + :vartype first_party_service_tag_id: str """ ip_tag_type: Optional[str] = rest_field( @@ -21333,6 +21963,10 @@ class VirtualMachineIpTag(_Model): """IP tag type. Example: FirstPartyUsage.""" tag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """IP tag associated with the public IP. Example: SQL, Storage etc.""" + first_party_service_tag_id: Optional[str] = rest_field( + name="firstPartyServiceTagId", visibility=["read", "create", "update", "delete", "query"] + ) + """The first party service tag resource identifier associated with the public IP address.""" @overload def __init__( @@ -21340,6 +21974,7 @@ def __init__( *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, + first_party_service_tag_id: Optional[str] = None, ) -> None: ... @overload @@ -21353,7 +21988,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineNetworkInterfaceConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineNetworkInterfaceConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine network interface configurations. :ivar name: The network interface configuration name. Required. @@ -21429,7 +22066,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineNetworkInterfaceConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineNetworkInterfaceConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine network profile's IP configuration. :ivar primary: Specifies the primary network interface in case the virtual machine has more @@ -21545,7 +22184,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineNetworkInterfaceDnsSettingsConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines network configuration's DNS settings. :ivar dns_servers: List of DNS servers IP addresses. @@ -21575,7 +22216,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineNetworkInterfaceIPConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineNetworkInterfaceIPConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine network profile's IP configuration. :ivar name: The IP configuration name. Required. @@ -21639,7 +22282,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineNetworkInterfaceIPConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineNetworkInterfaceIPConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine network interface IP configuration properties. :ivar subnet: Specifies the identifier of the subnet. @@ -21726,7 +22371,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachinePatchStatus(_Model): +class VirtualMachinePatchStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of virtual machine patch operations. :ivar available_patch_summary: The available patch summary of the latest assessment operation @@ -21772,7 +22417,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineProperties(_Model): +class VirtualMachineProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine. :ivar hardware_profile: Specifies the hardware settings for the virtual machine. @@ -21820,7 +22465,7 @@ class VirtualMachineProperties(_Model): the virtual machine should be assigned to. Minimum api-version: 2018-04-01. :vartype proximity_placement_group: ~azure.mgmt.compute.models.SubResource :ivar priority: Specifies the priority for the virtual machine. Minimum api-version: - 2019-03-01. Known values are: "Regular", "Low", and "Spot". + 2019-03-01. Known values are: "Regular", "Low", "Spot", and "SpotPlus". :vartype priority: str or ~azure.mgmt.compute.models.VirtualMachinePriorityTypes :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are @@ -21954,7 +22599,7 @@ class VirtualMachineProperties(_Model): visibility=["read", "create", "update", "delete", "query"] ) """Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values - are: \"Regular\", \"Low\", and \"Spot\".""" + are: \"Regular\", \"Low\", \"Spot\", and \"SpotPlus\".""" eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = rest_field( name="evictionPolicy", visibility=["read", "create", "update", "delete", "query"] ) @@ -22083,7 +22728,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachinePublicIPAddressConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachinePublicIPAddressConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines IP Configuration's PublicIPAddress configuration. :ivar name: The publicIP address configuration name. Required. @@ -22159,7 +22806,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachinePublicIPAddressConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachinePublicIPAddressConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines IP Configuration's PublicIPAddress configuration. :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. @@ -22240,7 +22889,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachinePublicIPAddressDnsSettingsConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines network configuration's DNS settings. :ivar domain_name_label: The Domain name label prefix of the PublicIPAddress resources that @@ -22287,7 +22938,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineReimageParameters(_Model): +class VirtualMachineReimageParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. @@ -22335,7 +22986,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineRunCommand(TrackedResource): +class VirtualMachineRunCommand(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine run command. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -22417,7 +23068,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineRunCommandInstanceView(_Model): +class VirtualMachineRunCommandInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a virtual machine run command. :ivar execution_state: Script execution status. Known values are: "Unknown", "Pending", @@ -22492,7 +23143,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineRunCommandProperties(_Model): +class VirtualMachineRunCommandProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine run command. :ivar source: The source of the run command script. @@ -22668,7 +23319,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineRunCommandScriptSource(_Model): +class VirtualMachineRunCommandScriptSource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the script sources for run command. Use only one of these script sources: script, scriptUri, commandId, galleryScriptReferenceId. @@ -22759,7 +23410,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineRunCommandUpdate(UpdateResource): +class VirtualMachineRunCommandUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine run command. :ivar tags: Resource tags. @@ -22827,7 +23478,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSet(TrackedResource): +class VirtualMachineScaleSet(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -22971,7 +23622,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetDataDisk(_Model): +class VirtualMachineScaleSetDataDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set data disk. :ivar name: The disk name. @@ -23101,7 +23752,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetExtension(SubResourceReadOnly): +class VirtualMachineScaleSetExtension( + SubResourceReadOnly +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set Extension. :ivar id: Resource Id. @@ -23175,7 +23828,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetExtensionProfile(_Model): +class VirtualMachineScaleSetExtensionProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set extension profile. :ivar extensions: The virtual machine scale set child extension resources. @@ -23216,7 +23869,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetExtensionProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetExtensionProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Scale Set Extension. :ivar force_update_tag: If a value is provided and is different from the previous value, the @@ -23226,7 +23881,9 @@ class VirtualMachineScaleSetExtensionProperties(_Model): # pylint: disable=name :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. + :ivar type_handler_version: Specifies the Major.Minor version of the script handler. Customer + is able to specify only the Major.Minor version of an extension, Azure platform will deliver + the latest Patch.Hotfix version in the Major.Minor series. :vartype type_handler_version: str :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not @@ -23266,7 +23923,9 @@ class VirtualMachineScaleSetExtensionProperties(_Model): # pylint: disable=name type_handler_version: Optional[str] = rest_field( name="typeHandlerVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" auto_upgrade_minor_version: Optional[bool] = rest_field( name="autoUpgradeMinorVersion", visibility=["read", "create", "update", "delete", "query"] ) @@ -23330,7 +23989,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): +class VirtualMachineScaleSetExtensionUpdate( + SubResourceReadOnly +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set Extension. :ivar id: Resource Id. @@ -23403,13 +24064,18 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetHardwareProfile(_Model): +class VirtualMachineScaleSetHardwareProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the hardware settings for the virtual machine scale set. :ivar vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details. :vartype vm_size_properties: ~azure.mgmt.compute.models.VMSizeProperties + :ivar processor_mode: Specifies the processor mode for the virtual machine scale set. Optional; + if omitted, the platform default applies (currently Deterministic). This property can be + updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. + Known values are: "Deterministic" and "Opportunistic". + :vartype processor_mode: str or ~azure.mgmt.compute.models.ProcessorMode """ vm_size_properties: Optional["_models.VMSizeProperties"] = rest_field( @@ -23418,12 +24084,20 @@ class VirtualMachineScaleSetHardwareProfile(_Model): """Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details.""" + processor_mode: Optional[Union[str, "_models.ProcessorMode"]] = rest_field( + name="processorMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the + platform default applies (currently Deterministic). This property can be updated on a running + VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. Known values are: + \"Deterministic\" and \"Opportunistic\".""" @overload def __init__( self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = None, + processor_mode: Optional[Union[str, "_models.ProcessorMode"]] = None, ) -> None: ... @overload @@ -23437,7 +24111,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetIdentity(_Model): +class VirtualMachineScaleSetIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the virtual machine scale set. :ivar principal_id: The principal id of virtual machine scale set identity. This property will @@ -23499,7 +24173,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetInstanceView(_Model): +class VirtualMachineScaleSetInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a virtual machine scale set. :ivar virtual_machine: The instance view status summary for the virtual machine scale set. @@ -23559,7 +24233,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_Model): # pylint: disa """The extensions information.""" -class VirtualMachineScaleSetIPConfiguration(_Model): +class VirtualMachineScaleSetIPConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's IP configuration. :ivar name: The IP configuration name. Required. @@ -23624,7 +24298,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetIPConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetIPConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's IP configuration properties. :ivar subnet: Specifies the identifier of the subnet. @@ -23722,13 +24398,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetIpTag(_Model): +class VirtualMachineScaleSetIpTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the IP tag associated with the public IP address. :ivar ip_tag_type: IP tag type. Example: FirstPartyUsage. :vartype ip_tag_type: str :ivar tag: IP tag associated with the public IP. Example: SQL, Storage etc. :vartype tag: str + :ivar first_party_service_tag_id: The first party service tag resource identifier associated + with the public IP address. + :vartype first_party_service_tag_id: str """ ip_tag_type: Optional[str] = rest_field( @@ -23737,6 +24416,10 @@ class VirtualMachineScaleSetIpTag(_Model): """IP tag type. Example: FirstPartyUsage.""" tag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """IP tag associated with the public IP. Example: SQL, Storage etc.""" + first_party_service_tag_id: Optional[str] = rest_field( + name="firstPartyServiceTagId", visibility=["read", "create", "update", "delete", "query"] + ) + """The first party service tag resource identifier associated with the public IP address.""" @overload def __init__( @@ -23744,6 +24427,7 @@ def __init__( *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, + first_party_service_tag_id: Optional[str] = None, ) -> None: ... @overload @@ -23757,7 +24441,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetManagedDiskParameters(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetManagedDiskParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes the parameters of a ScaleSet managed disk. :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: @@ -23770,6 +24456,10 @@ class VirtualMachineScaleSetManagedDiskParameters(_Model): # pylint: disable=na :vartype disk_encryption_set: ~azure.mgmt.compute.models.DiskEncryptionSetParameters :ivar security_profile: Specifies the security profile for the managed disk. :vartype security_profile: ~azure.mgmt.compute.models.VMDiskSecurityProfile + :ivar additional_disk_properties: Specifies additional properties for the managed disk that can + be set at the time of implicit creation of the disk. This property is not captured for Restore + Points. + :vartype additional_disk_properties: ~azure.mgmt.compute.models.AdditionalDiskProperties """ storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = rest_field( @@ -23787,6 +24477,11 @@ class VirtualMachineScaleSetManagedDiskParameters(_Model): # pylint: disable=na name="securityProfile", visibility=["read", "create", "update", "delete", "query"] ) """Specifies the security profile for the managed disk.""" + additional_disk_properties: Optional["_models.AdditionalDiskProperties"] = rest_field( + name="additionalDiskProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies additional properties for the managed disk that can be set at the time of implicit + creation of the disk. This property is not captured for Restore Points.""" @overload def __init__( @@ -23795,6 +24490,7 @@ def __init__( storage_account_type: Optional[Union[str, "_models.StorageAccountTypes"]] = None, disk_encryption_set: Optional["_models.DiskEncryptionSetParameters"] = None, security_profile: Optional["_models.VMDiskSecurityProfile"] = None, + additional_disk_properties: Optional["_models.AdditionalDiskProperties"] = None, ) -> None: ... @overload @@ -23833,7 +24529,9 @@ class VirtualMachineScaleSetMigrationInfo(_Model): """Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.""" -class VirtualMachineScaleSetNetworkConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetNetworkConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's network configurations. :ivar name: The network configuration name. Required. @@ -23908,7 +24606,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetNetworkConfigurationDnsSettings(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetNetworkConfigurationDnsSettings( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale sets network configuration's DNS settings. :ivar dns_servers: List of DNS servers IP addresses. @@ -23938,7 +24638,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetNetworkConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetNetworkConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's IP configuration. :ivar primary: Specifies the primary network interface in case the virtual machine has more @@ -24048,7 +24750,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetNetworkProfile(_Model): +class VirtualMachineScaleSetNetworkProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile. :ivar health_probe: A reference to a load balancer probe used to determine the health of an @@ -24110,7 +24812,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetOSDisk(_Model): +class VirtualMachineScaleSetOSDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set operating system disk. :ivar name: The disk name. @@ -24254,7 +24956,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetOSProfile(_Model): +class VirtualMachineScaleSetOSProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set OS profile. :ivar computer_name_prefix: Specifies the computer name prefix for all of the virtual machines @@ -24406,7 +25108,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetProperties(_Model): +class VirtualMachineScaleSetProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Scale Set. :ivar upgrade_policy: The upgrade policy. @@ -24644,7 +25346,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetPublicIPAddressConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetPublicIPAddressConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. :ivar name: The publicIP address configuration name. Required. @@ -24719,7 +25423,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale sets network configuration's DNS settings. :ivar domain_name_label: The Domain name label.The concatenation of the domain name label and @@ -24765,7 +25471,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetPublicIPAddressConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetPublicIPAddressConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. @@ -24837,7 +25545,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): # pylint: disable=name-too-long +class VirtualMachineScaleSetVMReimageParameters( + VirtualMachineReimageParameters +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set VM Reimage Parameters. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp @@ -24880,7 +25590,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): +class VirtualMachineScaleSetReimageParameters( + VirtualMachineScaleSetVMReimageParameters +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set VM Reimage Parameters. :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp @@ -24975,7 +25687,7 @@ class VirtualMachineScaleSetSkuCapacity(_Model): """The scale type applicable to the sku. Known values are: \"Automatic\" and \"None\".""" -class VirtualMachineScaleSetStorageProfile(_Model): +class VirtualMachineScaleSetStorageProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set storage profile. :ivar image_reference: Specifies information about the image to use. You can specify @@ -24997,6 +25709,10 @@ class VirtualMachineScaleSetStorageProfile(_Model): machines in the scale set. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". :vartype disk_controller_type: str or ~azure.mgmt.compute.models.DiskControllerTypes + :ivar disk_api_version: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype disk_api_version: str or ~azure.mgmt.compute.models.DiskApiVersion """ image_reference: Optional["_models.ImageReference"] = rest_field( @@ -25023,6 +25739,12 @@ class VirtualMachineScaleSetStorageProfile(_Model): ) """Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01. Known values are: \"SCSI\" and \"NVMe\".""" + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = rest_field( + name="diskApiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" @overload def __init__( @@ -25032,6 +25754,7 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetOSDisk"] = None, data_disks: Optional[list["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = None, ) -> None: ... @overload @@ -25045,7 +25768,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdate(UpdateResource): +class VirtualMachineScaleSetUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Scale Set. :ivar tags: Resource tags. @@ -25142,7 +25865,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetUpdateIPConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateIPConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. @@ -25210,7 +25935,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetUpdateIPConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateIPConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's IP configuration properties. :ivar subnet: The subnet. @@ -25298,7 +26025,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateNetworkConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateNetworkConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile's network configurations. :ivar name: The network configuration name. @@ -25375,7 +26104,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetUpdateNetworkConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateNetworkConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set updatable network profile's IP configuration.Use this object for updating network profile's IP Configuration. @@ -25484,7 +26215,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateNetworkProfile(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateNetworkProfile( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set network profile. :ivar health_probe: A reference to a load balancer probe used to determine the health of an @@ -25548,7 +26281,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateOSDisk(_Model): +class VirtualMachineScaleSetUpdateOSDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. @@ -25659,7 +26392,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateOSProfile(_Model): +class VirtualMachineScaleSetUpdateOSProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set OS profile. :ivar custom_data: A base-64 encoded string of custom data. @@ -25710,7 +26443,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateProperties(_Model): +class VirtualMachineScaleSetUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a Virtual Machine Scale Set. :ivar upgrade_policy: The upgrade policy. @@ -25864,7 +26597,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. :ivar name: The publicIP address configuration name. @@ -25927,7 +26662,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. @@ -25981,7 +26718,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateStorageProfile(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetUpdateStorageProfile( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set storage profile. :ivar image_reference: The image reference. @@ -25995,6 +26734,10 @@ class VirtualMachineScaleSetUpdateStorageProfile(_Model): # pylint: disable=nam set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". :vartype disk_controller_type: str or ~azure.mgmt.compute.models.DiskControllerTypes + :ivar disk_api_version: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype disk_api_version: str or ~azure.mgmt.compute.models.DiskApiVersion """ image_reference: Optional["_models.ImageReference"] = rest_field( @@ -26016,6 +26759,12 @@ class VirtualMachineScaleSetUpdateStorageProfile(_Model): # pylint: disable=nam **Note:** You need to deallocate the virtual machines in the scale set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01. Known values are: \"SCSI\" and \"NVMe\".""" + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = rest_field( + name="diskApiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" @overload def __init__( @@ -26025,6 +26774,7 @@ def __init__( os_disk: Optional["_models.VirtualMachineScaleSetUpdateOSDisk"] = None, data_disks: Optional[list["_models.VirtualMachineScaleSetDataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, + disk_api_version: Optional[Union[str, "_models.DiskApiVersion"]] = None, ) -> None: ... @overload @@ -26038,7 +26788,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetUpdateVMProfile(_Model): +class VirtualMachineScaleSetUpdateVMProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set virtual machine profile. :ivar os_profile: The virtual machine scale set OS profile. @@ -26156,7 +26906,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVM(TrackedResource): +class VirtualMachineScaleSetVM(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set virtual machine. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -26245,6 +26995,7 @@ class VirtualMachineScaleSetVM(TrackedResource): "time_created", "virtual_machine_resource_id", "interconnect_block_profile", + "capacity_reservation", ] @overload @@ -26287,7 +27038,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): +class VirtualMachineScaleSetVMExtension( + SubResourceReadOnly +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a VMSS VM Extension. :ivar id: Resource Id. @@ -26366,7 +27119,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetVMExtensionsListResult(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetVMExtensionsListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The List VMSS VM Extension operation response. :ivar value: The list of VMSS VM extensions. @@ -26413,7 +27168,9 @@ class VirtualMachineScaleSetVMExtensionsSummary(_Model): # pylint: disable=name """The extensions information.""" -class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): +class VirtualMachineScaleSetVMExtensionUpdate( + SubResourceReadOnly +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a VMSS VM Extension. :ivar id: Resource Id. @@ -26484,7 +27241,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualMachineScaleSetVMInstanceIDs(_Model): +class VirtualMachineScaleSetVMInstanceIDs(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies a list of virtual machine instance IDs from the VM scale set. :ivar instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine @@ -26518,7 +27275,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMInstanceRequiredIDs(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetVMInstanceRequiredIDs( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specifies a list of virtual machine instance IDs from the VM scale set. :ivar instance_ids: The virtual machine scale set instance ids. Required. @@ -26546,7 +27305,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMInstanceView(_Model): +class VirtualMachineScaleSetVMInstanceView(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The instance view of a virtual machine scale set VM. :ivar platform_update_domain: The Update Domain count. @@ -26594,6 +27353,12 @@ class VirtualMachineScaleSetVMInstanceView(_Model): :ivar interconnect_instance_view: The Interconnect runtime view of the Scale Set VM instance. Minimum api-version: 2026-03-01. :vartype interconnect_instance_view: ~azure.mgmt.compute.models.InterconnectInstanceView + :ivar capacity_reservation_type: Specifies which type of capacity reservation the virtual + machine scale set VM instance will consume capacity from if eligible or whether it is + explicitly opted out from being associated and consuming capacity from any reserved capacity + available in the subscription. Minimum api-version: 2026-04-01. Known values are: + "NotEligible", "Targeted", "Open", "Disabled", and "Block". + :vartype capacity_reservation_type: str or ~azure.mgmt.compute.models.CapacityReservationType """ platform_update_domain: Optional[int] = rest_field( @@ -26665,6 +27430,14 @@ class VirtualMachineScaleSetVMInstanceView(_Model): name="interconnectInstanceView", visibility=["read"] ) """The Interconnect runtime view of the Scale Set VM instance. Minimum api-version: 2026-03-01.""" + capacity_reservation_type: Optional[Union[str, "_models.CapacityReservationType"]] = rest_field( + name="capacityReservationType", visibility=["read"] + ) + """Specifies which type of capacity reservation the virtual machine scale set VM instance will + consume capacity from if eligible or whether it is explicitly opted out from being associated + and consuming capacity from any reserved capacity available in the subscription. Minimum + api-version: 2026-04-01. Known values are: \"NotEligible\", \"Targeted\", \"Open\", + \"Disabled\", and \"Block\".""" @overload def __init__( @@ -26697,7 +27470,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMNetworkProfileConfiguration(_Model): # pylint: disable=name-too-long +class VirtualMachineScaleSetVMNetworkProfileConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set VM network profile. :ivar network_interface_configurations: The list of network configurations. @@ -26737,7 +27512,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMProfile(_Model): +class VirtualMachineScaleSetVMProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a virtual machine scale set virtual machine profile. :ivar os_profile: Specifies the operating system settings for the virtual machines in the scale @@ -26768,7 +27543,7 @@ class VirtualMachineScaleSetVMProfile(_Model): Minimum api-version: 2015-06-15. :vartype license_type: str :ivar priority: Specifies the priority for the virtual machines in the scale set. Minimum - api-version: 2017-10-30-preview. Known values are: "Regular", "Low", and "Spot". + api-version: 2017-10-30-preview. Known values are: "Regular", "Low", "Spot", and "SpotPlus". :vartype priority: str or ~azure.mgmt.compute.models.VirtualMachinePriorityTypes :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are @@ -26850,7 +27625,7 @@ class VirtualMachineScaleSetVMProfile(_Model): visibility=["read", "create", "update", "delete", "query"] ) """Specifies the priority for the virtual machines in the scale set. Minimum api-version: - 2017-10-30-preview. Known values are: \"Regular\", \"Low\", and \"Spot\".""" + 2017-10-30-preview. Known values are: \"Regular\", \"Low\", \"Spot\", and \"SpotPlus\".""" eviction_policy: Optional[Union[str, "_models.VirtualMachineEvictionPolicyTypes"]] = rest_field( name="evictionPolicy", visibility=["read", "create", "update", "delete", "query"] ) @@ -26937,7 +27712,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMProperties(_Model): +class VirtualMachineScaleSetVMProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a virtual machine scale set virtual machine. :ivar latest_model_applied: Specifies whether the latest model has been applied to the virtual @@ -27013,6 +27788,11 @@ class VirtualMachineScaleSetVMProperties(_Model): :ivar interconnect_block_profile: Specifies the Interconnect Block related details of a Scale Set VM instance. Minimum api-version: 2026-03-01. :vartype interconnect_block_profile: ~azure.mgmt.compute.models.InterconnectBlockProfile + :ivar capacity_reservation: Specifies information about the capacity reservation that is used + to allocate the virtual machine scale set VM instance. The capacity reservation group is + inherited from the parent virtual machine scale set and cannot be changed on the individual + scale set VM instance. Minimum api-version: 2026-04-01. + :vartype capacity_reservation: ~azure.mgmt.compute.models.CapacityReservationProfile """ latest_model_applied: Optional[bool] = rest_field(name="latestModelApplied", visibility=["read"]) @@ -27110,6 +27890,13 @@ class VirtualMachineScaleSetVMProperties(_Model): ) """Specifies the Interconnect Block related details of a Scale Set VM instance. Minimum api-version: 2026-03-01.""" + capacity_reservation: Optional["_models.CapacityReservationProfile"] = rest_field( + name="capacityReservation", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies information about the capacity reservation that is used to allocate the virtual + machine scale set VM instance. The capacity reservation group is inherited from the parent + virtual machine scale set and cannot be changed on the individual scale set VM instance. + Minimum api-version: 2026-04-01.""" @overload def __init__( @@ -27129,6 +27916,7 @@ def __init__( protection_policy: Optional["_models.VirtualMachineScaleSetVMProtectionPolicy"] = None, user_data: Optional[str] = None, interconnect_block_profile: Optional["_models.InterconnectBlockProfile"] = None, + capacity_reservation: Optional["_models.CapacityReservationProfile"] = None, ) -> None: ... @overload @@ -27142,7 +27930,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineScaleSetVMProtectionPolicy(_Model): +class VirtualMachineScaleSetVMProtectionPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The protection policy of a virtual machine scale set VM. :ivar protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be @@ -27184,7 +27972,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualMachineSize(_Model): +class VirtualMachineSize(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a VM size. :ivar name: The name of the virtual machine size. @@ -27335,7 +28123,7 @@ class VirtualMachineStatusCodeCount(_Model): """The number of instances having a particular status code.""" -class VirtualMachineUpdate(UpdateResource): +class VirtualMachineUpdate(UpdateResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine Update. :ivar tags: Resource tags. @@ -27443,7 +28231,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VMDiskSecurityProfile(_Model): +class VMDiskSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs. @@ -27493,7 +28281,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMGalleryApplication(_Model): +class VMGalleryApplication(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the required information to reference a compute gallery application version. :ivar tags: Optional, Specifies a passthrough value for more generic context. @@ -27563,7 +28351,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VmImagesInEdgeZoneListResult(_Model): +class VmImagesInEdgeZoneListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The List VmImages in EdgeZone operation response. :ivar value: The list of VMImages in EdgeZone. @@ -27600,7 +28388,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetConvertToSinglePlacementGroupInput(_Model): # pylint: disable=name-too-long +class VMScaleSetConvertToSinglePlacementGroupInput( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """VMScaleSetConvertToSinglePlacementGroupInput. :ivar active_placement_group_id: Id of the placement group in which you want future virtual @@ -27635,7 +28425,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetLifecycleHookEvent(ProxyResource): +class VMScaleSetLifecycleHookEvent(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a virtual machine scale set lifecycle hook event. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -27676,7 +28466,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetLifecycleHookEventAdditionalContext(_Model): # pylint: disable=name-too-long +class VMScaleSetLifecycleHookEventAdditionalContext( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Additional key-value pairs set on the lifecycle hook event that gives customer some useful context/data. The keys in this dictionary are specific to the lifecycle hook type. Different lifecycle hook events can have different sets of keys in the additional context depending on @@ -27713,7 +28505,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetLifecycleHookEventProperties(_Model): +class VMScaleSetLifecycleHookEventProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the virtual machine scale set lifecycle hook event properties. :ivar type: Defines the type or scenario for sending a virtual machine scale set lifecycle hook @@ -27815,7 +28607,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetLifecycleHookEventTargetResource(_Model): # pylint: disable=name-too-long +class VMScaleSetLifecycleHookEventTargetResource( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Define a single target ARM resource in a virtual machine scale set lifecycle hook event. Currently, this can be a virtual machine scale set resource or an individual virtual machine resource within a VMScaleSet. @@ -27860,7 +28654,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetLifecycleHookEventUpdate(_Model): +class VMScaleSetLifecycleHookEventUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies information about the virtual machine scale set lifecycle hook event. :ivar properties: virtual machine scale set lifecycle hook event properties. @@ -27919,7 +28713,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VMScaleSetScaleOutInput(_Model): +class VMScaleSetScaleOutInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The input for ScaleOut. :ivar capacity: Specifies the number of virtual machines in the scale set. Required. @@ -27954,7 +28748,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMScaleSetScaleOutInputProperties(_Model): +class VMScaleSetScaleOutInputProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The input properties for ScaleOut. :ivar zone: The zone in which the scale out is requested for the virtual machine scale set. @@ -27982,7 +28776,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMSizeProperties(_Model): +class VMSizeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies VM Size Property settings on the virtual machine. :ivar v_cpus_available: Specifies the number of vCPUs available for the VM. When this property @@ -28033,7 +28827,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WindowsConfiguration(_Model): +class WindowsConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies Windows operating system settings on the virtual machine. :ivar provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the @@ -28125,7 +28919,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WindowsParameters(_Model): +class WindowsParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input for InstallPatches on a Windows VM, as directly received by the API. :ivar classifications_to_include: The update classifications to select when installing patches @@ -28212,7 +29006,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WindowsVMGuestPatchAutomaticByPlatformSettings(_Model): # pylint: disable=name-too-long +class WindowsVMGuestPatchAutomaticByPlatformSettings( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings. @@ -28254,7 +29050,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WinRMConfiguration(_Model): +class WinRMConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes Windows Remote Management configuration of the VM. :ivar listeners: The list of Windows Remote Management listeners. @@ -28284,7 +29080,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WinRMListener(_Model): +class WinRMListener(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes Protocol and thumbprint of Windows Remote Management listener. :ivar protocol: Specifies the protocol of WinRM listener. Possible values are: **http,** @@ -28342,7 +29138,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ZoneAllocationPolicy(_Model): +class ZoneAllocationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The configuration parameters for zone allocation of a virtual machine scale set. :ivar max_zone_count: The maximum number of availability zones to use if the @@ -28384,7 +29180,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ZoneMovement(_Model): +class ZoneMovement(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes zone movement configuration. This allows VM to be moved across availability zones during an outage. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/__init__.py index 8527e797b539..12fa8353a31a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/__init__.py @@ -32,6 +32,8 @@ from ._operations import InterconnectBlocksOperations # type: ignore from ._operations import VirtualMachineRunCommandsOperations # type: ignore from ._operations import VirtualMachineScaleSetVMRunCommandsOperations # type: ignore +from ._operations import VirtualMachineDiagnosticRunCommandsOperations # type: ignore +from ._operations import VirtualMachineScaleSetVMDiagnosticRunCommandsOperations # type: ignore from ._operations import DisksOperations # type: ignore from ._operations import DiskAccessesOperations # type: ignore from ._operations import DiskEncryptionSetsOperations # type: ignore @@ -91,6 +93,8 @@ "InterconnectBlocksOperations", "VirtualMachineRunCommandsOperations", "VirtualMachineScaleSetVMRunCommandsOperations", + "VirtualMachineDiagnosticRunCommandsOperations", + "VirtualMachineScaleSetVMDiagnosticRunCommandsOperations", "DisksOperations", "DiskAccessesOperations", "DiskEncryptionSetsOperations", diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/_operations.py index 137dd1ea8638..516b407f20a1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/_operations.py @@ -51,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +77,7 @@ def build_virtual_machine_scale_sets_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -113,7 +113,7 @@ def build_virtual_machine_scale_sets_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -156,7 +156,7 @@ def build_virtual_machine_scale_sets_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -197,7 +197,7 @@ def build_virtual_machine_scale_sets_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}" path_format_arguments = { @@ -222,7 +222,7 @@ def build_virtual_machine_scale_sets_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -249,7 +249,7 @@ def build_virtual_machine_scale_sets_list_all_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -275,7 +275,7 @@ def build_virtual_machine_scale_sets_approve_rolling_upgrade_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade" @@ -303,7 +303,7 @@ def build_virtual_machine_scale_sets_convert_to_single_placement_group_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup" @@ -336,7 +336,7 @@ def build_virtual_machine_scale_sets_deallocate_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate" @@ -371,7 +371,7 @@ def build_virtual_machine_scale_sets_delete_instances_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete" @@ -408,7 +408,7 @@ def build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_upda _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -441,7 +441,7 @@ def build_virtual_machine_scale_sets_get_instance_view_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -469,7 +469,7 @@ def build_virtual_machine_scale_sets_update_instances_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade" @@ -497,7 +497,7 @@ def build_virtual_machine_scale_sets_get_os_upgrade_history_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -525,7 +525,7 @@ def build_virtual_machine_scale_sets_perform_maintenance_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance" @@ -558,7 +558,7 @@ def build_virtual_machine_scale_sets_power_off_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff" @@ -587,7 +587,7 @@ def build_virtual_machine_scale_sets_reapply_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply" path_format_arguments = { @@ -610,7 +610,7 @@ def build_virtual_machine_scale_sets_redeploy_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy" @@ -638,7 +638,7 @@ def build_virtual_machine_scale_sets_reimage_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage" @@ -666,7 +666,7 @@ def build_virtual_machine_scale_sets_reimage_all_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall" @@ -694,7 +694,7 @@ def build_virtual_machine_scale_sets_restart_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart" @@ -722,7 +722,7 @@ def build_virtual_machine_scale_sets_set_orchestration_service_state_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState" @@ -750,7 +750,7 @@ def build_virtual_machine_scale_sets_list_skus_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -778,7 +778,7 @@ def build_virtual_machine_scale_sets_start_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start" @@ -806,7 +806,7 @@ def build_virtual_machine_scale_sets_scale_out_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/scaleOut" @@ -828,13 +828,41 @@ def build_virtual_machine_scale_sets_scale_out_request( # pylint: disable=name- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_virtual_machine_scale_sets_migrate_vm_availability_zone_request( # pylint: disable=name-too-long + resource_group_name: str, vm_scale_set_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/migrateVMAvailabilityZone" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_virtual_machine_scale_sets_list_by_location_request( # pylint: disable=name-too-long location: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -867,7 +895,7 @@ def build_virtual_machine_scale_set_extensions_get_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -898,7 +926,7 @@ def build_virtual_machine_scale_set_extensions_create_or_update_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -930,7 +958,7 @@ def build_virtual_machine_scale_set_extensions_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -961,7 +989,7 @@ def build_virtual_machine_scale_set_extensions_delete_request( # pylint: disabl ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}" path_format_arguments = { @@ -985,7 +1013,7 @@ def build_virtual_machine_scale_set_extensions_list_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1017,7 +1045,7 @@ def build_virtual_machine_scale_set_life_cycle_hook_events_get_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1050,7 +1078,7 @@ def build_virtual_machine_scale_set_life_cycle_hook_events_update_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1082,7 +1110,7 @@ def build_virtual_machine_scale_set_life_cycle_hook_events_list_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1117,7 +1145,7 @@ def build_virtual_machine_scale_set_vm_extensions_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1154,7 +1182,7 @@ def build_virtual_machine_scale_set_vm_extensions_create_or_update_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1192,7 +1220,7 @@ def build_virtual_machine_scale_set_vm_extensions_update_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1229,7 +1257,7 @@ def build_virtual_machine_scale_set_vm_extensions_delete_request( # pylint: dis ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}" path_format_arguments = { @@ -1260,7 +1288,7 @@ def build_virtual_machine_scale_set_vm_extensions_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1296,7 +1324,7 @@ def build_virtual_machines_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1332,7 +1360,7 @@ def build_virtual_machines_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1375,7 +1403,7 @@ def build_virtual_machines_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1416,7 +1444,7 @@ def build_virtual_machines_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}" path_format_arguments = { @@ -1446,7 +1474,7 @@ def build_virtual_machines_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1484,7 +1512,7 @@ def build_virtual_machines_list_all_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1516,7 +1544,7 @@ def build_virtual_machines_assess_patches_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1544,7 +1572,7 @@ def build_virtual_machines_attach_detach_data_disks_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1575,7 +1603,7 @@ def build_virtual_machines_capture_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1605,7 +1633,7 @@ def build_virtual_machines_convert_to_managed_disks_request( # pylint: disable= ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks" path_format_arguments = { @@ -1633,7 +1661,7 @@ def build_virtual_machines_deallocate_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate" path_format_arguments = { @@ -1659,7 +1687,7 @@ def build_virtual_machines_generalize_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize" path_format_arguments = { @@ -1682,7 +1710,7 @@ def build_virtual_machines_install_patches_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1713,7 +1741,7 @@ def build_virtual_machines_instance_view_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1740,7 +1768,7 @@ def build_virtual_machines_perform_maintenance_request( # pylint: disable=name- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance" path_format_arguments = { @@ -1762,7 +1790,7 @@ def build_virtual_machines_power_off_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff" path_format_arguments = { @@ -1786,7 +1814,7 @@ def build_virtual_machines_reapply_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply" path_format_arguments = { @@ -1808,7 +1836,7 @@ def build_virtual_machines_redeploy_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy" path_format_arguments = { @@ -1831,7 +1859,7 @@ def build_virtual_machines_reimage_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage" @@ -1858,7 +1886,7 @@ def build_virtual_machines_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart" path_format_arguments = { @@ -1886,7 +1914,7 @@ def build_virtual_machines_retrieve_boot_diagnostics_data_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1917,7 +1945,7 @@ def build_virtual_machines_simulate_eviction_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction" path_format_arguments = { @@ -1939,7 +1967,7 @@ def build_virtual_machines_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start" path_format_arguments = { @@ -1962,7 +1990,7 @@ def build_virtual_machines_list_available_sizes_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1990,7 +2018,7 @@ def build_virtual_machines_run_command_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2021,7 +2049,7 @@ def build_virtual_machines_migrate_to_vm_scale_set_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/migrateToVirtualMachineScaleSet" @@ -2049,7 +2077,7 @@ def build_virtual_machines_list_by_location_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2082,7 +2110,7 @@ def build_virtual_machine_extensions_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2113,7 +2141,7 @@ def build_virtual_machine_extensions_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2145,7 +2173,7 @@ def build_virtual_machine_extensions_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2176,7 +2204,7 @@ def build_virtual_machine_extensions_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}" path_format_arguments = { @@ -2200,7 +2228,7 @@ def build_virtual_machine_extensions_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2230,7 +2258,7 @@ def build_virtual_machine_extension_images_get_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2260,7 +2288,7 @@ def build_virtual_machine_extension_images_list_types_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2291,12 +2319,13 @@ def build_virtual_machine_extension_images_list_versions_request( # pylint: dis filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, + expand: Optional[Union[str, _models.ListVersionsExpandOptions]] = None, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2318,6 +2347,8 @@ def build_virtual_machine_extension_images_list_versions_request( # pylint: dis _params["$top"] = _SERIALIZER.query("top", top, "int") if orderby is not None: _params["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") @@ -2331,7 +2362,7 @@ def build_availability_sets_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2359,7 +2390,7 @@ def build_availability_sets_create_or_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2390,7 +2421,7 @@ def build_availability_sets_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2420,7 +2451,7 @@ def build_availability_sets_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" path_format_arguments = { @@ -2441,7 +2472,7 @@ def build_availability_sets_list_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2468,7 +2499,7 @@ def build_availability_sets_list_by_subscription_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2496,7 +2527,7 @@ def build_availability_sets_list_available_sizes_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2524,7 +2555,7 @@ def build_availability_sets_start_migration_to_virtual_machine_scale_set_request _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/startMigrationToVirtualMachineScaleSet" @@ -2551,7 +2582,7 @@ def build_availability_sets_cancel_migration_to_virtual_machine_scale_set_reques ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/cancelMigrationToVirtualMachineScaleSet" path_format_arguments = { @@ -2574,7 +2605,7 @@ def build_availability_sets_validate_migration_to_virtual_machine_scale_set_requ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/validateMigrationToVirtualMachineScaleSet" @@ -2602,7 +2633,7 @@ def build_availability_sets_convert_to_virtual_machine_scale_set_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/convertToVirtualMachineScaleSet" @@ -2635,7 +2666,7 @@ def build_proximity_placement_groups_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2669,7 +2700,7 @@ def build_proximity_placement_groups_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2702,7 +2733,7 @@ def build_proximity_placement_groups_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2734,7 +2765,7 @@ def build_proximity_placement_groups_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}" path_format_arguments = { @@ -2759,7 +2790,7 @@ def build_proximity_placement_groups_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2786,7 +2817,7 @@ def build_proximity_placement_groups_list_by_subscription_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2817,7 +2848,7 @@ def build_dedicated_host_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2847,7 +2878,7 @@ def build_dedicated_host_groups_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2878,7 +2909,7 @@ def build_dedicated_host_groups_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2908,7 +2939,7 @@ def build_dedicated_host_groups_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}" path_format_arguments = { @@ -2931,7 +2962,7 @@ def build_dedicated_host_groups_list_by_resource_group_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2958,7 +2989,7 @@ def build_dedicated_host_groups_list_by_subscription_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2990,7 +3021,7 @@ def build_dedicated_hosts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3021,7 +3052,7 @@ def build_dedicated_hosts_create_or_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3053,7 +3084,7 @@ def build_dedicated_hosts_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3084,7 +3115,7 @@ def build_dedicated_hosts_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}" path_format_arguments = { @@ -3108,7 +3139,7 @@ def build_dedicated_hosts_list_by_host_group_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3136,7 +3167,7 @@ def build_dedicated_hosts_list_available_sizes_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3164,7 +3195,7 @@ def build_dedicated_hosts_redeploy_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy" path_format_arguments = { @@ -3187,7 +3218,7 @@ def build_dedicated_hosts_restart_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart" path_format_arguments = { @@ -3211,7 +3242,7 @@ def build_images_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3241,7 +3272,7 @@ def build_images_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3272,7 +3303,7 @@ def build_images_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3302,7 +3333,7 @@ def build_images_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}" path_format_arguments = { @@ -3325,7 +3356,7 @@ def build_images_list_by_resource_group_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3350,7 +3381,7 @@ def build_images_list_request(subscription_id: str, **kwargs: Any) -> HttpReques _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3381,7 +3412,7 @@ def build_restore_point_collections_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3413,7 +3444,7 @@ def build_restore_point_collections_create_or_update_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3446,7 +3477,7 @@ def build_restore_point_collections_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3478,7 +3509,7 @@ def build_restore_point_collections_delete_request( # pylint: disable=name-too- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}" path_format_arguments = { @@ -3503,7 +3534,7 @@ def build_restore_point_collections_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3530,7 +3561,7 @@ def build_restore_point_collections_list_all_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3562,7 +3593,7 @@ def build_restore_points_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3599,7 +3630,7 @@ def build_restore_points_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3636,7 +3667,7 @@ def build_restore_points_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}" path_format_arguments = { @@ -3667,7 +3698,7 @@ def build_capacity_reservation_groups_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3699,7 +3730,7 @@ def build_capacity_reservation_groups_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3732,7 +3763,7 @@ def build_capacity_reservation_groups_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3764,7 +3795,7 @@ def build_capacity_reservation_groups_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}" path_format_arguments = { @@ -3793,7 +3824,7 @@ def build_capacity_reservation_groups_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3826,7 +3857,7 @@ def build_capacity_reservation_groups_list_by_subscription_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3862,7 +3893,7 @@ def build_capacity_reservations_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3899,7 +3930,7 @@ def build_capacity_reservations_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3937,7 +3968,7 @@ def build_capacity_reservations_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3974,7 +4005,7 @@ def build_capacity_reservations_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}" path_format_arguments = { @@ -4005,7 +4036,7 @@ def build_capacity_reservations_list_by_capacity_reservation_group_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4042,7 +4073,7 @@ def build_interconnect_blocks_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4072,7 +4103,7 @@ def build_interconnect_blocks_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4103,7 +4134,7 @@ def build_interconnect_blocks_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4133,7 +4164,7 @@ def build_interconnect_blocks_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}" path_format_arguments = { @@ -4156,7 +4187,7 @@ def build_interconnect_blocks_list_by_resource_group_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4183,7 +4214,7 @@ def build_interconnect_blocks_list_by_subscription_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4215,7 +4246,7 @@ def build_virtual_machine_run_commands_get_by_virtual_machine_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4246,7 +4277,7 @@ def build_virtual_machine_run_commands_create_or_update_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4278,7 +4309,7 @@ def build_virtual_machine_run_commands_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4309,7 +4340,7 @@ def build_virtual_machine_run_commands_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}" path_format_arguments = { @@ -4333,7 +4364,7 @@ def build_virtual_machine_run_commands_list_by_virtual_machine_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4363,7 +4394,7 @@ def build_virtual_machine_run_commands_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4390,7 +4421,7 @@ def build_virtual_machine_run_commands_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4425,7 +4456,7 @@ def build_virtual_machine_scale_set_vm_run_commands_get_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4462,7 +4493,7 @@ def build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4500,7 +4531,7 @@ def build_virtual_machine_scale_set_vm_run_commands_update_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4537,7 +4568,7 @@ def build_virtual_machine_scale_set_vm_run_commands_delete_request( # pylint: d ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}" path_format_arguments = { @@ -4568,7 +4599,7 @@ def build_virtual_machine_scale_set_vm_run_commands_list_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4593,27 +4624,36 @@ def build_virtual_machine_scale_set_vm_run_commands_list_request( # pylint: dis return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_disks_get_request( - resource_group_name: str, disk_name: str, subscription_id: str, **kwargs: Any +def build_virtual_machine_diagnostic_run_commands_get_by_virtual_machine_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_name: str, + run_command_name: str, + subscription_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-02")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "diskName": _SERIALIZER.url("disk_name", disk_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") @@ -4621,22 +4661,23 @@ def build_disks_get_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_disks_create_or_update_request( - resource_group_name: str, disk_name: str, subscription_id: str, **kwargs: Any +def build_virtual_machine_diagnostic_run_commands_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, vm_name: str, run_command_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-02")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "diskName": _SERIALIZER.url("disk_name", disk_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -4652,7 +4693,332 @@ def build_disks_create_or_update_request( return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_disks_update_request( +def build_virtual_machine_diagnostic_run_commands_update_request( # pylint: disable=name-too-long + resource_group_name: str, vm_name: str, run_command_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_virtual_machine_diagnostic_run_commands_delete_request( # pylint: disable=name-too-long + resource_group_name: str, vm_name: str, run_command_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine_request( # pylint: disable=name-too-long + resource_group_name: str, vm_name: str, subscription_id: str, *, expand: Optional[str] = None, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_virtual_machine_scale_set_vm_diagnostic_run_commands_get_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + subscription_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + "instanceId": _SERIALIZER.url("instance_id", instance_id, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_virtual_machine_scale_set_vm_diagnostic_run_commands_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + "instanceId": _SERIALIZER.url("instance_id", instance_id, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_virtual_machine_scale_set_vm_diagnostic_run_commands_update_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + "instanceId": _SERIALIZER.url("instance_id", instance_id, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_virtual_machine_scale_set_vm_diagnostic_run_commands_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + "instanceId": _SERIALIZER.url("instance_id", instance_id, "str"), + "runCommandName": _SERIALIZER.url("run_command_name", run_command_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list_request( # pylint: disable=name-too-long + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + subscription_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmScaleSetName": _SERIALIZER.url("vm_scale_set_name", vm_scale_set_name, "str"), + "instanceId": _SERIALIZER.url("instance_id", instance_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_disks_get_request( + resource_group_name: str, disk_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-02")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "diskName": _SERIALIZER.url("disk_name", disk_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_disks_create_or_update_request( + resource_group_name: str, disk_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-02")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "diskName": _SERIALIZER.url("disk_name", disk_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_disks_update_request( resource_group_name: str, disk_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -7571,7 +7937,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_req ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade" path_format_arguments = { @@ -7593,7 +7959,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade" path_format_arguments = { @@ -7615,7 +7981,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_cancel_request( # pylint: ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel" path_format_arguments = { @@ -7638,7 +8004,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7672,7 +8038,7 @@ def build_virtual_machine_scale_set_vms_get_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7710,7 +8076,7 @@ def build_virtual_machine_scale_set_vms_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7753,7 +8119,7 @@ def build_virtual_machine_scale_set_vms_delete_request( # pylint: disable=name- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}" path_format_arguments = { @@ -7786,7 +8152,7 @@ def build_virtual_machine_scale_set_vms_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7821,7 +8187,7 @@ def build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( # pyli ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade" path_format_arguments = { @@ -7844,7 +8210,7 @@ def build_virtual_machine_scale_set_vms_deallocate_request( # pylint: disable=n ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate" path_format_arguments = { @@ -7868,7 +8234,7 @@ def build_virtual_machine_scale_set_vms_get_instance_view_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7897,7 +8263,7 @@ def build_virtual_machine_scale_set_vms_reimage_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage" @@ -7925,7 +8291,7 @@ def build_virtual_machine_scale_set_vms_reimage_all_request( # pylint: disable= ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall" path_format_arguments = { @@ -7948,7 +8314,7 @@ def build_virtual_machine_scale_set_vms_simulate_eviction_request( # pylint: di ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction" path_format_arguments = { @@ -7972,7 +8338,7 @@ def build_virtual_machine_scale_set_vms_attach_detach_data_disks_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8003,7 +8369,7 @@ def build_virtual_machine_scale_set_vms_perform_maintenance_request( # pylint: ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/performMaintenance" path_format_arguments = { @@ -8032,7 +8398,7 @@ def build_virtual_machine_scale_set_vms_power_off_request( # pylint: disable=na ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/powerOff" path_format_arguments = { @@ -8057,7 +8423,7 @@ def build_virtual_machine_scale_set_vms_redeploy_request( # pylint: disable=nam ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/redeploy" path_format_arguments = { @@ -8080,7 +8446,7 @@ def build_virtual_machine_scale_set_vms_restart_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/restart" path_format_arguments = { @@ -8110,7 +8476,7 @@ def build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8142,7 +8508,7 @@ def build_virtual_machine_scale_set_vms_start_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/start" path_format_arguments = { @@ -8166,7 +8532,7 @@ def build_virtual_machine_scale_set_vms_run_command_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8198,7 +8564,7 @@ def build_ssh_public_keys_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8226,7 +8592,7 @@ def build_ssh_public_keys_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8257,7 +8623,7 @@ def build_ssh_public_keys_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8287,7 +8653,7 @@ def build_ssh_public_keys_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}" path_format_arguments = { @@ -8310,7 +8676,7 @@ def build_ssh_public_keys_list_by_resource_group_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8339,7 +8705,7 @@ def build_ssh_public_keys_list_by_subscription_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8365,7 +8731,7 @@ def build_ssh_public_keys_generate_key_pair_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8394,7 +8760,7 @@ def build_usage_list_request(location: str, subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8419,7 +8785,7 @@ def build_virtual_machine_sizes_list_request(location: str, subscription_id: str _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8446,7 +8812,7 @@ def build_virtual_machine_images_edge_zone_list_publishers_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8474,7 +8840,7 @@ def build_virtual_machine_images_edge_zone_list_offers_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8503,7 +8869,7 @@ def build_virtual_machine_images_edge_zone_list_skus_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8543,7 +8909,7 @@ def build_virtual_machine_images_edge_zone_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8587,7 +8953,7 @@ def build_virtual_machine_images_edge_zone_get_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8619,7 +8985,7 @@ def build_virtual_machine_images_list_by_edge_zone_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8649,7 +9015,7 @@ def build_virtual_machine_images_list_publishers_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8676,7 +9042,7 @@ def build_virtual_machine_images_list_offers_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8704,7 +9070,7 @@ def build_virtual_machine_images_list_skus_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8742,7 +9108,7 @@ def build_virtual_machine_images_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8787,7 +9153,7 @@ def build_virtual_machine_images_list_with_properties_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8822,7 +9188,7 @@ def build_virtual_machine_images_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8853,7 +9219,7 @@ def build_log_analytics_export_request_rate_by_interval_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8883,7 +9249,7 @@ def build_log_analytics_export_throttled_requests_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9116,7 +9482,7 @@ def build_gallery_sharing_profile_update_request( # pylint: disable=name-too-lo return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9144,7 +9510,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -9213,7 +9579,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineScaleSetsOperations: # pylint: disable=too-many-public-methods +class VirtualMachineScaleSetsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -9265,7 +9631,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_request( @@ -9340,7 +9706,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9540,7 +9906,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9620,7 +9986,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9819,7 +10185,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9890,7 +10256,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_delete_request( @@ -9960,7 +10326,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10018,7 +10384,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10101,7 +10467,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.VirtualMachineScaleSet"] _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10190,7 +10556,7 @@ def _approve_rolling_upgrade_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -10367,7 +10733,7 @@ def begin_approve_rolling_upgrade( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -10533,7 +10899,7 @@ def convert_to_single_placement_group( # pylint: disable=inconsistent-return-st _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -10599,7 +10965,7 @@ def _deallocate_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -10803,7 +11169,7 @@ def begin_deallocate( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -10875,7 +11241,7 @@ def _delete_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -11065,7 +11431,7 @@ def begin_delete_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -11155,7 +11521,7 @@ def force_recovery_service_fabric_platform_update_domain_walk( # pylint: disabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RecoveryWalkResponse] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_update_domain_walk_request( @@ -11232,7 +11598,7 @@ def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_instance_view_request( @@ -11301,7 +11667,7 @@ def _update_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -11473,7 +11839,7 @@ def begin_update_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -11538,7 +11904,7 @@ def get_os_upgrade_history( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.UpgradeOperationHistoricalStatusInfo]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11629,7 +11995,7 @@ def _perform_maintenance_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -11819,7 +12185,7 @@ def begin_perform_maintenance( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -11888,7 +12254,7 @@ def _power_off_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12092,7 +12458,7 @@ def begin_power_off( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -12152,7 +12518,7 @@ def _reapply_initial(self, resource_group_name: str, vm_scale_set_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_reapply_request( @@ -12217,7 +12583,7 @@ def begin_reapply(self, resource_group_name: str, vm_scale_set_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12280,7 +12646,7 @@ def _redeploy_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12458,7 +12824,7 @@ def begin_redeploy( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -12529,7 +12895,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_reimage_input else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12715,7 +13081,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_reimage_input else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -12782,7 +13148,7 @@ def _reimage_all_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12960,7 +13326,7 @@ def begin_reimage_all( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -13027,7 +13393,7 @@ def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -13201,7 +13567,7 @@ def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -13266,7 +13632,7 @@ def _set_orchestration_service_state_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -13431,7 +13797,7 @@ def begin_set_orchestration_service_state( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -13496,7 +13862,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetSku]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13587,7 +13953,7 @@ def _start_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -13761,7 +14127,7 @@ def begin_start( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_instance_i_ds else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -13813,7 +14179,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] }, - api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) def _scale_out_initial( self, @@ -13833,7 +14199,7 @@ def _scale_out_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -13978,7 +14344,7 @@ def begin_scale_out( params_added_on={ "2025-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] }, - api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) def begin_scale_out( self, @@ -14005,7 +14371,7 @@ def begin_scale_out( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14051,6 +14417,249 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] + }, + api_versions_list=["2026-04-01"], + ) + def _migrate_vm_availability_zone_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: Union[_models.MigrateVMAvailabilityZoneInput, _types.MigrateVMAvailabilityZoneInput, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_sets_migrate_vm_availability_zone_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: _models.MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: ~azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: _types.MigrateVMAvailabilityZoneInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: ~azure.mgmt.compute.types.MigrateVMAvailabilityZoneInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_scale_set_name", "content_type"] + }, + api_versions_list=["2026-04-01"], + ) + def begin_migrate_vm_availability_zone( + self, + resource_group_name: str, + vm_scale_set_name: str, + body: Union[_models.MigrateVMAvailabilityZoneInput, _types.MigrateVMAvailabilityZoneInput, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Migrates one or more virtual machines in a VM scale set to an availability zone. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. Required. + :type vm_scale_set_name: str + :param body: The input object for the MigrateVMAvailabilityZone API. Is either a + MigrateVMAvailabilityZoneInput type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.compute.models.MigrateVMAvailabilityZoneInput or + ~azure.mgmt.compute.types.MigrateVMAvailabilityZoneInput or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._migrate_vm_availability_zone_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @distributed_trace def list_by_location(self, location: str, **kwargs: Any) -> ItemPaged["_models.VirtualMachineScaleSet"]: """Gets all the VM scale sets under the specified subscription for the specified location. @@ -14064,7 +14673,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> ItemPaged["_models.V _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14135,7 +14744,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -14189,7 +14798,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_get_request( @@ -14259,7 +14868,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14450,7 +15059,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14523,7 +15132,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14715,7 +15324,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14781,7 +15390,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_delete_request( @@ -14850,7 +15459,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -14913,7 +15522,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetExtension]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14985,7 +15594,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineScaleSetLifeCycleHookEventsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetLifeCycleHookEventsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -15031,7 +15640,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VMScaleSetLifecycleHookEvent] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_life_cycle_hook_events_get_request( @@ -15216,7 +15825,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VMScaleSetLifecycleHookEvent] = kwargs.pop("cls", None) @@ -15293,7 +15902,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VMScaleSetLifecycleHookEvent]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15365,7 +15974,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -15422,7 +16031,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_get_request( @@ -15494,7 +16103,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -15698,7 +16307,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -15773,7 +16382,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -15977,7 +16586,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -16048,7 +16657,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_delete_request( @@ -16120,7 +16729,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16202,7 +16811,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_list_request( @@ -16252,7 +16861,7 @@ def list( return deserialized # type: ignore -class VirtualMachinesOperations: # pylint: disable=too-many-public-methods +class VirtualMachinesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -16306,7 +16915,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) _request = build_virtual_machines_get_request( @@ -16381,7 +16990,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -16585,7 +17194,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -16665,7 +17274,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -16864,7 +17473,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -16935,7 +17544,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_delete_request( @@ -17005,7 +17614,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17080,7 +17689,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17183,7 +17792,7 @@ def list_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17267,7 +17876,7 @@ def _assess_patches_initial(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_assess_patches_request( @@ -17335,7 +17944,7 @@ def begin_assess_patches( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineAssessPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17401,7 +18010,7 @@ def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -17573,7 +18182,7 @@ def begin_attach_detach_data_disks( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -17642,7 +18251,7 @@ def _capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -17815,7 +18424,7 @@ def begin_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -17880,7 +18489,7 @@ def _convert_to_managed_disks_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_convert_to_managed_disks_request( @@ -17945,7 +18554,7 @@ def begin_convert_to_managed_disks(self, resource_group_name: str, vm_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17990,7 +18599,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @api_version_validation( params_added_on={"2025-11-01": ["force_deallocate"]}, - api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) def _deallocate_initial( self, @@ -18012,7 +18621,7 @@ def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_deallocate_request( @@ -18065,7 +18674,7 @@ def _deallocate_initial( @distributed_trace @api_version_validation( params_added_on={"2025-11-01": ["force_deallocate"]}, - api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01"], + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], ) def begin_deallocate( self, @@ -18096,7 +18705,7 @@ def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18172,7 +18781,7 @@ def generalize( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_generalize_request( @@ -18226,7 +18835,7 @@ def _install_patches_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -18404,7 +19013,7 @@ def begin_install_patches( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineInstallPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -18482,7 +19091,7 @@ def instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machines_instance_view_request( @@ -18541,7 +19150,7 @@ def _perform_maintenance_initial(self, resource_group_name: str, vm_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_perform_maintenance_request( @@ -18605,7 +19214,7 @@ def begin_perform_maintenance(self, resource_group_name: str, vm_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18662,7 +19271,7 @@ def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_power_off_request( @@ -18734,7 +19343,7 @@ def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18790,7 +19399,7 @@ def _reapply_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_reapply_request( @@ -18854,7 +19463,7 @@ def begin_reapply(self, resource_group_name: str, vm_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18909,7 +19518,7 @@ def _redeploy_initial(self, resource_group_name: str, vm_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_redeploy_request( @@ -18973,7 +19582,7 @@ def begin_redeploy(self, resource_group_name: str, vm_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -19036,7 +19645,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -19230,7 +19839,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -19289,7 +19898,7 @@ def _restart_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_restart_request( @@ -19353,7 +19962,7 @@ def begin_restart(self, resource_group_name: str, vm_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -19432,7 +20041,7 @@ def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machines_retrieve_boot_diagnostics_data_request( @@ -19506,7 +20115,7 @@ def simulate_eviction( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_simulate_eviction_request( @@ -19552,7 +20161,7 @@ def _start_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_start_request( @@ -19616,7 +20225,7 @@ def begin_start(self, resource_group_name: str, vm_name: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -19678,7 +20287,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -19767,7 +20376,7 @@ def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -19936,7 +20545,7 @@ def begin_run_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -20009,7 +20618,7 @@ def _migrate_to_vm_scale_set_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -20184,7 +20793,7 @@ def begin_migrate_to_vm_scale_set( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -20244,7 +20853,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> ItemPaged["_models.V _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20315,7 +20924,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineExtensionsOperations: +class VirtualMachineExtensionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -20368,7 +20977,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_get_request( @@ -20436,7 +21045,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -20621,7 +21230,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -20694,7 +21303,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -20880,7 +21489,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -20950,7 +21559,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_delete_request( @@ -21019,7 +21628,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21092,7 +21701,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_list_request( @@ -21141,7 +21750,7 @@ def list( return deserialized # type: ignore -class VirtualMachineExtensionImagesOperations: +class VirtualMachineExtensionImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21188,7 +21797,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineExtensionImage] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_get_request( @@ -21262,7 +21871,7 @@ def list_types( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_types_request( @@ -21310,6 +21919,10 @@ def list_types( return deserialized # type: ignore @distributed_trace + @api_version_validation( + params_added_on={"2026-04-01": ["expand"]}, + api_versions_list=["2024-11-01", "2025-04-01", "2025-11-01", "2026-03-01", "2026-04-01"], + ) def list_versions( self, location: str, @@ -21319,6 +21932,7 @@ def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, + expand: Optional[Union[str, _models.ListVersionsExpandOptions]] = None, **kwargs: Any ) -> List[_models.VirtualMachineExtensionImage]: """Gets a list of virtual machine extension image versions. @@ -21335,6 +21949,10 @@ def list_versions( :paramtype top: int :keyword orderby: Default value is None. :paramtype orderby: str + :keyword expand: Expand the response to include additional read-only metadata. Allowed values: + ``properties`` — returns extended metadata (``releaseCategory``, ``urgencyLevel``, + ``runProfile``). "properties" Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.models.ListVersionsExpandOptions :return: list of VirtualMachineExtensionImage :rtype: list[~azure.mgmt.compute.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: @@ -21350,7 +21968,7 @@ def list_versions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_versions_request( @@ -21361,6 +21979,7 @@ def list_versions( filter=filter, top=top, orderby=orderby, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -21402,7 +22021,7 @@ def list_versions( return deserialized # type: ignore -class AvailabilitySetsOperations: +class AvailabilitySetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21443,7 +22062,7 @@ def get(self, resource_group_name: str, availability_set_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) _request = build_availability_sets_get_request( @@ -21605,7 +22224,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -21777,7 +22396,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -21860,7 +22479,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_delete_request( @@ -21908,7 +22527,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Av _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.AvailabilitySet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -21994,7 +22613,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.AvailabilitySet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -22083,7 +22702,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -22282,7 +22901,7 @@ def start_migration_to_virtual_machine_scale_set( # pylint: disable=inconsisten _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -22352,7 +22971,7 @@ def cancel_migration_to_virtual_machine_scale_set( # pylint: disable=inconsiste _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request( @@ -22510,7 +23129,7 @@ def validate_migration_to_virtual_machine_scale_set( # pylint: disable=inconsis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -22574,7 +23193,7 @@ def _convert_to_virtual_machine_scale_set_initial( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -22751,7 +23370,7 @@ def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -22799,7 +23418,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ProximityPlacementGroupsOperations: +class ProximityPlacementGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -22850,7 +23469,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_get_request( @@ -23016,7 +23635,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -23191,7 +23810,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -23274,7 +23893,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_delete_request( @@ -23324,7 +23943,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.ProximityPlacementGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23405,7 +24024,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ProximityPla _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.ProximityPlacementGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23475,7 +24094,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DedicatedHostGroupsOperations: +class DedicatedHostGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23528,7 +24147,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_get_request( @@ -23703,7 +24322,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -23875,7 +24494,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -23958,7 +24577,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_delete_request( @@ -24009,7 +24628,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHostGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24091,7 +24710,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.DedicatedHos _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHostGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24161,7 +24780,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DedicatedHostsOperations: +class DedicatedHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -24217,7 +24836,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) _request = build_dedicated_hosts_get_request( @@ -24285,7 +24904,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -24467,7 +25086,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -24538,7 +25157,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -24719,7 +25338,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -24789,7 +25408,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_delete_request( @@ -24858,7 +25477,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24921,7 +25540,7 @@ def list_by_host_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.DedicatedHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -25014,7 +25633,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -25100,7 +25719,7 @@ def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_redeploy_request( @@ -25172,7 +25791,7 @@ def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -25230,7 +25849,7 @@ def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_restart_request( @@ -25302,7 +25921,7 @@ def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -25347,7 +25966,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ImagesOperations: +class ImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -25392,7 +26011,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.Image] = kwargs.pop("cls", None) _request = build_images_get_request( @@ -25458,7 +26077,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25627,7 +26246,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25696,7 +26315,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25865,7 +26484,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25928,7 +26547,7 @@ def _delete_initial(self, resource_group_name: str, image_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_images_delete_request( @@ -25992,7 +26611,7 @@ def begin_delete(self, resource_group_name: str, image_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26050,7 +26669,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Image]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26132,7 +26751,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Image"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Image]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26202,7 +26821,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RestorePointCollectionsOperations: +class RestorePointCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -26254,7 +26873,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) _request = build_restore_point_collections_get_request( @@ -26428,7 +27047,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -26603,7 +27222,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -26674,7 +27293,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_point_collections_delete_request( @@ -26741,7 +27360,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26798,7 +27417,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Re _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.RestorePointCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26881,7 +27500,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.RestorePointCollection"] _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.RestorePointCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26951,7 +27570,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RestorePointsOperations: +class RestorePointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -27005,7 +27624,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) _request = build_restore_points_get_request( @@ -27073,7 +27692,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -27258,7 +27877,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -27328,7 +27947,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_points_delete_request( @@ -27397,7 +28016,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -27442,7 +28061,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class CapacityReservationGroupsOperations: +class CapacityReservationGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -27497,7 +28116,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_get_request( @@ -27672,7 +28291,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -27855,7 +28474,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -27941,7 +28560,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_delete_request( @@ -28001,7 +28620,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservationGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -28104,7 +28723,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservationGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -28176,7 +28795,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CapacityReservationsOperations: +class CapacityReservationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28231,7 +28850,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) _request = build_capacity_reservations_get_request( @@ -28299,7 +28918,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28489,7 +29108,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28560,7 +29179,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28742,7 +29361,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28812,7 +29431,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_capacity_reservations_delete_request( @@ -28872,8 +29491,12 @@ def begin_delete( """The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to `https://aka.ms/CapacityReservation `_ for more details. - Note: Block capacity reservations cannot be deleted after it has been successfully allocated - until the schedule end time. + Note: Block capacity reservations cannot be deleted after they have been successfully allocated + until the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can + be deleted if their reservation state is one of: Pending, Declined, FulfillmentFailed, or + Approved. Otherwise, Future capacity reservations in the Committed, Live, or PartiallyFulfilled + state cannot be deleted until minimumCommitmentDays have elapsed since their scheduled start + date. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -28889,7 +29512,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -28962,7 +29585,7 @@ def list_by_capacity_reservation_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.CapacityReservation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29035,7 +29658,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class InterconnectBlocksOperations: +class InterconnectBlocksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -29087,7 +29710,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) _request = build_interconnect_blocks_get_request( @@ -29153,7 +29776,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -29326,7 +29949,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -29395,7 +30018,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -29568,7 +30191,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectBlock] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -29631,7 +30254,7 @@ def _delete_initial(self, resource_group_name: str, interconnect_block_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_interconnect_blocks_delete_request( @@ -29696,7 +30319,7 @@ def begin_delete(self, resource_group_name: str, interconnect_block_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -29754,7 +30377,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.InterconnectBlock]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29836,7 +30459,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.Interconnect _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.InterconnectBlock]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29906,7 +30529,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineRunCommandsOperations: +class VirtualMachineRunCommandsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -29960,7 +30583,7 @@ def get_by_virtual_machine( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_by_virtual_machine_request( @@ -30028,7 +30651,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -30093,29 +30716,1937 @@ def begin_create_or_update( resource_group_name: str, vm_name: str, run_command_name: str, - run_command: _models.VirtualMachineRunCommand, + run_command: _models.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or + ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_run_commands_update_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or + ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_machine_run_commands_delete_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any + ) -> LROPoller[None]: + """The operation to delete the run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_virtual_machine( + self, resource_group_name: str, vm_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.VirtualMachineRunCommand"]: + """The operation to get all run commands of a Virtual Machine. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: An iterator like instance of VirtualMachineRunCommand + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_run_commands_list_by_virtual_machine_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualMachineRunCommand], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.RunCommandDocumentBase"]: + """Lists all available run commands for a subscription in a location. + + :param location: The name of the Azure region. Required. + :type location: str + :return: An iterator like instance of RunCommandDocumentBase + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.RunCommandDocumentBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.RunCommandDocumentBase]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_run_commands_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.RunCommandDocumentBase], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunCommandDocument: + """Gets specific run command for a subscription in a location. + + :param location: The name of the Azure region. Required. + :type location: str + :param command_id: Specifies a commandId of predefined built-in script. Command IDs available + for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands + `_, Windows at + `https://aka.ms/RunCommandManagedWindows#available-commands + `_. Required. + :type command_id: str + :return: RunCommandDocument. The RunCommandDocument is compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.RunCommandDocument + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) + + _request = build_virtual_machine_run_commands_get_request( + location=location, + command_id=command_id, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RunCommandDocument, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.ComputeManagementClient`'s + :attr:`virtual_machine_scale_set_vm_run_commands` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ComputeManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.VirtualMachineRunCommand: + """The operation to get the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: VirtualMachineRunCommand. The VirtualMachineRunCommand is compatible with + MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + + _request = build_virtual_machine_scale_set_vm_run_commands_get_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommand, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is + either a VirtualMachineRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or + ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_scale_set_vm_run_commands_update_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _models.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: _types.VirtualMachineRunCommandUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Required. + :type run_command: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.VirtualMachineRunCommand]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :param run_command: Resource create parameters. Is either a VirtualMachineRunCommandUpdate type + or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or + ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] + :return: An instance of LROPoller that returns VirtualMachineRunCommand. The + VirtualMachineRunCommand is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.VirtualMachineRunCommand]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any + ) -> LROPoller[None]: + """The operation to delete the VMSS VM run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :type run_command_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> ItemPaged["_models.VirtualMachineRunCommand"]: + """The operation to get all run commands of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VirtualMachineScaleSet. Required. + :type vm_scale_set_name: str + :param instance_id: The name of the VirtualMachineScaleSetVM. Required. + :type instance_id: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: An iterator like instance of VirtualMachineRunCommand + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_machine_scale_set_vm_run_commands_list_request( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualMachineRunCommand], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class VirtualMachineDiagnosticRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.ComputeManagementClient`'s + :attr:`virtual_machine_diagnostic_run_commands` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ComputeManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + def get_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.VirtualMachineDiagnosticRunCommand: + """The operation to get the diagnostic run command. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vm_name: The name of the VirtualMachine. Required. + :type vm_name: str + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. + :type run_command_name: str + :keyword expand: The expand expression to apply on the operation. Default value is None. + :paramtype expand: str + :return: VirtualMachineDiagnosticRunCommand. The VirtualMachineDiagnosticRunCommand is + compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineDiagnosticRunCommand] = kwargs.pop("cls", None) + + _request = build_virtual_machine_diagnostic_run_commands_get_by_virtual_machine_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualMachineDiagnosticRunCommand, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + def _create_or_update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(run_command, (IOBase, bytes)): + _content = run_command + else: + _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_diagnostic_run_commands_create_or_update_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: _models.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> LROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -30125,29 +32656,28 @@ def begin_create_or_update( resource_group_name: str, vm_name: str, run_command_name: str, - run_command: _types.VirtualMachineRunCommand, + run_command: _types.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> LROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -30161,61 +32691,76 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> LROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def begin_create_or_update( self, resource_group_name: str, vm_name: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the run command. + ) -> LROPoller[None]: + """The operation to create or update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or - ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineDiagnosticRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand or + ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -30235,12 +32780,9 @@ def begin_create_or_update( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -30255,16 +32797,29 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def _update_initial( self, resource_group_name: str, @@ -30284,7 +32839,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -30295,7 +32850,7 @@ def _update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_run_commands_update_request( + _request = build_virtual_machine_diagnostic_run_commands_update_request( resource_group_name=resource_group_name, vm_name=vm_name, run_command_name=run_command_name, @@ -30326,7 +32881,7 @@ def _update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30352,25 +32907,24 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> LROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -30384,25 +32938,24 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> LROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -30416,29 +32969,43 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> LROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_name", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def begin_update( self, resource_group_name: str, @@ -30446,31 +33013,30 @@ def begin_update( run_command_name: str, run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the run command. + ) -> LROPoller[None]: + """The operation to update the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. + :param run_command: Parameters supplied to the Update Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -30490,16 +33056,9 @@ def begin_update( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -30514,16 +33073,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "run_command_name"] + }, + api_versions_list=["2026-04-01"], + ) def _delete_initial( self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any ) -> Iterator[bytes]: @@ -30538,10 +33102,10 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_machine_run_commands_delete_request( + _request = build_virtual_machine_diagnostic_run_commands_delete_request( resource_group_name=resource_group_name, vm_name=vm_name, run_command_name=run_command_name, @@ -30570,7 +33134,7 @@ def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30588,17 +33152,24 @@ def _delete_initial( return deserialized # type: ignore @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "run_command_name"] + }, + api_versions_list=["2026-04-01"], + ) def begin_delete( self, resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any ) -> LROPoller[None]: - """The operation to delete the run command. + """The operation to delete the diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param vm_name: The name of the VirtualMachine. Required. :type vm_name: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -30607,7 +33178,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -30652,10 +33223,17 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_virtual_machine( + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": ["api_version", "subscription_id", "resource_group_name", "vm_name", "expand", "accept"] + }, + api_versions_list=["2026-04-01"], + ) + def diagnostic_list_by_virtual_machine( self, resource_group_name: str, vm_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.VirtualMachineRunCommand"]: - """The operation to get all run commands of a Virtual Machine. + ) -> ItemPaged["_models.VirtualMachineDiagnosticRunCommand"]: + """The operation to get all diagnostic run commands of a Virtual Machine. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -30664,15 +33242,16 @@ def list_by_virtual_machine( :type vm_name: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: An iterator like instance of VirtualMachineRunCommand - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An iterator like instance of VirtualMachineDiagnosticRunCommand + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineDiagnosticRunCommand]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -30685,7 +33264,7 @@ def list_by_virtual_machine( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_machine_run_commands_list_by_virtual_machine_request( + _request = build_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine_request( resource_group_name=resource_group_name, vm_name=vm_name, subscription_id=self._config.subscription_id, @@ -30715,90 +33294,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualMachineRunCommand], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.RunCommandDocumentBase"]: - """Lists all available run commands for a subscription in a location. - - :param location: The name of the Azure region. Required. - :type location: str - :return: An iterator like instance of RunCommandDocumentBase - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.RunCommandDocumentBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.RunCommandDocumentBase]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_machine_run_commands_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.RunCommandDocumentBase], + List[_models.VirtualMachineDiagnosticRunCommand], deserialized.get("value", []), ) if cls: @@ -30817,7 +33313,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30826,89 +33322,15 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - @distributed_trace - def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunCommandDocument: - """Gets specific run command for a subscription in a location. - :param location: The name of the Azure region. Required. - :type location: str - :param command_id: Specifies a commandId of predefined built-in script. Command IDs available - for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands - `_, Windows at - `https://aka.ms/RunCommandManagedWindows#available-commands - `_. Required. - :type command_id: str - :return: RunCommandDocument. The RunCommandDocument is compatible with MutableMapping - :rtype: ~azure.mgmt.compute.models.RunCommandDocument - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) - - _request = build_virtual_machine_run_commands_get_request( - location=location, - command_id=command_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.RunCommandDocument, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - -class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetVMDiagnosticRunCommandsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.compute.ComputeManagementClient`'s - :attr:`virtual_machine_scale_set_vm_run_commands` attribute. + :attr:`virtual_machine_scale_set_vm_diagnostic_run_commands` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -30919,6 +33341,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def get( self, resource_group_name: str, @@ -30928,8 +33366,8 @@ def get( *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.VirtualMachineRunCommand: - """The operation to get the VMSS VM run command. + ) -> _models.VirtualMachineDiagnosticRunCommand: + """The operation to get the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -30938,13 +33376,13 @@ def get( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: VirtualMachineRunCommand. The VirtualMachineRunCommand is compatible with - MutableMapping - :rtype: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :return: VirtualMachineDiagnosticRunCommand. The VirtualMachineDiagnosticRunCommand is + compatible with MutableMapping + :rtype: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -30958,10 +33396,10 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[_models.VirtualMachineDiagnosticRunCommand] = kwargs.pop("cls", None) - _request = build_virtual_machine_scale_set_vm_run_commands_get_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_get_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -30993,7 +33431,7 @@ def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31001,20 +33439,38 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + deserialized = _deserialize(_models.VirtualMachineDiagnosticRunCommand, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def _create_or_update_initial( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -31028,7 +33484,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -31039,7 +33495,7 @@ def _create_or_update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_create_or_update_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -31071,7 +33527,7 @@ def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31095,12 +33551,12 @@ def begin_create_or_update( vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: _models.VirtualMachineRunCommand, + run_command: _models.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31109,17 +33565,16 @@ def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31130,12 +33585,12 @@ def begin_create_or_update( vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: _types.VirtualMachineRunCommand, + run_command: _types.VirtualMachineDiagnosticRunCommand, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31144,17 +33599,16 @@ def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. - :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommand + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. + :type run_command: ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31169,8 +33623,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31179,31 +33633,48 @@ def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. - Required. + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def begin_create_or_update( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, - run_command: Union[_models.VirtualMachineRunCommand, _types.VirtualMachineRunCommand, IO[bytes]], + run_command: Union[ + _models.VirtualMachineDiagnosticRunCommand, _types.VirtualMachineDiagnosticRunCommand, IO[bytes] + ], **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to create or update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to create or update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31212,23 +33683,22 @@ def begin_create_or_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str - :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is - either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommand or - ~azure.mgmt.compute.types.VirtualMachineRunCommand or IO[bytes] - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :param run_command: Parameters supplied to the Create Virtual Machine Diagnostic RunCommand + operation. Is either a VirtualMachineDiagnosticRunCommand type or a IO[bytes] type. Required. + :type run_command: ~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand or + ~azure.mgmt.compute.types.VirtualMachineDiagnosticRunCommand or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -31249,12 +33719,9 @@ def begin_create_or_update( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -31269,16 +33736,30 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def _update_initial( self, resource_group_name: str, @@ -31299,7 +33780,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -31310,7 +33791,7 @@ def _update_initial( else: _content = json.dumps(run_command, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_machine_scale_set_vm_run_commands_update_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_update_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -31342,7 +33823,7 @@ def _update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31369,8 +33850,8 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31379,16 +33860,15 @@ def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31403,8 +33883,8 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31413,16 +33893,15 @@ def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31437,8 +33916,8 @@ def begin_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31447,20 +33926,35 @@ def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Required. :type run_command: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) def begin_update( self, resource_group_name: str, @@ -31469,8 +33963,8 @@ def begin_update( run_command_name: str, run_command: Union[_models.VirtualMachineRunCommandUpdate, _types.VirtualMachineRunCommandUpdate, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.VirtualMachineRunCommand]: - """The operation to update the VMSS VM run command. + ) -> LROPoller[None]: + """The operation to update the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31479,23 +33973,22 @@ def begin_update( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :param run_command: Resource create parameters. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. :type run_command: ~azure.mgmt.compute.models.VirtualMachineRunCommandUpdate or ~azure.mgmt.compute.types.VirtualMachineRunCommandUpdate or IO[bytes] - :return: An instance of LROPoller that returns VirtualMachineRunCommand. The - VirtualMachineRunCommand is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -31516,16 +34009,9 @@ def begin_update( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.VirtualMachineRunCommand, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -31540,16 +34026,28 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.VirtualMachineRunCommand].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.VirtualMachineRunCommand]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + ] + }, + api_versions_list=["2026-04-01"], + ) def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any ) -> Iterator[bytes]: @@ -31564,10 +34062,10 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_delete_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -31597,7 +34095,7 @@ def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31615,10 +34113,24 @@ def _delete_initial( return deserialized # type: ignore @distributed_trace + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "run_command_name", + ] + }, + api_versions_list=["2026-04-01"], + ) def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any ) -> LROPoller[None]: - """The operation to delete the VMSS VM run command. + """The operation to delete the VMSS VM diagnostic run command. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31627,7 +34139,7 @@ def begin_delete( :type vm_scale_set_name: str :param instance_id: The name of the VirtualMachineScaleSetVM. Required. :type instance_id: str - :param run_command_name: The name of the VirtualMachineRunCommand. Required. + :param run_command_name: The name of the VirtualMachineDiagnosticRunCommand. Required. :type run_command_name: str :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -31636,7 +34148,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -31682,7 +34194,22 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( + @api_version_validation( + method_added_on="2026-04-01", + params_added_on={ + "2026-04-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vm_scale_set_name", + "instance_id", + "expand", + "accept", + ] + }, + api_versions_list=["2026-04-01"], + ) + def diagnostic_list( self, resource_group_name: str, vm_scale_set_name: str, @@ -31690,8 +34217,8 @@ def list( *, expand: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.VirtualMachineRunCommand"]: - """The operation to get all run commands of an instance in Virtual Machine Scaleset. + ) -> ItemPaged["_models.VirtualMachineDiagnosticRunCommand"]: + """The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -31702,15 +34229,16 @@ def list( :type instance_id: str :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str - :return: An iterator like instance of VirtualMachineRunCommand - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineRunCommand] + :return: An iterator like instance of VirtualMachineDiagnosticRunCommand + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.models.VirtualMachineDiagnosticRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) - cls: ClsType[List[_models.VirtualMachineRunCommand]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) + cls: ClsType[List[_models.VirtualMachineDiagnosticRunCommand]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -31723,7 +34251,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_machine_scale_set_vm_run_commands_list_request( + _request = build_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list_request( resource_group_name=resource_group_name, vm_scale_set_name=vm_scale_set_name, instance_id=instance_id, @@ -31754,7 +34282,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualMachineRunCommand], + List[_models.VirtualMachineDiagnosticRunCommand], deserialized.get("value", []), ) if cls: @@ -31773,7 +34301,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31783,7 +34311,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DisksOperations: +class DisksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -33004,7 +35532,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DiskAccessesOperations: +class DiskAccessesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -34526,7 +37054,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DiskEncryptionSetsOperations: +class DiskEncryptionSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -35494,7 +38022,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SnapshotsOperations: +class SnapshotsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37313,7 +39841,7 @@ def get_long_running_output(pipeline_response): ) -class GalleriesOperations: +class GalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -38187,7 +40715,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryImagesOperations: +class GalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -39013,7 +41541,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryImageVersionsOperations: +class GalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -39913,7 +42441,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryApplicationsOperations: +class GalleryApplicationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -40752,7 +43280,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryApplicationVersionsOperations: +class GalleryApplicationVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -41674,7 +44202,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryScriptsOperations: +class GalleryScriptsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -42614,7 +45142,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryScriptVersionsOperations: +class GalleryScriptVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -43642,7 +46170,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryInVMAccessControlProfilesOperations: # pylint: disable=name-too-long +class GalleryInVMAccessControlProfilesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -44505,7 +47033,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GalleryInVMAccessControlProfileVersionsOperations: # pylint: disable=name-too-long +class GalleryInVMAccessControlProfileVersionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -45438,7 +47966,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SharedGalleriesOperations: +class SharedGalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -45615,7 +48143,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SharedGalleryImagesOperations: +class SharedGalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -45806,7 +48334,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SharedGalleryImageVersionsOperations: +class SharedGalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46014,7 +48542,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CommunityGalleriesOperations: +class CommunityGalleriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46102,7 +48630,7 @@ def get(self, location: str, public_gallery_name: str, **kwargs: Any) -> _models return deserialized # type: ignore -class CommunityGalleryImagesOperations: +class CommunityGalleryImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46283,7 +48811,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CommunityGalleryImageVersionsOperations: +class CommunityGalleryImageVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46479,7 +49007,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SharedGalleryInvitesOperations: +class SharedGalleryInvitesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46801,7 +49329,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class TenantLevelSharedGalleryInvitesOperations: # pylint: disable=name-too-long +class TenantLevelSharedGalleryInvitesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -47097,7 +49625,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ResourceSkusOperations: +class ResourceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -47205,7 +49733,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=name-too-long +class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -47236,7 +49764,7 @@ def _start_extension_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_request( @@ -47304,7 +49832,7 @@ def begin_start_extension_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -47361,7 +49889,7 @@ def _start_os_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( @@ -47429,7 +49957,7 @@ def begin_start_os_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -47484,7 +50012,7 @@ def _cancel_initial(self, resource_group_name: str, vm_scale_set_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_cancel_request( @@ -47548,7 +50076,7 @@ def begin_cancel(self, resource_group_name: str, vm_scale_set_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -47618,7 +50146,7 @@ def get_latest( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RollingUpgradeStatusInfo] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( @@ -47666,7 +50194,7 @@ def get_latest( return deserialized # type: ignore -class VirtualMachineScaleSetVMsOperations: # pylint: disable=too-many-public-methods +class VirtualMachineScaleSetVMsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -47723,7 +50251,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_request( @@ -47800,7 +50328,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -48016,7 +50544,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -48090,7 +50618,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_delete_request( @@ -48169,7 +50697,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -48249,7 +50777,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineScaleSetVM]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -48337,7 +50865,7 @@ def _approve_rolling_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( @@ -48405,7 +50933,7 @@ def begin_approve_rolling_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -48463,7 +50991,7 @@ def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_deallocate_request( @@ -48534,7 +51062,7 @@ def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -48607,7 +51135,7 @@ def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineScaleSetVMInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_instance_view_request( @@ -48680,7 +51208,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_vm_reimage_input else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -48875,7 +51403,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if vm_scale_set_vm_reimage_input else None cls: ClsType[None] = kwargs.pop("cls", None) @@ -48937,7 +51465,7 @@ def _reimage_all_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_reimage_all_request( @@ -49007,7 +51535,7 @@ def begin_reimage_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49079,7 +51607,7 @@ def simulate_eviction( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_simulate_eviction_request( @@ -49133,7 +51661,7 @@ def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -49319,7 +51847,7 @@ def begin_attach_detach_data_disks( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -49385,7 +51913,7 @@ def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_perform_maintenance_request( @@ -49454,7 +51982,7 @@ def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49518,7 +52046,7 @@ def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_power_off_request( @@ -49600,7 +52128,7 @@ def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49659,7 +52187,7 @@ def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_redeploy_request( @@ -49729,7 +52257,7 @@ def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49787,7 +52315,7 @@ def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_restart_request( @@ -49856,7 +52384,7 @@ def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49940,7 +52468,7 @@ def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( @@ -50003,7 +52531,7 @@ def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_start_request( @@ -50072,7 +52600,7 @@ def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -50135,7 +52663,7 @@ def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -50317,7 +52845,7 @@ def begin_run_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -50370,7 +52898,7 @@ def get_long_running_output(pipeline_response): ) -class SshPublicKeysOperations: +class SshPublicKeysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -50411,7 +52939,7 @@ def get(self, resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) _request = build_ssh_public_keys_get_request( @@ -50573,7 +53101,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -50745,7 +53273,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -50828,7 +53356,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_ssh_public_keys_delete_request( @@ -50879,7 +53407,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.SshPublicKeyResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -50961,7 +53489,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SshPublicKey _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.SshPublicKeyResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -51159,7 +53687,7 @@ def generate_key_pair( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[_models.SshPublicKeyGenerateKeyPairResult] = kwargs.pop("cls", None) @@ -51221,7 +53749,7 @@ def generate_key_pair( return deserialized # type: ignore -class UsageOperations: +class UsageOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -51252,7 +53780,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -51323,7 +53851,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineSizesOperations: +class VirtualMachineSizesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -51354,7 +53882,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.VirtualMachin _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineSize]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -51425,7 +53953,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualMachineImagesEdgeZoneOperations: +class VirtualMachineImagesEdgeZoneOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -51467,7 +53995,7 @@ def list_publishers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_publishers_request( @@ -51542,7 +54070,7 @@ def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_offers_request( @@ -51620,7 +54148,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_skus_request( @@ -51719,7 +54247,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_request( @@ -51805,7 +54333,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_get_request( @@ -51857,7 +54385,7 @@ def get( return deserialized # type: ignore -class VirtualMachineImagesOperations: +class VirtualMachineImagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -51898,7 +54426,7 @@ def list_by_edge_zone(self, location: str, edge_zone: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VmImagesInEdgeZoneListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_by_edge_zone_request( @@ -51966,7 +54494,7 @@ def list_publishers(self, location: str, **kwargs: Any) -> List[_models.VirtualM _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_publishers_request( @@ -52037,7 +54565,7 @@ def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_offers_request( @@ -52111,7 +54639,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_skus_request( @@ -52204,7 +54732,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_request( @@ -52300,7 +54828,7 @@ def list_with_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[List[_models.VirtualMachineImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_with_properties_request( @@ -52383,7 +54911,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_get_request( @@ -52434,7 +54962,7 @@ def get( return deserialized # type: ignore -class LogAnalyticsOperations: +class LogAnalyticsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -52468,7 +54996,7 @@ def _export_request_rate_by_interval_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -52624,7 +55152,7 @@ def begin_export_request_rate_by_interval( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -52691,7 +55219,7 @@ def _export_throttled_requests_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -52844,7 +55372,7 @@ def begin_export_throttled_requests( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-04-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -52895,7 +55423,7 @@ def get_long_running_output(pipeline_response): ) -class DiskRestorePointOperations: +class DiskRestorePointOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -53515,7 +56043,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class SoftDeletedResourceOperations: +class SoftDeletedResourceOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -53631,7 +56159,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class GallerySharingProfileOperations: +class GallerySharingProfileOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/types.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/types.py index bedb3b90222a..a17814715846 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/types.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/types.py @@ -19,6 +19,7 @@ Architecture, AvailabilityPolicyDiskDelay, CachingTypes, + CapacityReservationType, ComponentNames, ConfidentialVMEncryptionType, ConfidentialVMVersion, @@ -30,6 +31,7 @@ DeleteOptions, DiffDiskOptions, DiffDiskPlacement, + DiskApiVersion, DiskControllerTypes, DiskCreateOption, DiskCreateOptionTypes, @@ -86,6 +88,7 @@ PolicyViolationCategory, PrivateEndpointConnectionProvisioningState, PrivateEndpointServiceConnectionStatus, + ProcessorMode, ProtocolTypes, ProvisionedBandwidthCopyOption, ProximityPlacementGroupType, @@ -98,6 +101,7 @@ RepairAction, ReplicationMode, ReplicationState, + ReservationState, ReservationType, ResilientVMDeletionStatus, ResourceIdentityType, @@ -128,6 +132,8 @@ VMScaleSetLifecycleHookEventState, VMScaleSetLifecycleHookEventType, ValidationStatus, + VirtualMachineDiskDelayAction, + VirtualMachineDiskNetworkAccessPolicy, VirtualMachineEvictionPolicyTypes, VirtualMachinePriorityTypes, VirtualMachineScaleSetScaleInRules, @@ -149,8 +155,8 @@ class AccessControlRules(TypedDict, total=False): :vartype roles: list["AccessControlRulesRole"] :ivar identities: A list of identities. :vartype identities: list["AccessControlRulesIdentity"] - :ivar role_assignments: A list of role assignments. - :vartype role_assignments: list["AccessControlRulesRoleAssignment"] + :ivar roleAssignments: A list of role assignments. + :vartype roleAssignments: list["AccessControlRulesRoleAssignment"] """ privileges: list["AccessControlRulesPrivilege"] @@ -168,14 +174,14 @@ class AccessControlRulesIdentity(TypedDict, total=False): :ivar name: The name of the identity. Required. :vartype name: str - :ivar user_name: The username corresponding to this identity. - :vartype user_name: str - :ivar group_name: The groupName corresponding to this identity. - :vartype group_name: str - :ivar exe_path: The path to the executable. - :vartype exe_path: str - :ivar process_name: The process name of the executable. - :vartype process_name: str + :ivar userName: The username corresponding to this identity. + :vartype userName: str + :ivar groupName: The groupName corresponding to this identity. + :vartype groupName: str + :ivar exePath: The path to the executable. + :vartype exePath: str + :ivar processName: The process name of the executable. + :vartype processName: str """ name: Required[str] @@ -197,8 +203,8 @@ class AccessControlRulesPrivilege(TypedDict, total=False): :vartype name: str :ivar path: The HTTP path corresponding to the privilege. Required. :vartype path: str - :ivar query_parameters: The query parameters to match in the path. - :vartype query_parameters: dict[str, str] + :ivar queryParameters: The query parameters to match in the path. + :vartype queryParameters: dict[str, str] """ name: Required[str] @@ -243,17 +249,17 @@ class AccessControlRulesRoleAssignment(TypedDict, total=False): class AdditionalCapabilities(TypedDict, total=False): """Enables or disables a capability on the virtual machine or virtual machine scale set. - :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have one or more + :ivar ultraSSDEnabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. - :vartype ultra_ssd_enabled: bool - :ivar hibernation_enabled: The flag that enables or disables hibernation capability on the VM. - :vartype hibernation_enabled: bool - :ivar enable_fips1403_encryption: The flag enables the usage of FIPS 140-3 compliant - cryptography on the protectedSettings of an extension. Learn more at: - `https://aka.ms/linuxagentfipssupport `_. - :vartype enable_fips1403_encryption: bool + :vartype ultraSSDEnabled: bool + :ivar hibernationEnabled: The flag that enables or disables hibernation capability on the VM. + :vartype hibernationEnabled: bool + :ivar enableFips1403Encryption: The flag enables the usage of FIPS 140-3 compliant cryptography + on the protectedSettings of an extension. Learn more at: `https://aka.ms/linuxagentfipssupport + `_. + :vartype enableFips1403Encryption: bool """ ultraSSDEnabled: bool @@ -269,16 +275,30 @@ class AdditionalCapabilities(TypedDict, total=False): `_.""" +class AdditionalDiskProperties(TypedDict, total=False): + """Specifies additional properties for a managed disk that can be set at the time of implicit + creation of the disk. + + :ivar managedDiskProperties: Specifies the managed disk properties that can be set at the time + of implicit creation of the disk. + :vartype managedDiskProperties: "VirtualMachineDiskProperties" + """ + + managedDiskProperties: "VirtualMachineDiskProperties" + """Specifies the managed disk properties that can be set at the time of implicit creation of the + disk.""" + + class AdditionalReplicaSet(TypedDict, total=False): """Describes the additional replica set information. - :ivar storage_account_type: Specifies the storage account type to be used to create the direct + :ivar storageAccountType: Specifies the storage account type to be used to create the direct drive replicas. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] - :ivar regional_replica_count: The number of direct drive replicas of the Image Version to be + :vartype storageAccountType: Union[str, "StorageAccountType"] + :ivar regionalReplicaCount: The number of direct drive replicas of the Image Version to be created.This Property is updatable. - :vartype regional_replica_count: int + :vartype regionalReplicaCount: int """ storageAccountType: Union[str, "StorageAccountType"] @@ -294,15 +314,15 @@ class AdditionalUnattendContent(TypedDict, total=False): which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. - :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. "OobeSystem" - :vartype pass_name: Union[str, "PassNames"] - :ivar component_name: The component name. Currently, the only allowable value is + :ivar passName: The pass name. Currently, the only allowable value is OobeSystem. "OobeSystem" + :vartype passName: Union[str, "PassNames"] + :ivar componentName: The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. "Microsoft-Windows-Shell-Setup" - :vartype component_name: Union[str, "ComponentNames"] - :ivar setting_name: Specifies the name of the setting to which the content applies. Possible + :vartype componentName: Union[str, "ComponentNames"] + :ivar settingName: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Known values are: "AutoLogon" and "FirstLogonCommands". - :vartype setting_name: Union[str, "SettingNames"] + :vartype settingName: Union[str, "SettingNames"] :ivar content: Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. @@ -326,9 +346,9 @@ class AdditionalUnattendContent(TypedDict, total=False): class AllInstancesDown(TypedDict, total=False): """Specifies if Scheduled Events should be auto-approved when all instances are down. - :ivar automatically_approve: Specifies if Scheduled Events should be auto-approved when all + :ivar automaticallyApprove: Specifies if Scheduled Events should be auto-approved when all instances are down. its default value is true. - :vartype automatically_approve: bool + :vartype automaticallyApprove: bool """ automaticallyApprove: bool @@ -398,9 +418,9 @@ class ApiErrorBase(TypedDict, total=False): class ApplicationProfile(TypedDict, total=False): """Contains the list of gallery applications that should be made available to the VM/VMSS. - :ivar gallery_applications: Specifies the gallery applications that should be made available to + :ivar galleryApplications: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype gallery_applications: list["VMGalleryApplication"] + :vartype galleryApplications: list["VMGalleryApplication"] """ galleryApplications: list["VMGalleryApplication"] @@ -410,10 +430,10 @@ class ApplicationProfile(TypedDict, total=False): class AttachDetachDataDisksRequest(TypedDict, total=False): """Specifies the input for attaching and detaching a list of managed data disks. - :ivar data_disks_to_attach: The list of managed data disks to be attached. - :vartype data_disks_to_attach: list["DataDisksToAttach"] - :ivar data_disks_to_detach: The list of managed data disks to be detached. - :vartype data_disks_to_detach: list["DataDisksToDetach"] + :ivar dataDisksToAttach: The list of managed data disks to be attached. + :vartype dataDisksToAttach: list["DataDisksToAttach"] + :ivar dataDisksToDetach: The list of managed data disks to be detached. + :vartype dataDisksToDetach: list["DataDisksToDetach"] """ dataDisksToAttach: list["DataDisksToAttach"] @@ -425,25 +445,25 @@ class AttachDetachDataDisksRequest(TypedDict, total=False): class AutomaticOSUpgradePolicy(TypedDict, total=False): """The configuration parameters used for performing automatic OS upgrade. - :ivar enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be - applied to scale set instances in a rolling fashion when a newer version of the OS image - becomes available. Default value is false. If this is set to true for Windows based scale sets, + :ivar enableAutomaticOSUpgrade: Indicates whether OS upgrades should automatically be applied + to scale set instances in a rolling fashion when a newer version of the OS image becomes + available. Default value is false. If this is set to true for Windows based scale sets, `enableAutomaticUpdates `_ is automatically set to false and cannot be set to true. - :vartype enable_automatic_os_upgrade: bool - :ivar disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default + :vartype enableAutomaticOSUpgrade: bool + :ivar disableAutomaticRollback: Whether OS image rollback feature should be disabled. Default value is false. - :vartype disable_automatic_rollback: bool - :ivar use_rolling_upgrade_policy: Indicates whether rolling upgrade policy should be used - during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default - policy if no policy is defined on the VMSS. - :vartype use_rolling_upgrade_policy: bool - :ivar os_rolling_upgrade_deferral: Indicates whether Auto OS Upgrade should undergo deferral. + :vartype disableAutomaticRollback: bool + :ivar useRollingUpgradePolicy: Indicates whether rolling upgrade policy should be used during + Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if + no policy is defined on the VMSS. + :vartype useRollingUpgradePolicy: bool + :ivar osRollingUpgradeDeferral: Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via the IMDS tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. - :vartype os_rolling_upgrade_deferral: bool + :vartype osRollingUpgradeDeferral: bool """ enableAutomaticOSUpgrade: bool @@ -471,16 +491,16 @@ class AutomaticRepairsPolicy(TypedDict, total=False): :ivar enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. :vartype enabled: bool - :ivar grace_period: The amount of time for which automatic repairs are suspended due to a state + :ivar gracePeriod: The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M). - :vartype grace_period: str - :ivar repair_action: Type of repair action (replace, restart, reimage) that will be used for + :vartype gracePeriod: str + :ivar repairAction: Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. Known values are: "Replace", "Restart", and "Reimage". - :vartype repair_action: Union[str, "RepairAction"] + :vartype repairAction: Union[str, "RepairAction"] """ enabled: bool @@ -519,14 +539,14 @@ class AutomaticZoneRebalancingPolicy(TypedDict, total=False): :ivar enabled: Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false. :vartype enabled: bool - :ivar rebalance_strategy: Type of rebalance strategy that will be used for rebalancing virtual + :ivar rebalanceStrategy: Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate. "Recreate" - :vartype rebalance_strategy: Union[str, "RebalanceStrategy"] - :ivar rebalance_behavior: Type of rebalance behavior that will be used for recreating virtual + :vartype rebalanceStrategy: Union[str, "RebalanceStrategy"] + :ivar rebalanceBehavior: Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete. "CreateBeforeDelete" - :vartype rebalance_behavior: Union[str, "RebalanceBehavior"] + :vartype rebalanceBehavior: Union[str, "RebalanceBehavior"] """ enabled: bool @@ -545,9 +565,9 @@ class AvailabilityPolicy(TypedDict, total=False): """In the case of an availability or connectivity issue with the data disk, specify the behavior of your VM. - :ivar action_on_disk_delay: Determines on how to handle disks with slow I/O. Known values are: + :ivar actionOnDiskDelay: Determines on how to handle disks with slow I/O. Known values are: "None" and "AutomaticReattach". - :vartype action_on_disk_delay: Union[str, "AvailabilityPolicyDiskDelay"] + :vartype actionOnDiskDelay: Union[str, "AvailabilityPolicyDiskDelay"] """ actionOnDiskDelay: Union[str, "AvailabilityPolicyDiskDelay"] @@ -566,9 +586,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -594,9 +614,9 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -628,9 +648,9 @@ class AvailabilitySet(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -655,24 +675,24 @@ class AvailabilitySet(TrackedResource): class AvailabilitySetProperties(TypedDict, total=False): """The instance view of a resource. - :ivar platform_update_domain_count: Update Domain count. - :vartype platform_update_domain_count: int - :ivar platform_fault_domain_count: Fault Domain count. - :vartype platform_fault_domain_count: int - :ivar virtual_machines: A list of references to all virtual machines in the availability set. - :vartype virtual_machines: list["SubResource"] - :ivar proximity_placement_group: Specifies information about the proximity placement group that + :ivar platformUpdateDomainCount: Update Domain count. + :vartype platformUpdateDomainCount: int + :ivar platformFaultDomainCount: Fault Domain count. + :vartype platformFaultDomainCount: int + :ivar virtualMachines: A list of references to all virtual machines in the availability set. + :vartype virtualMachines: list["SubResource"] + :ivar proximityPlacementGroup: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: "SubResource" + :vartype proximityPlacementGroup: "SubResource" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] - :ivar scheduled_events_policy: Specifies Redeploy, Reboot and + :ivar scheduledEventsPolicy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. - :vartype scheduled_events_policy: "ScheduledEventsPolicy" - :ivar virtual_machine_scale_set_migration_info: Describes the migration properties on the + :vartype scheduledEventsPolicy: "ScheduledEventsPolicy" + :ivar virtualMachineScaleSetMigrationInfo: Describes the migration properties on the Availability Set. - :vartype virtual_machine_scale_set_migration_info: "VirtualMachineScaleSetMigrationInfo" + :vartype virtualMachineScaleSetMigrationInfo: "VirtualMachineScaleSetMigrationInfo" """ platformUpdateDomainCount: int @@ -730,22 +750,22 @@ class AvailablePatchSummary(TypedDict, total=False): or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". :vartype status: Union[str, "PatchOperationStatus"] - :ivar assessment_activity_id: The activity ID of the operation that produced this result. It is + :ivar assessmentActivityId: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. - :vartype assessment_activity_id: str - :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + :vartype assessmentActivityId: str + :ivar rebootPending: The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred. - :vartype reboot_pending: bool - :ivar critical_and_security_patch_count: The number of critical or security patches that have - been detected as available and not yet installed. - :vartype critical_and_security_patch_count: int - :ivar other_patch_count: The number of all available patches excluding critical and security. - :vartype other_patch_count: int - :ivar start_time: The UTC timestamp when the operation began. - :vartype start_time: str - :ivar last_modified_time: The UTC timestamp when the operation began. - :vartype last_modified_time: str + :vartype rebootPending: bool + :ivar criticalAndSecurityPatchCount: The number of critical or security patches that have been + detected as available and not yet installed. + :vartype criticalAndSecurityPatchCount: int + :ivar otherPatchCount: The number of all available patches excluding critical and security. + :vartype otherPatchCount: int + :ivar startTime: The UTC timestamp when the operation began. + :vartype startTime: str + :ivar lastModifiedTime: The UTC timestamp when the operation began. + :vartype lastModifiedTime: str :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. :vartype error: "ApiError" @@ -780,7 +800,7 @@ class BillingProfile(TypedDict, total=False): """Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01. - :ivar max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. + :ivar maxPrice: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars.

This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure @@ -790,7 +810,7 @@ class BillingProfile(TypedDict, total=False): indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01. - :vartype max_price: float + :vartype maxPrice: float """ maxPrice: float @@ -813,10 +833,10 @@ class BootDiagnostics(TypedDict, total=False): :ivar enabled: Whether boot diagnostics should be enabled on the Virtual Machine. :vartype enabled: bool - :ivar storage_uri: Uri of the storage account to use for placing the console output and + :ivar storageUri: Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used. - :vartype storage_uri: str + :vartype storageUri: str """ enabled: bool @@ -829,12 +849,12 @@ class BootDiagnostics(TypedDict, total=False): class BootDiagnosticsInstanceView(TypedDict, total=False): """The instance view of a virtual machine boot diagnostics. - :ivar console_screenshot_blob_uri: The console screenshot blob URI. **Note:** This will **not** - be set if boot diagnostics is currently enabled with managed storage. - :vartype console_screenshot_blob_uri: str - :ivar serial_console_log_blob_uri: The serial console log blob Uri. **Note:** This will **not** - be set if boot diagnostics is currently enabled with managed storage. - :vartype serial_console_log_blob_uri: str + :ivar consoleScreenshotBlobUri: The console screenshot blob URI. **Note:** This will **not** be + set if boot diagnostics is currently enabled with managed storage. + :vartype consoleScreenshotBlobUri: str + :ivar serialConsoleLogBlobUri: The serial console log blob Uri. **Note:** This will **not** be + set if boot diagnostics is currently enabled with managed storage. + :vartype serialConsoleLogBlobUri: str :ivar status: The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics. :vartype status: "InstanceViewStatus" @@ -862,9 +882,9 @@ class CapacityReservation(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -916,9 +936,9 @@ class CapacityReservationGroup(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -938,14 +958,14 @@ class CapacityReservationGroup(TrackedResource): class CapacityReservationGroupInstanceView(TypedDict, total=False): """CapacityReservationGroupInstanceView. - :ivar capacity_reservations: List of instance view of the capacity reservations under the + :ivar capacityReservations: List of instance view of the capacity reservations under the capacity reservation group. - :vartype capacity_reservations: list["CapacityReservationInstanceViewWithName"] - :ivar shared_subscription_ids: List of the subscriptions that the capacity reservation group is + :vartype capacityReservations: list["CapacityReservationInstanceViewWithName"] + :ivar sharedSubscriptionIds: List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to `https://aka.ms/computereservationsharing `_ for more details. - :vartype shared_subscription_ids: list["SubResourceReadOnly"] + :vartype sharedSubscriptionIds: list["SubResourceReadOnly"] """ capacityReservations: list["CapacityReservationInstanceViewWithName"] @@ -959,29 +979,34 @@ class CapacityReservationGroupInstanceView(TypedDict, total=False): class CapacityReservationGroupProperties(TypedDict, total=False): """capacity reservation group Properties. - :ivar capacity_reservations: A list of all capacity reservation resource ids that belong to + :ivar capacityReservations: A list of all capacity reservation resource ids that belong to capacity reservation group. - :vartype capacity_reservations: list["SubResourceReadOnly"] - :ivar virtual_machines_associated: A list of references to all virtual machines associated to - the capacity reservation group. - :vartype virtual_machines_associated: list["SubResourceReadOnly"] - :ivar instance_view: The capacity reservation group instance view which has the list of - instance views for all the capacity reservations that belong to the capacity reservation group. - :vartype instance_view: "CapacityReservationGroupInstanceView" - :ivar sharing_profile: Specifies the settings to enable sharing across subscriptions for the + :vartype capacityReservations: list["SubResourceReadOnly"] + :ivar virtualMachinesAssociated: A list of references to all virtual machines associated to the + capacity reservation group. + :vartype virtualMachinesAssociated: list["SubResourceReadOnly"] + :ivar instanceView: The capacity reservation group instance view which has the list of instance + views for all the capacity reservations that belong to the capacity reservation group. + :vartype instanceView: "CapacityReservationGroupInstanceView" + :ivar sharingProfile: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. The capacity reservation group resource can generally be shared across subscriptions belonging to a single Azure AAD tenant or across AAD tenants if there is a trust relationship established between the tenants. Block capacity reservation does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to `https://aka.ms/computereservationsharing `_ for more details. - :vartype sharing_profile: "ResourceSharingProfile" - :ivar reservation_type: Indicates the type of capacity reservation. Allowed values are 'Block' - for block capacity reservations and 'Targeted' for reservations that enable a VM to consume a - specific capacity reservation when a capacity reservation group is provided. The reservation - type is immutable and cannot be changed after it is assigned. Known values are: "Targeted" and - "Block". - :vartype reservation_type: Union[str, "ReservationType"] + :vartype sharingProfile: "ResourceSharingProfile" + :ivar reservationType: Indicates the type of capacity reservation. Allowed values are 'Block' + for block capacity reservations that enable a VM to consume capacity only from this capacity + block when it is associated using a capacity reservation group, 'Targeted' for reservations + that enable a VM to consume capacity from an explicitly associated capacity reservation group + and fall back to the publicly available capacity if the reservation is full, and 'Open' for + reservations that a VM consumes when it is eligible from an implicitly associated capacity + reservation group with the matching VM size and zone without associating that capacity + reservation group and fall back to the publicly available capacity if the reservation is full. + The reservation type is immutable and cannot be changed after the capacity reservation group is + created. Known values are: "Targeted", "Block", and "Open". + :vartype reservationType: Union[str, "ReservationType"] """ capacityReservations: list["SubResourceReadOnly"] @@ -1001,9 +1026,15 @@ class CapacityReservationGroupProperties(TypedDict, total=False): details.""" reservationType: Union[str, "ReservationType"] """Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity - reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - reservation when a capacity reservation group is provided. The reservation type is immutable - and cannot be changed after it is assigned. Known values are: \"Targeted\" and \"Block\".""" + reservations that enable a VM to consume capacity only from this capacity block when it is + associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to + consume capacity from an explicitly associated capacity reservation group and fall back to the + publicly available capacity if the reservation is full, and 'Open' for reservations that a VM + consumes when it is eligible from an implicitly associated capacity reservation group with the + matching VM size and zone without associating that capacity reservation group and fall back to + the publicly available capacity if the reservation is full. The reservation type is immutable + and cannot be changed after the capacity reservation group is created. Known values are: + \"Targeted\", \"Block\", and \"Open\".""" class CapacityReservationGroupUpdate(UpdateResource): @@ -1024,26 +1055,35 @@ class CapacityReservationInstanceView(TypedDict, total=False): of the capacity reservation that is managed by the platform and can change outside of control plane operations. - :ivar utilization_info: Unutilized capacity of the capacity reservation. - :vartype utilization_info: "CapacityReservationUtilization" + :ivar utilizationInfo: Unutilized capacity of the capacity reservation. + :vartype utilizationInfo: "CapacityReservationUtilization" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] + :ivar reservationStateInfo: The reservation state information for a capacity reservation, this + detail is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01. + :vartype reservationStateInfo: "CapacityReservationStateInfo" """ utilizationInfo: "CapacityReservationUtilization" """Unutilized capacity of the capacity reservation.""" statuses: list["InstanceViewStatus"] """The resource status information.""" + reservationStateInfo: "CapacityReservationStateInfo" + """The reservation state information for a capacity reservation, this detail is primarily provided + for Future capacity reservations. Minimum API version: 2026-04-01.""" class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): """The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. - :ivar utilization_info: Unutilized capacity of the capacity reservation. - :vartype utilization_info: "CapacityReservationUtilization" + :ivar utilizationInfo: Unutilized capacity of the capacity reservation. + :vartype utilizationInfo: "CapacityReservationUtilization" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] + :ivar reservationStateInfo: The reservation state information for a capacity reservation, this + detail is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01. + :vartype reservationStateInfo: "CapacityReservationStateInfo" :ivar name: The name of the capacity reservation. :vartype name: str """ @@ -1055,11 +1095,17 @@ class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): class CapacityReservationProfile(TypedDict, total=False): """The parameters of a capacity reservation Profile. - :ivar capacity_reservation_group: Specifies the capacity reservation group resource id that + :ivar capacityReservationGroup: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to `https://aka.ms/CapacityReservation `_ for more details. - :vartype capacity_reservation_group: "SubResource" + :vartype capacityReservationGroup: "SubResource" + :ivar disableCapacityReservationAssignment: Specifies whether the virtual machine is explicitly + opted out from being associated with any capacity reservation. When set to true, the virtual + machine will not be allowed to implicitly or explicitly associate with any type of capacity + reservation and will consume capacity from the publicly available capacity. Minimum + api-version: 2026-04-01. + :vartype disableCapacityReservationAssignment: bool """ capacityReservationGroup: "SubResource" @@ -1067,39 +1113,47 @@ class CapacityReservationProfile(TypedDict, total=False): virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to `https://aka.ms/CapacityReservation `_ for more details.""" + disableCapacityReservationAssignment: bool + """Specifies whether the virtual machine is explicitly opted out from being associated with any + capacity reservation. When set to true, the virtual machine will not be allowed to implicitly + or explicitly associate with any type of capacity reservation and will consume capacity from + the publicly available capacity. Minimum api-version: 2026-04-01.""" class CapacityReservationProperties(TypedDict, total=False): """Properties of the Capacity reservation. - :ivar reservation_id: A unique id generated and assigned to the capacity reservation by the + :ivar reservationId: A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. - :vartype reservation_id: str - :ivar platform_fault_domain_count: Specifies the value of fault domain count that Capacity + :vartype reservationId: str + :ivar platformFaultDomainCount: Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. **Note:** The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01. - :vartype platform_fault_domain_count: int - :ivar virtual_machines_associated: A list of all virtual machine resource ids that are - associated with the capacity reservation. - :vartype virtual_machines_associated: list["SubResourceReadOnly"] - :ivar provisioning_time: The date time when the capacity reservation was last updated. - :vartype provisioning_time: str - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar instance_view: The Capacity reservation instance view. - :vartype instance_view: "CapacityReservationInstanceView" - :ivar time_created: Specifies the time at which the Capacity Reservation resource was created. + :vartype platformFaultDomainCount: int + :ivar virtualMachinesAssociated: A list of all virtual machine resource ids that are associated + with the capacity reservation. + :vartype virtualMachinesAssociated: list["SubResourceReadOnly"] + :ivar provisioningTime: The date time when the capacity reservation was last updated. + :vartype provisioningTime: str + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar instanceView: The Capacity reservation instance view. + :vartype instanceView: "CapacityReservationInstanceView" + :ivar timeCreated: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. - :vartype time_created: str - :ivar schedule_profile: Defines the schedule for Block-type capacity reservations. Specifies - the schedule during which capacity reservation is active and VM or VMSS resource can be - allocated using reservation. This property is required and only supported when the capacity - reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable - after creation. Minimum API version: 2025-04-01. Please refer to + :vartype timeCreated: str + :ivar scheduleProfile: Defines the schedule for Block and Future capacity reservations. + Specifies the schedule during which capacity reservation is active and VM or VMSS resource can + be allocated using reservation. For Block capacity reservations, the scheduleProfile, start, + and end fields are immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation `_ for more - details. - :vartype schedule_profile: "ScheduleProfile" + details. Minimum API version for Block capacity reservations: 2025-04-01. Future capacity + reservations must use this property with only a start time, which can be changed until the + ‘modifiableUntil’ time. Please refer to `https://aka.ms/futurecapacityreservation + `_ for more details. Minimum API version for Future + capacity reservations: 2026-04-01. + :vartype scheduleProfile: "ScheduleProfile" """ reservationId: str @@ -1122,12 +1176,29 @@ class CapacityReservationProperties(TypedDict, total=False): """Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.""" scheduleProfile: "ScheduleProfile" - """Defines the schedule for Block-type capacity reservations. Specifies the schedule during which - capacity reservation is active and VM or VMSS resource can be allocated using reservation. This - property is required and only supported when the capacity reservation group type is 'Block'. - The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: - 2025-04-01. Please refer to `https://aka.ms/blockcapacityreservation - `_ for more details.""" + """Defines the schedule for Block and Future capacity reservations. Specifies the schedule during + which capacity reservation is active and VM or VMSS resource can be allocated using + reservation. For Block capacity reservations, the scheduleProfile, start, and end fields are + immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation + `_ for more details. Minimum API version for Block + capacity reservations: 2025-04-01. Future capacity reservations must use this property with + only a start time, which can be changed until the ‘modifiableUntil’ time. Please refer to + `https://aka.ms/futurecapacityreservation `_ for more + details. Minimum API version for Future capacity reservations: 2026-04-01.""" + + +class CapacityReservationStateInfo(TypedDict, total=False): + """Details related to the current state for a Future capacity reservation. + + :ivar reservationState: The current state of the capacity reservation. Known values are: + "Pending", "Declined", "Approved", "FulfillmentFailed", "Committed", "Live", and + "PartiallyFulfilled". + :vartype reservationState: Union[str, "ReservationState"] + """ + + reservationState: Union[str, "ReservationState"] + """The current state of the capacity reservation. Known values are: \"Pending\", \"Declined\", + \"Approved\", \"FulfillmentFailed\", \"Committed\", \"Live\", and \"PartiallyFulfilled\".""" class CapacityReservationUpdate(UpdateResource): @@ -1166,13 +1237,20 @@ class CapacityReservationUpdate(UpdateResource): class CapacityReservationUtilization(TypedDict, total=False): """Represents the capacity reservation utilization in terms of resources allocated. - :ivar current_capacity: The value provides the current capacity of the VM size which was + :ivar currentCapacity: The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01. - :vartype current_capacity: int - :ivar virtual_machines_allocated: A list of all virtual machines resource ids allocated against + :vartype currentCapacity: int + :ivar virtualMachinesAllocated: A list of all virtual machines resource ids allocated against the capacity reservation. - :vartype virtual_machines_allocated: list["SubResourceReadOnly"] + :vartype virtualMachinesAllocated: list["SubResourceReadOnly"] + :ivar usedReservedCountBySubscription: For open capacity reservations, this provides a map of + the used reserved capacity count keyed by the subscription id (a GUID) that is consuming the + capacity, i.e. each entry maps a consuming subscription id to the count of reserved capacity it + is currently using. This is populated only for open capacity reservations and is not reported + for targeted and block capacity reservations, which instead report allocation through + virtualMachinesAllocated. Minimum api-version: 2026-04-01. + :vartype usedReservedCountBySubscription: dict[str, int] """ currentCapacity: int @@ -1180,26 +1258,33 @@ class CapacityReservationUtilization(TypedDict, total=False): which the customer is getting billed. Minimum api-version: 2022-08-01.""" virtualMachinesAllocated: list["SubResourceReadOnly"] """A list of all virtual machines resource ids allocated against the capacity reservation.""" + usedReservedCountBySubscription: dict[str, int] + """For open capacity reservations, this provides a map of the used reserved capacity count keyed + by the subscription id (a GUID) that is consuming the capacity, i.e. each entry maps a + consuming subscription id to the count of reserved capacity it is currently using. This is + populated only for open capacity reservations and is not reported for targeted and block + capacity reservations, which instead report allocation through virtualMachinesAllocated. + Minimum api-version: 2026-04-01.""" class CommunityGalleryInfo(TypedDict, total=False): """Information of community gallery if current gallery is shared to community. - :ivar publisher_uri: The link to the publisher website. Visible to all users. - :vartype publisher_uri: str - :ivar publisher_contact: Community gallery publisher support email. The email address of the + :ivar publisherUri: The link to the publisher website. Visible to all users. + :vartype publisherUri: str + :ivar publisherContact: Community gallery publisher support email. The email address of the publisher. Visible to all users. - :vartype publisher_contact: str + :vartype publisherContact: str :ivar eula: End-user license agreement for community gallery image. :vartype eula: str - :ivar public_name_prefix: The prefix of the gallery name that will be displayed publicly. - Visible to all users. - :vartype public_name_prefix: str - :ivar community_gallery_enabled: Contains info about whether community gallery sharing is + :ivar publicNamePrefix: The prefix of the gallery name that will be displayed publicly. Visible + to all users. + :vartype publicNamePrefix: str + :ivar communityGalleryEnabled: Contains info about whether community gallery sharing is enabled. - :vartype community_gallery_enabled: bool - :ivar public_names: Community gallery public name list. - :vartype public_names: list[str] + :vartype communityGalleryEnabled: bool + :ivar publicNames: Community gallery public name list. + :vartype publicNames: list[str] """ publisherUri: str @@ -1220,9 +1305,9 @@ class CommunityGalleryInfo(TypedDict, total=False): class ConvertToVirtualMachineScaleSetInput(TypedDict, total=False): """Describes the Virtual Machine Scale Set to convert from Availability Set. - :ivar virtual_machine_scale_set_name: Specifies information about the Virtual Machine Scale Set + :ivar virtualMachineScaleSetName: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to. - :vartype virtual_machine_scale_set_name: str + :vartype virtualMachineScaleSetName: str """ virtualMachineScaleSetName: str @@ -1234,12 +1319,12 @@ class CopyCompletionError(TypedDict, total=False): """Indicates the error details if the background copy of a resource created via the CopyStart operation fails. - :ivar error_code: Indicates the error code if the background copy of a resource created via the + :ivar errorCode: Indicates the error code if the background copy of a resource created via the CopyStart operation fails. Required. "CopySourceNotFound" - :vartype error_code: Union[str, "CopyCompletionErrorReason"] - :ivar error_message: Indicates the error message if the background copy of a resource created + :vartype errorCode: Union[str, "CopyCompletionErrorReason"] + :ivar errorMessage: Indicates the error message if the background copy of a resource created via the CopyStart operation fails. Required. - :vartype error_message: str + :vartype errorMessage: str """ errorCode: Required[Union[str, "CopyCompletionErrorReason"]] @@ -1253,56 +1338,56 @@ class CopyCompletionError(TypedDict, total=False): class CreationData(TypedDict, total=False): """Data used when creating a disk. - :ivar create_option: This enumerates the possible sources of a disk's creation. Required. Known + :ivar createOption: This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", "CopyStart", "ImportSecure", "UploadPreparedSecure", and "CopyFromSanSnapshot". - :vartype create_option: Union[str, "DiskCreateOption"] - :ivar storage_account_id: Required if createOption is Import. The Azure Resource Manager + :vartype createOption: Union[str, "DiskCreateOption"] + :ivar storageAccountId: Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. - :vartype storage_account_id: str - :ivar image_reference: Disk source information for PIR or user images. - :vartype image_reference: "ImageDiskReference" - :ivar gallery_image_reference: Required if creating from a Gallery Image. The + :vartype storageAccountId: str + :ivar imageReference: Disk source information for PIR or user images. + :vartype imageReference: "ImageDiskReference" + :ivar galleryImageReference: Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk. - :vartype gallery_image_reference: "ImageDiskReference" - :ivar source_uri: If createOption is Import, this is the URI of a blob to be imported into a + :vartype galleryImageReference: "ImageDiskReference" + :ivar sourceUri: If createOption is Import, this is the URI of a blob to be imported into a managed disk. - :vartype source_uri: str - :ivar source_resource_id: If createOption is Copy, this is the ARM id of the source snapshot or + :vartype sourceUri: str + :ivar sourceResourceId: If createOption is Copy, this is the ARM id of the source snapshot or disk. - :vartype source_resource_id: str - :ivar source_unique_id: If this field is set, this is the unique id identifying the source of + :vartype sourceResourceId: str + :ivar sourceUniqueId: If this field is set, this is the unique id identifying the source of this resource. - :vartype source_unique_id: str - :ivar upload_size_bytes: If createOption is Upload, this is the size of the contents of the + :vartype sourceUniqueId: str + :ivar uploadSizeBytes: If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer). - :vartype upload_size_bytes: int - :ivar logical_sector_size: Logical sector size in bytes for Ultra disks. Supported values are - 512 ad 4096. 4096 is the default. - :vartype logical_sector_size: int - :ivar security_data_uri: If createOption is ImportSecure, this is the URI of a blob to be + :vartype uploadSizeBytes: int + :ivar logicalSectorSize: Logical sector size in bytes for Ultra disks. Supported values are 512 + ad 4096. 4096 is the default. + :vartype logicalSectorSize: int + :ivar securityDataUri: If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. - :vartype security_data_uri: str - :ivar security_metadata_uri: If createOption is ImportSecure, this is the URI of a blob to be + :vartype securityDataUri: str + :ivar securityMetadataUri: If createOption is ImportSecure, this is the URI of a blob to be imported into VM metadata for Confidential VM. - :vartype security_metadata_uri: str - :ivar performance_plus: Set this flag to true to get a boost on the performance target of the + :vartype securityMetadataUri: str + :ivar performancePlus: Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. - :vartype performance_plus: bool - :ivar elastic_san_resource_id: Required if createOption is CopyFromSanSnapshot. This is the ARM - id of the source elastic san volume snapshot. - :vartype elastic_san_resource_id: str - :ivar provisioned_bandwidth_copy_speed: If this field is set on a snapshot and createOption is + :vartype performancePlus: bool + :ivar elasticSanResourceId: Required if createOption is CopyFromSanSnapshot. This is the ARM id + of the source elastic san volume snapshot. + :vartype elasticSanResourceId: str + :ivar provisionedBandwidthCopySpeed: If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. Known values are: "None" and "Enhanced". - :vartype provisioned_bandwidth_copy_speed: Union[str, "ProvisionedBandwidthCopyOption"] - :ivar instant_access_duration_minutes: For snapshots created from Premium SSD v2 or Ultra disk, + :vartype provisionedBandwidthCopySpeed: Union[str, "ProvisionedBandwidthCopyOption"] + :ivar instantAccessDurationMinutes: For snapshots created from Premium SSD v2 or Ultra disk, this property determines the time in minutes the snapshot is retained for instant access to enable faster restore. - :vartype instant_access_duration_minutes: int + :vartype instantAccessDurationMinutes: int """ createOption: Required[Union[str, "DiskCreateOption"]] @@ -1370,10 +1455,10 @@ class DataDisk(TypedDict, total=False): **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool - :ivar create_option: Specifies how the virtual machine disk should be created. Possible values + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool + :ivar createOption: Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should also use the imageReference @@ -1382,42 +1467,42 @@ class DataDisk(TypedDict, total=False): **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: Union[str, "DiskCreateOptionTypes"] - :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be + :vartype createOption: Union[str, "DiskCreateOptionTypes"] + :ivar diskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. - :vartype disk_size_gb: int - :ivar storage_fault_domain_alignment: Specifies the storage fault domain alignment type for the + :vartype diskSizeGB: int + :ivar storageFaultDomainAlignment: Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". - :vartype storage_fault_domain_alignment: Union[str, "StorageFaultDomainAlignmentType"] - :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: "ManagedDiskParameters" - :ivar source_resource: The source resource identifier. It can be a snapshot, or disk restore + :vartype storageFaultDomainAlignment: Union[str, "StorageFaultDomainAlignmentType"] + :ivar managedDisk: The managed disk parameters. + :vartype managedDisk: "ManagedDiskParameters" + :ivar sourceResource: The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk. - :vartype source_resource: "ApiEntityReference" - :ivar to_be_detached: Specifies whether the data disk is in process of detachment from the + :vartype sourceResource: "ApiEntityReference" + :ivar toBeDetached: Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. - :vartype to_be_detached: bool - :ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk when + :vartype toBeDetached: bool + :ivar diskIOPSReadWrite: Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. - :vartype disk_iops_read_write: int - :ivar disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk when + :vartype diskIOPSReadWrite: int + :ivar diskMBpsReadWrite: Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. - :vartype disk_m_bps_read_write: int - :ivar detach_option: Specifies the detach behavior to be used while detaching a disk or which - is already in the process of detachment from the virtual machine. Supported values: + :vartype diskMBpsReadWrite: int + :ivar detachOption: Specifies the detach behavior to be used while detaching a disk or which is + already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. "ForceDetach" - :vartype detach_option: Union[str, "DiskDetachOptionTypes"] - :ivar delete_option: Specifies whether data disk should be deleted or detached upon VM - deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when - VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is - deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] + :vartype detachOption: Union[str, "DiskDetachOptionTypes"] + :ivar deleteOption: Specifies whether data disk should be deleted or detached upon VM deletion. + Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is + deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The + default value is set to **Detach**. Known values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] """ lun: Required[int] @@ -1486,9 +1571,9 @@ class DataDisk(TypedDict, total=False): class DiskImageEncryption(TypedDict, total=False): """This is the disk image encryption base class. - :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption + :ivar diskEncryptionSetId: A relative URI containing the resource ID of the disk encryption set. - :vartype disk_encryption_set_id: str + :vartype diskEncryptionSetId: str """ diskEncryptionSetId: str @@ -1498,9 +1583,9 @@ class DiskImageEncryption(TypedDict, total=False): class DataDiskImageEncryption(DiskImageEncryption): """Contains encryption settings for a data disk image. - :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption + :ivar diskEncryptionSetId: A relative URI containing the resource ID of the disk encryption set. - :vartype disk_encryption_set_id: str + :vartype diskEncryptionSetId: str :ivar lun: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. Required. @@ -1516,8 +1601,8 @@ class DataDiskImageEncryption(DiskImageEncryption): class DataDisksToAttach(TypedDict, total=False): """Describes the data disk to be attached. - :ivar disk_id: ID of the managed data disk. Required. - :vartype disk_id: str + :ivar diskId: ID of the managed data disk. Required. + :vartype diskId: str :ivar lun: The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned. @@ -1526,17 +1611,17 @@ class DataDisksToAttach(TypedDict, total=False): **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar delete_option: Specifies whether data disk should be deleted or detached upon VM - deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when - VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is - deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool + :ivar deleteOption: Specifies whether data disk should be deleted or detached upon VM deletion. + Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is + deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The + default value is set to **Detach**. Known values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool """ diskId: Required[str] @@ -1563,11 +1648,11 @@ class DataDisksToAttach(TypedDict, total=False): class DataDisksToDetach(TypedDict, total=False): """Describes the data disk to be detached. - :ivar disk_id: ID of the managed data disk. Required. - :vartype disk_id: str - :ivar detach_option: Supported options available for Detach of a disk from a VM. Refer to + :ivar diskId: ID of the managed data disk. Required. + :vartype diskId: str + :ivar detachOption: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details. "ForceDetach" - :vartype detach_option: Union[str, "DiskDetachOptionTypes"] + :vartype detachOption: Union[str, "DiskDetachOptionTypes"] """ diskId: Required[str] @@ -1588,9 +1673,9 @@ class DedicatedHost(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -1612,8 +1697,8 @@ class DedicatedHost(TrackedResource): class DedicatedHostAllocatableVM(TypedDict, total=False): """Represents the dedicated host unutilized capacity in terms of a specific VM size. - :ivar vm_size: VM size in terms of which the unutilized capacity is represented. - :vartype vm_size: str + :ivar vmSize: VM size in terms of which the unutilized capacity is represented. + :vartype vmSize: str :ivar count: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity. :vartype count: float @@ -1628,9 +1713,9 @@ class DedicatedHostAllocatableVM(TypedDict, total=False): class DedicatedHostAvailableCapacity(TypedDict, total=False): """Dedicated host unutilized capacity. - :ivar allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of + :ivar allocatableVMs: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. - :vartype allocatable_v_ms: list["DedicatedHostAllocatableVM"] + :vartype allocatableVMs: list["DedicatedHostAllocatableVM"] """ allocatableVMs: list["DedicatedHostAllocatableVM"] @@ -1651,9 +1736,9 @@ class DedicatedHostGroup(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -1684,22 +1769,21 @@ class DedicatedHostGroupInstanceView(TypedDict, total=False): class DedicatedHostGroupProperties(TypedDict, total=False): """Dedicated Host Group Properties. - :ivar platform_fault_domain_count: Number of fault domains that the host group can span. - Required. - :vartype platform_fault_domain_count: int + :ivar platformFaultDomainCount: Number of fault domains that the host group can span. Required. + :vartype platformFaultDomainCount: int :ivar hosts: A list of references to all dedicated hosts in the dedicated host group. :vartype hosts: list["SubResourceReadOnly"] - :ivar instance_view: The dedicated host group instance view, which has the list of instance - view of the dedicated hosts under the dedicated host group. - :vartype instance_view: "DedicatedHostGroupInstanceView" - :ivar support_automatic_placement: Specifies whether virtual machines or virtual machine scale + :ivar instanceView: The dedicated host group instance view, which has the list of instance view + of the dedicated hosts under the dedicated host group. + :vartype instanceView: "DedicatedHostGroupInstanceView" + :ivar supportAutomaticPlacement: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01. - :vartype support_automatic_placement: bool - :ivar additional_capabilities: Enables or disables a capability on the dedicated host group. + :vartype supportAutomaticPlacement: bool + :ivar additionalCapabilities: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. - :vartype additional_capabilities: "DedicatedHostGroupPropertiesAdditionalCapabilities" + :vartype additionalCapabilities: "DedicatedHostGroupPropertiesAdditionalCapabilities" """ platformFaultDomainCount: Required[int] @@ -1721,15 +1805,15 @@ class DedicatedHostGroupProperties(TypedDict, total=False): class DedicatedHostGroupPropertiesAdditionalCapabilities(TypedDict, total=False): # pylint: disable=name-too-long """Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. - :ivar ultra_ssd_enabled: The flag that enables or disables a capability to have UltraSSD - Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual - Machines to be UltraSSD Enabled, UltraSSDEnabled flag for the resource needs to be set true as - well. The value is defaulted to 'false' when not provided. Please refer to + :ivar ultraSSDEnabled: The flag that enables or disables a capability to have UltraSSD Enabled + Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual Machines to be + UltraSSD Enabled, UltraSSDEnabled flag for the resource needs to be set true as well. The value + is defaulted to 'false' when not provided. Please refer to `https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd `_ for more details on Ultra SSD feature. **Note:** The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal. Minimum api-version: 2022-03-01. - :vartype ultra_ssd_enabled: bool + :vartype ultraSSDEnabled: bool """ ultraSSDEnabled: bool @@ -1768,11 +1852,11 @@ class DedicatedHostGroupUpdate(UpdateResource): class DedicatedHostInstanceView(TypedDict, total=False): """The instance view of a dedicated host. - :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the - dedicated host resides. - :vartype asset_id: str - :ivar available_capacity: Unutilized capacity of the dedicated host. - :vartype available_capacity: "DedicatedHostAvailableCapacity" + :ivar assetId: Specifies the unique id of the dedicated physical machine on which the dedicated + host resides. + :vartype assetId: str + :ivar availableCapacity: Unutilized capacity of the dedicated host. + :vartype availableCapacity: "DedicatedHostAvailableCapacity" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] """ @@ -1789,11 +1873,11 @@ class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. - :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the - dedicated host resides. - :vartype asset_id: str - :ivar available_capacity: Unutilized capacity of the dedicated host. - :vartype available_capacity: "DedicatedHostAvailableCapacity" + :ivar assetId: Specifies the unique id of the dedicated physical machine on which the dedicated + host resides. + :vartype assetId: str + :ivar availableCapacity: Unutilized capacity of the dedicated host. + :vartype availableCapacity: "DedicatedHostAvailableCapacity" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] :ivar name: The name of the dedicated host. @@ -1807,30 +1891,30 @@ class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): class DedicatedHostProperties(TypedDict, total=False): """Properties of the dedicated host. - :ivar platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. - :vartype platform_fault_domain: int - :ivar auto_replace_on_failure: Specifies whether the dedicated host should be replaced + :ivar platformFaultDomain: Fault domain of the dedicated host within a dedicated host group. + :vartype platformFaultDomain: int + :ivar autoReplaceOnFailure: Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. - :vartype auto_replace_on_failure: bool - :ivar host_id: A unique id generated and assigned to the dedicated host by the platform. Does + :vartype autoReplaceOnFailure: bool + :ivar hostId: A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host. - :vartype host_id: str - :ivar virtual_machines: A list of references to all virtual machines in the Dedicated Host. - :vartype virtual_machines: list["SubResourceReadOnly"] - :ivar license_type: Specifies the software license type that will be applied to the VMs - deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** + :vartype hostId: str + :ivar virtualMachines: A list of references to all virtual machines in the Dedicated Host. + :vartype virtualMachines: list["SubResourceReadOnly"] + :ivar licenseType: Specifies the software license type that will be applied to the VMs deployed + on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual". - :vartype license_type: Union[str, "DedicatedHostLicenseTypes"] - :ivar provisioning_time: The date when the host was first provisioned. - :vartype provisioning_time: str - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar instance_view: The dedicated host instance view. - :vartype instance_view: "DedicatedHostInstanceView" - :ivar time_created: Specifies the time at which the Dedicated Host resource was created. - Minimum api-version: 2021-11-01. - :vartype time_created: str + :vartype licenseType: Union[str, "DedicatedHostLicenseTypes"] + :ivar provisioningTime: The date when the host was first provisioned. + :vartype provisioningTime: str + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar instanceView: The dedicated host instance view. + :vartype instanceView: "DedicatedHostInstanceView" + :ivar timeCreated: Specifies the time at which the Dedicated Host resource was created. Minimum + api-version: 2021-11-01. + :vartype timeCreated: str """ platformFaultDomain: int @@ -1887,14 +1971,13 @@ class DefaultVirtualMachineScaleSetInfo(TypedDict, total=False): """Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API. - :ivar constrained_maximum_capacity: Indicates if the the maximum capacity of the default - migrated Virtual Machine Scale Set after its migration will be constrained to a limited number - of VMs. - :vartype constrained_maximum_capacity: bool - :ivar default_virtual_machine_scale_set: The default Virtual Machine ScaleSet Uri that the + :ivar constrainedMaximumCapacity: Indicates if the the maximum capacity of the default migrated + Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs. + :vartype constrainedMaximumCapacity: bool + :ivar defaultVirtualMachineScaleSet: The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API. - :vartype default_virtual_machine_scale_set: "SubResource" + :vartype defaultVirtualMachineScaleSet: "SubResource" """ constrainedMaximumCapacity: bool @@ -1908,12 +1991,12 @@ class DefaultVirtualMachineScaleSetInfo(TypedDict, total=False): class DiagnosticsProfile(TypedDict, total=False): """Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view - Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified - then ensure that the storage account is in the same region and subscription as the VM. You can + :ivar bootDiagnostics: Boot Diagnostics is a debugging feature which allows you to view Console + Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then + ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: "BootDiagnostics" + :vartype bootDiagnostics: "BootDiagnostics" """ bootDiagnostics: "BootDiagnostics" @@ -1940,9 +2023,9 @@ class DiffDiskSettings(TypedDict, total=False): exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01. Known values are: "CacheDisk", "ResourceDisk", and "NvmeDisk". :vartype placement: Union[str, "DiffDiskPlacement"] - :ivar enable_full_caching: Specifies whether or not to enable full caching for this VM which - will cache the OS disk locally on the host and make this VM more resilient to storage outages. - :vartype enable_full_caching: bool + :ivar enableFullCaching: Specifies whether or not to enable full caching for this VM which will + cache the OS disk locally on the host and make this VM more resilient to storage outages. + :vartype enableFullCaching: bool """ option: Union[str, "DiffDiskOptions"] @@ -1966,8 +2049,8 @@ class DiffDiskSettings(TypedDict, total=False): class Disallowed(TypedDict, total=False): """Describes the disallowed disk types. - :ivar disk_types: A list of disk types. - :vartype disk_types: list[str] + :ivar diskTypes: A list of disk types. + :vartype diskTypes: list[str] """ diskTypes: list[str] @@ -1985,29 +2068,29 @@ class Disk(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: Disk resource properties. :vartype properties: "DiskProperties" - :ivar managed_by: A relative URI containing the ID of the VM that has the disk attached. - :vartype managed_by: str - :ivar managed_by_extended: List of relative URIs containing the IDs of the VMs that have the - disk attached. maxShares should be set to a value greater than one for disks to allow attaching - them to multiple VMs. - :vartype managed_by_extended: list[str] + :ivar managedBy: A relative URI containing the ID of the VM that has the disk attached. + :vartype managedBy: str + :ivar managedByExtended: List of relative URIs containing the IDs of the VMs that have the disk + attached. maxShares should be set to a value greater than one for disks to allow attaching them + to multiple VMs. + :vartype managedByExtended: list[str] :ivar sku: The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. :vartype sku: "DiskSku" :ivar zones: The Logical zone list for Disk. :vartype zones: list[str] - :ivar extended_location: The extended location where the disk will be created. Extended - location cannot be changed. - :vartype extended_location: "ExtendedLocation" + :ivar extendedLocation: The extended location where the disk will be created. Extended location + cannot be changed. + :vartype extendedLocation: "ExtendedLocation" """ properties: "DiskProperties" @@ -2037,18 +2120,18 @@ class DiskAccess(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: :vartype properties: "DiskAccessProperties" - :ivar extended_location: The extended location where the disk access will be created. Extended + :ivar extendedLocation: The extended location where the disk access will be created. Extended location cannot be changed. - :vartype extended_location: "ExtendedLocation" + :vartype extendedLocation: "ExtendedLocation" """ properties: "DiskAccessProperties" @@ -2060,13 +2143,13 @@ class DiskAccess(TrackedResource): class DiskAccessProperties(TypedDict, total=False): """DiskAccessProperties. - :ivar private_endpoint_connections: A readonly collection of private endpoint connections - created on the disk. Currently only one endpoint connection is supported. - :vartype private_endpoint_connections: list["PrivateEndpointConnection"] - :ivar provisioning_state: The disk access resource provisioning state. - :vartype provisioning_state: str - :ivar time_created: The time when the disk access was created. - :vartype time_created: str + :ivar privateEndpointConnections: A readonly collection of private endpoint connections created + on the disk. Currently only one endpoint connection is supported. + :vartype privateEndpointConnections: list["PrivateEndpointConnection"] + :ivar provisioningState: The disk access resource provisioning state. + :vartype provisioningState: str + :ivar timeCreated: The time when the disk access was created. + :vartype timeCreated: str """ privateEndpointConnections: list["PrivateEndpointConnection"] @@ -2089,6 +2172,20 @@ class DiskAccessUpdate(TypedDict, total=False): """Resource tags.""" +class DiskAvailabilityPolicy(TypedDict, total=False): + """In the case of an availability or connectivity issue with the disk, specify the behavior of + your VM. + + :ivar actionOnDiskDelay: Determines how to handle disks with slow I/O. Known values are: "None" + and "AutomaticReattach". + :vartype actionOnDiskDelay: Union[str, "VirtualMachineDiskDelayAction"] + """ + + actionOnDiskDelay: Union[str, "VirtualMachineDiskDelayAction"] + """Determines how to handle disks with slow I/O. Known values are: \"None\" and + \"AutomaticReattach\".""" + + class DiskEncryptionSet(TrackedResource): """disk encryption set resource. @@ -2100,9 +2197,9 @@ class DiskEncryptionSet(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -2145,11 +2242,11 @@ class DiskEncryptionSetParameters(SubResource): class DiskEncryptionSettings(TypedDict, total=False): """Describes a Encryption Settings for a Disk. - :ivar disk_encryption_key: Specifies the location of the disk encryption key, which is a Key + :ivar diskEncryptionKey: Specifies the location of the disk encryption key, which is a Key Vault Secret. - :vartype disk_encryption_key: "KeyVaultSecretReference" - :ivar key_encryption_key: Specifies the location of the key encryption key in Key Vault. - :vartype key_encryption_key: "KeyVaultKeyReference" + :vartype diskEncryptionKey: "KeyVaultSecretReference" + :ivar keyEncryptionKey: Specifies the location of the key encryption key in Key Vault. + :vartype keyEncryptionKey: "KeyVaultKeyReference" :ivar enabled: Specifies whether disk encryption should be enabled on the virtual machine. :vartype enabled: bool """ @@ -2186,19 +2283,19 @@ class DiskEncryptionSetUpdate(TypedDict, total=False): class DiskEncryptionSetUpdateProperties(TypedDict, total=False): """disk encryption set resource update properties. - :ivar encryption_type: The type of key used to encrypt the data of the disk. Known values are: + :ivar encryptionType: The type of key used to encrypt the data of the disk. Known values are: "EncryptionAtRestWithCustomerKey", "EncryptionAtRestWithPlatformAndCustomerKeys", and "ConfidentialVmEncryptedWithCustomerKey". - :vartype encryption_type: Union[str, "DiskEncryptionSetType"] - :ivar active_key: Key Vault Key Url to be used for server side encryption of Managed Disks and + :vartype encryptionType: Union[str, "DiskEncryptionSetType"] + :ivar activeKey: Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots. - :vartype active_key: "KeyForDiskEncryptionSet" - :ivar rotation_to_latest_key_version_enabled: Set this flag to true to enable auto-updating of - this disk encryption set to the latest key version. - :vartype rotation_to_latest_key_version_enabled: bool - :ivar federated_client_id: Multi-tenant application client id to access key vault in a - different tenant. Setting the value to 'None' will clear the property. - :vartype federated_client_id: str + :vartype activeKey: "KeyForDiskEncryptionSet" + :ivar rotationToLatestKeyVersionEnabled: Set this flag to true to enable auto-updating of this + disk encryption set to the latest key version. + :vartype rotationToLatestKeyVersionEnabled: bool + :ivar federatedClientId: Multi-tenant application client id to access key vault in a different + tenant. Setting the value to 'None' will clear the property. + :vartype federatedClientId: str """ encryptionType: Union[str, "DiskEncryptionSetType"] @@ -2220,14 +2317,14 @@ class DiskInstanceView(TypedDict, total=False): :ivar name: The disk name. :vartype name: str - :ivar encryption_settings: Specifies the encryption settings for the OS Disk.

Minimum + :ivar encryptionSettings: Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15. - :vartype encryption_settings: list["DiskEncryptionSettings"] + :vartype encryptionSettings: list["DiskEncryptionSettings"] :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] - :ivar storage_alignment_status: Specifies the storage alignment status for the disk. Known - values are: "Unaligned" and "Aligned". - :vartype storage_alignment_status: Union[str, "StorageAlignmentStatus"] + :ivar storageAlignmentStatus: Specifies the storage alignment status for the disk. Known values + are: "Unaligned" and "Aligned". + :vartype storageAlignmentStatus: Union[str, "StorageAlignmentStatus"] """ name: str @@ -2244,105 +2341,104 @@ class DiskInstanceView(TypedDict, total=False): class DiskProperties(TypedDict, total=False): """Disk resource properties. - :ivar time_created: The time when the disk was created. - :vartype time_created: str - :ivar os_type: The Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS + :ivar timeCreated: The time when the disk was created. + :vartype timeCreated: str + :ivar osType: The Operating System type. Known values are: "Windows" and "Linux". + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar hyperVGeneration: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGeneration"] - :ivar purchase_plan: Purchase plan information for the the image from which the OS disk was + :vartype hyperVGeneration: Union[str, "HyperVGeneration"] + :ivar purchasePlan: Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer}. - :vartype purchase_plan: "DiskPurchasePlan" - :ivar supported_capabilities: List of supported capabilities for the image from which the OS + :vartype purchasePlan: "DiskPurchasePlan" + :ivar supportedCapabilities: List of supported capabilities for the image from which the OS disk was created. - :vartype supported_capabilities: "SupportedCapabilities" - :ivar creation_data: Disk source information. CreationData information cannot be changed after + :vartype supportedCapabilities: "SupportedCapabilities" + :ivar creationData: Disk source information. CreationData information cannot be changed after the disk has been created. Required. - :vartype creation_data: "CreationData" - :ivar disk_size_gb: If creationData.createOption is Empty, this field is mandatory and it + :vartype creationData: "CreationData" + :ivar diskSizeGB: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - :vartype disk_size_gb: int - :ivar disk_size_bytes: The size of the disk in bytes. This field is read only. - :vartype disk_size_bytes: int - :ivar unique_id: Unique Guid identifying the resource. - :vartype unique_id: str - :ivar encryption_settings_collection: Encryption settings collection used for Azure Disk + :vartype diskSizeGB: int + :ivar diskSizeBytes: The size of the disk in bytes. This field is read only. + :vartype diskSizeBytes: int + :ivar uniqueId: Unique Guid identifying the resource. + :vartype uniqueId: str + :ivar encryptionSettingsCollection: Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - :vartype encryption_settings_collection: "EncryptionSettingsCollection" - :ivar provisioning_state: The disk provisioning state. - :vartype provisioning_state: str - :ivar disk_iops_read_write: The number of IOPS allowed for this disk; only settable for - UltraSSD disks. One operation can transfer between 4k and 256k bytes. - :vartype disk_iops_read_write: int - :ivar disk_m_bps_read_write: The bandwidth allowed for this disk; only settable for UltraSSD - disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of - 10. - :vartype disk_m_bps_read_write: int - :ivar disk_iops_read_only: The total number of IOPS that will be allowed across all VMs - mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. - :vartype disk_iops_read_only: int - :ivar disk_m_bps_read_only: The total throughput (MBps) that will be allowed across all VMs + :vartype encryptionSettingsCollection: "EncryptionSettingsCollection" + :ivar provisioningState: The disk provisioning state. + :vartype provisioningState: str + :ivar diskIOPSReadWrite: The number of IOPS allowed for this disk; only settable for UltraSSD + disks. One operation can transfer between 4k and 256k bytes. + :vartype diskIOPSReadWrite: int + :ivar diskMBpsReadWrite: The bandwidth allowed for this disk; only settable for UltraSSD disks. + MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. + :vartype diskMBpsReadWrite: int + :ivar diskIOPSReadOnly: The total number of IOPS that will be allowed across all VMs mounting + the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + :vartype diskIOPSReadOnly: int + :ivar diskMBpsReadOnly: The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. - :vartype disk_m_bps_read_only: int - :ivar disk_state: The state of the disk. Known values are: "Unattached", "Attached", - "Reserved", "Frozen", "ActiveSAS", "ActiveSASFrozen", "ReadyToUpload", and "ActiveUpload". - :vartype disk_state: Union[str, "DiskState"] + :vartype diskMBpsReadOnly: int + :ivar diskState: The state of the disk. Known values are: "Unattached", "Attached", "Reserved", + "Frozen", "ActiveSAS", "ActiveSASFrozen", "ReadyToUpload", and "ActiveUpload". + :vartype diskState: Union[str, "DiskState"] :ivar encryption: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. :vartype encryption: "Encryption" - :ivar max_shares: The maximum number of VMs that can attach to the disk at the same time. Value + :ivar maxShares: The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - :vartype max_shares: int - :ivar share_info: Details of the list of all VMs that have the disk attached. maxShares should + :vartype maxShares: int + :ivar shareInfo: Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. - :vartype share_info: list["ShareInfoElement"] - :ivar network_access_policy: Policy for accessing the disk via network. Known values are: + :vartype shareInfo: list["ShareInfoElement"] + :ivar networkAccessPolicy: Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". - :vartype network_access_policy: Union[str, "NetworkAccessPolicy"] - :ivar disk_access_id: ARM id of the DiskAccess resource for using private endpoints on disks. - :vartype disk_access_id: str - :ivar bursting_enabled_time: Latest time when bursting was last enabled on a disk. - :vartype bursting_enabled_time: str + :vartype networkAccessPolicy: Union[str, "NetworkAccessPolicy"] + :ivar diskAccessId: ARM id of the DiskAccess resource for using private endpoints on disks. + :vartype diskAccessId: str + :ivar burstingEnabledTime: Latest time when bursting was last enabled on a disk. + :vartype burstingEnabledTime: str :ivar tier: Performance tier of the disk (e.g, P4, S10) as described here: `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ `_. Does not apply to Ultra disks. :vartype tier: str - :ivar bursting_enabled: Set to true to enable bursting beyond the provisioned performance - target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. - :vartype bursting_enabled: bool - :ivar property_updates_in_progress: Properties of the disk for which update is pending. - :vartype property_updates_in_progress: "PropertyUpdatesInProgress" - :ivar supports_hibernation: Indicates the OS on a disk supports hibernation. - :vartype supports_hibernation: bool - :ivar security_profile: Contains the security related information for the resource. - :vartype security_profile: "DiskSecurityProfile" - :ivar completion_percent: Percentage complete for the background copy when a resource is - created via the CopyStart operation. - :vartype completion_percent: float - :ivar public_network_access: Policy for controlling export on the disk. Known values are: + :ivar burstingEnabled: Set to true to enable bursting beyond the provisioned performance target + of the disk. Bursting is disabled by default. Does not apply to Ultra disks. + :vartype burstingEnabled: bool + :ivar propertyUpdatesInProgress: Properties of the disk for which update is pending. + :vartype propertyUpdatesInProgress: "PropertyUpdatesInProgress" + :ivar supportsHibernation: Indicates the OS on a disk supports hibernation. + :vartype supportsHibernation: bool + :ivar securityProfile: Contains the security related information for the resource. + :vartype securityProfile: "DiskSecurityProfile" + :ivar completionPercent: Percentage complete for the background copy when a resource is created + via the CopyStart operation. + :vartype completionPercent: float + :ivar publicNetworkAccess: Policy for controlling export on the disk. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: Union[str, "PublicNetworkAccess"] - :ivar data_access_auth_mode: Additional authentication requirements when exporting or uploading - to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". - :vartype data_access_auth_mode: Union[str, "DataAccessAuthMode"] - :ivar optimized_for_frequent_attach: Setting this property to true improves reliability and + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar dataAccessAuthMode: Additional authentication requirements when exporting or uploading to + a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". + :vartype dataAccessAuthMode: Union[str, "DataAccessAuthMode"] + :ivar optimizedForFrequentAttach: Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. - :vartype optimized_for_frequent_attach: bool - :ivar last_ownership_update_time: The UTC time when the ownership state of the disk was last + :vartype optimizedForFrequentAttach: bool + :ivar LastOwnershipUpdateTime: The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. - :vartype last_ownership_update_time: str - :ivar availability_policy: Determines how platform treats disk failures. - :vartype availability_policy: "AvailabilityPolicy" + :vartype LastOwnershipUpdateTime: str + :ivar availabilityPolicy: Determines how platform treats disk failures. + :vartype availabilityPolicy: "AvailabilityPolicy" """ timeCreated: str @@ -2451,8 +2547,8 @@ class DiskPurchasePlan(TypedDict, total=False): :ivar product: Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. Required. :vartype product: str - :ivar promotion_code: The Offer Promotion Code. - :vartype promotion_code: str + :ivar promotionCode: The Offer Promotion Code. + :vartype promotionCode: str """ name: Required[str] @@ -2477,9 +2573,9 @@ class ProxyResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ @@ -2502,8 +2598,8 @@ class DiskRestorePointAttributes(SubResourceReadOnly): :ivar encryption: Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. :vartype encryption: "RestorePointEncryption" - :ivar source_disk_restore_point: Resource Id of the source disk restore point. - :vartype source_disk_restore_point: "ApiEntityReference" + :ivar sourceDiskRestorePoint: Resource Id of the source disk restore point. + :vartype sourceDiskRestorePoint: "ApiEntityReference" """ encryption: "RestorePointEncryption" @@ -2518,12 +2614,12 @@ class DiskRestorePointInstanceView(TypedDict, total=False): :ivar id: Disk restore point Id. :vartype id: str - :ivar snapshot_access_state: The state of snapshot which determines the access availability of + :ivar snapshotAccessState: The state of snapshot which determines the access availability of the snapshot. Known values are: "Unknown", "Pending", "Available", "InstantAccess", and "AvailableWithInstantAccess". - :vartype snapshot_access_state: Union[str, "SnapshotAccessState"] - :ivar replication_status: The disk restore point replication status information. - :vartype replication_status: "DiskRestorePointReplicationStatus" + :vartype snapshotAccessState: Union[str, "SnapshotAccessState"] + :ivar replicationStatus: The disk restore point replication status information. + :vartype replicationStatus: "DiskRestorePointReplicationStatus" """ id: str @@ -2541,8 +2637,8 @@ class DiskRestorePointReplicationStatus(TypedDict, total=False): :ivar status: The resource status information. :vartype status: "InstanceViewStatus" - :ivar completion_percent: Replication completion percentage. - :vartype completion_percent: int + :ivar completionPercent: Replication completion percentage. + :vartype completionPercent: int """ status: "InstanceViewStatus" @@ -2554,17 +2650,17 @@ class DiskRestorePointReplicationStatus(TypedDict, total=False): class DiskSecurityProfile(TypedDict, total=False): """Contains the security related information for the resource. - :ivar security_type: Specifies the SecurityType of the VM. Applicable for OS disks only. Known + :ivar securityType: Specifies the SecurityType of the VM. Applicable for OS disks only. Known values are: "TrustedLaunch", "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", "ConfidentialVM_DiskEncryptedWithPlatformKey", "ConfidentialVM_DiskEncryptedWithCustomerKey", and "ConfidentialVM_NonPersistedTPM". - :vartype security_type: Union[str, "DiskSecurityTypes"] - :ivar secure_vm_disk_encryption_set_id: ResourceId of the disk encryption set associated to + :vartype securityType: Union[str, "DiskSecurityTypes"] + :ivar secureVMDiskEncryptionSetId: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key. - :vartype secure_vm_disk_encryption_set_id: str - :ivar confidential_vm_version: Indicates the version of Confidential VM for the resource. Known + :vartype secureVMDiskEncryptionSetId: str + :ivar confidentialVMVersion: Indicates the version of Confidential VM for the resource. Known values are: "V1" and "V2". - :vartype confidential_vm_version: Union[str, "ConfidentialVMVersion"] + :vartype confidentialVMVersion: Union[str, "ConfidentialVMVersion"] """ securityType: Union[str, "DiskSecurityTypes"] @@ -2621,71 +2717,70 @@ class DiskUpdate(TypedDict, total=False): class DiskUpdateProperties(TypedDict, total=False): """Disk resource update properties. - :ivar os_type: the Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar disk_size_gb: If creationData.createOption is Empty, this field is mandatory and it + :ivar osType: the Operating System type. Known values are: "Windows" and "Linux". + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar diskSizeGB: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - :vartype disk_size_gb: int - :ivar encryption_settings_collection: Encryption settings collection used be Azure Disk + :vartype diskSizeGB: int + :ivar encryptionSettingsCollection: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - :vartype encryption_settings_collection: "EncryptionSettingsCollection" - :ivar disk_iops_read_write: The number of IOPS allowed for this disk; only settable for - UltraSSD disks. One operation can transfer between 4k and 256k bytes. - :vartype disk_iops_read_write: int - :ivar disk_m_bps_read_write: The bandwidth allowed for this disk; only settable for UltraSSD - disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of - 10. - :vartype disk_m_bps_read_write: int - :ivar disk_iops_read_only: The total number of IOPS that will be allowed across all VMs - mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. - :vartype disk_iops_read_only: int - :ivar disk_m_bps_read_only: The total throughput (MBps) that will be allowed across all VMs + :vartype encryptionSettingsCollection: "EncryptionSettingsCollection" + :ivar diskIOPSReadWrite: The number of IOPS allowed for this disk; only settable for UltraSSD + disks. One operation can transfer between 4k and 256k bytes. + :vartype diskIOPSReadWrite: int + :ivar diskMBpsReadWrite: The bandwidth allowed for this disk; only settable for UltraSSD disks. + MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. + :vartype diskMBpsReadWrite: int + :ivar diskIOPSReadOnly: The total number of IOPS that will be allowed across all VMs mounting + the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + :vartype diskIOPSReadOnly: int + :ivar diskMBpsReadOnly: The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. - :vartype disk_m_bps_read_only: int - :ivar max_shares: The maximum number of VMs that can attach to the disk at the same time. Value + :vartype diskMBpsReadOnly: int + :ivar maxShares: The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. - :vartype max_shares: int + :vartype maxShares: int :ivar encryption: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. :vartype encryption: "Encryption" - :ivar network_access_policy: Policy for accessing the disk via network. Known values are: + :ivar networkAccessPolicy: Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". - :vartype network_access_policy: Union[str, "NetworkAccessPolicy"] - :ivar disk_access_id: ARM id of the DiskAccess resource for using private endpoints on disks. - :vartype disk_access_id: str + :vartype networkAccessPolicy: Union[str, "NetworkAccessPolicy"] + :ivar diskAccessId: ARM id of the DiskAccess resource for using private endpoints on disks. + :vartype diskAccessId: str :ivar tier: Performance tier of the disk (e.g, P4, S10) as described here: `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ `_. Does not apply to Ultra disks. :vartype tier: str - :ivar bursting_enabled: Set to true to enable bursting beyond the provisioned performance - target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. - :vartype bursting_enabled: bool - :ivar purchase_plan: Purchase plan information to be added on the OS disk. - :vartype purchase_plan: "DiskPurchasePlan" - :ivar supported_capabilities: List of supported capabilities to be added on the OS disk. - :vartype supported_capabilities: "SupportedCapabilities" - :ivar property_updates_in_progress: Properties of the disk for which update is pending. - :vartype property_updates_in_progress: "PropertyUpdatesInProgress" - :ivar supports_hibernation: Indicates the OS on a disk supports hibernation. - :vartype supports_hibernation: bool - :ivar public_network_access: Policy for controlling export on the disk. Known values are: + :ivar burstingEnabled: Set to true to enable bursting beyond the provisioned performance target + of the disk. Bursting is disabled by default. Does not apply to Ultra disks. + :vartype burstingEnabled: bool + :ivar purchasePlan: Purchase plan information to be added on the OS disk. + :vartype purchasePlan: "DiskPurchasePlan" + :ivar supportedCapabilities: List of supported capabilities to be added on the OS disk. + :vartype supportedCapabilities: "SupportedCapabilities" + :ivar propertyUpdatesInProgress: Properties of the disk for which update is pending. + :vartype propertyUpdatesInProgress: "PropertyUpdatesInProgress" + :ivar supportsHibernation: Indicates the OS on a disk supports hibernation. + :vartype supportsHibernation: bool + :ivar publicNetworkAccess: Policy for controlling export on the disk. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: Union[str, "PublicNetworkAccess"] - :ivar data_access_auth_mode: Additional authentication requirements when exporting or uploading - to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". - :vartype data_access_auth_mode: Union[str, "DataAccessAuthMode"] - :ivar optimized_for_frequent_attach: Setting this property to true improves reliability and + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar dataAccessAuthMode: Additional authentication requirements when exporting or uploading to + a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". + :vartype dataAccessAuthMode: Union[str, "DataAccessAuthMode"] + :ivar optimizedForFrequentAttach: Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. - :vartype optimized_for_frequent_attach: bool - :ivar availability_policy: Determines how platform treats disk failures. - :vartype availability_policy: "AvailabilityPolicy" + :vartype optimizedForFrequentAttach: bool + :ivar availabilityPolicy: Determines how platform treats disk failures. + :vartype availabilityPolicy: "AvailabilityPolicy" """ osType: Union[str, "OperatingSystemTypes"] @@ -2755,9 +2850,9 @@ class DiskUpdateProperties(TypedDict, total=False): class Encryption(TypedDict, total=False): """Encryption at rest settings for disk or snapshot. - :ivar disk_encryption_set_id: ResourceId of the disk encryption set to use for enabling - encryption at rest. - :vartype disk_encryption_set_id: str + :ivar diskEncryptionSetId: ResourceId of the disk encryption set to use for enabling encryption + at rest. + :vartype diskEncryptionSetId: str :ivar type: The type of key used to encrypt the data of the disk. Known values are: "EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey", and "EncryptionAtRestWithPlatformAndCustomerKeys". @@ -2775,9 +2870,9 @@ class Encryption(TypedDict, total=False): class EncryptionIdentity(TypedDict, total=False): """Specifies the Managed Identity used by ADE to get access token for keyvault operations. - :ivar user_assigned_identity_resource_id: Specifies ARM Resource ID of one of the user - identities associated with the VM. - :vartype user_assigned_identity_resource_id: str + :ivar userAssignedIdentityResourceId: Specifies ARM Resource ID of one of the user identities + associated with the VM. + :vartype userAssignedIdentityResourceId: str """ userAssignedIdentityResourceId: str @@ -2788,10 +2883,10 @@ class EncryptionImages(TypedDict, total=False): """Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. - :ivar os_disk_image: Contains encryption settings for an OS disk image. - :vartype os_disk_image: "OSDiskImageEncryption" - :ivar data_disk_images: A list of encryption specifications for data disk images. - :vartype data_disk_images: list["DataDiskImageEncryption"] + :ivar osDiskImage: Contains encryption settings for an OS disk image. + :vartype osDiskImage: "OSDiskImageEncryption" + :ivar dataDiskImages: A list of encryption specifications for data disk images. + :vartype dataDiskImages: list["DataDiskImageEncryption"] """ osDiskImage: "OSDiskImageEncryption" @@ -2810,18 +2905,18 @@ class EncryptionSetIdentity(TypedDict, total=False): resources to lose access to the keys. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". :vartype type: Union[str, "DiskEncryptionSetIdentityType"] - :ivar principal_id: The object id of the Managed Identity Resource. This will be sent to the RP + :ivar principalId: The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id of the Managed Identity Resource. This will be sent to the RP + :vartype principalId: str + :ivar tenantId: The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity. - :vartype tenant_id: str - :ivar user_assigned_identities: The list of user identities associated with the disk encryption + :vartype tenantId: str + :ivar userAssignedIdentities: The list of user identities associated with the disk encryption set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentitiesValue"] + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"] """ type: Union[str, "DiskEncryptionSetIdentityType"] @@ -2847,31 +2942,31 @@ class EncryptionSetIdentity(TypedDict, total=False): class EncryptionSetProperties(TypedDict, total=False): """EncryptionSetProperties. - :ivar encryption_type: The type of key used to encrypt the data of the disk. Known values are: + :ivar encryptionType: The type of key used to encrypt the data of the disk. Known values are: "EncryptionAtRestWithCustomerKey", "EncryptionAtRestWithPlatformAndCustomerKeys", and "ConfidentialVmEncryptedWithCustomerKey". - :vartype encryption_type: Union[str, "DiskEncryptionSetType"] - :ivar active_key: The key vault key which is currently used by this disk encryption set. - :vartype active_key: "KeyForDiskEncryptionSet" - :ivar previous_keys: A readonly collection of key vault keys previously used by this disk + :vartype encryptionType: Union[str, "DiskEncryptionSetType"] + :ivar activeKey: The key vault key which is currently used by this disk encryption set. + :vartype activeKey: "KeyForDiskEncryptionSet" + :ivar previousKeys: A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation. - :vartype previous_keys: list["KeyForDiskEncryptionSet"] - :ivar provisioning_state: The disk encryption set provisioning state. - :vartype provisioning_state: str - :ivar rotation_to_latest_key_version_enabled: Set this flag to true to enable auto-updating of - this disk encryption set to the latest key version. - :vartype rotation_to_latest_key_version_enabled: bool - :ivar last_key_rotation_timestamp: The time when the active key of this disk encryption set was + :vartype previousKeys: list["KeyForDiskEncryptionSet"] + :ivar provisioningState: The disk encryption set provisioning state. + :vartype provisioningState: str + :ivar rotationToLatestKeyVersionEnabled: Set this flag to true to enable auto-updating of this + disk encryption set to the latest key version. + :vartype rotationToLatestKeyVersionEnabled: bool + :ivar lastKeyRotationTimestamp: The time when the active key of this disk encryption set was updated. - :vartype last_key_rotation_timestamp: str - :ivar auto_key_rotation_error: The error that was encountered during auto-key rotation. If an + :vartype lastKeyRotationTimestamp: str + :ivar autoKeyRotationError: The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed. - :vartype auto_key_rotation_error: "ApiError" - :ivar federated_client_id: Multi-tenant application client id to access key vault in a - different tenant. Setting the value to 'None' will clear the property. - :vartype federated_client_id: str + :vartype autoKeyRotationError: "ApiError" + :ivar federatedClientId: Multi-tenant application client id to access key vault in a different + tenant. Setting the value to 'None' will clear the property. + :vartype federatedClientId: str """ encryptionType: Union[str, "DiskEncryptionSetType"] @@ -2906,12 +3001,12 @@ class EncryptionSettingsCollection(TypedDict, total=False): KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged. Required. :vartype enabled: bool - :ivar encryption_settings: A collection of encryption settings, one for each disk volume. - :vartype encryption_settings: list["EncryptionSettingsElement"] - :ivar encryption_settings_version: Describes what type of encryption is used for the disks. - Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption - with AAD app.'1.1' corresponds to Azure Disk Encryption. - :vartype encryption_settings_version: str + :ivar encryptionSettings: A collection of encryption settings, one for each disk volume. + :vartype encryptionSettings: list["EncryptionSettingsElement"] + :ivar encryptionSettingsVersion: Describes what type of encryption is used for the disks. Once + this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with + AAD app.'1.1' corresponds to Azure Disk Encryption. + :vartype encryptionSettingsVersion: str """ enabled: Required[bool] @@ -2930,11 +3025,11 @@ class EncryptionSettingsCollection(TypedDict, total=False): class EncryptionSettingsElement(TypedDict, total=False): """Encryption settings for one disk volume. - :ivar disk_encryption_key: Key Vault Secret Url and vault id of the disk encryption key. - :vartype disk_encryption_key: "KeyVaultAndSecretReference" - :ivar key_encryption_key: Key Vault Key Url and vault id of the key encryption key. + :ivar diskEncryptionKey: Key Vault Secret Url and vault id of the disk encryption key. + :vartype diskEncryptionKey: "KeyVaultAndSecretReference" + :ivar keyEncryptionKey: Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key. - :vartype key_encryption_key: "KeyVaultAndKeyReference" + :vartype keyEncryptionKey: "KeyVaultAndKeyReference" """ diskEncryptionKey: "KeyVaultAndSecretReference" @@ -2950,9 +3045,9 @@ class EventGridAndResourceGraph(TypedDict, total=False): :ivar enable: Specifies if event grid and resource graph is enabled for Scheduled event related configurations. :vartype enable: bool - :ivar scheduled_events_api_version: Specifies the api-version to determine which Scheduled - Events configuration schema version will be delivered. - :vartype scheduled_events_api_version: str + :ivar scheduledEventsApiVersion: Specifies the api-version to determine which Scheduled Events + configuration schema version will be delivered. + :vartype scheduledEventsApiVersion: str """ enable: bool @@ -2973,8 +3068,8 @@ class ExecutedValidation(TypedDict, total=False): :vartype status: Union[str, "ValidationStatus"] :ivar version: This property specifies the valid version of the validation. :vartype version: str - :ivar execution_time: This property specifies the starting timestamp. - :vartype execution_time: str + :ivar executionTime: This property specifies the starting timestamp. + :vartype executionTime: str """ type: str @@ -3010,14 +3105,14 @@ class ExternalHealthPolicy(TypedDict, total=False): instances where another health monitoring source is active (ApplicationHealth extension or SLB). Defaults to false. :vartype enabled: bool - :ivar expiry_duration: Defines how long the health status set by External Health API will last + :ivar expiryDuration: Defines how long the health status set by External Health API will last on the VM. If a signal is not received/updated within this time, the VM Health will be marked as "unknown". Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 3 hours (PT3H). - :vartype expiry_duration: str - :ivar grace_period: Grace period for newly created VMs or when the External Health policy is + :vartype expiryDuration: str + :ivar gracePeriod: Grace period for newly created VMs or when the External Health policy is first applied on VMSS. Uses the ISO 8601 format. Minimum: 5 minutes (PT5M), Maximum: 4 hours (PT4H). - :vartype grace_period: str + :vartype gracePeriod: str """ enabled: bool @@ -3044,9 +3139,9 @@ class Gallery(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3075,9 +3170,9 @@ class GalleryApplication(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3128,8 +3223,8 @@ class GalleryApplicationCustomActionParameter(TypedDict, total=False): ConfigurationDataBlob or LogOutputBlob. Known values are: "String", "ConfigurationDataBlob", and "LogOutputBlob". :vartype type: Union[str, "GalleryApplicationCustomActionParameterType"] - :ivar default_value: The default value of the parameter. Only applies to string types. - :vartype default_value: str + :ivar defaultValue: The default value of the parameter. Only applies to string types. + :vartype defaultValue: str :ivar description: A description to help users understand what this parameter means. :vartype description: str """ @@ -3157,20 +3252,20 @@ class GalleryApplicationProperties(TypedDict, total=False): :vartype description: str :ivar eula: The Eula agreement for the gallery Application Definition. :vartype eula: str - :ivar privacy_statement_uri: The privacy statement uri. - :vartype privacy_statement_uri: str - :ivar release_note_uri: The release note uri. - :vartype release_note_uri: str - :ivar end_of_life_date: The end of life date of the gallery Application Definition. This - property can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar supported_os_type: This property allows you to specify the supported type of the OS that + :ivar privacyStatementUri: The privacy statement uri. + :vartype privacyStatementUri: str + :ivar releaseNoteUri: The release note uri. + :vartype releaseNoteUri: str + :ivar endOfLifeDate: The end of life date of the gallery Application Definition. This property + can be used for decommissioning purposes. This property is updatable. + :vartype endOfLifeDate: str + :ivar supportedOSType: This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :vartype supported_os_type: Union[str, "OperatingSystemTypes"] - :ivar custom_actions: A list of custom actions that can be performed with all of the Gallery + :vartype supportedOSType: Union[str, "OperatingSystemTypes"] + :ivar customActions: A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. - :vartype custom_actions: list["GalleryApplicationCustomAction"] + :vartype customActions: list["GalleryApplicationCustomAction"] """ description: str @@ -3246,9 +3341,9 @@ class GalleryApplicationVersion(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3264,15 +3359,15 @@ class GalleryApplicationVersion(TrackedResource): class GalleryApplicationVersionProperties(TypedDict, total=False): """Describes the properties of a gallery image version. - :ivar publishing_profile: The publishing profile of a gallery image version. Required. - :vartype publishing_profile: "GalleryApplicationVersionPublishingProfile" - :ivar safety_profile: The safety profile of the Gallery Application Version. - :vartype safety_profile: "GalleryApplicationVersionSafetyProfile" - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar publishingProfile: The publishing profile of a gallery image version. Required. + :vartype publishingProfile: "GalleryApplicationVersionPublishingProfile" + :ivar safetyProfile: The safety profile of the Gallery Application Version. + :vartype safetyProfile: "GalleryApplicationVersionSafetyProfile" + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar replication_status: This is the replication status of the gallery image version. - :vartype replication_status: "ReplicationStatus" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar replicationStatus: This is the replication status of the gallery image version. + :vartype replicationStatus: "ReplicationStatus" """ publishingProfile: Required["GalleryApplicationVersionPublishingProfile"] @@ -3289,36 +3384,36 @@ class GalleryApplicationVersionProperties(TypedDict, total=False): class GalleryArtifactPublishingProfileBase(TypedDict, total=False): """Describes the basic gallery artifact publishing profile. - :ivar target_regions: The target regions where the Image Version is going to be replicated to. + :ivar targetRegions: The target regions where the Image Version is going to be replicated to. This property is updatable. - :vartype target_regions: list["TargetRegion"] - :ivar replica_count: The number of replicas of the Image Version to be created per region. This + :vartype targetRegions: list["TargetRegion"] + :ivar replicaCount: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable. - :vartype replica_count: int - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype replicaCount: int + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the gallery image version is published. - :vartype published_date: str - :ivar end_of_life_date: The end of life date of the gallery image version. This property can be + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the gallery image version is published. + :vartype publishedDate: str + :ivar endOfLifeDate: The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :vartype endOfLifeDate: str + :ivar storageAccountType: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] - :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. + :vartype storageAccountType: Union[str, "StorageAccountType"] + :ivar replicationMode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". - :vartype replication_mode: Union[str, "ReplicationMode"] - :ivar target_extended_locations: The target extended locations where the Image Version is going + :vartype replicationMode: Union[str, "ReplicationMode"] + :ivar targetExtendedLocations: The target extended locations where the Image Version is going to be replicated to. This property is updatable. - :vartype target_extended_locations: list["GalleryTargetExtendedLocation"] - :ivar storage_account_strategy: Specifies the strategy to be used when selecting the storage + :vartype targetExtendedLocations: list["GalleryTargetExtendedLocation"] + :ivar storageAccountStrategy: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable. Known values are: "PreferStandard_ZRS" and "DefaultStandard_LRS". - :vartype storage_account_strategy: Union[str, "StorageAccountStrategy"] + :vartype storageAccountStrategy: Union[str, "StorageAccountStrategy"] """ targetRegions: list["TargetRegion"] @@ -3355,51 +3450,51 @@ class GalleryArtifactPublishingProfileBase(TypedDict, total=False): class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfileBase): # pylint: disable=name-too-long """The publishing profile of a gallery image version. - :ivar target_regions: The target regions where the Image Version is going to be replicated to. + :ivar targetRegions: The target regions where the Image Version is going to be replicated to. This property is updatable. - :vartype target_regions: list["TargetRegion"] - :ivar replica_count: The number of replicas of the Image Version to be created per region. This + :vartype targetRegions: list["TargetRegion"] + :ivar replicaCount: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable. - :vartype replica_count: int - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype replicaCount: int + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the gallery image version is published. - :vartype published_date: str - :ivar end_of_life_date: The end of life date of the gallery image version. This property can be + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the gallery image version is published. + :vartype publishedDate: str + :ivar endOfLifeDate: The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :vartype endOfLifeDate: str + :ivar storageAccountType: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] - :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. + :vartype storageAccountType: Union[str, "StorageAccountType"] + :ivar replicationMode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". - :vartype replication_mode: Union[str, "ReplicationMode"] - :ivar target_extended_locations: The target extended locations where the Image Version is going + :vartype replicationMode: Union[str, "ReplicationMode"] + :ivar targetExtendedLocations: The target extended locations where the Image Version is going to be replicated to. This property is updatable. - :vartype target_extended_locations: list["GalleryTargetExtendedLocation"] - :ivar storage_account_strategy: Specifies the strategy to be used when selecting the storage + :vartype targetExtendedLocations: list["GalleryTargetExtendedLocation"] + :ivar storageAccountStrategy: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable. Known values are: "PreferStandard_ZRS" and "DefaultStandard_LRS". - :vartype storage_account_strategy: Union[str, "StorageAccountStrategy"] + :vartype storageAccountStrategy: Union[str, "StorageAccountStrategy"] :ivar source: The source image from which the Image Version is going to be created. Required. :vartype source: "UserArtifactSource" - :ivar manage_actions: - :vartype manage_actions: "UserArtifactManage" + :ivar manageActions: + :vartype manageActions: "UserArtifactManage" :ivar settings: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. :vartype settings: "UserArtifactSettings" - :ivar advanced_settings: Optional. Additional settings to pass to the vm-application-manager + :ivar advancedSettings: Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only. - :vartype advanced_settings: dict[str, str] - :ivar enable_health_check: Optional. Whether or not this application reports health. - :vartype enable_health_check: bool - :ivar custom_actions: A list of custom actions that can be performed with this Gallery + :vartype advancedSettings: dict[str, str] + :ivar enableHealthCheck: Optional. Whether or not this application reports health. + :vartype enableHealthCheck: bool + :ivar customActions: A list of custom actions that can be performed with this Gallery Application Version. - :vartype custom_actions: list["GalleryApplicationCustomAction"] + :vartype customActions: list["GalleryApplicationCustomAction"] """ source: Required["UserArtifactSource"] @@ -3420,9 +3515,9 @@ class GalleryApplicationVersionPublishingProfile(GalleryArtifactPublishingProfil class GalleryArtifactSafetyProfileBase(TypedDict, total=False): """This is the safety profile of the Gallery Artifact Version. - :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery - Image Version from replicated regions is allowed. - :vartype allow_deletion_of_replicated_locations: bool + :ivar allowDeletionOfReplicatedLocations: Indicates whether or not removing this Gallery Image + Version from replicated regions is allowed. + :vartype allowDeletionOfReplicatedLocations: bool """ allowDeletionOfReplicatedLocations: bool @@ -3433,9 +3528,9 @@ class GalleryArtifactSafetyProfileBase(TypedDict, total=False): class GalleryApplicationVersionSafetyProfile(GalleryArtifactSafetyProfileBase): """The safety profile of the Gallery Application Version. - :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery - Image Version from replicated regions is allowed. - :vartype allow_deletion_of_replicated_locations: bool + :ivar allowDeletionOfReplicatedLocations: Indicates whether or not removing this Gallery Image + Version from replicated regions is allowed. + :vartype allowDeletionOfReplicatedLocations: bool """ @@ -3474,12 +3569,12 @@ class GalleryArtifactVersionFullSource(GalleryArtifactVersionSource): :ivar id: The id of the gallery artifact version source. :vartype id: str - :ivar community_gallery_image_id: The resource Id of the source Community Gallery Image. Only + :ivar communityGalleryImageId: The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. - :vartype community_gallery_image_id: str - :ivar virtual_machine_id: The resource Id of the source virtual machine. Only required when + :vartype communityGalleryImageId: str + :ivar virtualMachineId: The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version. - :vartype virtual_machine_id: str + :vartype virtualMachineId: str """ communityGalleryImageId: str @@ -3493,11 +3588,11 @@ class GalleryArtifactVersionFullSource(GalleryArtifactVersionSource): class GalleryDiskImage(TypedDict, total=False): """This is the disk image base class. - :ivar size_in_gb: This property indicates the size of the VHD to be created. - :vartype size_in_gb: int - :ivar host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and + :ivar sizeInGB: This property indicates the size of the VHD to be created. + :vartype sizeInGB: int + :ivar hostCaching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype host_caching: Union[str, "HostCaching"] + :vartype hostCaching: Union[str, "HostCaching"] :ivar source: The source for the disk image. :vartype source: "GalleryDiskImageSource" """ @@ -3514,11 +3609,11 @@ class GalleryDiskImage(TypedDict, total=False): class GalleryDataDiskImage(GalleryDiskImage): """This is the data disk image. - :ivar size_in_gb: This property indicates the size of the VHD to be created. - :vartype size_in_gb: int - :ivar host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and + :ivar sizeInGB: This property indicates the size of the VHD to be created. + :vartype sizeInGB: int + :ivar hostCaching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype host_caching: Union[str, "HostCaching"] + :vartype hostCaching: Union[str, "HostCaching"] :ivar source: The source for the disk image. :vartype source: "GalleryDiskImageSource" :ivar lun: This property specifies the logical unit number of the data disk. This value is used @@ -3541,9 +3636,9 @@ class GalleryDiskImageSource(GalleryArtifactVersionSource): :ivar uri: The uri of the gallery artifact version source. Currently used to specify vhd/blob source. :vartype uri: str - :ivar storage_account_id: The Storage Account Id that contains the vhd blob being used as a + :ivar storageAccountId: The Storage Account Id that contains the vhd blob being used as a source for this artifact version. - :vartype storage_account_id: str + :vartype storageAccountId: str """ uri: str @@ -3570,9 +3665,9 @@ class GalleryExtendedLocation(TypedDict, total=False): class GalleryIdentifier(TypedDict, total=False): """Describes the gallery unique name. - :ivar unique_name: The unique name of the Shared Image Gallery. This name is generated + :ivar uniqueName: The unique name of the Shared Image Gallery. This name is generated automatically by Azure. - :vartype unique_name: str + :vartype uniqueName: str """ uniqueName: str @@ -3582,21 +3677,21 @@ class GalleryIdentifier(TypedDict, total=False): class GalleryIdentity(TypedDict, total=False): """Identity for the virtual machine. - :ivar principal_id: The principal id of the gallery identity. This property will only be + :ivar principalId: The principal id of the gallery identity. This property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The AAD tenant id of the gallery identity. This property will only be provided + :vartype principalId: str + :ivar tenantId: The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". :vartype type: Union[str, "ResourceIdentityType"] - :ivar user_assigned_identities: The list of user identities associated with the gallery. The - user identity dictionary key references will be ARM resource ids in the form: + :ivar userAssignedIdentities: The list of user identities associated with the gallery. The user + identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentitiesValue"] + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"] """ principalId: str @@ -3627,9 +3722,9 @@ class GalleryImage(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3649,8 +3744,8 @@ class GalleryImageFeature(TypedDict, total=False): :vartype name: str :ivar value: The value of the gallery image feature. :vartype value: str - :ivar starts_at_version: The minimum gallery image version which supports this feature. - :vartype starts_at_version: str + :ivar startsAtVersion: The minimum gallery image version which supports this feature. + :vartype startsAtVersion: str """ name: str @@ -3688,24 +3783,24 @@ class GalleryImageProperties(TypedDict, total=False): :vartype description: str :ivar eula: The Eula agreement for the gallery image definition. :vartype eula: str - :ivar privacy_statement_uri: The privacy statement uri. - :vartype privacy_statement_uri: str - :ivar release_note_uri: The release note uri. - :vartype release_note_uri: str - :ivar os_type: This property allows you to specify the type of the OS that is included in the + :ivar privacyStatementUri: The privacy statement uri. + :vartype privacyStatementUri: str + :ivar releaseNoteUri: The release note uri. + :vartype releaseNoteUri: str + :ivar osType: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar os_state: This property allows the user to specify whether the virtual machines created + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar osState: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Required. Known values are: "Generalized" and "Specialized". - :vartype os_state: Union[str, "OperatingSystemStateTypes"] - :ivar hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS + :vartype osState: Union[str, "OperatingSystemStateTypes"] + :ivar hyperVGeneration: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGeneration"] - :ivar end_of_life_date: The end of life date of the gallery image definition. This property can - be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str + :vartype hyperVGeneration: Union[str, "HyperVGeneration"] + :ivar endOfLifeDate: The end of life date of the gallery image definition. This property can be + used for decommissioning purposes. This property is updatable. + :vartype endOfLifeDate: str :ivar identifier: This is the gallery image definition identifier. Required. :vartype identifier: "GalleryImageIdentifier" :ivar recommended: The properties describe the recommended machine configuration for this Image @@ -3713,20 +3808,20 @@ class GalleryImageProperties(TypedDict, total=False): :vartype recommended: "RecommendedMachineConfiguration" :ivar disallowed: Describes the disallowed disk types. :vartype disallowed: "Disallowed" - :ivar purchase_plan: Describes the gallery image definition purchase plan. This is used by + :ivar purchasePlan: Describes the gallery image definition purchase plan. This is used by marketplace images. - :vartype purchase_plan: "ImagePurchasePlan" - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :vartype purchasePlan: "ImagePurchasePlan" + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] + :vartype provisioningState: Union[str, "GalleryProvisioningState"] :ivar features: A list of gallery image features. :vartype features: list["GalleryImageFeature"] :ivar architecture: The architecture of the image. Applicable to OS disks only. Known values are: "x64" and "Arm64". :vartype architecture: Union[str, "Architecture"] - :ivar allow_update_image: Optional. Must be set to true if the gallery image features are being + :ivar allowUpdateImage: Optional. Must be set to true if the gallery image features are being updated. - :vartype allow_update_image: bool + :vartype allowUpdateImage: bool """ description: str @@ -3802,9 +3897,9 @@ class GalleryImageVersion(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3820,23 +3915,23 @@ class GalleryImageVersion(TrackedResource): class GalleryImageVersionProperties(TypedDict, total=False): """Describes the properties of a gallery image version. - :ivar publishing_profile: The publishing profile of a gallery image Version. - :vartype publishing_profile: "GalleryImageVersionPublishingProfile" - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar publishingProfile: The publishing profile of a gallery image Version. + :vartype publishingProfile: "GalleryImageVersionPublishingProfile" + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar storage_profile: This is the storage profile of a Gallery Image Version. Required. - :vartype storage_profile: "GalleryImageVersionStorageProfile" - :ivar safety_profile: This is the safety profile of the Gallery Image Version. - :vartype safety_profile: "GalleryImageVersionSafetyProfile" - :ivar replication_status: This is the replication status of the gallery image version. - :vartype replication_status: "ReplicationStatus" - :ivar security_profile: The security profile of a gallery image version. - :vartype security_profile: "ImageVersionSecurityProfile" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar storageProfile: This is the storage profile of a Gallery Image Version. Required. + :vartype storageProfile: "GalleryImageVersionStorageProfile" + :ivar safetyProfile: This is the safety profile of the Gallery Image Version. + :vartype safetyProfile: "GalleryImageVersionSafetyProfile" + :ivar replicationStatus: This is the replication status of the gallery image version. + :vartype replicationStatus: "ReplicationStatus" + :ivar securityProfile: The security profile of a gallery image version. + :vartype securityProfile: "ImageVersionSecurityProfile" :ivar restore: Indicates if this is a soft-delete resource restoration request. :vartype restore: bool - :ivar validations_profile: This is the validations profile of a Gallery Image Version. - :vartype validations_profile: "ValidationsProfile" + :ivar validationsProfile: This is the validations profile of a Gallery Image Version. + :vartype validationsProfile: "ValidationsProfile" """ publishingProfile: "GalleryImageVersionPublishingProfile" @@ -3861,54 +3956,54 @@ class GalleryImageVersionProperties(TypedDict, total=False): class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase): """The publishing profile of a gallery image Version. - :ivar target_regions: The target regions where the Image Version is going to be replicated to. + :ivar targetRegions: The target regions where the Image Version is going to be replicated to. This property is updatable. - :vartype target_regions: list["TargetRegion"] - :ivar replica_count: The number of replicas of the Image Version to be created per region. This + :vartype targetRegions: list["TargetRegion"] + :ivar replicaCount: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable. - :vartype replica_count: int - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype replicaCount: int + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the gallery image version is published. - :vartype published_date: str - :ivar end_of_life_date: The end of life date of the gallery image version. This property can be + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the gallery image version is published. + :vartype publishedDate: str + :ivar endOfLifeDate: The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :vartype endOfLifeDate: str + :ivar storageAccountType: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] - :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. + :vartype storageAccountType: Union[str, "StorageAccountType"] + :ivar replicationMode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". - :vartype replication_mode: Union[str, "ReplicationMode"] - :ivar target_extended_locations: The target extended locations where the Image Version is going + :vartype replicationMode: Union[str, "ReplicationMode"] + :ivar targetExtendedLocations: The target extended locations where the Image Version is going to be replicated to. This property is updatable. - :vartype target_extended_locations: list["GalleryTargetExtendedLocation"] - :ivar storage_account_strategy: Specifies the strategy to be used when selecting the storage + :vartype targetExtendedLocations: list["GalleryTargetExtendedLocation"] + :ivar storageAccountStrategy: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable. Known values are: "PreferStandard_ZRS" and "DefaultStandard_LRS". - :vartype storage_account_strategy: Union[str, "StorageAccountStrategy"] + :vartype storageAccountStrategy: Union[str, "StorageAccountStrategy"] """ class GalleryImageVersionSafetyProfile(GalleryArtifactSafetyProfileBase): """This is the safety profile of the Gallery Image Version. - :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery - Image Version from replicated regions is allowed. - :vartype allow_deletion_of_replicated_locations: bool - :ivar reported_for_policy_violation: Indicates whether this image has been reported as - violating Microsoft's policies. - :vartype reported_for_policy_violation: bool - :ivar policy_violations: A list of Policy Violations that have been reported for this Gallery + :ivar allowDeletionOfReplicatedLocations: Indicates whether or not removing this Gallery Image + Version from replicated regions is allowed. + :vartype allowDeletionOfReplicatedLocations: bool + :ivar reportedForPolicyViolation: Indicates whether this image has been reported as violating + Microsoft's policies. + :vartype reportedForPolicyViolation: bool + :ivar policyViolations: A list of Policy Violations that have been reported for this Gallery Image Version. - :vartype policy_violations: list["PolicyViolation"] - :ivar block_deletion_before_end_of_life: Indicates whether or not the deletion is blocked for - this Gallery Image Version if its End Of Life has not expired. - :vartype block_deletion_before_end_of_life: bool + :vartype policyViolations: list["PolicyViolation"] + :ivar blockDeletionBeforeEndOfLife: Indicates whether or not the deletion is blocked for this + Gallery Image Version if its End Of Life has not expired. + :vartype blockDeletionBeforeEndOfLife: bool """ reportedForPolicyViolation: bool @@ -3925,10 +4020,10 @@ class GalleryImageVersionStorageProfile(TypedDict, total=False): :ivar source: The source of the gallery artifact version. :vartype source: "GalleryArtifactVersionFullSource" - :ivar os_disk_image: This is the OS disk image. - :vartype os_disk_image: "GalleryOSDiskImage" - :ivar data_disk_images: A list of data disk images. - :vartype data_disk_images: list["GalleryDataDiskImage"] + :ivar osDiskImage: This is the OS disk image. + :vartype osDiskImage: "GalleryOSDiskImage" + :ivar dataDiskImages: A list of data disk images. + :vartype dataDiskImages: list["GalleryDataDiskImage"] """ source: "GalleryArtifactVersionFullSource" @@ -3942,12 +4037,12 @@ class GalleryImageVersionStorageProfile(TypedDict, total=False): class GalleryImageVersionUefiSettings(TypedDict, total=False): """Contains UEFI settings for the image version. - :ivar signature_template_names: The name of the template(s) that contains default UEFI key + :ivar signatureTemplateNames: The name of the template(s) that contains default UEFI key signatures that will be added to the image. - :vartype signature_template_names: list[Union[str, "UefiSignatureTemplateName"]] - :ivar additional_signatures: Additional UEFI key signatures that will be added to the image in + :vartype signatureTemplateNames: list[Union[str, "UefiSignatureTemplateName"]] + :ivar additionalSignatures: Additional UEFI key signatures that will be added to the image in addition to the signature templates. - :vartype additional_signatures: "UefiKeySignatures" + :vartype additionalSignatures: "UefiKeySignatures" """ signatureTemplateNames: list[Union[str, "UefiSignatureTemplateName"]] @@ -3989,9 +4084,9 @@ class GalleryInVMAccessControlProfile(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -4007,9 +4102,9 @@ class GalleryInVMAccessControlProfile(TrackedResource): class GalleryResourceProfilePropertiesBase(TypedDict, total=False): """The properties of a gallery ResourceProfile. - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] + :vartype provisioningState: Union[str, "GalleryProvisioningState"] """ provisioningState: Union[str, "GalleryProvisioningState"] @@ -4020,20 +4115,20 @@ class GalleryResourceProfilePropertiesBase(TypedDict, total=False): class GalleryInVMAccessControlProfileProperties(GalleryResourceProfilePropertiesBase): # pylint: disable=name-too-long """Describes the properties of a gallery inVMAccessControlProfile. - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] + :vartype provisioningState: Union[str, "GalleryProvisioningState"] :ivar description: The description of this gallery inVMAccessControlProfile resources. This property is updatable. :vartype description: str - :ivar os_type: This property allows you to specify the OS type of the VMs/VMSS for which this + :ivar osType: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'. Required. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar applicable_host_endpoint: This property allows you to specify the Endpoint type for which + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar applicableHostEndpoint: This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. Required. Known values are: "WireServer" and "IMDS". - :vartype applicable_host_endpoint: Union[str, "EndpointTypes"] + :vartype applicableHostEndpoint: Union[str, "EndpointTypes"] """ description: str @@ -4079,9 +4174,9 @@ class GalleryInVMAccessControlProfileVersion(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -4097,19 +4192,19 @@ class GalleryInVMAccessControlProfileVersion(TrackedResource): class GalleryResourceProfileVersionPropertiesBase(TypedDict, total=False): # pylint: disable=name-too-long """The properties of a gallery ResourceProfile version. - :ivar target_locations: The target regions where the Resource Profile version is going to be + :ivar targetLocations: The target regions where the Resource Profile version is going to be replicated to. This property is updatable. - :vartype target_locations: list["TargetRegion"] - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype targetLocations: list["TargetRegion"] + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the Resource Profile Version is published. - :vartype published_date: str - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the Resource Profile Version is published. + :vartype publishedDate: str + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar replication_status: This is the replication status of the gallery image version. - :vartype replication_status: "ReplicationStatus" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar replicationStatus: This is the replication status of the gallery image version. + :vartype replicationStatus: "ReplicationStatus" """ targetLocations: list["TargetRegion"] @@ -4132,27 +4227,27 @@ class GalleryInVMAccessControlProfileVersionProperties( ): # pylint: disable=name-too-long """Describes the properties of an inVMAccessControlProfile version. - :ivar target_locations: The target regions where the Resource Profile version is going to be + :ivar targetLocations: The target regions where the Resource Profile version is going to be replicated to. This property is updatable. - :vartype target_locations: list["TargetRegion"] - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype targetLocations: list["TargetRegion"] + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the Resource Profile Version is published. - :vartype published_date: str - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the Resource Profile Version is published. + :vartype publishedDate: str + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar replication_status: This is the replication status of the gallery image version. - :vartype replication_status: "ReplicationStatus" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar replicationStatus: This is the replication status of the gallery image version. + :vartype replicationStatus: "ReplicationStatus" :ivar mode: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. Required. Known values are: "Audit", "Enforce", and "Disabled". :vartype mode: Union[str, "AccessControlRulesMode"] - :ivar default_access: This property allows you to specify if the requests will be allowed to + :ivar defaultAccess: This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. Required. Known values are: "Allow" and "Deny". - :vartype default_access: Union[str, "EndpointAccess"] + :vartype defaultAccess: Union[str, "EndpointAccess"] :ivar rules: This is the Access Control Rules specification for an inVMAccessControlProfile version. :vartype rules: "AccessControlRules" @@ -4193,11 +4288,11 @@ class GalleryInVMAccessControlProfileVersionUpdate(UpdateResourceDefinition): # class GalleryOSDiskImage(GalleryDiskImage): """This is the OS disk image. - :ivar size_in_gb: This property indicates the size of the VHD to be created. - :vartype size_in_gb: int - :ivar host_caching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and + :ivar sizeInGB: This property indicates the size of the VHD to be created. + :vartype sizeInGB: int + :ivar hostCaching: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype host_caching: Union[str, "HostCaching"] + :vartype hostCaching: Union[str, "HostCaching"] :ivar source: The source for the disk image. :vartype source: "GalleryDiskImageSource" """ @@ -4211,15 +4306,15 @@ class GalleryProperties(TypedDict, total=False): :vartype description: str :ivar identifier: Describes the gallery unique name. :vartype identifier: "GalleryIdentifier" - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar sharing_profile: Profile for gallery sharing to subscription or tenant. - :vartype sharing_profile: "SharingProfile" - :ivar soft_delete_policy: Contains information about the soft deletion policy of the gallery. - :vartype soft_delete_policy: "SoftDeletePolicy" - :ivar sharing_status: Sharing status of current gallery. - :vartype sharing_status: "SharingStatus" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar sharingProfile: Profile for gallery sharing to subscription or tenant. + :vartype sharingProfile: "SharingProfile" + :ivar softDeletePolicy: Contains information about the soft deletion policy of the gallery. + :vartype softDeletePolicy: "SoftDeletePolicy" + :ivar sharingStatus: Sharing status of current gallery. + :vartype sharingStatus: "SharingStatus" """ description: str @@ -4248,9 +4343,9 @@ class GalleryScript(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -4270,8 +4365,8 @@ class GenericGalleryParameter(TypedDict, total=False): :vartype name: str :ivar required: Indicates whether this parameter must be passed. :vartype required: bool - :ivar default_value: The default value of the parameter, only applies to string types. - :vartype default_value: str + :ivar defaultValue: The default value of the parameter, only applies to string types. + :vartype defaultValue: str :ivar description: A description to help users understand what this parameter means. :vartype description: str """ @@ -4293,20 +4388,20 @@ class GalleryScriptParameter(GenericGalleryParameter): :vartype name: str :ivar required: Indicates whether this parameter must be passed. :vartype required: bool - :ivar default_value: The default value of the parameter, only applies to string types. - :vartype default_value: str + :ivar defaultValue: The default value of the parameter, only applies to string types. + :vartype defaultValue: str :ivar description: A description to help users understand what this parameter means. :vartype description: str :ivar type: Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum. Known values are: "String", "Int", "Double", "Boolean", and "Enum". :vartype type: Union[str, "GalleryScriptParameterType"] - :ivar min_value: The minimum value of parameter. - :vartype min_value: str - :ivar max_value: The minimum value of parameter. - :vartype max_value: str - :ivar enum_values: A list of permissible values. Only applicable values are from 'enum' values + :ivar minValue: The minimum value of parameter. + :vartype minValue: str + :ivar maxValue: The minimum value of parameter. + :vartype maxValue: str + :ivar enumValues: A list of permissible values. Only applicable values are from 'enum' values defined in 'GalleryScriptParameter'. - :vartype enum_values: list[str] + :vartype enumValues: list[str] """ type: Union[str, "GalleryScriptParameterType"] @@ -4329,20 +4424,20 @@ class GalleryScriptProperties(TypedDict, total=False): :vartype description: str :ivar eula: The Eula agreement (End User License Agreement) for the gallery Script Definition. :vartype eula: str - :ivar privacy_statement_uri: The privacy statement uri. - :vartype privacy_statement_uri: str - :ivar release_note_uri: The release note uri. - :vartype release_note_uri: str - :ivar end_of_life_date: The end of life date of the gallery Script Definition. This property - can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar supported_os_type: This property allows you to specify the supported type of the OS that + :ivar privacyStatementUri: The privacy statement uri. + :vartype privacyStatementUri: str + :ivar releaseNoteUri: The release note uri. + :vartype releaseNoteUri: str + :ivar endOfLifeDate: The end of life date of the gallery Script Definition. This property can + be used for decommissioning purposes. This property is updatable. + :vartype endOfLifeDate: str + :ivar supportedOSType: This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :vartype supported_os_type: Union[str, "OperatingSystemTypes"] - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :vartype supportedOSType: Union[str, "OperatingSystemTypes"] + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] + :vartype provisioningState: Union[str, "GalleryProvisioningState"] """ description: str @@ -4396,9 +4491,9 @@ class GalleryScriptVersion(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -4414,15 +4509,15 @@ class GalleryScriptVersion(TrackedResource): class GalleryScriptVersionProperties(TypedDict, total=False): """Describes the properties of a gallery script version. - :ivar publishing_profile: The publishing profile of a gallery image version. Required. - :vartype publishing_profile: "GalleryScriptVersionPublishingProfile" - :ivar safety_profile: The safety profile of the Gallery Script Version. - :vartype safety_profile: "GalleryScriptVersionSafetyProfile" - :ivar provisioning_state: The provisioning state, which only appears in the response. Known + :ivar publishingProfile: The publishing profile of a gallery image version. Required. + :vartype publishingProfile: "GalleryScriptVersionPublishingProfile" + :ivar safetyProfile: The safety profile of the Gallery Script Version. + :vartype safetyProfile: "GalleryScriptVersionSafetyProfile" + :ivar provisioningState: The provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". - :vartype provisioning_state: Union[str, "GalleryProvisioningState"] - :ivar replication_status: This is the replication status of the gallery image version. - :vartype replication_status: "ReplicationStatus" + :vartype provisioningState: Union[str, "GalleryProvisioningState"] + :ivar replicationStatus: This is the replication status of the gallery image version. + :vartype replicationStatus: "ReplicationStatus" """ publishingProfile: Required["GalleryScriptVersionPublishingProfile"] @@ -4439,36 +4534,36 @@ class GalleryScriptVersionProperties(TypedDict, total=False): class GalleryScriptVersionPublishingProfile(GalleryArtifactPublishingProfileBase): """The publishing profile of a gallery image version. - :ivar target_regions: The target regions where the Image Version is going to be replicated to. + :ivar targetRegions: The target regions where the Image Version is going to be replicated to. This property is updatable. - :vartype target_regions: list["TargetRegion"] - :ivar replica_count: The number of replicas of the Image Version to be created per region. This + :vartype targetRegions: list["TargetRegion"] + :ivar replicaCount: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable. - :vartype replica_count: int - :ivar exclude_from_latest: If set to true, Virtual Machines deployed from the latest version of + :vartype replicaCount: int + :ivar excludeFromLatest: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. - :vartype exclude_from_latest: bool - :ivar published_date: The timestamp for when the gallery image version is published. - :vartype published_date: str - :ivar end_of_life_date: The end of life date of the gallery image version. This property can be + :vartype excludeFromLatest: bool + :ivar publishedDate: The timestamp for when the gallery image version is published. + :vartype publishedDate: str + :ivar endOfLifeDate: The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable. - :vartype end_of_life_date: str - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :vartype endOfLifeDate: str + :ivar storageAccountType: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] - :ivar replication_mode: Optional parameter which specifies the mode to be used for replication. + :vartype storageAccountType: Union[str, "StorageAccountType"] + :ivar replicationMode: Optional parameter which specifies the mode to be used for replication. This property is not updatable. Known values are: "Full" and "Shallow". - :vartype replication_mode: Union[str, "ReplicationMode"] - :ivar target_extended_locations: The target extended locations where the Image Version is going + :vartype replicationMode: Union[str, "ReplicationMode"] + :ivar targetExtendedLocations: The target extended locations where the Image Version is going to be replicated to. This property is updatable. - :vartype target_extended_locations: list["GalleryTargetExtendedLocation"] - :ivar storage_account_strategy: Specifies the strategy to be used when selecting the storage + :vartype targetExtendedLocations: list["GalleryTargetExtendedLocation"] + :ivar storageAccountStrategy: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable. Known values are: "PreferStandard_ZRS" and "DefaultStandard_LRS". - :vartype storage_account_strategy: Union[str, "StorageAccountStrategy"] + :vartype storageAccountStrategy: Union[str, "StorageAccountStrategy"] :ivar source: The source script from which the Script Version is going to be created. Required. :vartype source: "ScriptSource" """ @@ -4480,9 +4575,9 @@ class GalleryScriptVersionPublishingProfile(GalleryArtifactPublishingProfileBase class GalleryScriptVersionSafetyProfile(GalleryArtifactSafetyProfileBase): """The safety profile of the Gallery Script Version. - :ivar allow_deletion_of_replicated_locations: Indicates whether or not removing this Gallery - Image Version from replicated regions is allowed. - :vartype allow_deletion_of_replicated_locations: bool + :ivar allowDeletionOfReplicatedLocations: Indicates whether or not removing this Gallery Image + Version from replicated regions is allowed. + :vartype allowDeletionOfReplicatedLocations: bool """ @@ -4510,15 +4605,15 @@ class GalleryTargetExtendedLocation(TypedDict, total=False): :ivar name: The name of the region. :vartype name: str - :ivar extended_location: The name of the extended location. - :vartype extended_location: "GalleryExtendedLocation" - :ivar extended_location_replica_count: The number of replicas of the Image Version to be - created per extended location. This property is updatable. - :vartype extended_location_replica_count: int - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :ivar extendedLocation: The name of the extended location. + :vartype extendedLocation: "GalleryExtendedLocation" + :ivar extendedLocationReplicaCount: The number of replicas of the Image Version to be created + per extended location. This property is updatable. + :vartype extendedLocationReplicaCount: int + :ivar storageAccountType: Specifies the storage account type to be used to store the image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "StandardSSD_LRS", and "Premium_LRS". - :vartype storage_account_type: Union[str, "EdgeZoneStorageAccountType"] + :vartype storageAccountType: Union[str, "EdgeZoneStorageAccountType"] :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. :vartype encryption: "EncryptionImages" @@ -4569,14 +4664,13 @@ class GrantAccessData(TypedDict, total=False): :ivar access: The Access Level, accepted values include None, Read, Write. Required. Known values are: "None", "Read", and "Write". :vartype access: Union[str, "AccessLevel"] - :ivar duration_in_seconds: Time duration in seconds until the SAS access expires. Required. - :vartype duration_in_seconds: int - :ivar get_secure_vm_guest_state_sas: Set this flag to true to get additional SAS for VM guest - state. - :vartype get_secure_vm_guest_state_sas: bool - :ivar file_format: Used to specify the file format when making request for SAS on a VHDX file + :ivar durationInSeconds: Time duration in seconds until the SAS access expires. Required. + :vartype durationInSeconds: int + :ivar getSecureVMGuestStateSAS: Set this flag to true to get additional SAS for VM guest state. + :vartype getSecureVMGuestStateSAS: bool + :ivar fileFormat: Used to specify the file format when making request for SAS on a VHDX file format snapshot. Known values are: "VHD" and "VHDX". - :vartype file_format: Union[str, "FileFormat"] + :vartype fileFormat: Union[str, "FileFormat"] """ access: Required[Union[str, "AccessLevel"]] @@ -4594,7 +4688,7 @@ class GrantAccessData(TypedDict, total=False): class HardwareProfile(TypedDict, total=False): """Specifies the hardware settings for the virtual machine. - :ivar vm_size: Specifies the size of the virtual machine. The enum data type is currently + :ivar vmSize: Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: `List all available virtual machine sizes in an availability set @@ -4640,12 +4734,17 @@ class HardwareProfile(TypedDict, total=False): "Standard_NC12s_v3", "Standard_NC24s_v3", "Standard_NC24rs_v3", "Standard_ND6s", "Standard_ND12s", "Standard_ND24s", "Standard_ND24rs", "Standard_NV6", "Standard_NV12", and "Standard_NV24". - :vartype vm_size: Union[str, "VirtualMachineSizeTypes"] - :ivar vm_size_properties: Specifies the properties for customizing the size of the virtual + :vartype vmSize: Union[str, "VirtualMachineSizeTypes"] + :ivar vmSizeProperties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details. - :vartype vm_size_properties: "VMSizeProperties" + :vartype vmSizeProperties: "VMSizeProperties" + :ivar processorMode: Specifies the processor mode for the virtual machine or virtual machine + scale set. Optional; if omitted, the platform default applies (currently Deterministic). This + property can be updated on a running VM or VMSS without deallocation or reboot. Minimum + api-version: 2026-04-01. Known values are: "Deterministic" and "Opportunistic". + :vartype processorMode: Union[str, "ProcessorMode"] """ vmSize: Union[str, "VirtualMachineSizeTypes"] @@ -4703,6 +4802,11 @@ class HardwareProfile(TypedDict, total=False): 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details.""" + processorMode: Union[str, "ProcessorMode"] + """Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if + omitted, the platform default applies (currently Deterministic). This property can be updated + on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. Known + values are: \"Deterministic\" and \"Opportunistic\".""" class HostEndpointSettings(TypedDict, total=False): @@ -4714,10 +4818,13 @@ class HostEndpointSettings(TypedDict, total=False): access control and it is the recommended mode of operation. Known values are: "Audit", "Enforce", and "Disabled". :vartype mode: Union[str, "Modes"] - :ivar in_vm_access_control_profile_reference_id: Specifies the InVMAccessControlProfileVersion + :ivar inVMAccessControlProfileReferenceId: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}. - :vartype in_vm_access_control_profile_reference_id: str + :vartype inVMAccessControlProfileReferenceId: str + :ivar useLocalFileRules: When set to true, instructs the GuestProxyAgent inside the VM to load + additional access control rules defined in a local file on the VM. + :vartype useLocalFileRules: bool """ mode: Union[str, "Modes"] @@ -4729,6 +4836,9 @@ class HostEndpointSettings(TypedDict, total=False): inVMAccessControlProfileReferenceId: str """Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.""" + useLocalFileRules: bool + """When set to true, instructs the GuestProxyAgent inside the VM to load additional access control + rules defined in a local file on the VM.""" class Image(TrackedResource): @@ -4744,17 +4854,17 @@ class Image(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: Describes the properties of an Image. :vartype properties: "ImageProperties" - :ivar extended_location: The extended location of the Image. - :vartype extended_location: "ExtendedLocation" + :ivar extendedLocation: The extended location of the Image. + :vartype extendedLocation: "ExtendedLocation" """ properties: "ImageProperties" @@ -4768,26 +4878,26 @@ class ImageDisk(TypedDict, total=False): :ivar snapshot: The snapshot. :vartype snapshot: "SubResource" - :ivar managed_disk: The managedDisk. - :vartype managed_disk: "SubResource" - :ivar blob_uri: The Virtual Hard Disk. - :vartype blob_uri: str + :ivar managedDisk: The managedDisk. + :vartype managedDisk: "SubResource" + :ivar blobUri: The Virtual Hard Disk. + :vartype blobUri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be - used to overwrite the name of the disk in a virtual machine image. This value cannot be larger - than 1023 GB. - :vartype disk_size_gb: int - :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: + :ivar diskSizeGB: Specifies the size of empty data disks in gigabytes. This element can be used + to overwrite the name of the disk in a virtual machine image. This value cannot be larger than + 1023 GB. + :vartype diskSizeGB: int + :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed image disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" + :vartype storageAccountType: Union[str, "StorageAccountTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed image disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" """ snapshot: "SubResource" @@ -4817,26 +4927,26 @@ class ImageDataDisk(ImageDisk): :ivar snapshot: The snapshot. :vartype snapshot: "SubResource" - :ivar managed_disk: The managedDisk. - :vartype managed_disk: "SubResource" - :ivar blob_uri: The Virtual Hard Disk. - :vartype blob_uri: str + :ivar managedDisk: The managedDisk. + :vartype managedDisk: "SubResource" + :ivar blobUri: The Virtual Hard Disk. + :vartype blobUri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be - used to overwrite the name of the disk in a virtual machine image. This value cannot be larger - than 1023 GB. - :vartype disk_size_gb: int - :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: + :ivar diskSizeGB: Specifies the size of empty data disks in gigabytes. This element can be used + to overwrite the name of the disk in a virtual machine image. This value cannot be larger than + 1023 GB. + :vartype diskSizeGB: int + :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed image disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" + :vartype storageAccountType: Union[str, "StorageAccountTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed image disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" :ivar lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required. @@ -4854,12 +4964,12 @@ class ImageDiskReference(TypedDict, total=False): :ivar id: A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. :vartype id: str - :ivar shared_gallery_image_id: A relative uri containing a direct shared Azure Compute Gallery + :ivar sharedGalleryImageId: A relative uri containing a direct shared Azure Compute Gallery image reference. - :vartype shared_gallery_image_id: str - :ivar community_gallery_image_id: A relative uri containing a community Azure Compute Gallery + :vartype sharedGalleryImageId: str + :ivar communityGalleryImageId: A relative uri containing a community Azure Compute Gallery image reference. - :vartype community_gallery_image_id: str + :vartype communityGalleryImageId: str :ivar lun: If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. :vartype lun: int @@ -4882,33 +4992,33 @@ class ImageOSDisk(ImageDisk): :ivar snapshot: The snapshot. :vartype snapshot: "SubResource" - :ivar managed_disk: The managedDisk. - :vartype managed_disk: "SubResource" - :ivar blob_uri: The Virtual Hard Disk. - :vartype blob_uri: str + :ivar managedDisk: The managedDisk. + :vartype managedDisk: "SubResource" + :ivar blobUri: The Virtual Hard Disk. + :vartype blobUri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be - used to overwrite the name of the disk in a virtual machine image. This value cannot be larger - than 1023 GB. - :vartype disk_size_gb: int - :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: + :ivar diskSizeGB: Specifies the size of empty data disks in gigabytes. This element can be used + to overwrite the name of the disk in a virtual machine image. This value cannot be larger than + 1023 GB. + :vartype diskSizeGB: int + :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed image disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" - :ivar os_type: This property allows you to specify the type of the OS that is included in the + :vartype storageAccountType: Union[str, "StorageAccountTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed image disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" + :ivar osType: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar os_state: The OS State. For managed images, use Generalized. Required. Known values are: + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar osState: The OS State. For managed images, use Generalized. Required. Known values are: "Generalized" and "Specialized". - :vartype os_state: Union[str, "OperatingSystemStateTypes"] + :vartype osState: Union[str, "OperatingSystemStateTypes"] """ osType: Required[Union[str, "OperatingSystemTypes"]] @@ -4923,18 +5033,18 @@ class ImageOSDisk(ImageDisk): class ImageProperties(TypedDict, total=False): """Describes the properties of an Image. - :ivar source_virtual_machine: The source virtual machine from which Image is created. - :vartype source_virtual_machine: "SubResource" - :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: "ImageStorageProfile" - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - :ivar hyper_v_generation: Specifies the HyperVGenerationType of the VirtualMachine created from + :ivar sourceVirtualMachine: The source virtual machine from which Image is created. + :vartype sourceVirtualMachine: "SubResource" + :ivar storageProfile: Specifies the storage settings for the virtual machine disks. + :vartype storageProfile: "ImageStorageProfile" + :ivar provisioningState: The provisioning state. + :vartype provisioningState: str + :ivar hyperVGeneration: Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGenerationTypes"] + :vartype hyperVGeneration: Union[str, "HyperVGenerationTypes"] """ sourceVirtualMachine: "SubResource" @@ -4996,16 +5106,16 @@ class ImageReference(SubResource): '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input. :vartype version: str - :ivar exact_version: Specifies in decimal numbers, the version of platform image or marketplace + :ivar exactVersion: Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. - :vartype exact_version: str - :ivar shared_gallery_image_id: Specified the shared gallery image unique id for vm deployment. + :vartype exactVersion: str + :ivar sharedGalleryImageId: Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. - :vartype shared_gallery_image_id: str - :ivar community_gallery_image_id: Specified the community gallery image unique id for vm + :vartype sharedGalleryImageId: str + :ivar communityGalleryImageId: Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. - :vartype community_gallery_image_id: str + :vartype communityGalleryImageId: str """ publisher: str @@ -5040,17 +5150,17 @@ class ImageReference(SubResource): class ImageStorageProfile(TypedDict, total=False): """Describes a storage profile. - :ivar os_disk: Specifies information about the operating system disk used by the virtual + :ivar osDisk: Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: "ImageOSDisk" - :ivar data_disks: Specifies the parameters that are used to add a data disk to a virtual + :vartype osDisk: "ImageOSDisk" + :ivar dataDisks: Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype data_disks: list["ImageDataDisk"] - :ivar zone_resilient: Specifies whether an image is zone resilient or not. Default is false. + :vartype dataDisks: list["ImageDataDisk"] + :ivar zoneResilient: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). - :vartype zone_resilient: bool + :vartype zoneResilient: bool """ osDisk: "ImageOSDisk" @@ -5082,8 +5192,8 @@ class ImageUpdate(UpdateResource): class ImageVersionSecurityProfile(TypedDict, total=False): """The security profile of a gallery image version. - :ivar uefi_settings: Contains UEFI settings for the image version. - :vartype uefi_settings: "GalleryImageVersionUefiSettings" + :ivar uefiSettings: Contains UEFI settings for the image version. + :vartype uefiSettings: "GalleryImageVersionUefiSettings" """ uefiSettings: "GalleryImageVersionUefiSettings" @@ -5093,18 +5203,16 @@ class ImageVersionSecurityProfile(TypedDict, total=False): class ImmutabilityPolicy(TypedDict, total=False): """The immutability policy currently applied to a snapshot. - :ivar immutability_duration_days: The immutability duration for the snapshot, in number of - days. - :vartype immutability_duration_days: int + :ivar immutabilityDurationDays: The immutability duration for the snapshot, in number of days. + :vartype immutabilityDurationDays: int :ivar type: The type of the immutability policy. Known values are: "Unlocked" and "Locked". :vartype type: Union[str, "ImmutabilityPolicyType"] - :ivar policy_start_time: The time when the immutability policy was set on the snapshot. - :vartype policy_start_time: str - :ivar policy_expiration_time: The time when the immutability policy will expire on the - snapshot. - :vartype policy_expiration_time: str - :ivar is_policy_expired: Indicates whether the immutability policy has expired. - :vartype is_policy_expired: bool + :ivar policyStartTime: The time when the immutability policy was set on the snapshot. + :vartype policyStartTime: str + :ivar policyExpirationTime: The time when the immutability policy will expire on the snapshot. + :vartype policyExpirationTime: str + :ivar isPolicyExpired: Indicates whether the immutability policy has expired. + :vartype isPolicyExpired: bool """ immutabilityDurationDays: int @@ -5122,9 +5230,9 @@ class ImmutabilityPolicy(TypedDict, total=False): class ImmutabilityPolicyData(TypedDict, total=False): """Data used for updating the immutability policy of a snapshot. - :ivar immutability_duration_days: The immutability duration for the snapshot, in number of - days. Required. - :vartype immutability_duration_days: int + :ivar immutabilityDurationDays: The immutability duration for the snapshot, in number of days. + Required. + :vartype immutabilityDurationDays: int :ivar type: The type of the immutability policy. 'Unlocked' allows the policy to be modified by privileged users; 'Locked' prevents reduction of the immutability duration but allows extension of the lock period. Required. Known values are: "Unlocked" and "Locked". @@ -5142,9 +5250,9 @@ class ImmutabilityPolicyData(TypedDict, total=False): class ImmutabilityPolicyLockData(TypedDict, total=False): """Data used for locking the immutability policy of a snapshot. - :ivar immutability_duration_days: The immutability duration for the snapshot, in number of - days. Required. - :vartype immutability_duration_days: int + :ivar immutabilityDurationDays: The immutability duration for the snapshot, in number of days. + Required. + :vartype immutabilityDurationDays: int :ivar type: The type of the immutability policy. 'Unlocked' allows the policy to be modified by privileged users; 'Locked' prevents reduction of the immutability duration but allows extension of the lock period. Required. Known values are: "Unlocked" and "Locked". @@ -5181,8 +5289,8 @@ class InstanceViewStatus(TypedDict, total=False): :vartype code: str :ivar level: The level code. Known values are: "Info", "Warning", and "Error". :vartype level: Union[str, "StatusLevelTypes"] - :ivar display_status: The short localizable label for the status. - :vartype display_status: str + :ivar displayStatus: The short localizable label for the status. + :vartype displayStatus: str :ivar message: The detailed status message, including for alerts and error messages. :vartype message: str :ivar time: The time of the status. @@ -5212,9 +5320,9 @@ class InterconnectBlock(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -5249,8 +5357,8 @@ class InterconnectBlock(TrackedResource): class InterconnectBlockInstanceView(TypedDict, total=False): """The instance view of an Interconnect Block. - :ivar current_capacity: The current capacity allocated for this Interconnect Block. - :vartype current_capacity: int + :ivar currentCapacity: The current capacity allocated for this Interconnect Block. + :vartype currentCapacity: int :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] """ @@ -5264,10 +5372,10 @@ class InterconnectBlockInstanceView(TypedDict, total=False): class InterconnectBlockProfile(TypedDict, total=False): """The parameters of an Interconnect Block Profile. - :ivar interconnect_block: Specifies the Interconnect Block resource ID that should be used for + :ivar interconnectBlock: Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved. - :vartype interconnect_block: "ApiEntityReference" + :vartype interconnectBlock: "ApiEntityReference" """ interconnectBlock: "ApiEntityReference" @@ -5278,23 +5386,23 @@ class InterconnectBlockProfile(TypedDict, total=False): class InterconnectBlockProperties(TypedDict, total=False): """Properties of the Interconnect Block. - :ivar virtual_machines_associated: A list of all virtual machine resource ids that are - associated with the Interconnect Block. - :vartype virtual_machines_associated: list["SubResourceReadOnly"] - :ivar interconnect_group: The Microsoft.Network/interconnectGroups resource that this + :ivar virtualMachinesAssociated: A list of all virtual machine resource ids that are associated + with the Interconnect Block. + :vartype virtualMachinesAssociated: list["SubResourceReadOnly"] + :ivar interconnectGroup: The Microsoft.Network/interconnectGroups resource that this Interconnect Block is associated with. Required at create and immutable thereafter. Required. - :vartype interconnect_group: "ApiEntityReference" - :ivar interconnect_block_id: A unique id (GUID) generated and assigned to the Interconnect - Block by the platform which does not change throughout the lifetime of the resource. - :vartype interconnect_block_id: str - :ivar provisioning_time: The date time when the Interconnect Block was last updated. - :vartype provisioning_time: str - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar instance_view: The Interconnect Block instance view. - :vartype instance_view: "InterconnectBlockInstanceView" - :ivar time_created: Specifies the time at which the Interconnect Block resource was created. - :vartype time_created: str + :vartype interconnectGroup: "ApiEntityReference" + :ivar interconnectBlockId: A unique id (GUID) generated and assigned to the Interconnect Block + by the platform which does not change throughout the lifetime of the resource. + :vartype interconnectBlockId: str + :ivar provisioningTime: The date time when the Interconnect Block was last updated. + :vartype provisioningTime: str + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar instanceView: The Interconnect Block instance view. + :vartype instanceView: "InterconnectBlockInstanceView" + :ivar timeCreated: Specifies the time at which the Interconnect Block resource was created. + :vartype timeCreated: str """ virtualMachinesAssociated: list["SubResourceReadOnly"] @@ -5334,8 +5442,8 @@ class InterconnectGroupProfile(TypedDict, total=False): """Specifies the interconnect group profile for a virtual machine, used to associate the VM with an interconnect group and subgroups. - :ivar interconnect_group: Reference to the interconnect group resource. - :vartype interconnect_group: "SubResource" + :ivar interconnectGroup: Reference to the interconnect group resource. + :vartype interconnectGroup: "SubResource" :ivar subgroups: The list of subgroup references within the interconnect group. :vartype subgroups: list["SubResource"] """ @@ -5349,9 +5457,9 @@ class InterconnectGroupProfile(TypedDict, total=False): class InterconnectInstanceView(TypedDict, total=False): """The Interconnect Block instance view details for a Virtual Machine or Scale Set VM instance. - :ivar interconnect_subgroup_id: The ID (GUID) of the Interconnect subgroup in which the Virtual + :ivar interconnectSubgroupId: The ID (GUID) of the Interconnect subgroup in which the Virtual Machine was placed. - :vartype interconnect_subgroup_id: str + :vartype interconnectSubgroupId: str """ interconnectSubgroupId: str @@ -5361,13 +5469,13 @@ class InterconnectInstanceView(TypedDict, total=False): class KeyForDiskEncryptionSet(TypedDict, total=False): """Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots. - :ivar source_vault: Resource id of the KeyVault containing the key or secret. This property is + :ivar sourceVault: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription. - :vartype source_vault: "SourceVault" - :ivar key_url: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the - Url is required regardless of rotationToLatestKeyVersionEnabled value. Required. - :vartype key_url: str + :vartype sourceVault: "SourceVault" + :ivar keyUrl: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url + is required regardless of rotationToLatestKeyVersionEnabled value. Required. + :vartype keyUrl: str """ sourceVault: "SourceVault" @@ -5382,10 +5490,10 @@ class KeyVaultAndKeyReference(TypedDict, total=False): """Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey. - :ivar source_vault: Resource id of the KeyVault containing the key or secret. Required. - :vartype source_vault: "SourceVault" - :ivar key_url: Url pointing to a key or secret in KeyVault. Required. - :vartype key_url: str + :ivar sourceVault: Resource id of the KeyVault containing the key or secret. Required. + :vartype sourceVault: "SourceVault" + :ivar keyUrl: Url pointing to a key or secret in KeyVault. Required. + :vartype keyUrl: str """ sourceVault: Required["SourceVault"] @@ -5397,10 +5505,10 @@ class KeyVaultAndKeyReference(TypedDict, total=False): class KeyVaultAndSecretReference(TypedDict, total=False): """Key Vault Secret Url and vault id of the encryption key. - :ivar source_vault: Resource id of the KeyVault containing the key or secret. Required. - :vartype source_vault: "SourceVault" - :ivar secret_url: Url pointing to a key or secret in KeyVault. Required. - :vartype secret_url: str + :ivar sourceVault: Resource id of the KeyVault containing the key or secret. Required. + :vartype sourceVault: "SourceVault" + :ivar secretUrl: Url pointing to a key or secret in KeyVault. Required. + :vartype secretUrl: str """ sourceVault: Required["SourceVault"] @@ -5412,10 +5520,10 @@ class KeyVaultAndSecretReference(TypedDict, total=False): class KeyVaultKeyReference(TypedDict, total=False): """Describes a reference to Key Vault Key. - :ivar key_url: The URL referencing a key encryption key in Key Vault. Required. - :vartype key_url: str - :ivar source_vault: The relative URL of the Key Vault containing the key. Required. - :vartype source_vault: "SubResource" + :ivar keyUrl: The URL referencing a key encryption key in Key Vault. Required. + :vartype keyUrl: str + :ivar sourceVault: The relative URL of the Key Vault containing the key. Required. + :vartype sourceVault: "SubResource" """ keyUrl: Required[str] @@ -5427,10 +5535,10 @@ class KeyVaultKeyReference(TypedDict, total=False): class KeyVaultSecretReference(TypedDict, total=False): """Describes a reference to Key Vault Secret. - :ivar secret_url: The URL referencing a secret in a Key Vault. Required. - :vartype secret_url: str - :ivar source_vault: The relative URL of the Key Vault containing the secret. Required. - :vartype source_vault: "SubResource" + :ivar secretUrl: The URL referencing a secret in a Key Vault. Required. + :vartype secretUrl: str + :ivar sourceVault: The relative URL of the Key Vault containing the secret. Required. + :vartype sourceVault: "SubResource" """ secretUrl: Required[str] @@ -5447,29 +5555,29 @@ class LastPatchInstallationSummary(TypedDict, total=False): or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". :vartype status: Union[str, "PatchOperationStatus"] - :ivar installation_activity_id: The activity ID of the operation that produced this result. It - is used to correlate across CRP and extension logs. - :vartype installation_activity_id: str - :ivar maintenance_window_exceeded: Describes whether the operation ran out of time before it + :ivar installationActivityId: The activity ID of the operation that produced this result. It is + used to correlate across CRP and extension logs. + :vartype installationActivityId: str + :ivar maintenanceWindowExceeded: Describes whether the operation ran out of time before it completed all its intended actions. - :vartype maintenance_window_exceeded: bool - :ivar not_selected_patch_count: The number of all available patches but not going to be - installed because it didn't match a classification or inclusion list entry. - :vartype not_selected_patch_count: int - :ivar excluded_patch_count: The number of all available patches but excluded explicitly by a + :vartype maintenanceWindowExceeded: bool + :ivar notSelectedPatchCount: The number of all available patches but not going to be installed + because it didn't match a classification or inclusion list entry. + :vartype notSelectedPatchCount: int + :ivar excludedPatchCount: The number of all available patches but excluded explicitly by a customer-specified exclusion list match. - :vartype excluded_patch_count: int - :ivar pending_patch_count: The number of all available patches expected to be installed over - the course of the patch installation operation. - :vartype pending_patch_count: int - :ivar installed_patch_count: The count of patches that successfully installed. - :vartype installed_patch_count: int - :ivar failed_patch_count: The count of patches that failed installation. - :vartype failed_patch_count: int - :ivar start_time: The UTC timestamp when the operation began. - :vartype start_time: str - :ivar last_modified_time: The UTC timestamp when the operation began. - :vartype last_modified_time: str + :vartype excludedPatchCount: int + :ivar pendingPatchCount: The number of all available patches expected to be installed over the + course of the patch installation operation. + :vartype pendingPatchCount: int + :ivar installedPatchCount: The count of patches that successfully installed. + :vartype installedPatchCount: int + :ivar failedPatchCount: The count of patches that failed installation. + :vartype failedPatchCount: int + :ivar startTime: The UTC timestamp when the operation began. + :vartype startTime: str + :ivar lastModifiedTime: The UTC timestamp when the operation began. + :vartype lastModifiedTime: str :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. :vartype error: "ApiError" @@ -5513,15 +5621,15 @@ class LifecycleHook(TypedDict, total=False): :ivar type: Specifies the type of the lifecycle hook. Known values are: "UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting". :vartype type: Union[str, "VMScaleSetLifecycleHookEventType"] - :ivar wait_duration: Specifies the time duration a virtual machine scale set lifecycle hook + :ivar waitDuration: Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format. - :vartype wait_duration: str - :ivar default_action: Specifies the action that will be applied to a target resource in the + :vartype waitDuration: str + :ivar defaultAction: Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil. Known values are: "Approve" and "Reject". - :vartype default_action: Union[str, "LifecycleHookAction"] + :vartype defaultAction: Union[str, "LifecycleHookAction"] """ type: Union[str, "VMScaleSetLifecycleHookEventType"] @@ -5539,9 +5647,9 @@ class LifecycleHook(TypedDict, total=False): class LifecycleHooksProfile(TypedDict, total=False): """Specifies the lifecycle hooks profile for the virtual machine scale set. - :ivar lifecycle_hooks: Specifies the lifecycle hooks configured for the virtual machine scale + :ivar lifecycleHooks: Specifies the lifecycle hooks configured for the virtual machine scale set. - :vartype lifecycle_hooks: list["LifecycleHook"] + :vartype lifecycleHooks: list["LifecycleHook"] """ lifecycleHooks: list["LifecycleHook"] @@ -5553,22 +5661,22 @@ class LinuxConfiguration(TypedDict, total=False): Linux distributions, see `Linux on Azure-Endorsed Distributions `_. - :ivar disable_password_authentication: Specifies whether password authentication should be + :ivar disablePasswordAuthentication: Specifies whether password authentication should be disabled. - :vartype disable_password_authentication: bool + :vartype disablePasswordAuthentication: bool :ivar ssh: Specifies the ssh key configuration for a Linux OS. :vartype ssh: "SshConfiguration" - :ivar provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + :ivar provisionVMAgent: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. - :vartype provision_vm_agent: bool - :ivar patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + :vartype provisionVMAgent: bool + :ivar patchSettings: [Preview Feature] Specifies settings related to VM Guest Patching on Linux. - :vartype patch_settings: "LinuxPatchSettings" - :ivar enable_vm_agent_platform_updates: Indicates whether VMAgent Platform Updates is enabled - for the Linux virtual machine. Default value is false. - :vartype enable_vm_agent_platform_updates: bool + :vartype patchSettings: "LinuxPatchSettings" + :ivar enableVMAgentPlatformUpdates: Indicates whether VMAgent Platform Updates is enabled for + the Linux virtual machine. Default value is false. + :vartype enableVMAgentPlatformUpdates: bool """ disablePasswordAuthentication: bool @@ -5589,18 +5697,18 @@ class LinuxConfiguration(TypedDict, total=False): class LinuxParameters(TypedDict, total=False): """Input for InstallPatches on a Linux VM, as directly received by the API. - :ivar classifications_to_include: The update classifications to select when installing patches + :ivar classificationsToInclude: The update classifications to select when installing patches for Linux. - :vartype classifications_to_include: list[Union[str, "VMGuestPatchClassificationLinux"]] - :ivar package_name_masks_to_include: packages to include in the patch operation. Format: + :vartype classificationsToInclude: list[Union[str, "VMGuestPatchClassificationLinux"]] + :ivar packageNameMasksToInclude: packages to include in the patch operation. Format: packageName_packageVersion. - :vartype package_name_masks_to_include: list[str] - :ivar package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + :vartype packageNameMasksToInclude: list[str] + :ivar packageNameMasksToExclude: packages to exclude in the patch operation. Format: packageName_packageVersion. - :vartype package_name_masks_to_exclude: list[str] - :ivar maintenance_run_id: This is used as a maintenance run identifier for Auto VM Guest - Patching in Linux. - :vartype maintenance_run_id: str + :vartype packageNameMasksToExclude: list[str] + :ivar maintenanceRunId: This is used as a maintenance run identifier for Auto VM Guest Patching + in Linux. + :vartype maintenanceRunId: str """ classificationsToInclude: list[Union[str, "VMGuestPatchClassificationLinux"]] @@ -5616,22 +5724,22 @@ class LinuxParameters(TypedDict, total=False): class LinuxPatchSettings(TypedDict, total=False): """Specifies settings related to VM Guest Patching on Linux. - :ivar patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + :ivar patchMode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**ImageDefault** - The virtual machine's default patching configuration is used.

**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". - :vartype patch_mode: Union[str, "LinuxVMGuestPatchMode"] - :ivar assessment_mode: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual + :vartype patchMode: Union[str, "LinuxVMGuestPatchMode"] + :ivar assessmentMode: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". - :vartype assessment_mode: Union[str, "LinuxPatchAssessmentMode"] - :ivar automatic_by_platform_settings: Specifies additional settings for patch mode + :vartype assessmentMode: Union[str, "LinuxPatchAssessmentMode"] + :ivar automaticByPlatformSettings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux. - :vartype automatic_by_platform_settings: "LinuxVMGuestPatchAutomaticByPlatformSettings" + :vartype automaticByPlatformSettings: "LinuxVMGuestPatchAutomaticByPlatformSettings" """ patchMode: Union[str, "LinuxVMGuestPatchMode"] @@ -5655,12 +5763,12 @@ class LinuxVMGuestPatchAutomaticByPlatformSettings(TypedDict, total=False): # p """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings. - :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch + :ivar rebootSetting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". - :vartype reboot_setting: Union[str, "LinuxVMGuestPatchAutomaticByPlatformRebootSetting"] - :ivar bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching - without accidental upgrades. - :vartype bypass_platform_safety_checks_on_user_schedule: bool + :vartype rebootSetting: Union[str, "LinuxVMGuestPatchAutomaticByPlatformRebootSetting"] + :ivar bypassPlatformSafetyChecksOnUserSchedule: Enables customer to schedule patching without + accidental upgrades. + :vartype bypassPlatformSafetyChecksOnUserSchedule: bool """ rebootSetting: Union[str, "LinuxVMGuestPatchAutomaticByPlatformRebootSetting"] @@ -5673,23 +5781,23 @@ class LinuxVMGuestPatchAutomaticByPlatformSettings(TypedDict, total=False): # p class LogAnalyticsInputBase(TypedDict, total=False): """Api input base class for LogAnalytics Api. - :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api + :ivar blobContainerSasUri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. - :vartype blob_container_sas_uri: str - :ivar from_time: From time of the query. Required. - :vartype from_time: str - :ivar to_time: To time of the query. Required. - :vartype to_time: str - :ivar group_by_throttle_policy: Group query result by Throttle Policy applied. - :vartype group_by_throttle_policy: bool - :ivar group_by_operation_name: Group query result by Operation Name. - :vartype group_by_operation_name: bool - :ivar group_by_resource_name: Group query result by Resource Name. - :vartype group_by_resource_name: bool - :ivar group_by_client_application_id: Group query result by Client Application ID. - :vartype group_by_client_application_id: bool - :ivar group_by_user_agent: Group query result by User Agent. - :vartype group_by_user_agent: bool + :vartype blobContainerSasUri: str + :ivar fromTime: From time of the query. Required. + :vartype fromTime: str + :ivar toTime: To time of the query. Required. + :vartype toTime: str + :ivar groupByThrottlePolicy: Group query result by Throttle Policy applied. + :vartype groupByThrottlePolicy: bool + :ivar groupByOperationName: Group query result by Operation Name. + :vartype groupByOperationName: bool + :ivar groupByResourceName: Group query result by Resource Name. + :vartype groupByResourceName: bool + :ivar groupByClientApplicationId: Group query result by Client Application ID. + :vartype groupByClientApplicationId: bool + :ivar groupByUserAgent: Group query result by User Agent. + :vartype groupByUserAgent: bool """ blobContainerSasUri: Required[str] @@ -5714,22 +5822,22 @@ class LogAnalyticsInputBase(TypedDict, total=False): class MaintenanceRedeployStatus(TypedDict, total=False): """Maintenance Operation Status. - :ivar is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform + :ivar isCustomerInitiatedMaintenanceAllowed: True, if customer is allowed to perform Maintenance. - :vartype is_customer_initiated_maintenance_allowed: bool - :ivar pre_maintenance_window_start_time: Start Time for the Pre Maintenance Window. - :vartype pre_maintenance_window_start_time: str - :ivar pre_maintenance_window_end_time: End Time for the Pre Maintenance Window. - :vartype pre_maintenance_window_end_time: str - :ivar maintenance_window_start_time: Start Time for the Maintenance Window. - :vartype maintenance_window_start_time: str - :ivar maintenance_window_end_time: End Time for the Maintenance Window. - :vartype maintenance_window_end_time: str - :ivar last_operation_result_code: The Last Maintenance Operation Result Code. Known values are: + :vartype isCustomerInitiatedMaintenanceAllowed: bool + :ivar preMaintenanceWindowStartTime: Start Time for the Pre Maintenance Window. + :vartype preMaintenanceWindowStartTime: str + :ivar preMaintenanceWindowEndTime: End Time for the Pre Maintenance Window. + :vartype preMaintenanceWindowEndTime: str + :ivar maintenanceWindowStartTime: Start Time for the Maintenance Window. + :vartype maintenanceWindowStartTime: str + :ivar maintenanceWindowEndTime: End Time for the Maintenance Window. + :vartype maintenanceWindowEndTime: str + :ivar lastOperationResultCode: The Last Maintenance Operation Result Code. Known values are: "None", "RetryLater", "MaintenanceAborted", and "MaintenanceCompleted". - :vartype last_operation_result_code: Union[str, "MaintenanceOperationResultCodeTypes"] - :ivar last_operation_message: Message returned for the last Maintenance Operation. - :vartype last_operation_message: str + :vartype lastOperationResultCode: Union[str, "MaintenanceOperationResultCodeTypes"] + :ivar lastOperationMessage: Message returned for the last Maintenance Operation. + :vartype lastOperationMessage: str """ isCustomerInitiatedMaintenanceAllowed: bool @@ -5754,16 +5862,20 @@ class ManagedDiskParameters(SubResource): :ivar id: Resource Id. :vartype id: str - :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: + :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" - :ivar security_profile: Specifies the security profile for the managed disk. - :vartype security_profile: "VMDiskSecurityProfile" + :vartype storageAccountType: Union[str, "StorageAccountTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" + :ivar securityProfile: Specifies the security profile for the managed disk. + :vartype securityProfile: "VMDiskSecurityProfile" + :ivar additionalDiskProperties: Specifies additional properties for the managed disk that can + be set at the time of implicit creation of the disk. This property is not captured for Restore + Points. + :vartype additionalDiskProperties: "AdditionalDiskProperties" """ storageAccountType: Union[str, "StorageAccountTypes"] @@ -5775,6 +5887,9 @@ class ManagedDiskParameters(SubResource): """Specifies the customer managed disk encryption set resource id for the managed disk.""" securityProfile: "VMDiskSecurityProfile" """Specifies the security profile for the managed disk.""" + additionalDiskProperties: "AdditionalDiskProperties" + """Specifies additional properties for the managed disk that can be set at the time of implicit + creation of the disk. This property is not captured for Restore Points.""" class MaxInstancePercentPerZonePolicy(TypedDict, total=False): @@ -5800,9 +5915,9 @@ class MaxInstancePercentPerZonePolicy(TypedDict, total=False): class MigrateToVirtualMachineScaleSetInput(TypedDict, total=False): """Describes the Virtual Machine Scale Set to migrate from Availability Set. - :ivar virtual_machine_scale_set_flexible: Specifies information about the Virtual Machine Scale - Set that the Availability Set should be migrated to. Minimum api‐version: 2024‐11‐01. Required. - :vartype virtual_machine_scale_set_flexible: "SubResource" + :ivar virtualMachineScaleSetFlexible: Specifies information about the Virtual Machine Scale Set + that the Availability Set should be migrated to. Minimum api‐version: 2024‐11‐01. Required. + :vartype virtualMachineScaleSetFlexible: "SubResource" """ virtualMachineScaleSetFlexible: Required["SubResource"] @@ -5810,18 +5925,37 @@ class MigrateToVirtualMachineScaleSetInput(TypedDict, total=False): migrated to. Minimum api‐version: 2024‐11‐01. Required.""" +class MigrateVMAvailabilityZoneInput(TypedDict, total=False): + """The input for MigrateVMAvailabilityZone. + + :ivar instanceIds: The virtual machine scale set instance ids to be migrated to the target + availability zone. Required. + :vartype instanceIds: list[str] + :ivar targetZone: The target logical availability zone ("1", "2" or "3") to migrate the virtual + machine scale set instances to. If omitted, the platform selects the target zone. + :vartype targetZone: str + """ + + instanceIds: Required[list[str]] + """The virtual machine scale set instance ids to be migrated to the target availability zone. + Required.""" + targetZone: str + """The target logical availability zone (\"1\", \"2\" or \"3\") to migrate the virtual machine + scale set instances to. If omitted, the platform selects the target zone.""" + + class MigrateVMToVirtualMachineScaleSetInput(TypedDict, total=False): """The input of virtual machine migration from Availability Set to Flexible Virtual Machine Scale Set. - :ivar target_zone: The target zone of VM migration to Flexible Virtual Machine Scale Set. - :vartype target_zone: str - :ivar target_fault_domain: The target compute fault domain of VM migration to Flexible Virtual - Machine Scale Set. - :vartype target_fault_domain: int - :ivar target_vm_size: The target Virtual Machine size of VM migration to Flexible Virtual + :ivar targetZone: The target zone of VM migration to Flexible Virtual Machine Scale Set. + :vartype targetZone: str + :ivar targetFaultDomain: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set. - :vartype target_vm_size: str + :vartype targetFaultDomain: int + :ivar targetVMSize: The target Virtual Machine size of VM migration to Flexible Virtual Machine + Scale Set. + :vartype targetVMSize: str """ targetZone: str @@ -5851,9 +5985,9 @@ class NetworkInterfaceReferenceProperties(TypedDict, total=False): :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool - :ivar delete_option: Specify what happens to the network interface when the VM is deleted. - Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] + :ivar deleteOption: Specify what happens to the network interface when the VM is deleted. Known + values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] """ primary: bool @@ -5867,19 +6001,19 @@ class NetworkInterfaceReferenceProperties(TypedDict, total=False): class NetworkProfile(TypedDict, total=False): """Specifies the network interfaces or the networking configuration of the virtual machine. - :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces + :ivar networkInterfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. - :vartype network_interfaces: list["NetworkInterfaceReference"] - :ivar network_api_version: specifies the Microsoft.Network API version used when creating + :vartype networkInterfaces: list["NetworkInterfaceReference"] + :ivar networkApiVersion: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations. Known values are: "2020-11-01" and "2022-11-01". - :vartype network_api_version: Union[str, "NetworkApiVersion"] - :ivar network_interface_configurations: Specifies the networking configurations that will be - used to create the virtual machine networking resources. - :vartype network_interface_configurations: list["VirtualMachineNetworkInterfaceConfiguration"] - :ivar interconnect_group_profile: Specifies the interconnect group profile to associate with - the virtual machine. Minimum api-version: 2026-03-01. - :vartype interconnect_group_profile: "InterconnectGroupProfile" + :vartype networkApiVersion: Union[str, "NetworkApiVersion"] + :ivar networkInterfaceConfigurations: Specifies the networking configurations that will be used + to create the virtual machine networking resources. + :vartype networkInterfaceConfigurations: list["VirtualMachineNetworkInterfaceConfiguration"] + :ivar interconnectGroupProfile: Specifies the interconnect group profile to associate with the + virtual machine. Minimum api-version: 2026-03-01. + :vartype interconnectGroupProfile: "InterconnectGroupProfile" """ networkInterfaces: list["NetworkInterfaceReference"] @@ -5900,12 +6034,12 @@ class OperationRecoverySettings(TypedDict, total=False): """The configuration parameters used for operation recovery settings on a virtual machine scale set. - :ivar restart_recovery_policy: The configuration parameters used for restart recovery policy. - :vartype restart_recovery_policy: "RestartRecoveryPolicy" - :ivar start_recovery_policy: The configuration parameters used for start recovery policy. - :vartype start_recovery_policy: "StartRecoveryPolicy" - :ivar reimage_recovery_policy: The configuration parameters used for reimage recovery policy. - :vartype reimage_recovery_policy: "ReimageRecoveryPolicy" + :ivar restartRecoveryPolicy: The configuration parameters used for restart recovery policy. + :vartype restartRecoveryPolicy: "RestartRecoveryPolicy" + :ivar startRecoveryPolicy: The configuration parameters used for start recovery policy. + :vartype startRecoveryPolicy: "StartRecoveryPolicy" + :ivar reimageRecoveryPolicy: The configuration parameters used for reimage recovery policy. + :vartype reimageRecoveryPolicy: "ReimageRecoveryPolicy" """ restartRecoveryPolicy: "RestartRecoveryPolicy" @@ -5919,9 +6053,9 @@ class OperationRecoverySettings(TypedDict, total=False): class OrchestrationServiceStateInput(TypedDict, total=False): """The input for OrchestrationServiceState. - :ivar service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and + :ivar serviceName: The name of the service. Required. Known values are: "AutomaticRepairs" and "AutomaticZoneRebalancing". - :vartype service_name: Union[str, "OrchestrationServiceNames"] + :vartype serviceName: Union[str, "OrchestrationServiceNames"] :ivar action: The action to be performed. Required. Known values are: "Resume" and "Suspend". :vartype action: Union[str, "OrchestrationServiceStateAction"] """ @@ -5938,13 +6072,13 @@ class OSDisk(TypedDict, total=False): information about disks, see `About disks and VHDs for Azure virtual machines `_. - :ivar os_type: This property allows you to specify the type of the OS that is included in the + :ivar osType: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar encryption_settings: Specifies the encryption settings for the OS Disk. Minimum + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar encryptionSettings: Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15. - :vartype encryption_settings: "DiskEncryptionSettings" + :vartype encryptionSettings: "DiskEncryptionSettings" :ivar name: The disk name. :vartype name: str :ivar vhd: The virtual hard disk. @@ -5957,36 +6091,36 @@ class OSDisk(TypedDict, total=False): **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool - :ivar diff_disk_settings: Specifies the ephemeral Disk Settings for the operating system disk + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool + :ivar diffDiskSettings: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. - :vartype diff_disk_settings: "DiffDiskSettings" - :ivar create_option: Specifies how the virtual machine disk should be created. Possible values + :vartype diffDiskSettings: "DiffDiskSettings" + :ivar createOption: Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: Union[str, "DiskCreateOptionTypes"] - :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be + :vartype createOption: Union[str, "DiskCreateOptionTypes"] + :ivar diskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. - :vartype disk_size_gb: int - :ivar storage_fault_domain_alignment: Specifies the storage fault domain alignment type for the + :vartype diskSizeGB: int + :ivar storageFaultDomainAlignment: Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". - :vartype storage_fault_domain_alignment: Union[str, "StorageFaultDomainAlignmentType"] - :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: "ManagedDiskParameters" - :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VM deletion. + :vartype storageFaultDomainAlignment: Union[str, "StorageFaultDomainAlignmentType"] + :ivar managedDisk: The managed disk parameters. + :vartype managedDisk: "ManagedDiskParameters" + :ivar deleteOption: Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] """ osType: Union[str, "OperatingSystemTypes"] @@ -6040,11 +6174,11 @@ class OSDisk(TypedDict, total=False): class OSDiskImageEncryption(DiskImageEncryption): """Contains encryption settings for an OS disk image. - :ivar disk_encryption_set_id: A relative URI containing the resource ID of the disk encryption + :ivar diskEncryptionSetId: A relative URI containing the resource ID of the disk encryption set. - :vartype disk_encryption_set_id: str - :ivar security_profile: This property specifies the security profile of an OS disk image. - :vartype security_profile: "OSDiskImageSecurityProfile" + :vartype diskEncryptionSetId: str + :ivar securityProfile: This property specifies the security profile of an OS disk image. + :vartype securityProfile: "OSDiskImageSecurityProfile" """ securityProfile: "OSDiskImageSecurityProfile" @@ -6054,12 +6188,12 @@ class OSDiskImageEncryption(DiskImageEncryption): class OSDiskImageSecurityProfile(TypedDict, total=False): """Contains security profile for an OS disk image. - :ivar confidential_vm_encryption_type: confidential VM encryption types. Known values are: + :ivar confidentialVMEncryptionType: confidential VM encryption types. Known values are: "EncryptedVMGuestStateOnlyWithPmk", "EncryptedWithPmk", "EncryptedWithCmk", and "NonPersistedTPM". - :vartype confidential_vm_encryption_type: Union[str, "ConfidentialVMEncryptionType"] - :ivar secure_vm_disk_encryption_set_id: secure VM disk encryption set id. - :vartype secure_vm_disk_encryption_set_id: str + :vartype confidentialVMEncryptionType: Union[str, "ConfidentialVMEncryptionType"] + :ivar secureVMDiskEncryptionSetId: secure VM disk encryption set id. + :vartype secureVMDiskEncryptionSetId: str """ confidentialVMEncryptionType: Union[str, "ConfidentialVMEncryptionType"] @@ -6072,11 +6206,11 @@ class OSDiskImageSecurityProfile(TypedDict, total=False): class OSImageNotificationProfile(TypedDict, total=False): """OSImageNotificationProfile. - :ivar not_before_timeout: Length of time a Virtual Machine being reimaged or having its OS + :ivar notBeforeTimeout: Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M). - :vartype not_before_timeout: str + :vartype notBeforeTimeout: str :ivar enable: Specifies whether the OS Image Scheduled event is enabled or disabled. :vartype enable: bool """ @@ -6093,13 +6227,13 @@ class OSProfile(TypedDict, total=False): """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :ivar computer_name: Specifies the host OS name of the virtual machine. This name cannot be + :ivar computerName: Specifies the host OS name of the virtual machine. This name cannot be updated after the VM is created. **Max-length (Windows):** 15 characters. **Max-length (Linux):** 64 characters. For naming conventions and restrictions see `Azure infrastructure services implementation guidelines `_. - :vartype computer_name: str - :ivar admin_username: Specifies the name of the administrator account.

This property + :vartype computerName: str + :ivar adminUsername: Specifies the name of the administrator account.

This property cannot be updated after the VM is created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", @@ -6107,8 +6241,8 @@ class OSProfile(TypedDict, total=False): "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters. - :vartype admin_username: str - :ivar admin_password: Specifies the password of the administrator account.

+ :vartype adminUsername: str + :ivar adminPassword: Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be @@ -6121,23 +6255,22 @@ class OSProfile(TypedDict, total=False): resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension `_. - :vartype admin_password: str - :ivar custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded - string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum - length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in - customData property.** This property cannot be updated after the VM is created. The property - 'customData' is passed to the VM to be saved as a file, for more information see `Custom Data - on Azure VMs `_. - For using cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during - creation `_. - :vartype custom_data: str - :ivar windows_configuration: Specifies Windows operating system settings on the virtual - machine. - :vartype windows_configuration: "WindowsConfiguration" - :ivar linux_configuration: Specifies the Linux operating system settings on the virtual - machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed - Distributions `_. - :vartype linux_configuration: "LinuxConfiguration" + :vartype adminPassword: str + :ivar customData: Specifies a base-64 encoded string of custom data. The base-64 encoded string + is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length + of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData + property.** This property cannot be updated after the VM is created. The property 'customData' + is passed to the VM to be saved as a file, for more information see `Custom Data on Azure VMs + `_. For using + cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during creation + `_. + :vartype customData: str + :ivar windowsConfiguration: Specifies Windows operating system settings on the virtual machine. + :vartype windowsConfiguration: "WindowsConfiguration" + :ivar linuxConfiguration: Specifies the Linux operating system settings on the virtual machine. + For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions + `_. + :vartype linuxConfiguration: "LinuxConfiguration" :ivar secrets: Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux @@ -6145,13 +6278,13 @@ class OSProfile(TypedDict, total=False): Key Vault virtual machine extension for Windows `_. :vartype secrets: list["VaultSecretGroup"] - :ivar allow_extension_operations: Specifies whether extension operations should be allowed on - the virtual machine. This may only be set to False when no extensions are present on the - virtual machine. - :vartype allow_extension_operations: bool - :ivar require_guest_provision_signal: Optional property which must either be set to True or + :ivar allowExtensionOperations: Specifies whether extension operations should be allowed on the + virtual machine. This may only be set to False when no extensions are present on the virtual + machine. + :vartype allowExtensionOperations: bool + :ivar requireGuestProvisionSignal: Optional property which must either be set to True or omitted. - :vartype require_guest_provision_signal: bool + :vartype requireGuestProvisionSignal: bool """ computerName: str @@ -6215,7 +6348,7 @@ class OSProfile(TypedDict, total=False): class OSProfileProvisioningData(TypedDict, total=False): """Additional parameters for Reimaging Non-Ephemeral Virtual Machine. - :ivar admin_password: Specifies the password of the administrator account.

+ :ivar adminPassword: Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be @@ -6228,16 +6361,16 @@ class OSProfileProvisioningData(TypedDict, total=False): resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension `_. - :vartype admin_password: str - :ivar custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded - string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum - length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in - customData property.** This property cannot be updated after the VM is created. The property - customData is passed to the VM to be saved as a file, for more information see `Custom Data on - Azure VMs `_. If - using cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during - creation `_. - :vartype custom_data: str + :vartype adminPassword: str + :ivar customData: Specifies a base-64 encoded string of custom data. The base-64 encoded string + is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length + of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData + property.** This property cannot be updated after the VM is created. The property customData is + passed to the VM to be saved as a file, for more information see `Custom Data on Azure VMs + `_. If using + cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during creation + `_. + :vartype customData: str """ adminPassword: str @@ -6268,7 +6401,7 @@ class OSProfileProvisioningData(TypedDict, total=False): class PatchSettings(TypedDict, total=False): """Specifies settings related to VM Guest Patching on Windows. - :ivar patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + :ivar patchMode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, @@ -6278,20 +6411,20 @@ class PatchSettings(TypedDict, total=False): **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Known values are: "Manual", "AutomaticByOS", and "AutomaticByPlatform". - :vartype patch_mode: Union[str, "WindowsVMGuestPatchMode"] - :ivar enable_hotpatching: Enables customers to patch their Azure VMs without requiring a - reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must - be set to 'AutomaticByPlatform'. - :vartype enable_hotpatching: bool - :ivar assessment_mode: Specifies the mode of VM Guest patch assessment for the IaaS virtual + :vartype patchMode: Union[str, "WindowsVMGuestPatchMode"] + :ivar enableHotpatching: Enables customers to patch their Azure VMs without requiring a reboot. + For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set + to 'AutomaticByPlatform'. + :vartype enableHotpatching: bool + :ivar assessmentMode: Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". - :vartype assessment_mode: Union[str, "WindowsPatchAssessmentMode"] - :ivar automatic_by_platform_settings: Specifies additional settings for patch mode + :vartype assessmentMode: Union[str, "WindowsPatchAssessmentMode"] + :ivar automaticByPlatformSettings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows. - :vartype automatic_by_platform_settings: "WindowsVMGuestPatchAutomaticByPlatformSettings" + :vartype automaticByPlatformSettings: "WindowsVMGuestPatchAutomaticByPlatformSettings" """ patchMode: Union[str, "WindowsVMGuestPatchMode"] @@ -6323,21 +6456,21 @@ class PatchSettings(TypedDict, total=False): class Placement(TypedDict, total=False): """Describes the user-defined constraints for resource hardware placement. - :ivar zone_placement_policy: Specifies the policy for resource's placement in availability - zone. Possible values are: **Any** (used for Virtual Machines), **Auto** (used for Virtual - Machine Scale Sets) - An availability zone will be automatically picked by system as part of - resource creation. Known values are: "Any" and "Auto". - :vartype zone_placement_policy: Union[str, "ZonePlacementPolicyType"] - :ivar include_zones: This property supplements the 'zonePlacementPolicy' property. If + :ivar zonePlacementPolicy: Specifies the policy for resource's placement in availability zone. + Possible values are: **Any** (used for Virtual Machines), **Auto** (used for Virtual Machine + Scale Sets) - An availability zone will be automatically picked by system as part of resource + creation. Known values are: "Any" and "Auto". + :vartype zonePlacementPolicy: Union[str, "ZonePlacementPolicyType"] + :ivar includeZones: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection. - :vartype include_zones: list[str] - :ivar exclude_zones: This property supplements the 'zonePlacementPolicy' property. If + :vartype includeZones: list[str] + :ivar excludeZones: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection. - :vartype exclude_zones: list[str] + :vartype excludeZones: list[str] """ zonePlacementPolicy: Union[str, "ZonePlacementPolicyType"] @@ -6371,8 +6504,8 @@ class Plan(TypedDict, total=False): :ivar product: Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. :vartype product: str - :ivar promotion_code: The promotion code. - :vartype promotion_code: str + :ivar promotionCode: The promotion code. + :vartype promotionCode: str """ name: str @@ -6425,12 +6558,12 @@ class PriorityMixPolicy(TypedDict, total=False): regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. - :ivar base_regular_priority_count: The base number of regular priority VMs that will be created - in this scale set as it scales out. - :vartype base_regular_priority_count: int - :ivar regular_priority_percentage_above_base: The percentage of VM instances, after the base + :ivar baseRegularPriorityCount: The base number of regular priority VMs that will be created in + this scale set as it scales out. + :vartype baseRegularPriorityCount: int + :ivar regularPriorityPercentageAboveBase: The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority. - :vartype regular_priority_percentage_above_base: int + :vartype regularPriorityPercentageAboveBase: int """ baseRegularPriorityCount: int @@ -6463,9 +6596,9 @@ class PrivateEndpointConnection(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: Resource properties. :vartype properties: "PrivateEndpointConnectionProperties" """ @@ -6477,14 +6610,14 @@ class PrivateEndpointConnection(ProxyResource): class PrivateEndpointConnectionProperties(TypedDict, total=False): """Properties of the PrivateEndpointConnectProperties. - :ivar private_endpoint: The resource of private end point. - :vartype private_endpoint: "PrivateEndpoint" - :ivar private_link_service_connection_state: A collection of information about the state of the + :ivar privateEndpoint: The resource of private end point. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: A collection of information about the state of the connection between DiskAccess and Virtual Network. Required. - :vartype private_link_service_connection_state: "PrivateLinkServiceConnectionState" - :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar provisioningState: The provisioning state of the private endpoint connection resource. Known values are: "Succeeded", "Creating", "Deleting", and "Failed". - :vartype provisioning_state: Union[str, "PrivateEndpointConnectionProvisioningState"] + :vartype provisioningState: Union[str, "PrivateEndpointConnectionProvisioningState"] """ privateEndpoint: "PrivateEndpoint" @@ -6506,9 +6639,9 @@ class PrivateLinkServiceConnectionState(TypedDict, total=False): :vartype status: Union[str, "PrivateEndpointServiceConnectionStatus"] :ivar description: The reason for approval/rejection of the connection. :vartype description: str - :ivar actions_required: A message indicating if changes on the service provider require any + :ivar actionsRequired: A message indicating if changes on the service provider require any updates on the consumer. - :vartype actions_required: str + :vartype actionsRequired: str """ status: Union[str, "PrivateEndpointServiceConnectionStatus"] @@ -6523,9 +6656,9 @@ class PrivateLinkServiceConnectionState(TypedDict, total=False): class PropertyUpdatesInProgress(TypedDict, total=False): """Properties of the disk for which update is pending. - :ivar target_tier: The target performance tier of the disk if a tier change operation is in + :ivar targetTier: The target performance tier of the disk if a tier change operation is in progress. - :vartype target_tier: str + :vartype targetTier: str """ targetTier: str @@ -6543,9 +6676,9 @@ class ProximityPlacementGroup(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -6565,21 +6698,21 @@ class ProximityPlacementGroup(TrackedResource): class ProximityPlacementGroupProperties(TypedDict, total=False): """Describes the properties of a Proximity Placement Group. - :ivar proximity_placement_group_type: Specifies the type of the proximity placement group. + :ivar proximityPlacementGroupType: Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use. Known values are: "Standard" and "Ultra". - :vartype proximity_placement_group_type: Union[str, "ProximityPlacementGroupType"] - :ivar virtual_machines: A list of references to all virtual machines in the proximity placement + :vartype proximityPlacementGroupType: Union[str, "ProximityPlacementGroupType"] + :ivar virtualMachines: A list of references to all virtual machines in the proximity placement group. - :vartype virtual_machines: list["SubResourceWithColocationStatus"] - :ivar virtual_machine_scale_sets: A list of references to all virtual machine scale sets in the + :vartype virtualMachines: list["SubResourceWithColocationStatus"] + :ivar virtualMachineScaleSets: A list of references to all virtual machine scale sets in the proximity placement group. - :vartype virtual_machine_scale_sets: list["SubResourceWithColocationStatus"] - :ivar availability_sets: A list of references to all availability sets in the proximity + :vartype virtualMachineScaleSets: list["SubResourceWithColocationStatus"] + :ivar availabilitySets: A list of references to all availability sets in the proximity placement group. - :vartype availability_sets: list["SubResourceWithColocationStatus"] - :ivar colocation_status: Describes colocation status of the Proximity Placement Group. - :vartype colocation_status: "InstanceViewStatus" + :vartype availabilitySets: list["SubResourceWithColocationStatus"] + :ivar colocationStatus: Describes colocation status of the Proximity Placement Group. + :vartype colocationStatus: "InstanceViewStatus" :ivar intent: Specifies the user intent of the proximity placement group. :vartype intent: "ProximityPlacementGroupPropertiesIntent" """ @@ -6603,9 +6736,9 @@ class ProximityPlacementGroupProperties(TypedDict, total=False): class ProximityPlacementGroupPropertiesIntent(TypedDict, total=False): """Specifies the user intent of the proximity placement group. - :ivar vm_sizes: Specifies possible sizes of virtual machines that can be created in the + :ivar vmSizes: Specifies possible sizes of virtual machines that can be created in the proximity placement group. - :vartype vm_sizes: list[str] + :vartype vmSizes: list[str] """ vmSizes: list[str] @@ -6632,18 +6765,18 @@ class ProxyAgentSettings(TypedDict, total=False): deprecated, please specify 'mode' under particular hostendpoint setting. Known values are: "Audit" and "Enforce". :vartype mode: Union[str, "Mode"] - :ivar key_incarnation_id: Increase the value of this property allows users to reset the key - used for securing communication channel between guest and host. - :vartype key_incarnation_id: int - :ivar wire_server: Specifies the Wire Server endpoint settings while creating the virtual + :ivar keyIncarnationId: Increase the value of this property allows users to reset the key used + for securing communication channel between guest and host. + :vartype keyIncarnationId: int + :ivar wireServer: Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01. - :vartype wire_server: "HostEndpointSettings" + :vartype wireServer: "HostEndpointSettings" :ivar imds: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01. :vartype imds: "HostEndpointSettings" - :ivar add_proxy_agent_extension: Specify whether to implicitly install the ProxyAgent - Extension. This option is currently applicable only for Linux Os. - :vartype add_proxy_agent_extension: bool + :ivar addProxyAgentExtension: Specify whether to implicitly install the ProxyAgent Extension. + This option is currently applicable only for Linux Os. + :vartype addProxyAgentExtension: bool """ enabled: bool @@ -6686,8 +6819,8 @@ class RecommendedMachineConfiguration(TypedDict, total=False): """The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. - :ivar v_cp_us: Describes the resource range. - :vartype v_cp_us: "ResourceRange" + :ivar vCPUs: Describes the resource range. + :vartype vCPUs: "ResourceRange" :ivar memory: Describes the resource range. :vartype memory: "ResourceRange" """ @@ -6759,9 +6892,9 @@ class ReimageRecoveryPolicy(TypedDict, total=False): class ReplicationStatus(TypedDict, total=False): """This is the replication status of the gallery image version. - :ivar aggregated_state: This is the aggregated replication status based on all the regional + :ivar aggregatedState: This is the aggregated replication status based on all the regional replication status flags. Known values are: "Unknown", "InProgress", "Completed", and "Failed". - :vartype aggregated_state: Union[str, "AggregatedReplicationState"] + :vartype aggregatedState: Union[str, "AggregatedReplicationState"] :ivar summary: This is a summary of replication status for each region. :vartype summary: list["RegionalReplicationStatus"] """ @@ -6776,26 +6909,26 @@ class ReplicationStatus(TypedDict, total=False): class RequestRateByIntervalInput(LogAnalyticsInputBase): """Api request input for LogAnalytics getRequestRateByInterval Api. - :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api + :ivar blobContainerSasUri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. - :vartype blob_container_sas_uri: str - :ivar from_time: From time of the query. Required. - :vartype from_time: str - :ivar to_time: To time of the query. Required. - :vartype to_time: str - :ivar group_by_throttle_policy: Group query result by Throttle Policy applied. - :vartype group_by_throttle_policy: bool - :ivar group_by_operation_name: Group query result by Operation Name. - :vartype group_by_operation_name: bool - :ivar group_by_resource_name: Group query result by Resource Name. - :vartype group_by_resource_name: bool - :ivar group_by_client_application_id: Group query result by Client Application ID. - :vartype group_by_client_application_id: bool - :ivar group_by_user_agent: Group query result by User Agent. - :vartype group_by_user_agent: bool - :ivar interval_length: Interval value in minutes used to create LogAnalytics call rate logs. + :vartype blobContainerSasUri: str + :ivar fromTime: From time of the query. Required. + :vartype fromTime: str + :ivar toTime: To time of the query. Required. + :vartype toTime: str + :ivar groupByThrottlePolicy: Group query result by Throttle Policy applied. + :vartype groupByThrottlePolicy: bool + :ivar groupByOperationName: Group query result by Operation Name. + :vartype groupByOperationName: bool + :ivar groupByResourceName: Group query result by Resource Name. + :vartype groupByResourceName: bool + :ivar groupByClientApplicationId: Group query result by Client Application ID. + :vartype groupByClientApplicationId: bool + :ivar groupByUserAgent: Group query result by User Agent. + :vartype groupByUserAgent: bool + :ivar intervalLength: Interval value in minutes used to create LogAnalytics call rate logs. Required. Known values are: "ThreeMins", "FiveMins", "ThirtyMins", and "SixtyMins". - :vartype interval_length: Union[str, "IntervalInMins"] + :vartype intervalLength: Union[str, "IntervalInMins"] """ intervalLength: Required[Union[str, "IntervalInMins"]] @@ -6807,21 +6940,20 @@ class ResiliencyPolicy(TypedDict, total=False): """Describes an resiliency policy - AutomaticZoneRebalancingPolicy, ResilientVMCreationPolicy, ResilientVMDeletionPolicy and OperationRecoverySettings (version > 2025-11-01). - :ivar resilient_vm_creation_policy: The configuration parameters used while performing - resilient VM creation. - :vartype resilient_vm_creation_policy: "ResilientVMCreationPolicy" - :ivar resilient_vm_deletion_policy: The configuration parameters used while performing - resilient VM deletion. - :vartype resilient_vm_deletion_policy: "ResilientVMDeletionPolicy" - :ivar automatic_zone_rebalancing_policy: The configuration parameters used while performing + :ivar resilientVMCreationPolicy: The configuration parameters used while performing resilient + VM creation. + :vartype resilientVMCreationPolicy: "ResilientVMCreationPolicy" + :ivar resilientVMDeletionPolicy: The configuration parameters used while performing resilient + VM deletion. + :vartype resilientVMDeletionPolicy: "ResilientVMDeletionPolicy" + :ivar automaticZoneRebalancingPolicy: The configuration parameters used while performing automatic AZ balancing. - :vartype automatic_zone_rebalancing_policy: "AutomaticZoneRebalancingPolicy" - :ivar zone_allocation_policy: The configuration parameters used while performing zone - allocation. - :vartype zone_allocation_policy: "ZoneAllocationPolicy" - :ivar operation_recovery_settings: The configuration parameters used for operation recovery + :vartype automaticZoneRebalancingPolicy: "AutomaticZoneRebalancingPolicy" + :ivar zoneAllocationPolicy: The configuration parameters used while performing zone allocation. + :vartype zoneAllocationPolicy: "ZoneAllocationPolicy" + :ivar operationRecoverySettings: The configuration parameters used for operation recovery settings. - :vartype operation_recovery_settings: "OperationRecoverySettings" + :vartype operationRecoverySettings: "OperationRecoverySettings" """ resilientVMCreationPolicy: "ResilientVMCreationPolicy" @@ -6840,8 +6972,8 @@ class ResiliencyProfile(TypedDict, total=False): """Gets resiliency solutions enabled on the VM. This includes backup or disaster recovery solutions. - :ivar zone_movement: Zone movement configuration. - :vartype zone_movement: "ZoneMovement" + :ivar zoneMovement: Zone movement configuration. + :vartype zoneMovement: "ZoneMovement" """ zoneMovement: "ZoneMovement" @@ -6892,12 +7024,12 @@ class ResourceRange(TypedDict, total=False): class ResourceSharingProfile(TypedDict, total=False): """ResourceSharingProfile. - :ivar subscription_ids: Specifies an array of subscription resource IDs that capacity + :ivar subscriptionIds: Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to `https://aka.ms/computereservationsharing `_ for more details. - :vartype subscription_ids: list["SubResource"] + :vartype subscriptionIds: list["SubResource"] """ subscriptionIds: list["SubResource"] @@ -6930,9 +7062,9 @@ class RestorePoint(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The restore point properties. :vartype properties: "RestorePointProperties" """ @@ -6952,9 +7084,9 @@ class RestorePointCollection(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -6973,18 +7105,18 @@ class RestorePointCollectionProperties(TypedDict, total=False): :ivar source: The properties of the source resource that this restore point collection is created from. :vartype source: "RestorePointCollectionSourceProperties" - :ivar provisioning_state: The provisioning state of the restore point collection. - :vartype provisioning_state: str - :ivar restore_point_collection_id: The unique id of the restore point collection. - :vartype restore_point_collection_id: str - :ivar restore_points: A list containing all restore points created under this restore point + :ivar provisioningState: The provisioning state of the restore point collection. + :vartype provisioningState: str + :ivar restorePointCollectionId: The unique id of the restore point collection. + :vartype restorePointCollectionId: str + :ivar restorePoints: A list containing all restore points created under this restore point collection. - :vartype restore_points: list["RestorePoint"] - :ivar instant_access: This property determines whether instant access snapshot is enabled for + :vartype restorePoints: list["RestorePoint"] + :ivar instantAccess: This property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance. - :vartype instant_access: bool + :vartype instantAccess: bool """ source: "RestorePointCollectionSourceProperties" @@ -7034,11 +7166,11 @@ class RestorePointEncryption(TypedDict, total=False): """Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. - :ivar disk_encryption_set: Describes the parameter of customer managed disk encryption set + :ivar diskEncryptionSet: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer `https://aka.ms/mdssewithcmkoverview `_ for more details. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" :ivar type: The type of key used to encrypt the data of the disk restore point. Known values are: "EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey", and "EncryptionAtRestWithPlatformAndCustomerKeys". @@ -7059,8 +7191,8 @@ class RestorePointEncryption(TypedDict, total=False): class RestorePointInstanceView(TypedDict, total=False): """The instance view of a restore point. - :ivar disk_restore_points: The disk restore points information. - :vartype disk_restore_points: list["DiskRestorePointInstanceView"] + :ivar diskRestorePoints: The disk restore points information. + :vartype diskRestorePoints: list["DiskRestorePointInstanceView"] :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] """ @@ -7074,31 +7206,30 @@ class RestorePointInstanceView(TypedDict, total=False): class RestorePointProperties(TypedDict, total=False): """The restore point properties. - :ivar exclude_disks: List of disk resource ids that the customer wishes to exclude from the + :ivar excludeDisks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. - :vartype exclude_disks: list["ApiEntityReference"] - :ivar source_metadata: Gets the details of the VM captured at the time of the restore point + :vartype excludeDisks: list["ApiEntityReference"] + :ivar sourceMetadata: Gets the details of the VM captured at the time of the restore point creation. - :vartype source_metadata: "RestorePointSourceMetadata" - :ivar provisioning_state: Gets the provisioning state of the restore point. - :vartype provisioning_state: str - :ivar consistency_mode: ConsistencyMode of the RestorePoint. Can be specified in the input - while creating a restore point. For now, only CrashConsistent is accepted as a valid input. - Please refer to `https://aka.ms/RestorePoints `_ for more - details. Known values are: "CrashConsistent", "FileSystemConsistent", and - "ApplicationConsistent". - :vartype consistency_mode: Union[str, "ConsistencyModeTypes"] - :ivar time_created: Gets the creation time of the restore point. - :vartype time_created: str - :ivar source_restore_point: Resource Id of the source restore point from which a copy needs to - be created. - :vartype source_restore_point: "ApiEntityReference" - :ivar instance_view: The restore point instance view. - :vartype instance_view: "RestorePointInstanceView" - :ivar instant_access_duration_minutes: This property determines the time in minutes the - snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast - restore performance in this restore point. - :vartype instant_access_duration_minutes: int + :vartype sourceMetadata: "RestorePointSourceMetadata" + :ivar provisioningState: Gets the provisioning state of the restore point. + :vartype provisioningState: str + :ivar consistencyMode: ConsistencyMode of the RestorePoint. Can be specified in the input while + creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please + refer to `https://aka.ms/RestorePoints `_ for more details. Known + values are: "CrashConsistent", "FileSystemConsistent", and "ApplicationConsistent". + :vartype consistencyMode: Union[str, "ConsistencyModeTypes"] + :ivar timeCreated: Gets the creation time of the restore point. + :vartype timeCreated: str + :ivar sourceRestorePoint: Resource Id of the source restore point from which a copy needs to be + created. + :vartype sourceRestorePoint: "ApiEntityReference" + :ivar instanceView: The restore point instance view. + :vartype instanceView: "RestorePointInstanceView" + :ivar instantAccessDurationMinutes: This property determines the time in minutes the snapshot + is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore + performance in this restore point. + :vartype instantAccessDurationMinutes: int """ excludeDisks: list["ApiEntityReference"] @@ -7129,28 +7260,28 @@ class RestorePointSourceMetadata(TypedDict, total=False): properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. - :ivar hardware_profile: Gets the hardware profile. - :vartype hardware_profile: "HardwareProfile" - :ivar storage_profile: Gets the storage profile. - :vartype storage_profile: "RestorePointSourceVMStorageProfile" - :ivar os_profile: Gets the OS profile. - :vartype os_profile: "OSProfile" - :ivar diagnostics_profile: Gets the diagnostics profile. - :vartype diagnostics_profile: "DiagnosticsProfile" - :ivar license_type: Gets the license type, which is for bring your own license scenario. - :vartype license_type: str - :ivar vm_id: Gets the virtual machine unique id. - :vartype vm_id: str - :ivar security_profile: Gets the security profile. - :vartype security_profile: "SecurityProfile" + :ivar hardwareProfile: Gets the hardware profile. + :vartype hardwareProfile: "HardwareProfile" + :ivar storageProfile: Gets the storage profile. + :vartype storageProfile: "RestorePointSourceVMStorageProfile" + :ivar osProfile: Gets the OS profile. + :vartype osProfile: "OSProfile" + :ivar diagnosticsProfile: Gets the diagnostics profile. + :vartype diagnosticsProfile: "DiagnosticsProfile" + :ivar licenseType: Gets the license type, which is for bring your own license scenario. + :vartype licenseType: str + :ivar vmId: Gets the virtual machine unique id. + :vartype vmId: str + :ivar securityProfile: Gets the security profile. + :vartype securityProfile: "SecurityProfile" :ivar location: Location of the VM from which the restore point was created. :vartype location: str - :ivar user_data: UserData associated with the source VM for which restore point is captured, + :ivar userData: UserData associated with the source VM for which restore point is captured, which is a base-64 encoded value. - :vartype user_data: str - :ivar hyper_v_generation: HyperVGeneration of the source VM for which restore point is - captured. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGenerationTypes"] + :vartype userData: str + :ivar hyperVGeneration: HyperVGeneration of the source VM for which restore point is captured. + Known values are: "V1" and "V2". + :vartype hyperVGeneration: Union[str, "HyperVGenerationTypes"] """ hardwareProfile: "HardwareProfile" @@ -7186,15 +7317,15 @@ class RestorePointSourceVMDataDisk(TypedDict, total=False): :vartype name: str :ivar caching: Gets the caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar disk_size_gb: Gets the initial disk size in GB for blank data disks, and the new desired + :ivar diskSizeGB: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. - :vartype disk_size_gb: int - :ivar managed_disk: Contains the managed disk details. - :vartype managed_disk: "ManagedDiskParameters" - :ivar disk_restore_point: Contains Disk Restore Point properties. - :vartype disk_restore_point: "DiskRestorePointAttributes" - :ivar write_accelerator_enabled: Shows true if the disk is write-accelerator enabled. - :vartype write_accelerator_enabled: bool + :vartype diskSizeGB: int + :ivar managedDisk: Contains the managed disk details. + :vartype managedDisk: "ManagedDiskParameters" + :ivar diskRestorePoint: Contains Disk Restore Point properties. + :vartype diskRestorePoint: "DiskRestorePointAttributes" + :ivar writeAcceleratorEnabled: Shows true if the disk is write-accelerator enabled. + :vartype writeAcceleratorEnabled: bool """ lun: int @@ -7217,22 +7348,22 @@ class RestorePointSourceVMDataDisk(TypedDict, total=False): class RestorePointSourceVMOSDisk(TypedDict, total=False): """Describes an Operating System disk. - :ivar os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemType"] - :ivar encryption_settings: Gets the disk encryption settings. - :vartype encryption_settings: "DiskEncryptionSettings" + :ivar osType: Gets the Operating System type. Known values are: "Windows" and "Linux". + :vartype osType: Union[str, "OperatingSystemType"] + :ivar encryptionSettings: Gets the disk encryption settings. + :vartype encryptionSettings: "DiskEncryptionSettings" :ivar name: Gets the disk name. :vartype name: str :ivar caching: Gets the caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar disk_size_gb: Gets the disk size in GB. - :vartype disk_size_gb: int - :ivar managed_disk: Gets the managed disk details. - :vartype managed_disk: "ManagedDiskParameters" - :ivar disk_restore_point: Contains Disk Restore Point properties. - :vartype disk_restore_point: "DiskRestorePointAttributes" - :ivar write_accelerator_enabled: Shows true if the disk is write-accelerator enabled. - :vartype write_accelerator_enabled: bool + :ivar diskSizeGB: Gets the disk size in GB. + :vartype diskSizeGB: int + :ivar managedDisk: Gets the managed disk details. + :vartype managedDisk: "ManagedDiskParameters" + :ivar diskRestorePoint: Contains Disk Restore Point properties. + :vartype diskRestorePoint: "DiskRestorePointAttributes" + :ivar writeAcceleratorEnabled: Shows true if the disk is write-accelerator enabled. + :vartype writeAcceleratorEnabled: bool """ osType: Union[str, "OperatingSystemType"] @@ -7256,14 +7387,14 @@ class RestorePointSourceVMOSDisk(TypedDict, total=False): class RestorePointSourceVMStorageProfile(TypedDict, total=False): """Describes the storage profile. - :ivar os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. - :vartype os_disk: "RestorePointSourceVMOSDisk" - :ivar data_disks: Gets the data disks of the VM captured at the time of the restore point + :ivar osDisk: Gets the OS disk of the VM captured at the time of the restore point creation. + :vartype osDisk: "RestorePointSourceVMOSDisk" + :ivar dataDisks: Gets the data disks of the VM captured at the time of the restore point creation. - :vartype data_disks: list["RestorePointSourceVMDataDisk"] - :ivar disk_controller_type: Gets the disk controller type of the VM captured at the time of the + :vartype dataDisks: list["RestorePointSourceVMDataDisk"] + :ivar diskControllerType: Gets the disk controller type of the VM captured at the time of the restore point creation. Known values are: "SCSI" and "NVMe". - :vartype disk_controller_type: Union[str, "DiskControllerTypes"] + :vartype diskControllerType: Union[str, "DiskControllerTypes"] """ osDisk: "RestorePointSourceVMOSDisk" @@ -7278,40 +7409,40 @@ class RestorePointSourceVMStorageProfile(TypedDict, total=False): class RollingUpgradePolicy(TypedDict, total=False): """The configuration parameters used while performing a rolling upgrade. - :ivar max_batch_instance_percent: The maximum percent of total virtual machine instances that - will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, - unhealthy instances in previous or future batches can cause the percentage of instances in a - batch to decrease to ensure higher reliability. The default value for this parameter is 20%. - :vartype max_batch_instance_percent: int - :ivar max_unhealthy_instance_percent: The maximum percentage of the total virtual machine + :ivar maxBatchInstancePercent: The maximum percent of total virtual machine instances that will + be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy + instances in previous or future batches can cause the percentage of instances in a batch to + decrease to ensure higher reliability. The default value for this parameter is 20%. + :vartype maxBatchInstancePercent: int + :ivar maxUnhealthyInstancePercent: The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. - :vartype max_unhealthy_instance_percent: int - :ivar max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual - machine instances that can be found to be in an unhealthy state. This check will happen after - each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The - default value for this parameter is 20%. - :vartype max_unhealthy_upgraded_instance_percent: int - :ivar pause_time_between_batches: The wait time between completing the update for all virtual + :vartype maxUnhealthyInstancePercent: int + :ivar maxUnhealthyUpgradedInstancePercent: The maximum percentage of upgraded virtual machine + instances that can be found to be in an unhealthy state. This check will happen after each + batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default + value for this parameter is 20%. + :vartype maxUnhealthyUpgradedInstancePercent: int + :ivar pauseTimeBetweenBatches: The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). - :vartype pause_time_between_batches: str - :ivar enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade + :vartype pauseTimeBetweenBatches: str + :ivar enableCrossZoneUpgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. - :vartype enable_cross_zone_upgrade: bool - :ivar prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before any + :vartype enableCrossZoneUpgrade: bool + :ivar prioritizeUnhealthyInstances: Upgrade all unhealthy instances in a scale set before any healthy instances. - :vartype prioritize_unhealthy_instances: bool - :ivar rollback_failed_instances_on_policy_breach: Rollback failed instances to previous model - if the Rolling Upgrade policy is violated. - :vartype rollback_failed_instances_on_policy_breach: bool - :ivar max_surge: Create new virtual machines to upgrade the scale set, rather than updating the + :vartype prioritizeUnhealthyInstances: bool + :ivar rollbackFailedInstancesOnPolicyBreach: Rollback failed instances to previous model if the + Rolling Upgrade policy is violated. + :vartype rollbackFailedInstancesOnPolicyBreach: bool + :ivar maxSurge: Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch. - :vartype max_surge: bool + :vartype maxSurge: bool """ maxBatchInstancePercent: int @@ -7349,12 +7480,12 @@ class RollingUpgradePolicy(TypedDict, total=False): class RunCommandInput(TypedDict, total=False): """Capture Virtual Machine parameters. - :ivar command_id: Specifies a commandId of predefined built-in script. Command IDs available - for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands + :ivar commandId: Specifies a commandId of predefined built-in script. Command IDs available for + Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands `_, Windows at `https://aka.ms/RunCommandManagedWindows#available-commands `_. Required. - :vartype command_id: str + :vartype commandId: str :ivar script: Optional. The script to be executed. When this value is given, the given script will override the default script of the command. :vartype script: list[str] @@ -7401,12 +7532,12 @@ class RunCommandManagedIdentity(TypedDict, total=False): `https://aka.ms/ManagedIdentity `_ and `https://aka.ms/RunCommandManaged `_. - :ivar client_id: Client Id (GUID value) of the user-assigned managed identity. ObjectId should + :ivar clientId: Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. - :vartype client_id: str - :ivar object_id: Object Id (GUID value) of the user-assigned managed identity. ClientId should + :vartype clientId: str + :ivar objectId: Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. - :vartype object_id: str + :vartype objectId: str """ clientId: str @@ -7434,14 +7565,13 @@ class ScaleInPolicy(TypedDict, total=False): scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

. :vartype rules: list[Union[str, "VirtualMachineScaleSetScaleInRules"]] - :ivar force_deletion: This property allows you to specify if virtual machines chosen for - removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature - in Preview). - :vartype force_deletion: bool - :ivar prioritize_unhealthy_v_ms: This property allows you to prioritize the deletion of - unhealthy and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in + :ivar forceDeletion: This property allows you to specify if virtual machines chosen for removal + have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview). - :vartype prioritize_unhealthy_v_ms: bool + :vartype forceDeletion: bool + :ivar prioritizeUnhealthyVMs: This property allows you to prioritize the deletion of unhealthy + and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in Preview). + :vartype prioritizeUnhealthyVMs: bool """ rules: list[Union[str, "VirtualMachineScaleSetScaleInRules"]] @@ -7469,9 +7599,9 @@ class ScaleInPolicy(TypedDict, total=False): class ScheduledEventsAdditionalPublishingTargets(TypedDict, total=False): # pylint: disable=name-too-long """ScheduledEventsAdditionalPublishingTargets. - :ivar event_grid_and_resource_graph: The configuration parameters used while creating + :ivar eventGridAndResourceGraph: The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting. - :vartype event_grid_and_resource_graph: "EventGridAndResourceGraph" + :vartype eventGridAndResourceGraph: "EventGridAndResourceGraph" """ eventGridAndResourceGraph: "EventGridAndResourceGraph" @@ -7483,19 +7613,19 @@ class ScheduledEventsPolicy(TypedDict, total=False): """Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations. - :ivar user_initiated_redeploy: The configuration parameters used while creating + :ivar userInitiatedRedeploy: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation. - :vartype user_initiated_redeploy: "UserInitiatedRedeploy" - :ivar user_initiated_reboot: The configuration parameters used while creating - userInitiatedReboot scheduled event setting creation. - :vartype user_initiated_reboot: "UserInitiatedReboot" - :ivar scheduled_events_additional_publishing_targets: The configuration parameters used while + :vartype userInitiatedRedeploy: "UserInitiatedRedeploy" + :ivar userInitiatedReboot: The configuration parameters used while creating userInitiatedReboot + scheduled event setting creation. + :vartype userInitiatedReboot: "UserInitiatedReboot" + :ivar scheduledEventsAdditionalPublishingTargets: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets. - :vartype scheduled_events_additional_publishing_targets: + :vartype scheduledEventsAdditionalPublishingTargets: "ScheduledEventsAdditionalPublishingTargets" - :ivar all_instances_down: The configuration parameters used while creating AllInstancesDown + :ivar allInstancesDown: The configuration parameters used while creating AllInstancesDown scheduled event setting creation. - :vartype all_instances_down: "AllInstancesDown" + :vartype allInstancesDown: "AllInstancesDown" """ userInitiatedRedeploy: "UserInitiatedRedeploy" @@ -7514,11 +7644,10 @@ class ScheduledEventsPolicy(TypedDict, total=False): class ScheduledEventsProfile(TypedDict, total=False): """ScheduledEventsProfile. - :ivar terminate_notification_profile: Specifies Terminate Scheduled Event related - configurations. - :vartype terminate_notification_profile: "TerminateNotificationProfile" - :ivar os_image_notification_profile: Specifies OS Image Scheduled Event related configurations. - :vartype os_image_notification_profile: "OSImageNotificationProfile" + :ivar terminateNotificationProfile: Specifies Terminate Scheduled Event related configurations. + :vartype terminateNotificationProfile: "TerminateNotificationProfile" + :ivar osImageNotificationProfile: Specifies OS Image Scheduled Event related configurations. + :vartype osImageNotificationProfile: "OSImageNotificationProfile" """ terminateNotificationProfile: "TerminateNotificationProfile" @@ -7528,37 +7657,59 @@ class ScheduledEventsProfile(TypedDict, total=False): class ScheduleProfile(TypedDict, total=False): - """Defines the schedule for Block-type capacity reservations. Specifies the schedule during which - capacity reservation is active and VM or VMSS resource can be allocated using reservation. This - property is required and only supported when the capacity reservation group type is 'Block'. - The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: - 2025-04-01. Please refer to `https://aka.ms/blockcapacityreservation - `_ for more details. - - :ivar start: The required start date for block capacity reservations. Must be today or within - 56 days in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. - Example: 2025-06-27. + """Defines the schedule for Block and Future capacity reservations. Specifies the schedule during + which capacity reservation is active and VM or VMSS resource can be allocated using + reservation. For Block capacity reservations, the scheduleProfile, start, and end fields are + immutable after creation. Please refer to `https://aka.ms/blockcapacityreservation + `_ for more details. Minimum API version for Block + capacity reservations: 2025-04-01. Future capacity reservations must use this property with + only a start time, which can be changed until the ‘modifiableUntil’ time. Please refer to + `https://aka.ms/futurecapacityreservation `_ for more + details. Minimum API version for Future capacity reservations: 2026-04-01. + + :ivar start: The required start date for Block or Future capacity reservations. Block capacity + reservations: Must be today or within 56 days in the future. For same-day scheduling, requests + must be submitted before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in + the future, and maximum 6 months in the future. Minimum API version for Future capacity + reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future capacity + reservations. :vartype start: str - :ivar end: The required end date for block capacity reservations. Must be after the start date, + :ivar end: The required end date for Block capacity reservations. Must be after the start date, with a duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. :vartype end: str + :ivar minimumCommitmentDays: The minimum number of days that must pass after the start date + before a Future capacity reservation can be updated or deleted once it has been committed. Will + be populated with a default value if not provided. + :vartype minimumCommitmentDays: int + :ivar modifiableUntil: The date/time until which a Future capacity reservation can be updated + or deleted. Read-only. + :vartype modifiableUntil: str """ start: str - """The required start date for block capacity reservations. Must be today or within 56 days in the - future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Example: - 2025-06-27.""" + """The required start date for Block or Future capacity reservations. Block capacity reservations: + Must be today or within 56 days in the future. For same-day scheduling, requests must be + submitted before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in the + future, and maximum 6 months in the future. Minimum API version for Future capacity + reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future capacity + reservations.""" end: str - """The required end date for block capacity reservations. Must be after the start date, with a + """The required end date for Block capacity reservations. Must be after the start date, with a duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28.""" + minimumCommitmentDays: int + """The minimum number of days that must pass after the start date before a Future capacity + reservation can be updated or deleted once it has been committed. Will be populated with a + default value if not provided.""" + modifiableUntil: str + """The date/time until which a Future capacity reservation can be updated or deleted. Read-only.""" class ScriptSource(TypedDict, total=False): """The source script from which the Script Version is going to be created. - :ivar script_link: Required. The link of the source script, it must be a readable storage blob + :ivar scriptLink: Required. The link of the source script, it must be a readable storage blob with SAS URI or publicly accessible URI or managed identity enabled. Required. - :vartype script_link: str + :vartype scriptLink: str :ivar parameters: Optional. Any input parameters that needs to passed to the script and are accessed within the script for its execution. :vartype parameters: list["GalleryScriptParameter"] @@ -7579,11 +7730,11 @@ class SecurityPostureReference(TypedDict, total=False): /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest. Required. :vartype id: str - :ivar exclude_extensions: The list of virtual machine extension names to exclude when applying + :ivar excludeExtensions: The list of virtual machine extension names to exclude when applying the security posture. - :vartype exclude_extensions: list[str] - :ivar is_overridable: Whether the security posture can be overridden by the user. - :vartype is_overridable: bool + :vartype excludeExtensions: list[str] + :ivar isOverridable: Whether the security posture can be overridden by the user. + :vartype isOverridable: bool """ id: Required[str] @@ -7602,11 +7753,11 @@ class SecurityPostureReferenceUpdate(TypedDict, total=False): :ivar id: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest. :vartype id: str - :ivar exclude_extensions: The list of virtual machine extension names to exclude when applying + :ivar excludeExtensions: The list of virtual machine extension names to exclude when applying the security posture. - :vartype exclude_extensions: list[str] - :ivar is_overridable: Whether the security posture can be overridden by the user. - :vartype is_overridable: bool + :vartype excludeExtensions: list[str] + :ivar isOverridable: Whether the security posture can be overridden by the user. + :vartype isOverridable: bool """ id: str @@ -7621,27 +7772,27 @@ class SecurityPostureReferenceUpdate(TypedDict, total=False): class SecurityProfile(TypedDict, total=False): """Specifies the Security profile settings for the virtual machine or virtual machine scale set. - :ivar uefi_settings: Specifies the security settings like secure boot and vTPM used while + :ivar uefiSettings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. - :vartype uefi_settings: "UefiSettings" - :ivar encryption_at_host: This property can be used by user in the request to enable or disable + :vartype uefiSettings: "UefiSettings" + :ivar encryptionAtHost: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource. - :vartype encryption_at_host: bool - :ivar security_type: Specifies the SecurityType of the virtual machine. It has to be set to any + :vartype encryptionAtHost: bool + :ivar securityType: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set and is not Standard. If not specified, Standard will be returned starting api version 2025-11-01. Known values are: "Standard", "TrustedLaunch", and "ConfidentialVM". - :vartype security_type: Union[str, "SecurityTypes"] - :ivar encryption_identity: Specifies the Managed Identity used by ADE to get access token for + :vartype securityType: Union[str, "SecurityTypes"] + :ivar encryptionIdentity: Specifies the Managed Identity used by ADE to get access token for keyvault operations. - :vartype encryption_identity: "EncryptionIdentity" - :ivar proxy_agent_settings: Specifies ProxyAgent settings while creating the virtual machine. + :vartype encryptionIdentity: "EncryptionIdentity" + :ivar proxyAgentSettings: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01. - :vartype proxy_agent_settings: "ProxyAgentSettings" + :vartype proxyAgentSettings: "ProxyAgentSettings" """ uefiSettings: "UefiSettings" @@ -7681,8 +7832,8 @@ class ServiceArtifactReference(TypedDict, total=False): class ShareInfoElement(TypedDict, total=False): """ShareInfoElement. - :ivar vm_uri: A relative URI containing the ID of the VM that has the disk attached. - :vartype vm_uri: str + :ivar vmUri: A relative URI containing the ID of the VM that has the disk attached. + :vartype vmUri: str """ vmUri: str @@ -7698,9 +7849,9 @@ class SharingProfile(TypedDict, total=False): :vartype permissions: Union[str, "GallerySharingPermissionTypes"] :ivar groups: A list of sharing profile groups. :vartype groups: list["SharingProfileGroup"] - :ivar community_gallery_info: Information of community gallery if current gallery is shared to + :ivar communityGalleryInfo: Information of community gallery if current gallery is shared to community. - :vartype community_gallery_info: "CommunityGalleryInfo" + :vartype communityGalleryInfo: "CommunityGalleryInfo" """ permissions: Union[str, "GallerySharingPermissionTypes"] @@ -7733,9 +7884,9 @@ class SharingProfileGroup(TypedDict, total=False): class SharingStatus(TypedDict, total=False): """Sharing status of current gallery. - :ivar aggregated_state: Aggregated sharing state of current gallery. Known values are: + :ivar aggregatedState: Aggregated sharing state of current gallery. Known values are: "Succeeded", "InProgress", "Failed", and "Unknown". - :vartype aggregated_state: Union[str, "SharingState"] + :vartype aggregatedState: Union[str, "SharingState"] :ivar summary: Summary of all regional sharing status. :vartype summary: list["RegionalSharingStatus"] """ @@ -7750,10 +7901,10 @@ class SharingStatus(TypedDict, total=False): class SharingUpdate(TypedDict, total=False): """Specifies information about the gallery sharing profile update. - :ivar operation_type: This property allows you to specify the operation type of gallery sharing + :ivar operationType: This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**. Required. Known values are: "Add", "Remove", "Reset", and "EnableCommunity". - :vartype operation_type: Union[str, "SharingUpdateOperationTypes"] + :vartype operationType: Union[str, "SharingUpdateOperationTypes"] :ivar groups: A list of sharing profile groups. :vartype groups: list["SharingProfileGroup"] """ @@ -7793,16 +7944,16 @@ class SkuProfile(TypedDict, total=False): """Specifies the sku profile for the virtual machine scale set. With this property the customer is able to specify a list of VM sizes and an allocation strategy. - :ivar vm_sizes: Specifies the VM sizes for the virtual machine scale set. - :vartype vm_sizes: list["SkuProfileVMSize"] - :ivar allocation_strategy: Specifies the allocation strategy for the virtual machine scale set + :ivar vmSizes: Specifies the VM sizes for the virtual machine scale set. + :vartype vmSizes: list["SkuProfileVMSize"] + :ivar allocationStrategy: Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated. Known values are: "LowestPrice", "CapacityOptimized", and "Prioritized". - :vartype allocation_strategy: Union[str, "AllocationStrategy"] - :ivar automatic_sku_migration_policy: Specifies the policy that controls whether the platform - may automatically migrate scale set instances to a different VM size from the SKU profile - depending on platform demands. When omitted, automatic SKU migration is disabled. - :vartype automatic_sku_migration_policy: "AutomaticSkuMigrationPolicy" + :vartype allocationStrategy: Union[str, "AllocationStrategy"] + :ivar automaticSkuMigrationPolicy: Specifies the policy that controls whether the platform may + automatically migrate scale set instances to a different VM size from the SKU profile depending + on platform demands. When omitted, automatic SKU migration is disabled. + :vartype automaticSkuMigrationPolicy: "AutomaticSkuMigrationPolicy" """ vmSizes: list["SkuProfileVMSize"] @@ -7842,24 +7993,24 @@ class Snapshot(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: Snapshot resource properties. :vartype properties: "SnapshotProperties" - :ivar managed_by: Unused. Always Null. - :vartype managed_by: str + :ivar managedBy: Unused. Always Null. + :vartype managedBy: str :ivar sku: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot. :vartype sku: "SnapshotSku" - :ivar extended_location: The extended location where the snapshot will be created. Extended + :ivar extendedLocation: The extended location where the snapshot will be created. Extended location cannot be changed. - :vartype extended_location: "ExtendedLocation" + :vartype extendedLocation: "ExtendedLocation" """ properties: "SnapshotProperties" @@ -7877,77 +8028,77 @@ class Snapshot(TrackedResource): class SnapshotProperties(TypedDict, total=False): """Snapshot resource properties. - :ivar time_created: The time when the snapshot was created. - :vartype time_created: str - :ivar os_type: The Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar hyper_v_generation: The hypervisor generation of the Virtual Machine. Applicable to OS + :ivar timeCreated: The time when the snapshot was created. + :vartype timeCreated: str + :ivar osType: The Operating System type. Known values are: "Windows" and "Linux". + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar hyperVGeneration: The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGeneration"] - :ivar purchase_plan: Purchase plan information for the image from which the source disk for the + :vartype hyperVGeneration: Union[str, "HyperVGeneration"] + :ivar purchasePlan: Purchase plan information for the image from which the source disk for the snapshot was originally created. - :vartype purchase_plan: "DiskPurchasePlan" - :ivar supported_capabilities: List of supported capabilities for the image from which the - source disk from the snapshot was originally created. - :vartype supported_capabilities: "SupportedCapabilities" - :ivar creation_data: Disk source information. CreationData information cannot be changed after + :vartype purchasePlan: "DiskPurchasePlan" + :ivar supportedCapabilities: List of supported capabilities for the image from which the source + disk from the snapshot was originally created. + :vartype supportedCapabilities: "SupportedCapabilities" + :ivar creationData: Disk source information. CreationData information cannot be changed after the disk has been created. Required. - :vartype creation_data: "CreationData" - :ivar disk_size_gb: If creationData.createOption is Empty, this field is mandatory and it + :vartype creationData: "CreationData" + :ivar diskSizeGB: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - :vartype disk_size_gb: int - :ivar disk_size_bytes: The size of the disk in bytes. This field is read only. - :vartype disk_size_bytes: int - :ivar disk_state: The state of the snapshot. Known values are: "Unattached", "Attached", + :vartype diskSizeGB: int + :ivar diskSizeBytes: The size of the disk in bytes. This field is read only. + :vartype diskSizeBytes: int + :ivar diskState: The state of the snapshot. Known values are: "Unattached", "Attached", "Reserved", "Frozen", "ActiveSAS", "ActiveSASFrozen", "ReadyToUpload", and "ActiveUpload". - :vartype disk_state: Union[str, "DiskState"] - :ivar unique_id: Unique Guid identifying the resource. - :vartype unique_id: str - :ivar encryption_settings_collection: Encryption settings collection used be Azure Disk + :vartype diskState: Union[str, "DiskState"] + :ivar uniqueId: Unique Guid identifying the resource. + :vartype uniqueId: str + :ivar encryptionSettingsCollection: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - :vartype encryption_settings_collection: "EncryptionSettingsCollection" - :ivar provisioning_state: The disk provisioning state. - :vartype provisioning_state: str + :vartype encryptionSettingsCollection: "EncryptionSettingsCollection" + :ivar provisioningState: The disk provisioning state. + :vartype provisioningState: str :ivar incremental: Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. :vartype incremental: bool - :ivar incremental_snapshot_family_id: Incremental snapshots for a disk share an incremental + :ivar incrementalSnapshotFamilyId: Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id. - :vartype incremental_snapshot_family_id: str + :vartype incrementalSnapshotFamilyId: str :ivar encryption: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. :vartype encryption: "Encryption" - :ivar network_access_policy: Policy for accessing the disk via network. Known values are: + :ivar networkAccessPolicy: Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". - :vartype network_access_policy: Union[str, "NetworkAccessPolicy"] - :ivar disk_access_id: ARM id of the DiskAccess resource for using private endpoints on disks. - :vartype disk_access_id: str - :ivar security_profile: Contains the security related information for the resource. - :vartype security_profile: "DiskSecurityProfile" - :ivar supports_hibernation: Indicates the OS on a snapshot supports hibernation. - :vartype supports_hibernation: bool - :ivar public_network_access: Policy for controlling export on the disk. Known values are: + :vartype networkAccessPolicy: Union[str, "NetworkAccessPolicy"] + :ivar diskAccessId: ARM id of the DiskAccess resource for using private endpoints on disks. + :vartype diskAccessId: str + :ivar securityProfile: Contains the security related information for the resource. + :vartype securityProfile: "DiskSecurityProfile" + :ivar supportsHibernation: Indicates the OS on a snapshot supports hibernation. + :vartype supportsHibernation: bool + :ivar publicNetworkAccess: Policy for controlling export on the disk. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: Union[str, "PublicNetworkAccess"] - :ivar completion_percent: Percentage complete for the background copy when a resource is - created via the CopyStart operation. - :vartype completion_percent: float - :ivar copy_completion_error: Indicates the error details if the background copy of a resource + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar completionPercent: Percentage complete for the background copy when a resource is created + via the CopyStart operation. + :vartype completionPercent: float + :ivar copyCompletionError: Indicates the error details if the background copy of a resource created via the CopyStart operation fails. - :vartype copy_completion_error: "CopyCompletionError" - :ivar data_access_auth_mode: Additional authentication requirements when exporting or uploading - to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". - :vartype data_access_auth_mode: Union[str, "DataAccessAuthMode"] - :ivar snapshot_access_state: The state of snapshot which determines the access availability of + :vartype copyCompletionError: "CopyCompletionError" + :ivar dataAccessAuthMode: Additional authentication requirements when exporting or uploading to + a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". + :vartype dataAccessAuthMode: Union[str, "DataAccessAuthMode"] + :ivar snapshotAccessState: The state of snapshot which determines the access availability of the snapshot. Known values are: "Unknown", "Pending", "Available", "InstantAccess", and "AvailableWithInstantAccess". - :vartype snapshot_access_state: Union[str, "SnapshotAccessState"] - :ivar immutability_policy: The immutability policy currently applied to this snapshot. Present + :vartype snapshotAccessState: Union[str, "SnapshotAccessState"] + :ivar immutabilityPolicy: The immutability policy currently applied to this snapshot. Present only when an immutability policy has been configured. - :vartype immutability_policy: "ImmutabilityPolicy" + :vartype immutabilityPolicy: "ImmutabilityPolicy" """ timeCreated: str @@ -8064,39 +8215,39 @@ class SnapshotUpdate(TypedDict, total=False): class SnapshotUpdateProperties(TypedDict, total=False): """Snapshot resource update properties. - :ivar os_type: the Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] - :ivar disk_size_gb: If creationData.createOption is Empty, this field is mandatory and it + :ivar osType: the Operating System type. Known values are: "Windows" and "Linux". + :vartype osType: Union[str, "OperatingSystemTypes"] + :ivar diskSizeGB: If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. - :vartype disk_size_gb: int - :ivar encryption_settings_collection: Encryption settings collection used be Azure Disk + :vartype diskSizeGB: int + :ivar encryptionSettingsCollection: Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. - :vartype encryption_settings_collection: "EncryptionSettingsCollection" + :vartype encryptionSettingsCollection: "EncryptionSettingsCollection" :ivar encryption: Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. :vartype encryption: "Encryption" - :ivar network_access_policy: Policy for accessing the disk via network. Known values are: + :ivar networkAccessPolicy: Policy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". - :vartype network_access_policy: Union[str, "NetworkAccessPolicy"] - :ivar disk_access_id: ARM id of the DiskAccess resource for using private endpoints on disks. - :vartype disk_access_id: str - :ivar supports_hibernation: Indicates the OS on a snapshot supports hibernation. - :vartype supports_hibernation: bool - :ivar public_network_access: Policy for controlling export on the disk. Known values are: + :vartype networkAccessPolicy: Union[str, "NetworkAccessPolicy"] + :ivar diskAccessId: ARM id of the DiskAccess resource for using private endpoints on disks. + :vartype diskAccessId: str + :ivar supportsHibernation: Indicates the OS on a snapshot supports hibernation. + :vartype supportsHibernation: bool + :ivar publicNetworkAccess: Policy for controlling export on the disk. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: Union[str, "PublicNetworkAccess"] - :ivar data_access_auth_mode: Additional authentication requirements when exporting or uploading - to a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". - :vartype data_access_auth_mode: Union[str, "DataAccessAuthMode"] - :ivar supported_capabilities: List of supported capabilities for the image from which the OS + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar dataAccessAuthMode: Additional authentication requirements when exporting or uploading to + a disk or snapshot. Known values are: "AzureActiveDirectory" and "None". + :vartype dataAccessAuthMode: Union[str, "DataAccessAuthMode"] + :ivar supportedCapabilities: List of supported capabilities for the image from which the OS disk was created. - :vartype supported_capabilities: "SupportedCapabilities" - :ivar snapshot_access_state: The state of snapshot which determines the access availability of + :vartype supportedCapabilities: "SupportedCapabilities" + :ivar snapshotAccessState: The state of snapshot which determines the access availability of the snapshot. Known values are: "Unknown", "Pending", "Available", "InstantAccess", and "AvailableWithInstantAccess". - :vartype snapshot_access_state: Union[str, "SnapshotAccessState"] + :vartype snapshotAccessState: Union[str, "SnapshotAccessState"] """ osType: Union[str, "OperatingSystemTypes"] @@ -8135,9 +8286,9 @@ class SnapshotUpdateProperties(TypedDict, total=False): class SoftDeletePolicy(TypedDict, total=False): """Contains information about the soft deletion policy of the gallery. - :ivar is_soft_delete_enabled: Enables soft-deletion for resources in this gallery, allowing - them to be recovered within retention time. - :vartype is_soft_delete_enabled: bool + :ivar isSoftDeleteEnabled: Enables soft-deletion for resources in this gallery, allowing them + to be recovered within retention time. + :vartype isSoftDeleteEnabled: bool """ isSoftDeleteEnabled: bool @@ -8165,9 +8316,9 @@ class SpotRestorePolicy(TypedDict, total=False): :ivar enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. :vartype enabled: bool - :ivar restore_timeout: Timeout value expressed as an ISO 8601 time duration after which the + :ivar restoreTimeout: Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances. - :vartype restore_timeout: str + :vartype restoreTimeout: str """ enabled: bool @@ -8181,8 +8332,8 @@ class SpotRestorePolicy(TypedDict, total=False): class SshConfiguration(TypedDict, total=False): """SSH configuration for Linux based VMs running on Azure. - :ivar public_keys: The list of SSH public keys used to authenticate with linux based VMs. - :vartype public_keys: list["SshPublicKey"] + :ivar publicKeys: The list of SSH public keys used to authenticate with linux based VMs. + :vartype publicKeys: list["SshPublicKey"] """ publicKeys: list["SshPublicKey"] @@ -8192,10 +8343,10 @@ class SshConfiguration(TypedDict, total=False): class SshGenerateKeyPairInputParameters(TypedDict, total=False): """Parameters for GenerateSshKeyPair. - :ivar encryption_type: The encryption type of the SSH keys to be generated. See + :ivar encryptionType: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA. Known values are: "RSA" and "Ed25519". - :vartype encryption_type: Union[str, "SshEncryptionTypes"] + :vartype encryptionType: Union[str, "SshEncryptionTypes"] """ encryptionType: Union[str, "SshEncryptionTypes"] @@ -8211,12 +8362,12 @@ class SshPublicKey(TypedDict, total=False): file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys. :vartype path: str - :ivar key_data: SSH public key certificate used to authenticate with the VM through ssh. The - key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH + :ivar keyData: SSH public key certificate used to authenticate with the VM through ssh. The key + needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]`https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed `_). - :vartype key_data: str + :vartype keyData: str """ path: str @@ -8241,9 +8392,9 @@ class SshPublicKeyResource(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -8259,11 +8410,11 @@ class SshPublicKeyResource(TrackedResource): class SshPublicKeyResourceProperties(TypedDict, total=False): """Properties of the SSH public key. - :ivar public_key: SSH public key used to authenticate to a virtual machine through ssh. If this + :ivar publicKey: SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. - :vartype public_key: str + :vartype publicKey: str """ publicKey: str @@ -8300,31 +8451,35 @@ class StartRecoveryPolicy(TypedDict, total=False): class StorageProfile(TypedDict, total=False): """Specifies the storage settings for the virtual machine disks. - :ivar image_reference: Specifies information about the image to use. You can specify - information about platform images, marketplace images, or virtual machine images. This element - is required when you want to use a platform image, marketplace image, or virtual machine image, - but is not used in other creation operations. - :vartype image_reference: "ImageReference" - :ivar os_disk: Specifies information about the operating system disk used by the virtual + :ivar imageReference: Specifies information about the image to use. You can specify information + about platform images, marketplace images, or virtual machine images. This element is required + when you want to use a platform image, marketplace image, or virtual machine image, but is not + used in other creation operations. + :vartype imageReference: "ImageReference" + :ivar osDisk: Specifies information about the operating system disk used by the virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: "OSDisk" - :ivar data_disks: Specifies the parameters that are used to add a data disk to a virtual + :vartype osDisk: "OSDisk" + :ivar dataDisks: Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype data_disks: list["DataDisk"] - :ivar disk_controller_type: Specifies the disk controller type configured for the VM. **Note:** + :vartype dataDisks: list["DataDisk"] + :ivar diskControllerType: Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". - :vartype disk_controller_type: Union[str, "DiskControllerTypes"] - :ivar align_regional_disks_to_vm_zone: Specifies whether the regional disks should be - aligned/moved to the VM zone. This is applicable only for VMs with placement property set. - Please note that this change is irreversible. Minimum api-version: 2024-11-01. - :vartype align_regional_disks_to_vm_zone: bool + :vartype diskControllerType: Union[str, "DiskControllerTypes"] + :ivar alignRegionalDisksToVMZone: Specifies whether the regional disks should be aligned/moved + to the VM zone. This is applicable only for VMs with placement property set. Please note that + this change is irreversible. Minimum api-version: 2024-11-01. + :vartype alignRegionalDisksToVMZone: bool + :ivar diskApiVersion: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype diskApiVersion: Union[str, "DiskApiVersion"] """ imageReference: "ImageReference" @@ -8352,6 +8507,10 @@ class StorageProfile(TypedDict, total=False): """Specifies whether the regional disks should be aligned/moved to the VM zone. This is applicable only for VMs with placement property set. Please note that this change is irreversible. Minimum api-version: 2024-11-01.""" + diskApiVersion: Union[str, "DiskApiVersion"] + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" class SubResourceWithColocationStatus(SubResource): @@ -8359,9 +8518,9 @@ class SubResourceWithColocationStatus(SubResource): :ivar id: Resource Id. :vartype id: str - :ivar colocation_status: Describes colocation status of a resource in the Proximity Placement + :ivar colocationStatus: Describes colocation status of a resource in the Proximity Placement Group. - :vartype colocation_status: "InstanceViewStatus" + :vartype colocationStatus: "InstanceViewStatus" """ colocationStatus: "InstanceViewStatus" @@ -8371,19 +8530,19 @@ class SubResourceWithColocationStatus(SubResource): class SupportedCapabilities(TypedDict, total=False): """List of supported capabilities persisted on the disk resource for VM use. - :ivar disk_controller_types: The disk controllers that an OS disk supports. If set it can be - SCSI or SCSI, NVME or NVME, SCSI. - :vartype disk_controller_types: str - :ivar accelerated_network: True if the image from which the OS disk is created supports + :ivar diskControllerTypes: The disk controllers that an OS disk supports. If set it can be SCSI + or SCSI, NVME or NVME, SCSI. + :vartype diskControllerTypes: str + :ivar acceleratedNetwork: True if the image from which the OS disk is created supports accelerated networking. - :vartype accelerated_network: bool + :vartype acceleratedNetwork: bool :ivar architecture: CPU architecture supported by an OS disk. Known values are: "x64" and "Arm64". :vartype architecture: Union[str, "Architecture"] - :ivar supported_security_option: Refers to the security capability of the disk supported to + :ivar supportedSecurityOption: Refers to the security capability of the disk supported to create a Trusted launch or Confidential VM. Known values are: "TrustedLaunchSupported" and "TrustedLaunchAndConfidentialVMSupported". - :vartype supported_security_option: Union[str, "SupportedSecurityOption"] + :vartype supportedSecurityOption: Union[str, "SupportedSecurityOption"] """ diskControllerTypes: str @@ -8402,20 +8561,20 @@ class SupportedCapabilities(TypedDict, total=False): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str @@ -8439,22 +8598,22 @@ class TargetRegion(TypedDict, total=False): :ivar name: The name of the region. Required. :vartype name: str - :ivar regional_replica_count: The number of replicas of the Image Version to be created per + :ivar regionalReplicaCount: The number of replicas of the Image Version to be created per region. This property is updatable. - :vartype regional_replica_count: int - :ivar storage_account_type: Specifies the storage account type to be used to store the image. + :vartype regionalReplicaCount: int + :ivar storageAccountType: Specifies the storage account type to be used to store the image. This property is not updatable. Known values are: "Standard_LRS", "Standard_ZRS", "Premium_LRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountType"] + :vartype storageAccountType: Union[str, "StorageAccountType"] :ivar encryption: Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. :vartype encryption: "EncryptionImages" - :ivar exclude_from_latest: Contains the flag setting to hide an image when users specify + :ivar excludeFromLatest: Contains the flag setting to hide an image when users specify version='latest'. - :vartype exclude_from_latest: bool - :ivar additional_replica_sets: List of storage sku with replica count to create direct drive + :vartype excludeFromLatest: bool + :ivar additionalReplicaSets: List of storage sku with replica count to create direct drive replicas. - :vartype additional_replica_sets: list["AdditionalReplicaSet"] + :vartype additionalReplicaSets: list["AdditionalReplicaSet"] """ name: Required[str] @@ -8478,11 +8637,11 @@ class TargetRegion(TypedDict, total=False): class TerminateNotificationProfile(TypedDict, total=False): """TerminateNotificationProfile. - :ivar not_before_timeout: Configurable length of time a Virtual Machine being deleted will have + :ivar notBeforeTimeout: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M). - :vartype not_before_timeout: str + :vartype notBeforeTimeout: str :ivar enable: Specifies whether the Terminate Scheduled event is enabled or disabled. :vartype enable: bool """ @@ -8498,23 +8657,23 @@ class TerminateNotificationProfile(TypedDict, total=False): class ThrottledRequestsInput(LogAnalyticsInputBase): """Api request input for LogAnalytics getThrottledRequests Api. - :ivar blob_container_sas_uri: SAS Uri of the logging blob container to which LogAnalytics Api + :ivar blobContainerSasUri: SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. Required. - :vartype blob_container_sas_uri: str - :ivar from_time: From time of the query. Required. - :vartype from_time: str - :ivar to_time: To time of the query. Required. - :vartype to_time: str - :ivar group_by_throttle_policy: Group query result by Throttle Policy applied. - :vartype group_by_throttle_policy: bool - :ivar group_by_operation_name: Group query result by Operation Name. - :vartype group_by_operation_name: bool - :ivar group_by_resource_name: Group query result by Resource Name. - :vartype group_by_resource_name: bool - :ivar group_by_client_application_id: Group query result by Client Application ID. - :vartype group_by_client_application_id: bool - :ivar group_by_user_agent: Group query result by User Agent. - :vartype group_by_user_agent: bool + :vartype blobContainerSasUri: str + :ivar fromTime: From time of the query. Required. + :vartype fromTime: str + :ivar toTime: To time of the query. Required. + :vartype toTime: str + :ivar groupByThrottlePolicy: Group query result by Throttle Policy applied. + :vartype groupByThrottlePolicy: bool + :ivar groupByOperationName: Group query result by Operation Name. + :vartype groupByOperationName: bool + :ivar groupByResourceName: Group query result by Resource Name. + :vartype groupByResourceName: bool + :ivar groupByClientApplicationId: Group query result by Client Application ID. + :vartype groupByClientApplicationId: bool + :ivar groupByUserAgent: Group query result by User Agent. + :vartype groupByUserAgent: bool """ @@ -8561,12 +8720,12 @@ class UefiSettings(TypedDict, total=False): """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. - :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + :ivar secureBootEnabled: Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01. - :vartype secure_boot_enabled: bool - :ivar v_tpm_enabled: Specifies whether vTPM should be enabled on the virtual machine. Minimum + :vartype secureBootEnabled: bool + :ivar vTpmEnabled: Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01. - :vartype v_tpm_enabled: bool + :vartype vTpmEnabled: bool """ secureBootEnabled: bool @@ -8586,12 +8745,12 @@ class UpgradePolicy(TypedDict, total=False): **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Known values are: "Automatic", "Manual", and "Rolling". :vartype mode: Union[str, "UpgradeMode"] - :ivar rolling_upgrade_policy: The configuration parameters used while performing a rolling + :ivar rollingUpgradePolicy: The configuration parameters used while performing a rolling upgrade. - :vartype rolling_upgrade_policy: "RollingUpgradePolicy" - :ivar automatic_os_upgrade_policy: Configuration parameters used for performing automatic OS + :vartype rollingUpgradePolicy: "RollingUpgradePolicy" + :ivar automaticOSUpgradePolicy: Configuration parameters used for performing automatic OS Upgrade. - :vartype automatic_os_upgrade_policy: "AutomaticOSUpgradePolicy" + :vartype automaticOSUpgradePolicy: "AutomaticOSUpgradePolicy" """ mode: Union[str, "UpgradeMode"] @@ -8615,11 +8774,10 @@ class UserArtifactManage(TypedDict, total=False): :ivar remove: Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. Required. :vartype remove: str - :ivar update_property: Optional. The path and arguments to update the gallery application. If - not present, then update operation will invoke remove command on the previous version and - install command on the current version of the gallery application. This is limited to 4096 - characters. - :vartype update_property: str + :ivar update: Optional. The path and arguments to update the gallery application. If not + present, then update operation will invoke remove command on the previous version and install + command on the current version of the gallery application. This is limited to 4096 characters. + :vartype update: str """ install: Required[str] @@ -8638,18 +8796,18 @@ class UserArtifactSettings(TypedDict, total=False): """Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. - :ivar package_file_name: Optional. The name to assign the downloaded package file on the VM. - This is limited to 4096 characters. If not specified, the package file will be named the same - as the Gallery Application name. - :vartype package_file_name: str - :ivar config_file_name: Optional. The name to assign the downloaded config file on the VM. This + :ivar packageFileName: Optional. The name to assign the downloaded package file on the VM. This + is limited to 4096 characters. If not specified, the package file will be named the same as the + Gallery Application name. + :vartype packageFileName: str + :ivar configFileName: Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config". - :vartype config_file_name: str - :ivar script_behavior_after_reboot: Optional. The action to be taken with regards to + :vartype configFileName: str + :ivar scriptBehaviorAfterReboot: Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot. Known values are: "None" and "Rerun". - :vartype script_behavior_after_reboot: Union[str, "GalleryApplicationScriptRebootBehavior"] + :vartype scriptBehaviorAfterReboot: Union[str, "GalleryApplicationScriptRebootBehavior"] """ packageFileName: str @@ -8668,12 +8826,12 @@ class UserArtifactSettings(TypedDict, total=False): class UserArtifactSource(TypedDict, total=False): """The source image from which the Image Version is going to be created. - :ivar media_link: Required. The mediaLink of the artifact, must be a readable storage page - blob. Required. - :vartype media_link: str - :ivar default_configuration_link: Optional. The defaultConfigurationLink of the artifact, must - be a readable storage page blob. - :vartype default_configuration_link: str + :ivar mediaLink: Required. The mediaLink of the artifact, must be a readable storage page blob. + Required. + :vartype mediaLink: str + :ivar defaultConfigurationLink: Optional. The defaultConfigurationLink of the artifact, must be + a readable storage page blob. + :vartype defaultConfigurationLink: str """ mediaLink: Required[str] @@ -8685,10 +8843,10 @@ class UserArtifactSource(TypedDict, total=False): class UserAssignedIdentitiesValue(TypedDict, total=False): """UserAssignedIdentitiesValue. - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str + :ivar principalId: The principal id of user assigned identity. + :vartype principalId: str + :ivar clientId: The client id of user assigned identity. + :vartype clientId: str """ principalId: str @@ -8700,8 +8858,8 @@ class UserAssignedIdentitiesValue(TypedDict, total=False): class UserInitiatedReboot(TypedDict, total=False): """Specifies Reboot related Scheduled Event related configurations. - :ivar automatically_approve: Specifies Reboot Scheduled Event related configurations. - :vartype automatically_approve: bool + :ivar automaticallyApprove: Specifies Reboot Scheduled Event related configurations. + :vartype automaticallyApprove: bool """ automaticallyApprove: bool @@ -8711,8 +8869,8 @@ class UserInitiatedReboot(TypedDict, total=False): class UserInitiatedRedeploy(TypedDict, total=False): """Specifies Redeploy related Scheduled Event related configurations. - :ivar automatically_approve: Specifies Redeploy Scheduled Event related configurations. - :vartype automatically_approve: bool + :ivar automaticallyApprove: Specifies Redeploy Scheduled Event related configurations. + :vartype automaticallyApprove: bool """ automaticallyApprove: bool @@ -8722,13 +8880,13 @@ class UserInitiatedRedeploy(TypedDict, total=False): class ValidationsProfile(TypedDict, total=False): """This is the validations profile of a Gallery Image Version. - :ivar validation_etag: The published time of the image version. - :vartype validation_etag: str - :ivar executed_validations: - :vartype executed_validations: list["ExecutedValidation"] - :ivar platform_attributes: This specifies the pub, offer, sku and version of the image version + :ivar validationEtag: The published time of the image version. + :vartype validationEtag: str + :ivar executedValidations: + :vartype executedValidations: list["ExecutedValidation"] + :ivar platformAttributes: This specifies the pub, offer, sku and version of the image version metadata. - :vartype platform_attributes: list["PlatformAttribute"] + :vartype platformAttributes: list["PlatformAttribute"] """ validationEtag: str @@ -8742,8 +8900,8 @@ class VaultCertificate(TypedDict, total=False): """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. - :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as - a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault + :ivar certificateUrl: This is the URL of a certificate that has been uploaded to Key Vault as a + secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
@@ -8752,14 +8910,13 @@ class VaultCertificate(TypedDict, total=False): `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :vartype certificate_url: str - :ivar certificate_store: For Windows VMs, specifies the certificate store on the Virtual - Machine to which the certificate should be added. The specified certificate store is implicitly - in the LocalMachine account. For Linux VMs, the certificate file is placed under the - /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 - certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are - .pem formatted. - :vartype certificate_store: str + :vartype certificateUrl: str + :ivar certificateStore: For Windows VMs, specifies the certificate store on the Virtual Machine + to which the certificate should be added. The specified certificate store is implicitly in the + LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent + directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and + <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. + :vartype certificateStore: str """ certificateUrl: str @@ -8785,12 +8942,12 @@ class VaultCertificate(TypedDict, total=False): class VaultSecretGroup(TypedDict, total=False): """Describes a set of certificates which are all in the same Key Vault. - :ivar source_vault: The relative URL of the Key Vault containing all of the certificates in + :ivar sourceVault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. - :vartype source_vault: "SubResource" - :ivar vault_certificates: The list of key vault references in SourceVault which contain + :vartype sourceVault: "SubResource" + :ivar vaultCertificates: The list of key vault references in SourceVault which contain certificates. - :vartype vault_certificates: list["VaultCertificate"] + :vartype vaultCertificates: list["VaultCertificate"] """ sourceVault: "SubResource" @@ -8821,9 +8978,9 @@ class VirtualMachine(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -8842,12 +8999,12 @@ class VirtualMachine(TrackedResource): :vartype identity: "VirtualMachineIdentity" :ivar zones: The availability zones. :vartype zones: list[str] - :ivar extended_location: The extended location of the Virtual Machine. - :vartype extended_location: "ExtendedLocation" - :ivar managed_by: ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if + :ivar extendedLocation: The extended location of the Virtual Machine. + :vartype extendedLocation: "ExtendedLocation" + :ivar managedBy: ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization. - :vartype managed_by: str + :vartype managedBy: str :ivar etag: Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates. :vartype etag: str @@ -8888,10 +9045,10 @@ class VirtualMachine(TrackedResource): class VirtualMachineAgentInstanceView(TypedDict, total=False): """The instance view of the VM Agent running on the virtual machine. - :ivar vm_agent_version: The VM Agent full version. - :vartype vm_agent_version: str - :ivar extension_handlers: The virtual machine extension handler instance view. - :vartype extension_handlers: list["VirtualMachineExtensionHandlerInstanceView"] + :ivar vmAgentVersion: The VM Agent full version. + :vartype vmAgentVersion: str + :ivar extensionHandlers: The virtual machine extension handler instance view. + :vartype extensionHandlers: list["VirtualMachineExtensionHandlerInstanceView"] :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] """ @@ -8907,13 +9064,13 @@ class VirtualMachineAgentInstanceView(TypedDict, total=False): class VirtualMachineCaptureParameters(TypedDict, total=False): """Capture Virtual Machine parameters. - :ivar vhd_prefix: The captured virtual hard disk's name prefix. Required. - :vartype vhd_prefix: str - :ivar destination_container_name: The destination container name. Required. - :vartype destination_container_name: str - :ivar overwrite_vhds: Specifies whether to overwrite the destination virtual hard disk, in case + :ivar vhdPrefix: The captured virtual hard disk's name prefix. Required. + :vartype vhdPrefix: str + :ivar destinationContainerName: The destination container name. Required. + :vartype destinationContainerName: str + :ivar overwriteVhds: Specifies whether to overwrite the destination virtual hard disk, in case of conflict. Required. - :vartype overwrite_vhds: bool + :vartype overwriteVhds: bool """ vhdPrefix: Required[str] @@ -8925,6 +9082,119 @@ class VirtualMachineCaptureParameters(TypedDict, total=False): Required.""" +class VirtualMachineDiagnosticRunCommand(TrackedResource): + """Describes a Virtual Machine diagnostic run command. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Describes the properties of a Virtual Machine diagnostic run command. + :vartype properties: "VirtualMachineRunCommandProperties" + """ + + properties: "VirtualMachineRunCommandProperties" + """Describes the properties of a Virtual Machine diagnostic run command.""" + + +class VirtualMachineDiskProperties(TypedDict, total=False): + """Specifies the properties of a managed disk that can be set at the time of implicit creation of + the disk. + + :ivar tier: Performance tier of the disk (e.g., P4, S10) as described here: + `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ + `_. Does not apply to Ultra + disks. + :vartype tier: str + :ivar burstingEnabled: Set to true to enable bursting beyond the provisioned performance target + of the disk. Bursting is disabled by default. Does not apply to Ultra disks. + :vartype burstingEnabled: bool + :ivar performancePlus: Set this flag to true to get a boost on the performance target of the + disk deployed. This flag can only be set on disk creation time and cannot be disabled after + enabled. + :vartype performancePlus: bool + :ivar optimizedForFrequentAttach: Setting this property to true improves reliability and + performance of data disks that are frequently (more than 5 times a day) detached from one + virtual machine and attached to another. This property should not be set for disks that are not + detached and attached frequently as it causes the disks to not align with the fault domain of + the virtual machine. + :vartype optimizedForFrequentAttach: bool + :ivar availabilityPolicy: In the case of an availability or connectivity issue with the disk, + specify the behavior of your VM. + :vartype availabilityPolicy: "DiskAvailabilityPolicy" + :ivar maxShares: The maximum number of VMs that can attach to the disk at the same time. Value + greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies + to data disks only. + :vartype maxShares: int + :ivar networkAccessPolicy: Policy for accessing the disk via network. Known values are: + "AllowAll", "AllowPrivate", and "DenyAll". + :vartype networkAccessPolicy: Union[str, "VirtualMachineDiskNetworkAccessPolicy"] + :ivar diskAccessId: Azure resource Id of the DiskAccess resource for using private endpoints on + disks. + :vartype diskAccessId: str + :ivar diskIOPSReadOnly: The total number of IOPS that will be allowed across all VMs mounting + the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + :vartype diskIOPSReadOnly: int + :ivar diskMBpsReadOnly: The total throughput (MBps) that will be allowed across all VMs + mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses + the ISO notation, of powers of 10. + :vartype diskMBpsReadOnly: int + :ivar logicalSectorSize: Logical sector size in bytes for Ultra Disks. Supported values are 512 + and 4096. 4096 is the default. + :vartype logicalSectorSize: int + """ + + tier: str + """Performance tier of the disk (e.g., P4, S10) as described here: + `https://azure.microsoft.com/en-us/pricing/details/managed-disks/ + `_. Does not apply to Ultra + disks.""" + burstingEnabled: bool + """Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting + is disabled by default. Does not apply to Ultra disks.""" + performancePlus: bool + """Set this flag to true to get a boost on the performance target of the disk deployed. This flag + can only be set on disk creation time and cannot be disabled after enabled.""" + optimizedForFrequentAttach: bool + """Setting this property to true improves reliability and performance of data disks that are + frequently (more than 5 times a day) detached from one virtual machine and attached to another. + This property should not be set for disks that are not detached and attached frequently as it + causes the disks to not align with the fault domain of the virtual machine.""" + availabilityPolicy: "DiskAvailabilityPolicy" + """In the case of an availability or connectivity issue with the disk, specify the behavior of + your VM.""" + maxShares: int + """The maximum number of VMs that can attach to the disk at the same time. Value greater than one + indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks + only.""" + networkAccessPolicy: Union[str, "VirtualMachineDiskNetworkAccessPolicy"] + """Policy for accessing the disk via network. Known values are: \"AllowAll\", \"AllowPrivate\", + and \"DenyAll\".""" + diskAccessId: str + """Azure resource Id of the DiskAccess resource for using private endpoints on disks.""" + diskIOPSReadOnly: int + """The total number of IOPS that will be allowed across all VMs mounting the shared disk as + ReadOnly. One operation can transfer between 4k and 256k bytes.""" + diskMBpsReadOnly: int + """The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as + ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of + 10.""" + logicalSectorSize: int + """Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the + default.""" + + class VirtualMachineExtension(TrackedResource): """Describes a Virtual Machine Extension. @@ -8936,9 +9206,9 @@ class VirtualMachineExtension(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -8956,8 +9226,9 @@ class VirtualMachineExtensionHandlerInstanceView(TypedDict, total=False): # pyl :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. - :vartype type_handler_version: str + :ivar typeHandlerVersion: Specifies the Major.Minor.Patch.Hotfix version of the script handler. + Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. + :vartype typeHandlerVersion: str :ivar status: The extension handler status. :vartype status: "InstanceViewStatus" """ @@ -8965,7 +9236,8 @@ class VirtualMachineExtensionHandlerInstanceView(TypedDict, total=False): # pyl type: str """Specifies the type of the extension; an example is \"CustomScriptExtension\".""" typeHandlerVersion: str - """Specifies the version of the script handler.""" + """Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will + deliver the latest Patch.Hotfix version in the Major.Minor series.""" status: "InstanceViewStatus" """The extension handler status.""" @@ -8977,8 +9249,9 @@ class VirtualMachineExtensionInstanceView(TypedDict, total=False): :vartype name: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. - :vartype type_handler_version: str + :ivar typeHandlerVersion: Specifies the Major.Minor.Patch.Hotfix version of the script handler. + Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. + :vartype typeHandlerVersion: str :ivar substatuses: The resource status information. :vartype substatuses: list["InstanceViewStatus"] :ivar statuses: The resource status information. @@ -8990,7 +9263,8 @@ class VirtualMachineExtensionInstanceView(TypedDict, total=False): type: str """Specifies the type of the extension; an example is \"CustomScriptExtension\".""" typeHandlerVersion: str - """Specifies the version of the script handler.""" + """Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will + deliver the latest Patch.Hotfix version in the Major.Minor series.""" substatuses: list["InstanceViewStatus"] """The resource status information.""" statuses: list["InstanceViewStatus"] @@ -9000,41 +9274,43 @@ class VirtualMachineExtensionInstanceView(TypedDict, total=False): class VirtualMachineExtensionProperties(TypedDict, total=False): """Describes the properties of a Virtual Machine Extension. - :ivar force_update_tag: How the extension handler should be forced to update even if the + :ivar forceUpdateTag: How the extension handler should be forced to update even if the extension configuration has not changed. - :vartype force_update_tag: str + :vartype forceUpdateTag: str :ivar publisher: The name of the extension handler publisher. :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. - :vartype type_handler_version: str - :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor - version if one is available at deployment time. Once deployed, however, the extension will not - upgrade minor versions unless redeployed, even with this property set to true. - :vartype auto_upgrade_minor_version: bool - :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically - upgraded by the platform if there is a newer version of the extension available. - :vartype enable_automatic_upgrade: bool + :ivar typeHandlerVersion: Specifies the Major.Minor version of the script handler. Customer is + able to specify only the Major.Minor version of an extension, Azure platform will deliver the + latest Patch.Hotfix version in the Major.Minor series. + :vartype typeHandlerVersion: str + :ivar autoUpgradeMinorVersion: Indicates whether the extension should use a newer minor version + if one is available at deployment time. Once deployed, however, the extension will not upgrade + minor versions unless redeployed, even with this property set to true. + :vartype autoUpgradeMinorVersion: bool + :ivar enableAutomaticUpgrade: Indicates whether the extension should be automatically upgraded + by the platform if there is a newer version of the extension available. + :vartype enableAutomaticUpgrade: bool :ivar settings: Json formatted public settings for the extension. :vartype settings: Any - :ivar protected_settings: The extension can contain either protectedSettings or + :ivar protectedSettings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :vartype protected_settings: Any - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar instance_view: The virtual machine extension instance view. - :vartype instance_view: "VirtualMachineExtensionInstanceView" - :ivar suppress_failures: Indicates whether failures stemming from the extension will be + :vartype protectedSettings: Any + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar instanceView: The virtual machine extension instance view. + :vartype instanceView: "VirtualMachineExtensionInstanceView" + :ivar suppressFailures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. - :vartype suppress_failures: bool - :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by + :vartype suppressFailures: bool + :ivar protectedSettingsFromKeyVault: The extensions protected settings that are passed by reference, and consumed from key vault. - :vartype protected_settings_from_key_vault: "KeyVaultSecretReference" - :ivar provision_after_extensions: Collection of extension names after which this extension - needs to be provisioned. - :vartype provision_after_extensions: list[str] + :vartype protectedSettingsFromKeyVault: "KeyVaultSecretReference" + :ivar provisionAfterExtensions: Collection of extension names after which this extension needs + to be provisioned. + :vartype provisionAfterExtensions: list[str] """ forceUpdateTag: str @@ -9045,7 +9321,9 @@ class VirtualMachineExtensionProperties(TypedDict, total=False): type: str """Specifies the type of the extension; an example is \"CustomScriptExtension\".""" typeHandlerVersion: str - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" autoUpgradeMinorVersion: bool """Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless @@ -9088,34 +9366,36 @@ class VirtualMachineExtensionUpdate(UpdateResource): class VirtualMachineExtensionUpdateProperties(TypedDict, total=False): """Describes the properties of a Virtual Machine Extension. - :ivar force_update_tag: How the extension handler should be forced to update even if the + :ivar forceUpdateTag: How the extension handler should be forced to update even if the extension configuration has not changed. - :vartype force_update_tag: str + :vartype forceUpdateTag: str :ivar publisher: The name of the extension handler publisher. :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. - :vartype type_handler_version: str - :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor - version if one is available at deployment time. Once deployed, however, the extension will not - upgrade minor versions unless redeployed, even with this property set to true. - :vartype auto_upgrade_minor_version: bool - :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically - upgraded by the platform if there is a newer version of the extension available. - :vartype enable_automatic_upgrade: bool + :ivar typeHandlerVersion: Specifies the Major.Minor version of the script handler. Customer is + able to specify only the Major.Minor version of an extension, Azure platform will deliver the + latest Patch.Hotfix version in the Major.Minor series. + :vartype typeHandlerVersion: str + :ivar autoUpgradeMinorVersion: Indicates whether the extension should use a newer minor version + if one is available at deployment time. Once deployed, however, the extension will not upgrade + minor versions unless redeployed, even with this property set to true. + :vartype autoUpgradeMinorVersion: bool + :ivar enableAutomaticUpgrade: Indicates whether the extension should be automatically upgraded + by the platform if there is a newer version of the extension available. + :vartype enableAutomaticUpgrade: bool :ivar settings: Json formatted public settings for the extension. :vartype settings: Any - :ivar protected_settings: The extension can contain either protectedSettings or + :ivar protectedSettings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :vartype protected_settings: Any - :ivar suppress_failures: Indicates whether failures stemming from the extension will be + :vartype protectedSettings: Any + :ivar suppressFailures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. - :vartype suppress_failures: bool - :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by + :vartype suppressFailures: bool + :ivar protectedSettingsFromKeyVault: The extensions protected settings that are passed by reference, and consumed from key vault. - :vartype protected_settings_from_key_vault: "KeyVaultSecretReference" + :vartype protectedSettingsFromKeyVault: "KeyVaultSecretReference" """ forceUpdateTag: str @@ -9126,7 +9406,9 @@ class VirtualMachineExtensionUpdateProperties(TypedDict, total=False): type: str """Specifies the type of the extension; an example is \"CustomScriptExtension\".""" typeHandlerVersion: str - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" autoUpgradeMinorVersion: bool """Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless @@ -9161,21 +9443,21 @@ class VirtualMachineHealthStatus(TypedDict, total=False): class VirtualMachineIdentity(TypedDict, total=False): """Identity for the virtual machine. - :ivar principal_id: The principal id of virtual machine identity. This property will only be + :ivar principalId: The principal id of virtual machine identity. This property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the virtual machine. This property will only be + :vartype principalId: str + :ivar tenantId: The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". :vartype type: Union[str, "ResourceIdentityType"] - :ivar user_assigned_identities: The list of user identities associated with the Virtual - Machine. The user identity dictionary key references will be ARM resource ids in the form: + :ivar userAssignedIdentities: The list of user identities associated with the Virtual Machine. + The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentitiesValue"] + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"] """ principalId: str @@ -9198,18 +9480,17 @@ class VirtualMachineIdentity(TypedDict, total=False): class VirtualMachineInstallPatchesParameters(TypedDict, total=False): """Input for InstallPatches as directly received by the API. - :ivar maximum_duration: Specifies the maximum amount of time that the operation will run. It + :ivar maximumDuration: Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). - :vartype maximum_duration: str - :ivar reboot_setting: Defines when it is acceptable to reboot a VM during a software update + :vartype maximumDuration: str + :ivar rebootSetting: Defines when it is acceptable to reboot a VM during a software update operation. Required. Known values are: "IfRequired", "Never", and "Always". - :vartype reboot_setting: Union[str, "VMGuestPatchRebootSetting"] - :ivar windows_parameters: Input for InstallPatches on a Windows VM, as directly received by the - API. - :vartype windows_parameters: "WindowsParameters" - :ivar linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + :vartype rebootSetting: Union[str, "VMGuestPatchRebootSetting"] + :ivar windowsParameters: Input for InstallPatches on a Windows VM, as directly received by the API. - :vartype linux_parameters: "LinuxParameters" + :vartype windowsParameters: "WindowsParameters" + :ivar linuxParameters: Input for InstallPatches on a Linux VM, as directly received by the API. + :vartype linuxParameters: "LinuxParameters" """ maximumDuration: str @@ -9227,49 +9508,55 @@ class VirtualMachineInstallPatchesParameters(TypedDict, total=False): class VirtualMachineInstanceView(TypedDict, total=False): """The instance view of a virtual machine. - :ivar platform_update_domain: Specifies the update domain of the virtual machine. - :vartype platform_update_domain: int - :ivar platform_fault_domain: Specifies the fault domain of the virtual machine. - :vartype platform_fault_domain: int - :ivar computer_name: The computer name assigned to the virtual machine. - :vartype computer_name: str - :ivar os_name: The Operating System running on the virtual machine. - :vartype os_name: str - :ivar os_version: The version of Operating System running on the virtual machine. - :vartype os_version: str - :ivar hyper_v_generation: Specifies the HyperVGeneration Type associated with a resource. Known + :ivar platformUpdateDomain: Specifies the update domain of the virtual machine. + :vartype platformUpdateDomain: int + :ivar platformFaultDomain: Specifies the fault domain of the virtual machine. + :vartype platformFaultDomain: int + :ivar computerName: The computer name assigned to the virtual machine. + :vartype computerName: str + :ivar osName: The Operating System running on the virtual machine. + :vartype osName: str + :ivar osVersion: The version of Operating System running on the virtual machine. + :vartype osVersion: str + :ivar hyperVGeneration: Specifies the HyperVGeneration Type associated with a resource. Known values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGenerationType"] - :ivar rdp_thumb_print: The Remote desktop certificate thumbprint. - :vartype rdp_thumb_print: str - :ivar vm_agent: The VM Agent running on the virtual machine. - :vartype vm_agent: "VirtualMachineAgentInstanceView" - :ivar maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. - :vartype maintenance_redeploy_status: "MaintenanceRedeployStatus" + :vartype hyperVGeneration: Union[str, "HyperVGenerationType"] + :ivar rdpThumbPrint: The Remote desktop certificate thumbprint. + :vartype rdpThumbPrint: str + :ivar vmAgent: The VM Agent running on the virtual machine. + :vartype vmAgent: "VirtualMachineAgentInstanceView" + :ivar maintenanceRedeployStatus: The Maintenance Operation status on the virtual machine. + :vartype maintenanceRedeployStatus: "MaintenanceRedeployStatus" :ivar disks: The virtual machine disk information. :vartype disks: list["DiskInstanceView"] :ivar extensions: The extensions information. :vartype extensions: list["VirtualMachineExtensionInstanceView"] - :ivar vm_health: The health status for the VM. - :vartype vm_health: "VirtualMachineHealthStatus" - :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view - Console Output and Screenshot to diagnose VM status. You can easily view the output of your - console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: "BootDiagnosticsInstanceView" - :ivar assigned_host: Resource id of the dedicated host, on which the virtual machine is + :ivar vmHealth: The health status for the VM. + :vartype vmHealth: "VirtualMachineHealthStatus" + :ivar bootDiagnostics: Boot Diagnostics is a debugging feature which allows you to view Console + Output and Screenshot to diagnose VM status. You can easily view the output of your console + log. Azure also enables you to see a screenshot of the VM from the hypervisor. + :vartype bootDiagnostics: "BootDiagnosticsInstanceView" + :ivar assignedHost: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. - :vartype assigned_host: str + :vartype assignedHost: str :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] - :ivar patch_status: [Preview Feature] The status of virtual machine patch operations. - :vartype patch_status: "VirtualMachinePatchStatus" - :ivar is_vm_in_standby_pool: [Preview Feature] Specifies whether the VM is currently in or out - of the Standby Pool. - :vartype is_vm_in_standby_pool: bool - :ivar interconnect_instance_view: The Interconnect runtime view of the Virtual Machine. Minimum + :ivar patchStatus: [Preview Feature] The status of virtual machine patch operations. + :vartype patchStatus: "VirtualMachinePatchStatus" + :ivar isVMInStandbyPool: [Preview Feature] Specifies whether the VM is currently in or out of + the Standby Pool. + :vartype isVMInStandbyPool: bool + :ivar interconnectInstanceView: The Interconnect runtime view of the Virtual Machine. Minimum api-version: 2026-03-01. - :vartype interconnect_instance_view: "InterconnectInstanceView" + :vartype interconnectInstanceView: "InterconnectInstanceView" + :ivar capacityReservationType: Specifies which type of capacity reservation the virtual machine + will consume capacity from if eligible or whether it is explicitly opted out from being + associated and consuming capacity from any reserved capacity available in the subscription. + Minimum api-version: 2026-04-01. Known values are: "NotEligible", "Targeted", "Open", + "Disabled", and "Block". + :vartype capacityReservationType: Union[str, "CapacityReservationType"] """ platformUpdateDomain: int @@ -9313,21 +9600,31 @@ class VirtualMachineInstanceView(TypedDict, total=False): """[Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.""" interconnectInstanceView: "InterconnectInstanceView" """The Interconnect runtime view of the Virtual Machine. Minimum api-version: 2026-03-01.""" + capacityReservationType: Union[str, "CapacityReservationType"] + """Specifies which type of capacity reservation the virtual machine will consume capacity from if + eligible or whether it is explicitly opted out from being associated and consuming capacity + from any reserved capacity available in the subscription. Minimum api-version: 2026-04-01. + Known values are: \"NotEligible\", \"Targeted\", \"Open\", \"Disabled\", and \"Block\".""" class VirtualMachineIpTag(TypedDict, total=False): """Contains the IP tag associated with the public IP address. - :ivar ip_tag_type: IP tag type. Example: FirstPartyUsage. - :vartype ip_tag_type: str + :ivar ipTagType: IP tag type. Example: FirstPartyUsage. + :vartype ipTagType: str :ivar tag: IP tag associated with the public IP. Example: SQL, Storage etc. :vartype tag: str + :ivar firstPartyServiceTagId: The first party service tag resource identifier associated with + the public IP address. + :vartype firstPartyServiceTagId: str """ ipTagType: str """IP tag type. Example: FirstPartyUsage.""" tag: str """IP tag associated with the public IP. Example: SQL, Storage etc.""" + firstPartyServiceTagId: str + """The first party service tag resource identifier associated with the public IP address.""" class VirtualMachineNetworkInterfaceConfiguration(TypedDict, total=False): # pylint: disable=name-too-long @@ -9357,33 +9654,33 @@ class VirtualMachineNetworkInterfaceConfigurationProperties(TypedDict, total=Fal :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool - :ivar delete_option: Specify what happens to the network interface when the VM is deleted. - Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] - :ivar enable_accelerated_networking: Specifies whether the network interface is accelerated + :ivar deleteOption: Specify what happens to the network interface when the VM is deleted. Known + values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] + :ivar enableAcceleratedNetworking: Specifies whether the network interface is accelerated networking-enabled. - :vartype enable_accelerated_networking: bool - :ivar disable_tcp_state_tracking: Specifies whether the network interface is disabled for tcp + :vartype enableAcceleratedNetworking: bool + :ivar disableTcpStateTracking: Specifies whether the network interface is disabled for tcp state tracking. - :vartype disable_tcp_state_tracking: bool - :ivar enable_fpga: Specifies whether the network interface is FPGA networking-enabled. - :vartype enable_fpga: bool - :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. - :vartype enable_ip_forwarding: bool - :ivar network_security_group: The network security group. - :vartype network_security_group: "SubResource" - :ivar dns_settings: The dns settings to be applied on the network interfaces. - :vartype dns_settings: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" - :ivar ip_configurations: Specifies the IP configurations of the network interface. Required. - :vartype ip_configurations: list["VirtualMachineNetworkInterfaceIPConfiguration"] - :ivar dscp_configuration: - :vartype dscp_configuration: "SubResource" - :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface + :vartype disableTcpStateTracking: bool + :ivar enableFpga: Specifies whether the network interface is FPGA networking-enabled. + :vartype enableFpga: bool + :ivar enableIPForwarding: Whether IP forwarding enabled on this NIC. + :vartype enableIPForwarding: bool + :ivar networkSecurityGroup: The network security group. + :vartype networkSecurityGroup: "SubResource" + :ivar dnsSettings: The dns settings to be applied on the network interfaces. + :vartype dnsSettings: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" + :ivar ipConfigurations: Specifies the IP configurations of the network interface. Required. + :vartype ipConfigurations: list["VirtualMachineNetworkInterfaceIPConfiguration"] + :ivar dscpConfiguration: + :vartype dscpConfiguration: "SubResource" + :ivar auxiliaryMode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". - :vartype auxiliary_mode: Union[str, "NetworkInterfaceAuxiliaryMode"] - :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface + :vartype auxiliaryMode: Union[str, "NetworkInterfaceAuxiliaryMode"] + :ivar auxiliarySku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". - :vartype auxiliary_sku: Union[str, "NetworkInterfaceAuxiliarySku"] + :vartype auxiliarySku: Union[str, "NetworkInterfaceAuxiliarySku"] """ primary: bool @@ -9418,8 +9715,8 @@ class VirtualMachineNetworkInterfaceConfigurationProperties(TypedDict, total=Fal class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machines network configuration's DNS settings. - :ivar dns_servers: List of DNS servers IP addresses. - :vartype dns_servers: list[str] + :ivar dnsServers: List of DNS servers IP addresses. + :vartype dnsServers: list[str] """ dnsServers: list[str] @@ -9449,25 +9746,25 @@ class VirtualMachineNetworkInterfaceIPConfigurationProperties(TypedDict, total=F :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool - :ivar public_ip_address_configuration: The publicIPAddressConfiguration. - :vartype public_ip_address_configuration: "VirtualMachinePublicIPAddressConfiguration" - :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents + :ivar publicIPAddressConfiguration: The publicIPAddressConfiguration. + :vartype publicIPAddressConfiguration: "VirtualMachinePublicIPAddressConfiguration" + :ivar privateIPAddressVersion: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: Union[str, "IPVersions"] - :ivar application_security_groups: Specifies an array of references to application security + :vartype privateIPAddressVersion: Union[str, "IPVersions"] + :ivar applicationSecurityGroups: Specifies an array of references to application security group. - :vartype application_security_groups: list["SubResource"] - :ivar application_gateway_backend_address_pools: Specifies an array of references to backend + :vartype applicationSecurityGroups: list["SubResource"] + :ivar applicationGatewayBackendAddressPools: Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. - :vartype application_gateway_backend_address_pools: list["SubResource"] - :ivar load_balancer_backend_address_pools: Specifies an array of references to backend address + :vartype applicationGatewayBackendAddressPools: list["SubResource"] + :ivar loadBalancerBackendAddressPools: Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. - :vartype load_balancer_backend_address_pools: list["SubResource"] + :vartype loadBalancerBackendAddressPools: list["SubResource"] """ subnet: "SubResource" @@ -9496,14 +9793,14 @@ class VirtualMachineNetworkInterfaceIPConfigurationProperties(TypedDict, total=F class VirtualMachinePatchStatus(TypedDict, total=False): """The status of virtual machine patch operations. - :ivar available_patch_summary: The available patch summary of the latest assessment operation - for the virtual machine. - :vartype available_patch_summary: "AvailablePatchSummary" - :ivar last_patch_installation_summary: The installation summary of the latest installation + :ivar availablePatchSummary: The available patch summary of the latest assessment operation for + the virtual machine. + :vartype availablePatchSummary: "AvailablePatchSummary" + :ivar lastPatchInstallationSummary: The installation summary of the latest installation operation for the virtual machine. - :vartype last_patch_installation_summary: "LastPatchInstallationSummary" - :ivar configuration_statuses: The enablement status of the specified patchMode. - :vartype configuration_statuses: list["InstanceViewStatus"] + :vartype lastPatchInstallationSummary: "LastPatchInstallationSummary" + :ivar configurationStatuses: The enablement status of the specified patchMode. + :vartype configurationStatuses: list["InstanceViewStatus"] """ availablePatchSummary: "AvailablePatchSummary" @@ -9517,29 +9814,28 @@ class VirtualMachinePatchStatus(TypedDict, total=False): class VirtualMachineProperties(TypedDict, total=False): """Describes the properties of a Virtual Machine. - :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: "HardwareProfile" - :ivar scheduled_events_policy: Specifies Redeploy, Reboot and + :ivar hardwareProfile: Specifies the hardware settings for the virtual machine. + :vartype hardwareProfile: "HardwareProfile" + :ivar scheduledEventsPolicy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. - :vartype scheduled_events_policy: "ScheduledEventsPolicy" - :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: "StorageProfile" - :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the + :vartype scheduledEventsPolicy: "ScheduledEventsPolicy" + :ivar storageProfile: Specifies the storage settings for the virtual machine disks. + :vartype storageProfile: "StorageProfile" + :ivar additionalCapabilities: Specifies additional capabilities enabled or disabled on the virtual machine. - :vartype additional_capabilities: "AdditionalCapabilities" - :ivar os_profile: Specifies the operating system settings used while creating the virtual + :vartype additionalCapabilities: "AdditionalCapabilities" + :ivar osProfile: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :vartype os_profile: "OSProfile" - :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: "NetworkProfile" - :ivar security_profile: Specifies the Security related profile settings for the virtual - machine. - :vartype security_profile: "SecurityProfile" - :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: + :vartype osProfile: "OSProfile" + :ivar networkProfile: Specifies the network interfaces of the virtual machine. + :vartype networkProfile: "NetworkProfile" + :ivar securityProfile: Specifies the Security related profile settings for the virtual machine. + :vartype securityProfile: "SecurityProfile" + :ivar diagnosticsProfile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: "DiagnosticsProfile" - :ivar availability_set: Specifies information about the availability set that the virtual + :vartype diagnosticsProfile: "DiagnosticsProfile" + :ivar availabilitySet: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview @@ -9550,41 +9846,41 @@ class VirtualMachineProperties(TypedDict, total=False): VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - :vartype availability_set: "SubResource" - :ivar virtual_machine_scale_set: Specifies information about the virtual machine scale set that + :vartype availabilitySet: "SubResource" + :ivar virtualMachineScaleSet: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. - :vartype virtual_machine_scale_set: "SubResource" - :ivar proximity_placement_group: Specifies information about the proximity placement group that + :vartype virtualMachineScaleSet: "SubResource" + :ivar proximityPlacementGroup: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: "SubResource" + :vartype proximityPlacementGroup: "SubResource" :ivar priority: Specifies the priority for the virtual machine. Minimum api-version: - 2019-03-01. Known values are: "Regular", "Low", and "Spot". + 2019-03-01. Known values are: "Regular", "Low", "Spot", and "SpotPlus". :vartype priority: Union[str, "VirtualMachinePriorityTypes"] - :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + :ivar evictionPolicy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". - :vartype eviction_policy: Union[str, "VirtualMachineEvictionPolicyTypes"] - :ivar billing_profile: Specifies the billing related details of a Azure Spot virtual machine. + :vartype evictionPolicy: Union[str, "VirtualMachineEvictionPolicyTypes"] + :ivar billingProfile: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. - :vartype billing_profile: "BillingProfile" + :vartype billingProfile: "BillingProfile" :ivar host: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. :vartype host: "SubResource" - :ivar host_group: Specifies information about the dedicated host group that the virtual machine + :ivar hostGroup: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. - :vartype host_group: "SubResource" - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar instance_view: The virtual machine instance view. - :vartype instance_view: "VirtualMachineInstanceView" - :ivar license_type: Specifies that the image or disk that is being used was licensed + :vartype hostGroup: "SubResource" + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar instanceView: The virtual machine instance view. + :vartype instanceView: "VirtualMachineInstanceView" + :ivar licenseType: Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more @@ -9593,41 +9889,41 @@ class VirtualMachineProperties(TypedDict, total=False):

`Azure Hybrid Use Benefit for Linux Server `_

Minimum api-version: 2015-06-15. - :vartype license_type: str - :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and + :vartype licenseType: str + :ivar vmId: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. - :vartype vm_id: str - :ivar extensions_time_budget: Specifies the time alloted for all extensions to start. The time + :vartype vmId: str + :ivar extensionsTimeBudget: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. - :vartype extensions_time_budget: str - :ivar platform_fault_domain: Specifies the scale set logical fault domain into which the - Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned - to a fault domain that best maintains balance across available fault domains. This is - applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The - Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than - 1. This property cannot be updated once the Virtual Machine is created. Fault domain assignment - can be viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01. - :vartype platform_fault_domain: int - :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. - :vartype scheduled_events_profile: "ScheduledEventsProfile" - :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass + :vartype extensionsTimeBudget: str + :ivar platformFaultDomain: Specifies the scale set logical fault domain into which the Virtual + Machine will be created. By default, the Virtual Machine will by automatically assigned to a + fault domain that best maintains balance across available fault domains. This is applicable + only if the 'virtualMachineScaleSet' property of this Virtual Machine is set. The Virtual + Machine Scale Set that is referenced, must have 'platformFaultDomainCount' greater than 1. This + property cannot be updated once the Virtual Machine is created. Fault domain assignment can be + viewed in the Virtual Machine Instance View. Minimum api‐version: 2020‐12‐01. + :vartype platformFaultDomain: int + :ivar scheduledEventsProfile: Specifies Scheduled Event related configurations. + :vartype scheduledEventsProfile: "ScheduledEventsProfile" + :ivar userData: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. - :vartype user_data: str - :ivar capacity_reservation: Specifies information about the capacity reservation that is used - to allocate virtual machine. Minimum api-version: 2021-04-01. - :vartype capacity_reservation: "CapacityReservationProfile" - :ivar interconnect_block_profile: Specifies information about the Interconnect Block that is - used to allocate the Virtual Machine. Minimum api-version: 2026-03-01. - :vartype interconnect_block_profile: "InterconnectBlockProfile" - :ivar application_profile: Specifies the gallery applications that should be made available to + :vartype userData: str + :ivar capacityReservation: Specifies information about the capacity reservation that is used to + allocate virtual machine. Minimum api-version: 2021-04-01. + :vartype capacityReservation: "CapacityReservationProfile" + :ivar interconnectBlockProfile: Specifies information about the Interconnect Block that is used + to allocate the Virtual Machine. Minimum api-version: 2026-03-01. + :vartype interconnectBlockProfile: "InterconnectBlockProfile" + :ivar applicationProfile: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype application_profile: "ApplicationProfile" - :ivar time_created: Specifies the time at which the Virtual Machine resource was created. + :vartype applicationProfile: "ApplicationProfile" + :ivar timeCreated: Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. - :vartype time_created: str - :ivar resiliency_profile: Resiliency profile for the virtual machine. - :vartype resiliency_profile: "ResiliencyProfile" + :vartype timeCreated: str + :ivar resiliencyProfile: Resiliency profile for the virtual machine. + :vartype resiliencyProfile: "ResiliencyProfile" """ hardwareProfile: "HardwareProfile" @@ -9672,7 +9968,7 @@ class VirtualMachineProperties(TypedDict, total=False): assigned to. Minimum api-version: 2018-04-01.""" priority: Union[str, "VirtualMachinePriorityTypes"] """Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values - are: \"Regular\", \"Low\", and \"Spot\".""" + are: \"Regular\", \"Low\", \"Spot\", and \"SpotPlus\".""" evictionPolicy: Union[str, "VirtualMachineEvictionPolicyTypes"] """Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum @@ -9766,24 +10062,24 @@ class VirtualMachinePublicIPAddressConfiguration(TypedDict, total=False): # pyl class VirtualMachinePublicIPAddressConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machines IP Configuration's PublicIPAddress configuration. - :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. - :vartype idle_timeout_in_minutes: int - :ivar delete_option: Specify what happens to the public IP address when the VM is deleted. - Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] - :ivar dns_settings: The dns settings to be applied on the publicIP addresses . - :vartype dns_settings: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - :ivar ip_tags: The list of IP tags associated with the public IP address. - :vartype ip_tags: list["VirtualMachineIpTag"] - :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: "SubResource" - :ivar public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents + :ivar idleTimeoutInMinutes: The idle timeout of the public IP address. + :vartype idleTimeoutInMinutes: int + :ivar deleteOption: Specify what happens to the public IP address when the VM is deleted. Known + values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] + :ivar dnsSettings: The dns settings to be applied on the publicIP addresses . + :vartype dnsSettings: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" + :ivar ipTags: The list of IP tags associated with the public IP address. + :vartype ipTags: list["VirtualMachineIpTag"] + :ivar publicIPPrefix: The PublicIPPrefix from which to allocate publicIP addresses. + :vartype publicIPPrefix: "SubResource" + :ivar publicIPAddressVersion: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype public_ip_address_version: Union[str, "IPVersions"] - :ivar public_ip_allocation_method: Specify the public IP allocation type. Known values are: + :vartype publicIPAddressVersion: Union[str, "IPVersions"] + :ivar publicIPAllocationMethod: Specify the public IP allocation type. Known values are: "Dynamic" and "Static". - :vartype public_ip_allocation_method: Union[str, "PublicIPAllocationMethod"] + :vartype publicIPAllocationMethod: Union[str, "PublicIPAllocationMethod"] """ idleTimeoutInMinutes: int @@ -9808,15 +10104,15 @@ class VirtualMachinePublicIPAddressConfigurationProperties(TypedDict, total=Fals class VirtualMachinePublicIPAddressDnsSettingsConfiguration(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machines network configuration's DNS settings. - :ivar domain_name_label: The Domain name label prefix of the PublicIPAddress resources that - will be created. The generated name label is the concatenation of the domain name label and vm + :ivar domainNameLabel: The Domain name label prefix of the PublicIPAddress resources that will + be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. Required. - :vartype domain_name_label: str - :ivar domain_name_label_scope: The Domain name label scope of the PublicIPAddress resources - that will be created. The generated name label is the concatenation of the hashed domain name - label with policy according to the domain name label scope and vm network profile unique ID. - Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". - :vartype domain_name_label_scope: Union[str, "DomainNameLabelScopeTypes"] + :vartype domainNameLabel: str + :ivar domainNameLabelScope: The Domain name label scope of the PublicIPAddress resources that + will be created. The generated name label is the concatenation of the hashed domain name label + with policy according to the domain name label scope and vm network profile unique ID. Known + values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". + :vartype domainNameLabelScope: Union[str, "DomainNameLabelScopeTypes"] """ domainNameLabel: Required[str] @@ -9834,15 +10130,14 @@ class VirtualMachineReimageParameters(TypedDict, total=False): """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. - :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + :ivar tempDisk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. - :vartype temp_disk: bool - :ivar exact_version: Specifies in decimal number, the version the OS disk should be reimaged - to. If exact version is not provided, the OS disk is reimaged to the existing version of OS - Disk. - :vartype exact_version: str - :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: "OSProfileProvisioningData" + :vartype tempDisk: bool + :ivar exactVersion: Specifies in decimal number, the version the OS disk should be reimaged to. + If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk. + :vartype exactVersion: str + :ivar osProfile: Specifies information required for reimaging the non-ephemeral OS disk. + :vartype osProfile: "OSProfileProvisioningData" """ tempDisk: bool @@ -9866,9 +10161,9 @@ class VirtualMachineRunCommand(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -9884,21 +10179,21 @@ class VirtualMachineRunCommand(TrackedResource): class VirtualMachineRunCommandInstanceView(TypedDict, total=False): """The instance view of a virtual machine run command. - :ivar execution_state: Script execution status. Known values are: "Unknown", "Pending", + :ivar executionState: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". - :vartype execution_state: Union[str, "ExecutionState"] - :ivar execution_message: Communicate script configuration errors or execution messages. - :vartype execution_message: str - :ivar exit_code: Exit code returned from script execution. - :vartype exit_code: int + :vartype executionState: Union[str, "ExecutionState"] + :ivar executionMessage: Communicate script configuration errors or execution messages. + :vartype executionMessage: str + :ivar exitCode: Exit code returned from script execution. + :vartype exitCode: int :ivar output: Script output stream. :vartype output: str :ivar error: Script error stream. :vartype error: str - :ivar start_time: Script start time. - :vartype start_time: str - :ivar end_time: Script end time. - :vartype end_time: str + :ivar startTime: Script start time. + :vartype startTime: str + :ivar endTime: Script end time. + :vartype endTime: str :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] """ @@ -9929,43 +10224,43 @@ class VirtualMachineRunCommandProperties(TypedDict, total=False): :vartype source: "VirtualMachineRunCommandScriptSource" :ivar parameters: The parameters used by the script. :vartype parameters: list["RunCommandInputParameter"] - :ivar protected_parameters: The parameters used by the script. - :vartype protected_parameters: list["RunCommandInputParameter"] - :ivar async_execution: Optional. If set to true, provisioning will complete as soon as the + :ivar protectedParameters: The parameters used by the script. + :vartype protectedParameters: list["RunCommandInputParameter"] + :ivar asyncExecution: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. - :vartype async_execution: bool - :ivar run_as_user: Specifies the user account on the VM when executing the run command. - :vartype run_as_user: str - :ivar run_as_password: Specifies the user account password on the VM when executing the run + :vartype asyncExecution: bool + :ivar runAsUser: Specifies the user account on the VM when executing the run command. + :vartype runAsUser: str + :ivar runAsPassword: Specifies the user account password on the VM when executing the run command. - :vartype run_as_password: str - :ivar timeout_in_seconds: The timeout in seconds to execute the run command. - :vartype timeout_in_seconds: int - :ivar output_blob_uri: Specifies the Azure storage blob where script output stream will be + :vartype runAsPassword: str + :ivar timeoutInSeconds: The timeout in seconds to execute the run command. + :vartype timeoutInSeconds: int + :ivar outputBlobUri: Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. - :vartype output_blob_uri: str - :ivar error_blob_uri: Specifies the Azure storage blob where script error stream will be + :vartype outputBlobUri: str + :ivar errorBlobUri: Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. - :vartype error_blob_uri: str - :ivar output_blob_managed_identity: User-assigned managed identity that has access to + :vartype errorBlobUri: str + :ivar outputBlobManagedIdentity: User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer `https://aka.ms/ManagedIdentity `_ and `https://aka.ms/RunCommandManaged `_. - :vartype output_blob_managed_identity: "RunCommandManagedIdentity" - :ivar error_blob_managed_identity: User-assigned managed identity that has access to - errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure - managed identity has been given access to blob's container with 'Storage Blob Data Contributor' - role assignment. In case of user-assigned identity, make sure you add it under VM's identity. - For more info on managed identity and Run Command, refer `https://aka.ms/ManagedIdentity + :vartype outputBlobManagedIdentity: "RunCommandManagedIdentity" + :ivar errorBlobManagedIdentity: User-assigned managed identity that has access to errorBlobUri + storage blob. Use an empty object in case of system-assigned identity. Make sure managed + identity has been given access to blob's container with 'Storage Blob Data Contributor' role + assignment. In case of user-assigned identity, make sure you add it under VM's identity. For + more info on managed identity and Run Command, refer `https://aka.ms/ManagedIdentity `_ and `https://aka.ms/RunCommandManaged `_. - :vartype error_blob_managed_identity: "RunCommandManagedIdentity" - :ivar provisioning_state: The provisioning state, which only appears in the response. If + :vartype errorBlobManagedIdentity: "RunCommandManagedIdentity" + :ivar provisioningState: The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to false, ProvisioningState would only reflect whether the run command was run or not by the @@ -9973,17 +10268,17 @@ class VirtualMachineRunCommandProperties(TypedDict, total=False): See instance view of run command in case of script failures to see executionMessage, output, error: `https://aka.ms/runcommandmanaged#get-execution-status-and-results `_. - :vartype provisioning_state: str - :ivar instance_view: The virtual machine run command instance view. - :vartype instance_view: "VirtualMachineRunCommandInstanceView" - :ivar treat_failure_as_deployment_failure: Optional. If set to true, any failure in the script - will fail the deployment and ProvisioningState will be marked as Failed. If set to false, + :vartype provisioningState: str + :ivar instanceView: The virtual machine run command instance view. + :vartype instanceView: "VirtualMachineRunCommandInstanceView" + :ivar treatFailureAsDeploymentFailure: Optional. If set to true, any failure in the script will + fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions platform, it would not indicate whether script failed in case of script failures. See instance view of run command in case of script failures to see executionMessage, output, error: `https://aka.ms/runcommandmanaged#get-execution-status-and-results `_. - :vartype treat_failure_as_deployment_failure: bool + :vartype treatFailureAsDeploymentFailure: bool """ source: "VirtualMachineRunCommandScriptSource" @@ -10050,32 +10345,32 @@ class VirtualMachineRunCommandScriptSource(TypedDict, total=False): :ivar script: Specifies the script content to be executed on the VM. :vartype script: str - :ivar script_uri: Specifies the script download location. It can be either SAS URI of an Azure + :ivar scriptUri: Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. - :vartype script_uri: str - :ivar command_id: Specifies a commandId of predefined built-in script. Command IDs available - for Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands + :vartype scriptUri: str + :ivar commandId: Specifies a commandId of predefined built-in script. Command IDs available for + Linux are listed at `https://aka.ms/RunCommandManagedLinux#available-commands `_, Windows at `https://aka.ms/RunCommandManagedWindows#available-commands `_. - :vartype command_id: str - :ivar script_uri_managed_identity: User-assigned managed identity that has access to scriptUri - in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make - sure the Azure storage blob exists, and managed identity has been given access to blob's - container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, - make sure you add it under VM's identity. For more info on managed identity and Run Command, - refer `https://aka.ms/ManagedIdentity `_ and + :vartype commandId: str + :ivar scriptUriManagedIdentity: User-assigned managed identity that has access to scriptUri in + case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure + the Azure storage blob exists, and managed identity has been given access to blob's container + with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure + you add it under VM's identity. For more info on managed identity and Run Command, refer + `https://aka.ms/ManagedIdentity `_ and `https://aka.ms/RunCommandManaged `_. - :vartype script_uri_managed_identity: "RunCommandManagedIdentity" - :ivar script_shell: Optional. Specify which shell to use for running the script. These values + :vartype scriptUriManagedIdentity: "RunCommandManagedIdentity" + :ivar scriptShell: Optional. Specify which shell to use for running the script. These values must match those expected by the extension. Currently supported only for Windows VMs, script uses Powershell 7 when specified. Powershell 7 must be already installed on the machine to use Powershell7 parameter value. Known values are: "Default" and "Powershell7". - :vartype script_shell: Union[str, "ScriptShellTypes"] - :ivar gallery_script_reference_id: The resource ID of a Gallery Script version that needs to be + :vartype scriptShell: Union[str, "ScriptShellTypes"] + :ivar galleryScriptReferenceId: The resource ID of a Gallery Script version that needs to be executed. Example ID looks like /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{scriptName}/versions/{version}. - :vartype gallery_script_reference_id: str + :vartype galleryScriptReferenceId: str """ script: str @@ -10131,9 +10426,9 @@ class VirtualMachineScaleSet(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -10152,8 +10447,8 @@ class VirtualMachineScaleSet(TrackedResource): :vartype identity: "VirtualMachineScaleSetIdentity" :ivar zones: The availability zones. :vartype zones: list[str] - :ivar extended_location: The extended location of the Virtual Machine Scale Set. - :vartype extended_location: "ExtendedLocation" + :ivar extendedLocation: The extended location of the Virtual Machine Scale Set. + :vartype extendedLocation: "ExtendedLocation" :ivar etag: Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header to ensure optimistic updates. :vartype etag: str @@ -10199,36 +10494,36 @@ class VirtualMachineScaleSetDataDisk(TypedDict, total=False): **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool - :ivar create_option: The create option. Required. Known values are: "FromImage", "Empty", + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool + :ivar createOption: The create option. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: Union[str, "DiskCreateOptionTypes"] - :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be + :vartype createOption: Union[str, "DiskCreateOptionTypes"] + :ivar diskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. - :vartype disk_size_gb: int - :ivar storage_fault_domain_alignment: Specifies the storage fault domain alignment type for the + :vartype diskSizeGB: int + :ivar storageFaultDomainAlignment: Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". - :vartype storage_fault_domain_alignment: Union[str, "StorageFaultDomainAlignmentType"] - :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: "VirtualMachineScaleSetManagedDiskParameters" - :ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk. Should be used + :vartype storageFaultDomainAlignment: Union[str, "StorageFaultDomainAlignmentType"] + :ivar managedDisk: The managed disk parameters. + :vartype managedDisk: "VirtualMachineScaleSetManagedDiskParameters" + :ivar diskIOPSReadWrite: Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. - :vartype disk_iops_read_write: int - :ivar disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk. - Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value - would be assigned based on diskSizeGB. - :vartype disk_m_bps_read_write: int - :ivar delete_option: Specifies whether data disk should be deleted or detached upon VMSS Flex + :vartype diskIOPSReadWrite: int + :ivar diskMBpsReadWrite: Specifies the bandwidth in MB per second for the managed disk. Should + be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would + be assigned based on diskSizeGB. + :vartype diskMBpsReadWrite: int + :ivar deleteOption: Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

**Delete** If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.

**Detach** If this value is used, the data disk is retained after VMSS Flex VM is deleted.

The default value is set to **Delete**. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] """ name: str @@ -10296,10 +10591,10 @@ class VirtualMachineScaleSetExtensionProfile(TypedDict, total=False): :ivar extensions: The virtual machine scale set child extension resources. :vartype extensions: list["VirtualMachineScaleSetExtension"] - :ivar extensions_time_budget: Specifies the time alloted for all extensions to start. The time + :ivar extensionsTimeBudget: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. - :vartype extensions_time_budget: str + :vartype extensionsTimeBudget: str """ extensions: list["VirtualMachineScaleSetExtension"] @@ -10313,39 +10608,41 @@ class VirtualMachineScaleSetExtensionProfile(TypedDict, total=False): class VirtualMachineScaleSetExtensionProperties(TypedDict, total=False): # pylint: disable=name-too-long """Describes the properties of a Virtual Machine Scale Set Extension. - :ivar force_update_tag: If a value is provided and is different from the previous value, the + :ivar forceUpdateTag: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. - :vartype force_update_tag: str + :vartype forceUpdateTag: str :ivar publisher: The name of the extension handler publisher. :vartype publisher: str :ivar type: Specifies the type of the extension; an example is "CustomScriptExtension". :vartype type: str - :ivar type_handler_version: Specifies the version of the script handler. - :vartype type_handler_version: str - :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor - version if one is available at deployment time. Once deployed, however, the extension will not - upgrade minor versions unless redeployed, even with this property set to true. - :vartype auto_upgrade_minor_version: bool - :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically - upgraded by the platform if there is a newer version of the extension available. - :vartype enable_automatic_upgrade: bool + :ivar typeHandlerVersion: Specifies the Major.Minor version of the script handler. Customer is + able to specify only the Major.Minor version of an extension, Azure platform will deliver the + latest Patch.Hotfix version in the Major.Minor series. + :vartype typeHandlerVersion: str + :ivar autoUpgradeMinorVersion: Indicates whether the extension should use a newer minor version + if one is available at deployment time. Once deployed, however, the extension will not upgrade + minor versions unless redeployed, even with this property set to true. + :vartype autoUpgradeMinorVersion: bool + :ivar enableAutomaticUpgrade: Indicates whether the extension should be automatically upgraded + by the platform if there is a newer version of the extension available. + :vartype enableAutomaticUpgrade: bool :ivar settings: Json formatted public settings for the extension. :vartype settings: Any - :ivar protected_settings: The extension can contain either protectedSettings or + :ivar protectedSettings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :vartype protected_settings: Any - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar provision_after_extensions: Collection of extension names after which this extension - needs to be provisioned. - :vartype provision_after_extensions: list[str] - :ivar suppress_failures: Indicates whether failures stemming from the extension will be + :vartype protectedSettings: Any + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar provisionAfterExtensions: Collection of extension names after which this extension needs + to be provisioned. + :vartype provisionAfterExtensions: list[str] + :ivar suppressFailures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. - :vartype suppress_failures: bool - :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by + :vartype suppressFailures: bool + :ivar protectedSettingsFromKeyVault: The extensions protected settings that are passed by reference, and consumed from key vault. - :vartype protected_settings_from_key_vault: "KeyVaultSecretReference" + :vartype protectedSettingsFromKeyVault: "KeyVaultSecretReference" """ forceUpdateTag: str @@ -10356,7 +10653,9 @@ class VirtualMachineScaleSetExtensionProperties(TypedDict, total=False): # pyli type: str """Specifies the type of the extension; an example is \"CustomScriptExtension\".""" typeHandlerVersion: str - """Specifies the version of the script handler.""" + """Specifies the Major.Minor version of the script handler. Customer is able to specify only the + Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix + version in the Major.Minor series.""" autoUpgradeMinorVersion: bool """Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless @@ -10405,37 +10704,47 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): class VirtualMachineScaleSetHardwareProfile(TypedDict, total=False): """Specifies the hardware settings for the virtual machine scale set. - :ivar vm_size_properties: Specifies the properties for customizing the size of the virtual + :ivar vmSizeProperties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details. - :vartype vm_size_properties: "VMSizeProperties" + :vartype vmSizeProperties: "VMSizeProperties" + :ivar processorMode: Specifies the processor mode for the virtual machine scale set. Optional; + if omitted, the platform default applies (currently Deterministic). This property can be + updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. + Known values are: "Deterministic" and "Opportunistic". + :vartype processorMode: Union[str, "ProcessorMode"] """ vmSizeProperties: "VMSizeProperties" """Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details.""" + processorMode: Union[str, "ProcessorMode"] + """Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the + platform default applies (currently Deterministic). This property can be updated on a running + VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. Known values are: + \"Deterministic\" and \"Opportunistic\".""" class VirtualMachineScaleSetIdentity(TypedDict, total=False): """Identity for the virtual machine scale set. - :ivar principal_id: The principal id of virtual machine scale set identity. This property will + :ivar principalId: The principal id of virtual machine scale set identity. This property will + only be provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the virtual machine scale set. This property - will only be provided for a system assigned identity. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". :vartype type: Union[str, "ResourceIdentityType"] - :ivar user_assigned_identities: The list of user identities associated with the virtual machine + :ivar userAssignedIdentities: The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentitiesValue"] + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentitiesValue"] """ principalId: str @@ -10480,27 +10789,27 @@ class VirtualMachineScaleSetIPConfigurationProperties(TypedDict, total=False): :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool - :ivar public_ip_address_configuration: The publicIPAddressConfiguration. - :vartype public_ip_address_configuration: "VirtualMachineScaleSetPublicIPAddressConfiguration" - :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents + :ivar publicIPAddressConfiguration: The publicIPAddressConfiguration. + :vartype publicIPAddressConfiguration: "VirtualMachineScaleSetPublicIPAddressConfiguration" + :ivar privateIPAddressVersion: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: Union[str, "IPVersion"] - :ivar application_gateway_backend_address_pools: Specifies an array of references to backend + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + :ivar applicationGatewayBackendAddressPools: Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. - :vartype application_gateway_backend_address_pools: list["SubResource"] - :ivar application_security_groups: Specifies an array of references to application security + :vartype applicationGatewayBackendAddressPools: list["SubResource"] + :ivar applicationSecurityGroups: Specifies an array of references to application security group. - :vartype application_security_groups: list["SubResource"] - :ivar load_balancer_backend_address_pools: Specifies an array of references to backend address + :vartype applicationSecurityGroups: list["SubResource"] + :ivar loadBalancerBackendAddressPools: Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. - :vartype load_balancer_backend_address_pools: list["SubResource"] - :ivar load_balancer_inbound_nat_pools: Specifies an array of references to inbound Nat pools of - the load balancers. A scale set can reference inbound nat pools of one public and one internal - load balancer. Multiple scale sets cannot use the same basic sku load balancer. - :vartype load_balancer_inbound_nat_pools: list["SubResource"] + :vartype loadBalancerBackendAddressPools: list["SubResource"] + :ivar loadBalancerInboundNatPools: Specifies an array of references to inbound Nat pools of the + load balancers. A scale set can reference inbound nat pools of one public and one internal load + balancer. Multiple scale sets cannot use the same basic sku load balancer. + :vartype loadBalancerInboundNatPools: list["SubResource"] """ subnet: "ApiEntityReference" @@ -10533,31 +10842,40 @@ class VirtualMachineScaleSetIPConfigurationProperties(TypedDict, total=False): class VirtualMachineScaleSetIpTag(TypedDict, total=False): """Contains the IP tag associated with the public IP address. - :ivar ip_tag_type: IP tag type. Example: FirstPartyUsage. - :vartype ip_tag_type: str + :ivar ipTagType: IP tag type. Example: FirstPartyUsage. + :vartype ipTagType: str :ivar tag: IP tag associated with the public IP. Example: SQL, Storage etc. :vartype tag: str + :ivar firstPartyServiceTagId: The first party service tag resource identifier associated with + the public IP address. + :vartype firstPartyServiceTagId: str """ ipTagType: str """IP tag type. Example: FirstPartyUsage.""" tag: str """IP tag associated with the public IP. Example: SQL, Storage etc.""" + firstPartyServiceTagId: str + """The first party service tag resource identifier associated with the public IP address.""" class VirtualMachineScaleSetManagedDiskParameters(TypedDict, total=False): # pylint: disable=name-too-long """Describes the parameters of a ScaleSet managed disk. - :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: + :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". - :vartype storage_account_type: Union[str, "StorageAccountTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed disk. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" - :ivar security_profile: Specifies the security profile for the managed disk. - :vartype security_profile: "VMDiskSecurityProfile" + :vartype storageAccountType: Union[str, "StorageAccountTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed disk. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" + :ivar securityProfile: Specifies the security profile for the managed disk. + :vartype securityProfile: "VMDiskSecurityProfile" + :ivar additionalDiskProperties: Specifies additional properties for the managed disk that can + be set at the time of implicit creation of the disk. This property is not captured for Restore + Points. + :vartype additionalDiskProperties: "AdditionalDiskProperties" """ storageAccountType: Union[str, "StorageAccountTypes"] @@ -10569,19 +10887,22 @@ class VirtualMachineScaleSetManagedDiskParameters(TypedDict, total=False): # py """Specifies the customer managed disk encryption set resource id for the managed disk.""" securityProfile: "VMDiskSecurityProfile" """Specifies the security profile for the managed disk.""" + additionalDiskProperties: "AdditionalDiskProperties" + """Specifies additional properties for the managed disk that can be set at the time of implicit + creation of the disk. This property is not captured for Restore Points.""" class VirtualMachineScaleSetMigrationInfo(TypedDict, total=False): """Describes the Availability Set properties related to migration to Flexible Virtual Machine Scale Set. - :ivar default_virtual_machine_scale_set_info: Indicates the target Virtual Machine ScaleSet + :ivar defaultVirtualMachineScaleSetInfo: Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API. - :vartype default_virtual_machine_scale_set_info: "DefaultVirtualMachineScaleSetInfo" - :ivar migrate_to_virtual_machine_scale_set: Specifies the Virtual Machine Scale Set that the + :vartype defaultVirtualMachineScaleSetInfo: "DefaultVirtualMachineScaleSetInfo" + :ivar migrateToVirtualMachineScaleSet: Specifies the Virtual Machine Scale Set that the Availability Set is migrated to. - :vartype migrate_to_virtual_machine_scale_set: "SubResource" + :vartype migrateToVirtualMachineScaleSet: "SubResource" """ defaultVirtualMachineScaleSetInfo: "DefaultVirtualMachineScaleSetInfo" @@ -10615,8 +10936,8 @@ class VirtualMachineScaleSetNetworkConfiguration(TypedDict, total=False): # pyl class VirtualMachineScaleSetNetworkConfigurationDnsSettings(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machines scale sets network configuration's DNS settings. - :ivar dns_servers: List of DNS servers IP addresses. - :vartype dns_servers: list[str] + :ivar dnsServers: List of DNS servers IP addresses. + :vartype dnsServers: list[str] """ dnsServers: list[str] @@ -10629,31 +10950,31 @@ class VirtualMachineScaleSetNetworkConfigurationProperties(TypedDict, total=Fals :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool - :ivar enable_accelerated_networking: Specifies whether the network interface is accelerated + :ivar enableAcceleratedNetworking: Specifies whether the network interface is accelerated networking-enabled. - :vartype enable_accelerated_networking: bool - :ivar disable_tcp_state_tracking: Specifies whether the network interface is disabled for tcp + :vartype enableAcceleratedNetworking: bool + :ivar disableTcpStateTracking: Specifies whether the network interface is disabled for tcp state tracking. - :vartype disable_tcp_state_tracking: bool - :ivar enable_fpga: Specifies whether the network interface is FPGA networking-enabled. - :vartype enable_fpga: bool - :ivar network_security_group: The network security group. - :vartype network_security_group: "SubResource" - :ivar dns_settings: The dns settings to be applied on the network interfaces. - :vartype dns_settings: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - :ivar ip_configurations: Specifies the IP configurations of the network interface. Required. - :vartype ip_configurations: list["VirtualMachineScaleSetIPConfiguration"] - :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. - :vartype enable_ip_forwarding: bool - :ivar delete_option: Specify what happens to the network interface when the VM is deleted. - Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] - :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface + :vartype disableTcpStateTracking: bool + :ivar enableFpga: Specifies whether the network interface is FPGA networking-enabled. + :vartype enableFpga: bool + :ivar networkSecurityGroup: The network security group. + :vartype networkSecurityGroup: "SubResource" + :ivar dnsSettings: The dns settings to be applied on the network interfaces. + :vartype dnsSettings: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + :ivar ipConfigurations: Specifies the IP configurations of the network interface. Required. + :vartype ipConfigurations: list["VirtualMachineScaleSetIPConfiguration"] + :ivar enableIPForwarding: Whether IP forwarding enabled on this NIC. + :vartype enableIPForwarding: bool + :ivar deleteOption: Specify what happens to the network interface when the VM is deleted. Known + values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] + :ivar auxiliaryMode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". - :vartype auxiliary_mode: Union[str, "NetworkInterfaceAuxiliaryMode"] - :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface + :vartype auxiliaryMode: Union[str, "NetworkInterfaceAuxiliaryMode"] + :ivar auxiliarySku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". - :vartype auxiliary_sku: Union[str, "NetworkInterfaceAuxiliarySku"] + :vartype auxiliarySku: Union[str, "NetworkInterfaceAuxiliarySku"] """ primary: bool @@ -10687,19 +11008,19 @@ class VirtualMachineScaleSetNetworkConfigurationProperties(TypedDict, total=Fals class VirtualMachineScaleSetNetworkProfile(TypedDict, total=False): """Describes a virtual machine scale set network profile. - :ivar health_probe: A reference to a load balancer probe used to determine the health of an + :ivar healthProbe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. - :vartype health_probe: "ApiEntityReference" - :ivar network_interface_configurations: The list of network configurations. - :vartype network_interface_configurations: list["VirtualMachineScaleSetNetworkConfiguration"] - :ivar network_api_version: specifies the Microsoft.Network API version used when creating + :vartype healthProbe: "ApiEntityReference" + :ivar networkInterfaceConfigurations: The list of network configurations. + :vartype networkInterfaceConfigurations: list["VirtualMachineScaleSetNetworkConfiguration"] + :ivar networkApiVersion: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. Known values are: "2020-11-01" and "2022-11-01". - :vartype network_api_version: Union[str, "NetworkApiVersion"] - :ivar interconnect_group_profile: Specifies the interconnect group profile to associate with - the scale set. Minimum api-version: 2026-03-01. - :vartype interconnect_group_profile: "InterconnectGroupProfile" + :vartype networkApiVersion: Union[str, "NetworkApiVersion"] + :ivar interconnectGroupProfile: Specifies the interconnect group profile to associate with the + scale set. Minimum api-version: 2026-03-01. + :vartype interconnectGroupProfile: "InterconnectGroupProfile" """ healthProbe: "ApiEntityReference" @@ -10726,45 +11047,45 @@ class VirtualMachineScaleSetOSDisk(TypedDict, total=False): **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool - :ivar create_option: Specifies how the virtual machines in the scale set should be created. The + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool + :ivar createOption: Specifies how the virtual machines in the scale set should be created. The only allowed value is: **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: Union[str, "DiskCreateOptionTypes"] - :ivar diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk + :vartype createOption: Union[str, "DiskCreateOptionTypes"] + :ivar diffDiskSettings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :vartype diff_disk_settings: "DiffDiskSettings" - :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be + :vartype diffDiskSettings: "DiffDiskSettings" + :ivar diskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. - :vartype disk_size_gb: int - :ivar storage_fault_domain_alignment: Specifies the storage fault domain alignment type for the + :vartype diskSizeGB: int + :ivar storageFaultDomainAlignment: Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". - :vartype storage_fault_domain_alignment: Union[str, "StorageFaultDomainAlignmentType"] - :ivar os_type: This property allows you to specify the type of the OS that is included in the + :vartype storageFaultDomainAlignment: Union[str, "StorageFaultDomainAlignmentType"] + :ivar osType: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :vartype os_type: Union[str, "OperatingSystemTypes"] + :vartype osType: Union[str, "OperatingSystemTypes"] :ivar image: Specifies information about the unmanaged user image to base the scale set on. :vartype image: "VirtualHardDisk" - :ivar vhd_containers: Specifies the container urls that are used to store operating system - disks for the scale set. - :vartype vhd_containers: list[str] - :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: "VirtualMachineScaleSetManagedDiskParameters" - :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex + :ivar vhdContainers: Specifies the container urls that are used to store operating system disks + for the scale set. + :vartype vhdContainers: list[str] + :ivar managedDisk: The managed disk parameters. + :vartype managedDisk: "VirtualMachineScaleSetManagedDiskParameters" + :ivar deleteOption: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

**Delete** If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.

**Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted.

The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] """ name: str @@ -10815,18 +11136,18 @@ class VirtualMachineScaleSetOSDisk(TypedDict, total=False): class VirtualMachineScaleSetOSProfile(TypedDict, total=False): """Describes a virtual machine scale set OS profile. - :ivar computer_name_prefix: Specifies the computer name prefix for all of the virtual machines - in the scale set. Computer name prefixes must be 1 to 15 characters long. - :vartype computer_name_prefix: str - :ivar admin_username: Specifies the name of the administrator account.

**Windows-only + :ivar computerNamePrefix: Specifies the computer name prefix for all of the virtual machines in + the scale set. Computer name prefixes must be 1 to 15 characters long. + :vartype computerNamePrefix: str + :ivar adminUsername: Specifies the name of the administrator account.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters. - :vartype admin_username: str - :ivar admin_password: Specifies the password of the administrator account.

+ :vartype adminUsername: str + :ivar adminPassword: Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be @@ -10839,20 +11160,19 @@ class VirtualMachineScaleSetOSProfile(TypedDict, total=False): resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension `_. - :vartype admin_password: str - :ivar custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded - string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum - length of the binary array is 65535 bytes. For using cloud-init for your VM, see `Using - cloud-init to customize a Linux VM during creation + :vartype adminPassword: str + :ivar customData: Specifies a base-64 encoded string of custom data. The base-64 encoded string + is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length + of the binary array is 65535 bytes. For using cloud-init for your VM, see `Using cloud-init to + customize a Linux VM during creation `_. - :vartype custom_data: str - :ivar windows_configuration: Specifies Windows operating system settings on the virtual - machine. - :vartype windows_configuration: "WindowsConfiguration" - :ivar linux_configuration: Specifies the Linux operating system settings on the virtual - machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed - Distributions `_. - :vartype linux_configuration: "LinuxConfiguration" + :vartype customData: str + :ivar windowsConfiguration: Specifies Windows operating system settings on the virtual machine. + :vartype windowsConfiguration: "WindowsConfiguration" + :ivar linuxConfiguration: Specifies the Linux operating system settings on the virtual machine. + For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions + `_. + :vartype linuxConfiguration: "LinuxConfiguration" :ivar secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux @@ -10860,13 +11180,13 @@ class VirtualMachineScaleSetOSProfile(TypedDict, total=False): Key Vault virtual machine extension for Windows `_. :vartype secrets: list["VaultSecretGroup"] - :ivar allow_extension_operations: Specifies whether extension operations should be allowed on - the virtual machine scale set. This may only be set to False when no extensions are present on - the virtual machine scale set. - :vartype allow_extension_operations: bool - :ivar require_guest_provision_signal: Optional property which must either be set to True or + :ivar allowExtensionOperations: Specifies whether extension operations should be allowed on the + virtual machine scale set. This may only be set to False when no extensions are present on the + virtual machine scale set. + :vartype allowExtensionOperations: bool + :ivar requireGuestProvisionSignal: Optional property which must either be set to True or omitted. - :vartype require_guest_provision_signal: bool + :vartype requireGuestProvisionSignal: bool """ computerNamePrefix: str @@ -10924,82 +11244,81 @@ class VirtualMachineScaleSetOSProfile(TypedDict, total=False): class VirtualMachineScaleSetProperties(TypedDict, total=False): """Describes the properties of a Virtual Machine Scale Set. - :ivar upgrade_policy: The upgrade policy. - :vartype upgrade_policy: "UpgradePolicy" - :ivar scheduled_events_policy: The ScheduledEventsPolicy. - :vartype scheduled_events_policy: "ScheduledEventsPolicy" - :ivar automatic_repairs_policy: Policy for automatic repairs. - :vartype automatic_repairs_policy: "AutomaticRepairsPolicy" - :ivar virtual_machine_profile: The virtual machine profile. - :vartype virtual_machine_profile: "VirtualMachineScaleSetVMProfile" - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str + :ivar upgradePolicy: The upgrade policy. + :vartype upgradePolicy: "UpgradePolicy" + :ivar scheduledEventsPolicy: The ScheduledEventsPolicy. + :vartype scheduledEventsPolicy: "ScheduledEventsPolicy" + :ivar automaticRepairsPolicy: Policy for automatic repairs. + :vartype automaticRepairsPolicy: "AutomaticRepairsPolicy" + :ivar virtualMachineProfile: The virtual machine profile. + :vartype virtualMachineProfile: "VirtualMachineScaleSetVMProfile" + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str :ivar overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. :vartype overprovision: bool - :ivar do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions - are launched only on the requested number of VMs which are finally kept. This property will - hence ensure that the extensions do not run on the extra overprovisioned VMs. - :vartype do_not_run_extensions_on_overprovisioned_v_ms: bool - :ivar unique_id: Specifies the ID which uniquely identifies a Virtual Machine Scale Set. - :vartype unique_id: str - :ivar single_placement_group: When true this limits the scale set to a single placement group, - of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + :ivar doNotRunExtensionsOnOverprovisionedVMs: When Overprovision is enabled, extensions are + launched only on the requested number of VMs which are finally kept. This property will hence + ensure that the extensions do not run on the extra overprovisioned VMs. + :vartype doNotRunExtensionsOnOverprovisionedVMs: bool + :ivar uniqueId: Specifies the ID which uniquely identifies a Virtual Machine Scale Set. + :vartype uniqueId: str + :ivar singlePlacementGroup: When true this limits the scale set to a single placement group, of + max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true. - :vartype single_placement_group: bool - :ivar zone_balance: Whether to force strictly even Virtual Machine distribution cross x-zones - in case there is zone outage. zoneBalance property can only be set if the zones property of the + :vartype singlePlacementGroup: bool + :ivar zoneBalance: Whether to force strictly even Virtual Machine distribution cross x-zones in + case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set. - :vartype zone_balance: bool - :ivar platform_fault_domain_count: Fault Domain count for each placement group. - :vartype platform_fault_domain_count: int - :ivar proximity_placement_group: Specifies information about the proximity placement group that + :vartype zoneBalance: bool + :ivar platformFaultDomainCount: Fault Domain count for each placement group. + :vartype platformFaultDomainCount: int + :ivar proximityPlacementGroup: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: "SubResource" - :ivar host_group: Specifies information about the dedicated host group that the virtual machine + :vartype proximityPlacementGroup: "SubResource" + :ivar hostGroup: Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01. - :vartype host_group: "SubResource" - :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the + :vartype hostGroup: "SubResource" + :ivar additionalCapabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: "AdditionalCapabilities" - :ivar scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the + :vartype additionalCapabilities: "AdditionalCapabilities" + :ivar scaleInPolicy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :vartype scale_in_policy: "ScaleInPolicy" - :ivar orchestration_mode: Specifies the orchestration mode for the virtual machine scale set. + :vartype scaleInPolicy: "ScaleInPolicy" + :ivar orchestrationMode: Specifies the orchestration mode for the virtual machine scale set. Known values are: "Uniform" and "Flexible". - :vartype orchestration_mode: Union[str, "OrchestrationMode"] - :ivar spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale + :vartype orchestrationMode: Union[str, "OrchestrationMode"] + :ivar spotRestorePolicy: Specifies the Spot Restore properties for the virtual machine scale set. - :vartype spot_restore_policy: "SpotRestorePolicy" - :ivar priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority - VMs within the same VMSS Flex instance. - :vartype priority_mix_policy: "PriorityMixPolicy" - :ivar time_created: Specifies the time at which the Virtual Machine Scale Set resource was + :vartype spotRestorePolicy: "SpotRestorePolicy" + :ivar priorityMixPolicy: Specifies the desired targets for mixing Spot and Regular priority VMs + within the same VMSS Flex instance. + :vartype priorityMixPolicy: "PriorityMixPolicy" + :ivar timeCreated: Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01. - :vartype time_created: str - :ivar constrained_maximum_capacity: Optional property which must either be set to True or + :vartype timeCreated: str + :ivar constrainedMaximumCapacity: Optional property which must either be set to True or omitted. - :vartype constrained_maximum_capacity: bool - :ivar resiliency_policy: Policy for Resiliency. - :vartype resiliency_policy: "ResiliencyPolicy" - :ivar zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine - Scale Set compute and storage Fault Domain count. Known values are: "Aligned", "Unaligned", and + :vartype constrainedMaximumCapacity: bool + :ivar resiliencyPolicy: Policy for Resiliency. + :vartype resiliencyPolicy: "ResiliencyPolicy" + :ivar zonalPlatformFaultDomainAlignMode: Specifies the align mode between Virtual Machine Scale + Set compute and storage Fault Domain count. Known values are: "Aligned", "Unaligned", and "BestEffortAligned". - :vartype zonal_platform_fault_domain_align_mode: Union[str, - "ZonalPlatformFaultDomainAlignMode"] - :ivar sku_profile: Specifies the sku profile for the virtual machine scale set. - :vartype sku_profile: "SkuProfile" - :ivar high_speed_interconnect_placement: Specifies the high speed interconnect placement for - the virtual machine scale set. Known values are: "None" and "Trunk". - :vartype high_speed_interconnect_placement: Union[str, "HighSpeedInterconnectPlacement"] - :ivar lifecycle_hooks_profile: Specifies the lifecycle hooks profile for the virtual machine - scale set. - :vartype lifecycle_hooks_profile: "LifecycleHooksProfile" - :ivar external_health_policy: Specifies the external health policy for the virtual machine + :vartype zonalPlatformFaultDomainAlignMode: Union[str, "ZonalPlatformFaultDomainAlignMode"] + :ivar skuProfile: Specifies the sku profile for the virtual machine scale set. + :vartype skuProfile: "SkuProfile" + :ivar highSpeedInterconnectPlacement: Specifies the high speed interconnect placement for the + virtual machine scale set. Known values are: "None" and "Trunk". + :vartype highSpeedInterconnectPlacement: Union[str, "HighSpeedInterconnectPlacement"] + :ivar lifecycleHooksProfile: Specifies the lifecycle hooks profile for the virtual machine scale set. - :vartype external_health_policy: "ExternalHealthPolicy" + :vartype lifecycleHooksProfile: "LifecycleHooksProfile" + :ivar externalHealthPolicy: Specifies the external health policy for the virtual machine scale + set. + :vartype externalHealthPolicy: "ExternalHealthPolicy" """ upgradePolicy: "UpgradePolicy" @@ -11103,15 +11422,15 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings( ): # pylint: disable=name-too-long """Describes a virtual machines scale sets network configuration's DNS settings. - :ivar domain_name_label: The Domain name label.The concatenation of the domain name label and - vm index will be the domain name labels of the PublicIPAddress resources that will be created. - Required. - :vartype domain_name_label: str - :ivar domain_name_label_scope: The Domain name label scope.The concatenation of the hashed - domain name label that generated according to the policy from domain name label scope and vm + :ivar domainNameLabel: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. - Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". - :vartype domain_name_label_scope: Union[str, "DomainNameLabelScopeTypes"] + Required. + :vartype domainNameLabel: str + :ivar domainNameLabelScope: The Domain name label scope.The concatenation of the hashed domain + name label that generated according to the policy from domain name label scope and vm index + will be the domain name labels of the PublicIPAddress resources that will be created. Known + values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". + :vartype domainNameLabelScope: Union[str, "DomainNameLabelScopeTypes"] """ domainNameLabel: Required[str] @@ -11129,21 +11448,21 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationProperties( ): # pylint: disable=name-too-long """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. - :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. - :vartype idle_timeout_in_minutes: int - :ivar dns_settings: The dns settings to be applied on the publicIP addresses . - :vartype dns_settings: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - :ivar ip_tags: The list of IP tags associated with the public IP address. - :vartype ip_tags: list["VirtualMachineScaleSetIpTag"] - :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: "SubResource" - :ivar public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents + :ivar idleTimeoutInMinutes: The idle timeout of the public IP address. + :vartype idleTimeoutInMinutes: int + :ivar dnsSettings: The dns settings to be applied on the publicIP addresses . + :vartype dnsSettings: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + :ivar ipTags: The list of IP tags associated with the public IP address. + :vartype ipTags: list["VirtualMachineScaleSetIpTag"] + :ivar publicIPPrefix: The PublicIPPrefix from which to allocate publicIP addresses. + :vartype publicIPPrefix: "SubResource" + :ivar publicIPAddressVersion: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype public_ip_address_version: Union[str, "IPVersion"] - :ivar delete_option: Specify what happens to the public IP when the VM is deleted. Known values + :vartype publicIPAddressVersion: Union[str, "IPVersion"] + :ivar deleteOption: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] + :vartype deleteOption: Union[str, "DeleteOptions"] """ idleTimeoutInMinutes: int @@ -11166,18 +11485,17 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationProperties( class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): # pylint: disable=name-too-long """Describes a Virtual Machine Scale Set VM Reimage Parameters. - :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + :ivar tempDisk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. - :vartype temp_disk: bool - :ivar exact_version: Specifies in decimal number, the version the OS disk should be reimaged - to. If exact version is not provided, the OS disk is reimaged to the existing version of OS - Disk. - :vartype exact_version: str - :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: "OSProfileProvisioningData" - :ivar force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a - virtual machine scale set VM. - :vartype force_update_os_disk_for_ephemeral: bool + :vartype tempDisk: bool + :ivar exactVersion: Specifies in decimal number, the version the OS disk should be reimaged to. + If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk. + :vartype exactVersion: str + :ivar osProfile: Specifies information required for reimaging the non-ephemeral OS disk. + :vartype osProfile: "OSProfileProvisioningData" + :ivar forceUpdateOSDiskForEphemeral: Parameter to force update ephemeral OS disk for a virtual + machine scale set VM. + :vartype forceUpdateOSDiskForEphemeral: bool """ forceUpdateOSDiskForEphemeral: bool @@ -11187,22 +11505,21 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): """Describes a Virtual Machine Scale Set VM Reimage Parameters. - :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + :ivar tempDisk: Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. - :vartype temp_disk: bool - :ivar exact_version: Specifies in decimal number, the version the OS disk should be reimaged - to. If exact version is not provided, the OS disk is reimaged to the existing version of OS - Disk. - :vartype exact_version: str - :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: "OSProfileProvisioningData" - :ivar force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a - virtual machine scale set VM. - :vartype force_update_os_disk_for_ephemeral: bool - :ivar instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + :vartype tempDisk: bool + :ivar exactVersion: Specifies in decimal number, the version the OS disk should be reimaged to. + If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk. + :vartype exactVersion: str + :ivar osProfile: Specifies information required for reimaging the non-ephemeral OS disk. + :vartype osProfile: "OSProfileProvisioningData" + :ivar forceUpdateOSDiskForEphemeral: Parameter to force update ephemeral OS disk for a virtual + machine scale set VM. + :vartype forceUpdateOSDiskForEphemeral: bool + :ivar instanceIds: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. - :vartype instance_ids: list[str] + :vartype instanceIds: list[str] """ instanceIds: list[str] @@ -11214,25 +11531,29 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar class VirtualMachineScaleSetStorageProfile(TypedDict, total=False): """Describes a virtual machine scale set storage profile. - :ivar image_reference: Specifies information about the image to use. You can specify - information about platform images, marketplace images, or virtual machine images. This element - is required when you want to use a platform image, marketplace image, or virtual machine image, - but is not used in other creation operations. - :vartype image_reference: "ImageReference" - :ivar os_disk: Specifies information about the operating system disk used by the virtual + :ivar imageReference: Specifies information about the image to use. You can specify information + about platform images, marketplace images, or virtual machine images. This element is required + when you want to use a platform image, marketplace image, or virtual machine image, but is not + used in other creation operations. + :vartype imageReference: "ImageReference" + :ivar osDisk: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: "VirtualMachineScaleSetOSDisk" - :ivar data_disks: Specifies the parameters that are used to add data disks to the virtual + :vartype osDisk: "VirtualMachineScaleSetOSDisk" + :ivar dataDisks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype data_disks: list["VirtualMachineScaleSetDataDisk"] - :ivar disk_controller_type: Specifies the disk controller type configured for the virtual + :vartype dataDisks: list["VirtualMachineScaleSetDataDisk"] + :ivar diskControllerType: Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". - :vartype disk_controller_type: Union[str, "DiskControllerTypes"] + :vartype diskControllerType: Union[str, "DiskControllerTypes"] + :ivar diskApiVersion: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype diskApiVersion: Union[str, "DiskApiVersion"] """ imageReference: "ImageReference" @@ -11251,6 +11572,10 @@ class VirtualMachineScaleSetStorageProfile(TypedDict, total=False): diskControllerType: Union[str, "DiskControllerTypes"] """Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01. Known values are: \"SCSI\" and \"NVMe\".""" + diskApiVersion: Union[str, "DiskApiVersion"] + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" class VirtualMachineScaleSetUpdate(UpdateResource): @@ -11313,22 +11638,22 @@ class VirtualMachineScaleSetUpdateIPConfigurationProperties(TypedDict, total=Fal :ivar primary: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. :vartype primary: bool - :ivar public_ip_address_configuration: The publicIPAddressConfiguration. - :vartype public_ip_address_configuration: + :ivar publicIPAddressConfiguration: The publicIPAddressConfiguration. + :vartype publicIPAddressConfiguration: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" - :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents + :ivar privateIPAddressVersion: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: Union[str, "IPVersion"] - :ivar application_gateway_backend_address_pools: The application gateway backend address pools. - :vartype application_gateway_backend_address_pools: list["SubResource"] - :ivar application_security_groups: Specifies an array of references to application security + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + :ivar applicationGatewayBackendAddressPools: The application gateway backend address pools. + :vartype applicationGatewayBackendAddressPools: list["SubResource"] + :ivar applicationSecurityGroups: Specifies an array of references to application security group. - :vartype application_security_groups: list["SubResource"] - :ivar load_balancer_backend_address_pools: The load balancer backend address pools. - :vartype load_balancer_backend_address_pools: list["SubResource"] - :ivar load_balancer_inbound_nat_pools: The load balancer inbound nat pools. - :vartype load_balancer_inbound_nat_pools: list["SubResource"] + :vartype applicationSecurityGroups: list["SubResource"] + :ivar loadBalancerBackendAddressPools: The load balancer backend address pools. + :vartype loadBalancerBackendAddressPools: list["SubResource"] + :ivar loadBalancerInboundNatPools: The load balancer inbound nat pools. + :vartype loadBalancerInboundNatPools: list["SubResource"] """ subnet: "ApiEntityReference" @@ -11383,31 +11708,31 @@ class VirtualMachineScaleSetUpdateNetworkConfigurationProperties( :ivar primary: Whether this is a primary NIC on a virtual machine. :vartype primary: bool - :ivar enable_accelerated_networking: Specifies whether the network interface is accelerated + :ivar enableAcceleratedNetworking: Specifies whether the network interface is accelerated networking-enabled. - :vartype enable_accelerated_networking: bool - :ivar disable_tcp_state_tracking: Specifies whether the network interface is disabled for tcp + :vartype enableAcceleratedNetworking: bool + :ivar disableTcpStateTracking: Specifies whether the network interface is disabled for tcp state tracking. - :vartype disable_tcp_state_tracking: bool - :ivar enable_fpga: Specifies whether the network interface is FPGA networking-enabled. - :vartype enable_fpga: bool - :ivar network_security_group: The network security group. - :vartype network_security_group: "SubResource" - :ivar dns_settings: The dns settings to be applied on the network interfaces. - :vartype dns_settings: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - :ivar ip_configurations: The virtual machine scale set IP Configuration. - :vartype ip_configurations: list["VirtualMachineScaleSetUpdateIPConfiguration"] - :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. - :vartype enable_ip_forwarding: bool - :ivar delete_option: Specify what happens to the network interface when the VM is deleted. - Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] - :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface + :vartype disableTcpStateTracking: bool + :ivar enableFpga: Specifies whether the network interface is FPGA networking-enabled. + :vartype enableFpga: bool + :ivar networkSecurityGroup: The network security group. + :vartype networkSecurityGroup: "SubResource" + :ivar dnsSettings: The dns settings to be applied on the network interfaces. + :vartype dnsSettings: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + :ivar ipConfigurations: The virtual machine scale set IP Configuration. + :vartype ipConfigurations: list["VirtualMachineScaleSetUpdateIPConfiguration"] + :ivar enableIPForwarding: Whether IP forwarding enabled on this NIC. + :vartype enableIPForwarding: bool + :ivar deleteOption: Specify what happens to the network interface when the VM is deleted. Known + values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] + :ivar auxiliaryMode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". - :vartype auxiliary_mode: Union[str, "NetworkInterfaceAuxiliaryMode"] - :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface + :vartype auxiliaryMode: Union[str, "NetworkInterfaceAuxiliaryMode"] + :ivar auxiliarySku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". - :vartype auxiliary_sku: Union[str, "NetworkInterfaceAuxiliarySku"] + :vartype auxiliarySku: Union[str, "NetworkInterfaceAuxiliarySku"] """ primary: bool @@ -11440,20 +11765,20 @@ class VirtualMachineScaleSetUpdateNetworkConfigurationProperties( class VirtualMachineScaleSetUpdateNetworkProfile(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machine scale set network profile. - :ivar health_probe: A reference to a load balancer probe used to determine the health of an + :ivar healthProbe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. - :vartype health_probe: "ApiEntityReference" - :ivar network_interface_configurations: The list of network configurations. - :vartype network_interface_configurations: + :vartype healthProbe: "ApiEntityReference" + :ivar networkInterfaceConfigurations: The list of network configurations. + :vartype networkInterfaceConfigurations: list["VirtualMachineScaleSetUpdateNetworkConfiguration"] - :ivar network_api_version: specifies the Microsoft.Network API version used when creating + :ivar networkApiVersion: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. Known values are: "2020-11-01" and "2022-11-01". - :vartype network_api_version: Union[str, "NetworkApiVersion"] - :ivar interconnect_group_profile: Specifies the interconnect group profile to associate with - the scale set. Minimum api-version: 2026-03-01. - :vartype interconnect_group_profile: "InterconnectGroupProfile" + :vartype networkApiVersion: Union[str, "NetworkApiVersion"] + :ivar interconnectGroupProfile: Specifies the interconnect group profile to associate with the + scale set. Minimum api-version: 2026-03-01. + :vartype interconnectGroupProfile: "InterconnectGroupProfile" """ healthProbe: "ApiEntityReference" @@ -11477,35 +11802,35 @@ class VirtualMachineScaleSetUpdateOSDisk(TypedDict, total=False): :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". :vartype caching: Union[str, "CachingTypes"] - :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or - disabled on the disk. - :vartype write_accelerator_enabled: bool - :ivar diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk + :ivar writeAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled + on the disk. + :vartype writeAcceleratorEnabled: bool + :ivar diffDiskSettings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :vartype diff_disk_settings: "DiffDiskSettings" - :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be + :vartype diffDiskSettings: "DiffDiskSettings" + :ivar diskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. - :vartype disk_size_gb: int - :ivar storage_fault_domain_alignment: Specifies the storage fault domain alignment type for the + :vartype diskSizeGB: int + :ivar storageFaultDomainAlignment: Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". - :vartype storage_fault_domain_alignment: Union[str, "StorageFaultDomainAlignmentType"] + :vartype storageFaultDomainAlignment: Union[str, "StorageFaultDomainAlignmentType"] :ivar image: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. :vartype image: "VirtualHardDisk" - :ivar vhd_containers: The list of virtual hard disk container uris. - :vartype vhd_containers: list[str] - :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: "VirtualMachineScaleSetManagedDiskParameters" - :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex + :ivar vhdContainers: The list of virtual hard disk container uris. + :vartype vhdContainers: list[str] + :ivar managedDisk: The managed disk parameters. + :vartype managedDisk: "VirtualMachineScaleSetManagedDiskParameters" + :ivar deleteOption: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

**Delete** If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.

**Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted.

The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DiskDeleteOptionTypes"] + :vartype deleteOption: Union[str, "DiskDeleteOptionTypes"] """ caching: Union[str, "CachingTypes"] @@ -11543,12 +11868,12 @@ class VirtualMachineScaleSetUpdateOSDisk(TypedDict, total=False): class VirtualMachineScaleSetUpdateOSProfile(TypedDict, total=False): """Describes a virtual machine scale set OS profile. - :ivar custom_data: A base-64 encoded string of custom data. - :vartype custom_data: str - :ivar windows_configuration: The Windows Configuration of the OS profile. - :vartype windows_configuration: "WindowsConfiguration" - :ivar linux_configuration: The Linux Configuration of the OS profile. - :vartype linux_configuration: "LinuxConfiguration" + :ivar customData: A base-64 encoded string of custom data. + :vartype customData: str + :ivar windowsConfiguration: The Windows Configuration of the OS profile. + :vartype windowsConfiguration: "WindowsConfiguration" + :ivar linuxConfiguration: The Linux Configuration of the OS profile. + :vartype linuxConfiguration: "LinuxConfiguration" :ivar secrets: The List of certificates for addition to the VM. :vartype secrets: list["VaultSecretGroup"] """ @@ -11566,51 +11891,50 @@ class VirtualMachineScaleSetUpdateOSProfile(TypedDict, total=False): class VirtualMachineScaleSetUpdateProperties(TypedDict, total=False): """Describes the properties of a Virtual Machine Scale Set. - :ivar upgrade_policy: The upgrade policy. - :vartype upgrade_policy: "UpgradePolicy" - :ivar automatic_repairs_policy: Policy for automatic repairs. - :vartype automatic_repairs_policy: "AutomaticRepairsPolicy" - :ivar virtual_machine_profile: The virtual machine profile. - :vartype virtual_machine_profile: "VirtualMachineScaleSetUpdateVMProfile" + :ivar upgradePolicy: The upgrade policy. + :vartype upgradePolicy: "UpgradePolicy" + :ivar automaticRepairsPolicy: Policy for automatic repairs. + :vartype automaticRepairsPolicy: "AutomaticRepairsPolicy" + :ivar virtualMachineProfile: The virtual machine profile. + :vartype virtualMachineProfile: "VirtualMachineScaleSetUpdateVMProfile" :ivar overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. :vartype overprovision: bool - :ivar do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions - are launched only on the requested number of VMs which are finally kept. This property will - hence ensure that the extensions do not run on the extra overprovisioned VMs. - :vartype do_not_run_extensions_on_overprovisioned_v_ms: bool - :ivar single_placement_group: When true this limits the scale set to a single placement group, - of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + :ivar doNotRunExtensionsOnOverprovisionedVMs: When Overprovision is enabled, extensions are + launched only on the requested number of VMs which are finally kept. This property will hence + ensure that the extensions do not run on the extra overprovisioned VMs. + :vartype doNotRunExtensionsOnOverprovisionedVMs: bool + :ivar singlePlacementGroup: When true this limits the scale set to a single placement group, of + max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true. - :vartype single_placement_group: bool - :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the + :vartype singlePlacementGroup: bool + :ivar additionalCapabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: "AdditionalCapabilities" - :ivar scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the + :vartype additionalCapabilities: "AdditionalCapabilities" + :ivar scaleInPolicy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :vartype scale_in_policy: "ScaleInPolicy" - :ivar proximity_placement_group: Specifies information about the proximity placement group that + :vartype scaleInPolicy: "ScaleInPolicy" + :ivar proximityPlacementGroup: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: "SubResource" - :ivar priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority - VMs within the same VMSS Flex instance. - :vartype priority_mix_policy: "PriorityMixPolicy" - :ivar spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale + :vartype proximityPlacementGroup: "SubResource" + :ivar priorityMixPolicy: Specifies the desired targets for mixing Spot and Regular priority VMs + within the same VMSS Flex instance. + :vartype priorityMixPolicy: "PriorityMixPolicy" + :ivar spotRestorePolicy: Specifies the Spot Restore properties for the virtual machine scale set. - :vartype spot_restore_policy: "SpotRestorePolicy" - :ivar resiliency_policy: Policy for Resiliency. - :vartype resiliency_policy: "ResiliencyPolicy" - :ivar zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine - Scale Set compute and storage Fault Domain count. Known values are: "Aligned", "Unaligned", and + :vartype spotRestorePolicy: "SpotRestorePolicy" + :ivar resiliencyPolicy: Policy for Resiliency. + :vartype resiliencyPolicy: "ResiliencyPolicy" + :ivar zonalPlatformFaultDomainAlignMode: Specifies the align mode between Virtual Machine Scale + Set compute and storage Fault Domain count. Known values are: "Aligned", "Unaligned", and "BestEffortAligned". - :vartype zonal_platform_fault_domain_align_mode: Union[str, - "ZonalPlatformFaultDomainAlignMode"] - :ivar sku_profile: Specifies the sku profile for the virtual machine scale set. - :vartype sku_profile: "SkuProfile" - :ivar lifecycle_hooks_profile: Specifies the lifecycle hooks profile for the virtual machine + :vartype zonalPlatformFaultDomainAlignMode: Union[str, "ZonalPlatformFaultDomainAlignMode"] + :ivar skuProfile: Specifies the sku profile for the virtual machine scale set. + :vartype skuProfile: "SkuProfile" + :ivar lifecycleHooksProfile: Specifies the lifecycle hooks profile for the virtual machine scale set. - :vartype lifecycle_hooks_profile: "LifecycleHooksProfile" + :vartype lifecycleHooksProfile: "LifecycleHooksProfile" """ upgradePolicy: "UpgradePolicy" @@ -11681,15 +12005,15 @@ class VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties( ): # pylint: disable=name-too-long """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. - :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. - :vartype idle_timeout_in_minutes: int - :ivar dns_settings: The dns settings to be applied on the publicIP addresses . - :vartype dns_settings: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: "SubResource" - :ivar delete_option: Specify what happens to the public IP when the VM is deleted. Known values + :ivar idleTimeoutInMinutes: The idle timeout of the public IP address. + :vartype idleTimeoutInMinutes: int + :ivar dnsSettings: The dns settings to be applied on the publicIP addresses . + :vartype dnsSettings: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + :ivar publicIPPrefix: The PublicIPPrefix from which to allocate publicIP addresses. + :vartype publicIPPrefix: "SubResource" + :ivar deleteOption: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: Union[str, "DeleteOptions"] + :vartype deleteOption: Union[str, "DeleteOptions"] """ idleTimeoutInMinutes: int @@ -11706,17 +12030,21 @@ class VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties( class VirtualMachineScaleSetUpdateStorageProfile(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machine scale set storage profile. - :ivar image_reference: The image reference. - :vartype image_reference: "ImageReference" - :ivar os_disk: The OS disk. - :vartype os_disk: "VirtualMachineScaleSetUpdateOSDisk" - :ivar data_disks: The data disks. - :vartype data_disks: list["VirtualMachineScaleSetDataDisk"] - :ivar disk_controller_type: Specifies the disk controller type configured for the virtual + :ivar imageReference: The image reference. + :vartype imageReference: "ImageReference" + :ivar osDisk: The OS disk. + :vartype osDisk: "VirtualMachineScaleSetUpdateOSDisk" + :ivar dataDisks: The data disks. + :vartype dataDisks: list["VirtualMachineScaleSetDataDisk"] + :ivar diskControllerType: Specifies the disk controller type configured for the virtual machines in the scale set. **Note:** You need to deallocate the virtual machines in the scale set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". - :vartype disk_controller_type: Union[str, "DiskControllerTypes"] + :vartype diskControllerType: Union[str, "DiskControllerTypes"] + :ivar diskApiVersion: Specifies the Disk API version used when applying + additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., + "2026-03-02"). Known values are: "2025-01-02" and "2026-03-02". + :vartype diskApiVersion: Union[str, "DiskApiVersion"] """ imageReference: "ImageReference" @@ -11730,41 +12058,45 @@ class VirtualMachineScaleSetUpdateStorageProfile(TypedDict, total=False): # pyl **Note:** You need to deallocate the virtual machines in the scale set before updating its disk controller type based on the upgrade mode configured for the scale set. Minimum api-version: 2022-08-01. Known values are: \"SCSI\" and \"NVMe\".""" + diskApiVersion: Union[str, "DiskApiVersion"] + """Specifies the Disk API version used when applying additionalDiskProperties to managed disks. + The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\"). Known values are: + \"2025-01-02\" and \"2026-03-02\".""" class VirtualMachineScaleSetUpdateVMProfile(TypedDict, total=False): """Describes a virtual machine scale set virtual machine profile. - :ivar os_profile: The virtual machine scale set OS profile. - :vartype os_profile: "VirtualMachineScaleSetUpdateOSProfile" - :ivar storage_profile: The virtual machine scale set storage profile. - :vartype storage_profile: "VirtualMachineScaleSetUpdateStorageProfile" - :ivar network_profile: The virtual machine scale set network profile. - :vartype network_profile: "VirtualMachineScaleSetUpdateNetworkProfile" - :ivar security_posture_reference: The virtual machine scale set security posture reference. - :vartype security_posture_reference: "SecurityPostureReferenceUpdate" - :ivar security_profile: The virtual machine scale set Security profile. - :vartype security_profile: "SecurityProfile" - :ivar diagnostics_profile: The virtual machine scale set diagnostics profile. - :vartype diagnostics_profile: "DiagnosticsProfile" - :ivar extension_profile: The virtual machine scale set extension profile. - :vartype extension_profile: "VirtualMachineScaleSetExtensionProfile" - :ivar license_type: The license type, which is for bring your own license scenario. - :vartype license_type: str - :ivar billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum + :ivar osProfile: The virtual machine scale set OS profile. + :vartype osProfile: "VirtualMachineScaleSetUpdateOSProfile" + :ivar storageProfile: The virtual machine scale set storage profile. + :vartype storageProfile: "VirtualMachineScaleSetUpdateStorageProfile" + :ivar networkProfile: The virtual machine scale set network profile. + :vartype networkProfile: "VirtualMachineScaleSetUpdateNetworkProfile" + :ivar securityPostureReference: The virtual machine scale set security posture reference. + :vartype securityPostureReference: "SecurityPostureReferenceUpdate" + :ivar securityProfile: The virtual machine scale set Security profile. + :vartype securityProfile: "SecurityProfile" + :ivar diagnosticsProfile: The virtual machine scale set diagnostics profile. + :vartype diagnosticsProfile: "DiagnosticsProfile" + :ivar extensionProfile: The virtual machine scale set extension profile. + :vartype extensionProfile: "VirtualMachineScaleSetExtensionProfile" + :ivar licenseType: The license type, which is for bring your own license scenario. + :vartype licenseType: str + :ivar billingProfile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :vartype billing_profile: "BillingProfile" - :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. - :vartype scheduled_events_profile: "ScheduledEventsProfile" - :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass + :vartype billingProfile: "BillingProfile" + :ivar scheduledEventsProfile: Specifies Scheduled Event related configurations. + :vartype scheduledEventsProfile: "ScheduledEventsProfile" + :ivar userData: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01. - :vartype user_data: str - :ivar hardware_profile: Specifies the hardware profile related details of a scale set. Minimum + :vartype userData: str + :ivar hardwareProfile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. - :vartype hardware_profile: "VirtualMachineScaleSetHardwareProfile" - :ivar interconnect_block_profile: Specifies the Interconnect Block related details of a scale + :vartype hardwareProfile: "VirtualMachineScaleSetHardwareProfile" + :ivar interconnectBlockProfile: Specifies the Interconnect Block related details of a scale set. Minimum api-version: 2026-03-01. - :vartype interconnect_block_profile: "InterconnectBlockProfile" + :vartype interconnectBlockProfile: "InterconnectBlockProfile" """ osProfile: "VirtualMachineScaleSetUpdateOSProfile" @@ -11808,17 +12140,17 @@ class VirtualMachineScaleSetVM(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: Describes the properties of a virtual machine scale set virtual machine. :vartype properties: "VirtualMachineScaleSetVMProperties" - :ivar instance_id: The virtual machine instance ID. - :vartype instance_id: str + :ivar instanceId: The virtual machine instance ID. + :vartype instanceId: str :ivar sku: The virtual machine SKU. :vartype sku: "Sku" :ivar plan: Specifies information about the marketplace image used to create the virtual @@ -11910,10 +12242,10 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): class VirtualMachineScaleSetVMInstanceIDs(TypedDict, total=False): """Specifies a list of virtual machine instance IDs from the VM scale set. - :ivar instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + :ivar instanceIds: The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. - :vartype instance_ids: list[str] + :vartype instanceIds: list[str] """ instanceIds: list[str] @@ -11925,8 +12257,8 @@ class VirtualMachineScaleSetVMInstanceIDs(TypedDict, total=False): class VirtualMachineScaleSetVMInstanceRequiredIDs(TypedDict, total=False): # pylint: disable=name-too-long """Specifies a list of virtual machine instance IDs from the VM scale set. - :ivar instance_ids: The virtual machine scale set instance ids. Required. - :vartype instance_ids: list[str] + :ivar instanceIds: The virtual machine scale set instance ids. Required. + :vartype instanceIds: list[str] """ instanceIds: Required[list[str]] @@ -11936,51 +12268,57 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs(TypedDict, total=False): # py class VirtualMachineScaleSetVMInstanceView(TypedDict, total=False): """The instance view of a virtual machine scale set VM. - :ivar platform_update_domain: The Update Domain count. - :vartype platform_update_domain: int - :ivar platform_fault_domain: The Fault Domain count. - :vartype platform_fault_domain: int - :ivar rdp_thumb_print: The Remote desktop certificate thumbprint. - :vartype rdp_thumb_print: str - :ivar vm_agent: The VM Agent running on the virtual machine. - :vartype vm_agent: "VirtualMachineAgentInstanceView" - :ivar maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. - :vartype maintenance_redeploy_status: "MaintenanceRedeployStatus" + :ivar platformUpdateDomain: The Update Domain count. + :vartype platformUpdateDomain: int + :ivar platformFaultDomain: The Fault Domain count. + :vartype platformFaultDomain: int + :ivar rdpThumbPrint: The Remote desktop certificate thumbprint. + :vartype rdpThumbPrint: str + :ivar vmAgent: The VM Agent running on the virtual machine. + :vartype vmAgent: "VirtualMachineAgentInstanceView" + :ivar maintenanceRedeployStatus: The Maintenance Operation status on the virtual machine. + :vartype maintenanceRedeployStatus: "MaintenanceRedeployStatus" :ivar disks: The disks information. :vartype disks: list["DiskInstanceView"] :ivar extensions: The extensions information. :vartype extensions: list["VirtualMachineExtensionInstanceView"] - :ivar vm_health: The health status for the VM. - :vartype vm_health: "VirtualMachineHealthStatus" - :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view - Console Output and Screenshot to diagnose VM status. You can easily view the output of your - console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: "BootDiagnosticsInstanceView" + :ivar vmHealth: The health status for the VM. + :vartype vmHealth: "VirtualMachineHealthStatus" + :ivar bootDiagnostics: Boot Diagnostics is a debugging feature which allows you to view Console + Output and Screenshot to diagnose VM status. You can easily view the output of your console + log. Azure also enables you to see a screenshot of the VM from the hypervisor. + :vartype bootDiagnostics: "BootDiagnosticsInstanceView" :ivar statuses: The resource status information. :vartype statuses: list["InstanceViewStatus"] - :ivar assigned_host: Resource id of the dedicated host, on which the virtual machine is + :ivar assignedHost: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. - :vartype assigned_host: str - :ivar placement_group_id: The placement group in which the VM is running. If the VM is + :vartype assignedHost: str + :ivar placementGroupId: The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. - :vartype placement_group_id: str - :ivar computer_name: Specifies the host OS name of the virtual machine.

This name + :vartype placementGroupId: str + :ivar computerName: Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see `Azure infrastructure services implementation guidelines `_. - :vartype computer_name: str - :ivar os_name: The Operating System running on the hybrid machine. - :vartype os_name: str - :ivar os_version: The version of Operating System running on the hybrid machine. - :vartype os_version: str - :ivar hyper_v_generation: The hypervisor generation of the Virtual Machine [V1, V2]. Known - values are: "V1" and "V2". - :vartype hyper_v_generation: Union[str, "HyperVGeneration"] - :ivar interconnect_instance_view: The Interconnect runtime view of the Scale Set VM instance. + :vartype computerName: str + :ivar osName: The Operating System running on the hybrid machine. + :vartype osName: str + :ivar osVersion: The version of Operating System running on the hybrid machine. + :vartype osVersion: str + :ivar hyperVGeneration: The hypervisor generation of the Virtual Machine [V1, V2]. Known values + are: "V1" and "V2". + :vartype hyperVGeneration: Union[str, "HyperVGeneration"] + :ivar interconnectInstanceView: The Interconnect runtime view of the Scale Set VM instance. Minimum api-version: 2026-03-01. - :vartype interconnect_instance_view: "InterconnectInstanceView" + :vartype interconnectInstanceView: "InterconnectInstanceView" + :ivar capacityReservationType: Specifies which type of capacity reservation the virtual machine + scale set VM instance will consume capacity from if eligible or whether it is explicitly opted + out from being associated and consuming capacity from any reserved capacity available in the + subscription. Minimum api-version: 2026-04-01. Known values are: "NotEligible", "Targeted", + "Open", "Disabled", and "Block". + :vartype capacityReservationType: Union[str, "CapacityReservationType"] """ platformUpdateDomain: int @@ -12026,16 +12364,22 @@ class VirtualMachineScaleSetVMInstanceView(TypedDict, total=False): """The hypervisor generation of the Virtual Machine [V1, V2]. Known values are: \"V1\" and \"V2\".""" interconnectInstanceView: "InterconnectInstanceView" """The Interconnect runtime view of the Scale Set VM instance. Minimum api-version: 2026-03-01.""" + capacityReservationType: Union[str, "CapacityReservationType"] + """Specifies which type of capacity reservation the virtual machine scale set VM instance will + consume capacity from if eligible or whether it is explicitly opted out from being associated + and consuming capacity from any reserved capacity available in the subscription. Minimum + api-version: 2026-04-01. Known values are: \"NotEligible\", \"Targeted\", \"Open\", + \"Disabled\", and \"Block\".""" class VirtualMachineScaleSetVMNetworkProfileConfiguration(TypedDict, total=False): # pylint: disable=name-too-long """Describes a virtual machine scale set VM network profile. - :ivar network_interface_configurations: The list of network configurations. - :vartype network_interface_configurations: list["VirtualMachineScaleSetNetworkConfiguration"] - :ivar interconnect_group_profile: Specifies the interconnect group profile to associate with - the scale set vm instance. Minimum api-version: 2026-03-01. - :vartype interconnect_group_profile: "InterconnectGroupProfile" + :ivar networkInterfaceConfigurations: The list of network configurations. + :vartype networkInterfaceConfigurations: list["VirtualMachineScaleSetNetworkConfiguration"] + :ivar interconnectGroupProfile: Specifies the interconnect group profile to associate with the + scale set vm instance. Minimum api-version: 2026-03-01. + :vartype interconnectGroupProfile: "InterconnectGroupProfile" """ networkInterfaceConfigurations: list["VirtualMachineScaleSetNetworkConfiguration"] @@ -12048,24 +12392,24 @@ class VirtualMachineScaleSetVMNetworkProfileConfiguration(TypedDict, total=False class VirtualMachineScaleSetVMProfile(TypedDict, total=False): """Describes a virtual machine scale set virtual machine profile. - :ivar os_profile: Specifies the operating system settings for the virtual machines in the scale + :ivar osProfile: Specifies the operating system settings for the virtual machines in the scale set. - :vartype os_profile: "VirtualMachineScaleSetOSProfile" - :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: "VirtualMachineScaleSetStorageProfile" - :ivar network_profile: Specifies properties of the network interfaces of the virtual machines + :vartype osProfile: "VirtualMachineScaleSetOSProfile" + :ivar storageProfile: Specifies the storage settings for the virtual machine disks. + :vartype storageProfile: "VirtualMachineScaleSetStorageProfile" + :ivar networkProfile: Specifies properties of the network interfaces of the virtual machines in + the scale set. + :vartype networkProfile: "VirtualMachineScaleSetNetworkProfile" + :ivar securityProfile: Specifies the Security related profile settings for the virtual machines in the scale set. - :vartype network_profile: "VirtualMachineScaleSetNetworkProfile" - :ivar security_profile: Specifies the Security related profile settings for the virtual - machines in the scale set. - :vartype security_profile: "SecurityProfile" - :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: + :vartype securityProfile: "SecurityProfile" + :ivar diagnosticsProfile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: "DiagnosticsProfile" - :ivar extension_profile: Specifies a collection of settings for extensions installed on virtual + :vartype diagnosticsProfile: "DiagnosticsProfile" + :ivar extensionProfile: Specifies a collection of settings for extensions installed on virtual machines in the scale set. - :vartype extension_profile: "VirtualMachineScaleSetExtensionProfile" - :ivar license_type: Specifies that the image or disk that is being used was licensed + :vartype extensionProfile: "VirtualMachineScaleSetExtensionProfile" + :ivar licenseType: Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more @@ -12074,47 +12418,47 @@ class VirtualMachineScaleSetVMProfile(TypedDict, total=False):

`Azure Hybrid Use Benefit for Linux Server `_

Minimum api-version: 2015-06-15. - :vartype license_type: str + :vartype licenseType: str :ivar priority: Specifies the priority for the virtual machines in the scale set. Minimum - api-version: 2017-10-30-preview. Known values are: "Regular", "Low", and "Spot". + api-version: 2017-10-30-preview. Known values are: "Regular", "Low", "Spot", and "SpotPlus". :vartype priority: Union[str, "VirtualMachinePriorityTypes"] - :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + :ivar evictionPolicy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". - :vartype eviction_policy: Union[str, "VirtualMachineEvictionPolicyTypes"] - :ivar billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum + :vartype evictionPolicy: Union[str, "VirtualMachineEvictionPolicyTypes"] + :ivar billingProfile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :vartype billing_profile: "BillingProfile" - :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. - :vartype scheduled_events_profile: "ScheduledEventsProfile" - :ivar user_data: UserData for the virtual machines in the scale set, which must be base-64 + :vartype billingProfile: "BillingProfile" + :ivar scheduledEventsProfile: Specifies Scheduled Event related configurations. + :vartype scheduledEventsProfile: "ScheduledEventsProfile" + :ivar userData: UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. - :vartype user_data: str - :ivar capacity_reservation: Specifies the capacity reservation related details of a scale set. + :vartype userData: str + :ivar capacityReservation: Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01. - :vartype capacity_reservation: "CapacityReservationProfile" - :ivar interconnect_block_profile: Specifies the Interconnect Block related details of a Scale + :vartype capacityReservation: "CapacityReservationProfile" + :ivar interconnectBlockProfile: Specifies the Interconnect Block related details of a Scale Set. Minimum api-version: 2026-03-01. - :vartype interconnect_block_profile: "InterconnectBlockProfile" - :ivar application_profile: Specifies the gallery applications that should be made available to + :vartype interconnectBlockProfile: "InterconnectBlockProfile" + :ivar applicationProfile: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype application_profile: "ApplicationProfile" - :ivar hardware_profile: Specifies the hardware profile related details of a scale set. Minimum + :vartype applicationProfile: "ApplicationProfile" + :ivar hardwareProfile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. - :vartype hardware_profile: "VirtualMachineScaleSetHardwareProfile" - :ivar service_artifact_reference: Specifies the service artifact reference id used to set same + :vartype hardwareProfile: "VirtualMachineScaleSetHardwareProfile" + :ivar serviceArtifactReference: Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. - :vartype service_artifact_reference: "ServiceArtifactReference" - :ivar security_posture_reference: Specifies the security posture to be used in the scale set. + :vartype serviceArtifactReference: "ServiceArtifactReference" + :ivar securityPostureReference: Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01. - :vartype security_posture_reference: "SecurityPostureReference" - :ivar time_created: Specifies the time in which this VM profile for the Virtual Machine Scale + :vartype securityPostureReference: "SecurityPostureReference" + :ivar timeCreated: Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile. Minimum API version for this property is 2023-09-01. - :vartype time_created: str + :vartype timeCreated: str """ osProfile: "VirtualMachineScaleSetOSProfile" @@ -12142,7 +12486,7 @@ class VirtualMachineScaleSetVMProfile(TypedDict, total=False): Minimum api-version: 2015-06-15.""" priority: Union[str, "VirtualMachinePriorityTypes"] """Specifies the priority for the virtual machines in the scale set. Minimum api-version: - 2017-10-30-preview. Known values are: \"Regular\", \"Low\", and \"Spot\".""" + 2017-10-30-preview. Known values are: \"Regular\", \"Low\", \"Spot\", and \"SpotPlus\".""" evictionPolicy: Union[str, "VirtualMachineEvictionPolicyTypes"] """Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum @@ -12180,38 +12524,37 @@ class VirtualMachineScaleSetVMProfile(TypedDict, total=False): class VirtualMachineScaleSetVMProperties(TypedDict, total=False): """Describes the properties of a virtual machine scale set virtual machine. - :ivar latest_model_applied: Specifies whether the latest model has been applied to the virtual + :ivar latestModelApplied: Specifies whether the latest model has been applied to the virtual machine. - :vartype latest_model_applied: bool - :ivar vm_id: Azure VM unique ID. - :vartype vm_id: str - :ivar instance_view: The virtual machine instance view. - :vartype instance_view: "VirtualMachineScaleSetVMInstanceView" - :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: "HardwareProfile" - :ivar resilient_vm_deletion_status: Specifies the resilient VM deletion status for the virtual + :vartype latestModelApplied: bool + :ivar vmId: Azure VM unique ID. + :vartype vmId: str + :ivar instanceView: The virtual machine instance view. + :vartype instanceView: "VirtualMachineScaleSetVMInstanceView" + :ivar hardwareProfile: Specifies the hardware settings for the virtual machine. + :vartype hardwareProfile: "HardwareProfile" + :ivar resilientVMDeletionStatus: Specifies the resilient VM deletion status for the virtual machine. Known values are: "Enabled", "Disabled", "InProgress", and "Failed". - :vartype resilient_vm_deletion_status: Union[str, "ResilientVMDeletionStatus"] - :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: "StorageProfile" - :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the + :vartype resilientVMDeletionStatus: Union[str, "ResilientVMDeletionStatus"] + :ivar storageProfile: Specifies the storage settings for the virtual machine disks. + :vartype storageProfile: "StorageProfile" + :ivar additionalCapabilities: Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: "AdditionalCapabilities" - :ivar os_profile: Specifies the operating system settings for the virtual machine. - :vartype os_profile: "OSProfile" - :ivar security_profile: Specifies the Security related profile settings for the virtual - machine. - :vartype security_profile: "SecurityProfile" - :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: "NetworkProfile" - :ivar network_profile_configuration: Specifies the network profile configuration of the virtual + :vartype additionalCapabilities: "AdditionalCapabilities" + :ivar osProfile: Specifies the operating system settings for the virtual machine. + :vartype osProfile: "OSProfile" + :ivar securityProfile: Specifies the Security related profile settings for the virtual machine. + :vartype securityProfile: "SecurityProfile" + :ivar networkProfile: Specifies the network interfaces of the virtual machine. + :vartype networkProfile: "NetworkProfile" + :ivar networkProfileConfiguration: Specifies the network profile configuration of the virtual machine. - :vartype network_profile_configuration: "VirtualMachineScaleSetVMNetworkProfileConfiguration" - :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: + :vartype networkProfileConfiguration: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + :ivar diagnosticsProfile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: "DiagnosticsProfile" - :ivar availability_set: Specifies information about the availability set that the virtual + :vartype diagnosticsProfile: "DiagnosticsProfile" + :ivar availabilitySet: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see `Availability sets overview @@ -12220,10 +12563,10 @@ class VirtualMachineScaleSetVMProperties(TypedDict, total=False): Azure `_. Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. - :vartype availability_set: "SubResource" - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar license_type: Specifies that the image or disk that is being used was licensed + :vartype availabilitySet: "SubResource" + :ivar provisioningState: The provisioning state, which only appears in the response. + :vartype provisioningState: str + :ivar licenseType: Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more @@ -12232,25 +12575,30 @@ class VirtualMachineScaleSetVMProperties(TypedDict, total=False):

`Azure Hybrid Use Benefit for Linux Server `_

Minimum api-version: 2015-06-15. - :vartype license_type: str - :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is - the model of the virtual machine scale set or the customized model for the virtual machine. - :vartype model_definition_applied: str - :ivar protection_policy: Specifies the protection policy of the virtual machine. - :vartype protection_policy: "VirtualMachineScaleSetVMProtectionPolicy" - :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass + :vartype licenseType: str + :ivar modelDefinitionApplied: Specifies whether the model applied to the virtual machine is the + model of the virtual machine scale set or the customized model for the virtual machine. + :vartype modelDefinitionApplied: str + :ivar protectionPolicy: Specifies the protection policy of the virtual machine. + :vartype protectionPolicy: "VirtualMachineScaleSetVMProtectionPolicy" + :ivar userData: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. - :vartype user_data: str - :ivar time_created: Specifies the time at which the Virtual Machine resource was created. + :vartype userData: str + :ivar timeCreated: Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. - :vartype time_created: str - :ivar virtual_machine_resource_id: Specifies the ARM resource ID of the standalone virtual - machine associated with this VMSS VM. This property is only applicable to Virtual Machine Scale - Sets with Flexible orchestration mode. Minimum api-version: 2025-11-01. - :vartype virtual_machine_resource_id: str - :ivar interconnect_block_profile: Specifies the Interconnect Block related details of a Scale - Set VM instance. Minimum api-version: 2026-03-01. - :vartype interconnect_block_profile: "InterconnectBlockProfile" + :vartype timeCreated: str + :ivar virtualMachineResourceId: Specifies the ARM resource ID of the standalone virtual machine + associated with this VMSS VM. This property is only applicable to Virtual Machine Scale Sets + with Flexible orchestration mode. Minimum api-version: 2025-11-01. + :vartype virtualMachineResourceId: str + :ivar interconnectBlockProfile: Specifies the Interconnect Block related details of a Scale Set + VM instance. Minimum api-version: 2026-03-01. + :vartype interconnectBlockProfile: "InterconnectBlockProfile" + :ivar capacityReservation: Specifies information about the capacity reservation that is used to + allocate the virtual machine scale set VM instance. The capacity reservation group is inherited + from the parent virtual machine scale set and cannot be changed on the individual scale set VM + instance. Minimum api-version: 2026-04-01. + :vartype capacityReservation: "CapacityReservationProfile" """ latestModelApplied: bool @@ -12320,18 +12668,23 @@ class VirtualMachineScaleSetVMProperties(TypedDict, total=False): interconnectBlockProfile: "InterconnectBlockProfile" """Specifies the Interconnect Block related details of a Scale Set VM instance. Minimum api-version: 2026-03-01.""" + capacityReservation: "CapacityReservationProfile" + """Specifies information about the capacity reservation that is used to allocate the virtual + machine scale set VM instance. The capacity reservation group is inherited from the parent + virtual machine scale set and cannot be changed on the individual scale set VM instance. + Minimum api-version: 2026-04-01.""" class VirtualMachineScaleSetVMProtectionPolicy(TypedDict, total=False): """The protection policy of a virtual machine scale set VM. - :ivar protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be + :ivar protectFromScaleIn: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. - :vartype protect_from_scale_in: bool - :ivar protect_from_scale_set_actions: Indicates that model updates or actions (including - scale-in) initiated on the virtual machine scale set should not be applied to the virtual - machine scale set VM. - :vartype protect_from_scale_set_actions: bool + :vartype protectFromScaleIn: bool + :ivar protectFromScaleSetActions: Indicates that model updates or actions (including scale-in) + initiated on the virtual machine scale set should not be applied to the virtual machine scale + set VM. + :vartype protectFromScaleSetActions: bool """ protectFromScaleIn: bool @@ -12379,17 +12732,17 @@ class VMDiskSecurityProfile(TypedDict, total=False): """Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs. - :ivar security_encryption_type: Specifies the EncryptionType of the managed disk. It is set to + :ivar securityEncryptionType: Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs. Known values are: "VMGuestStateOnly", "DiskWithVMGuestState", and "NonPersistedTPM". - :vartype security_encryption_type: Union[str, "SecurityEncryptionTypes"] - :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for - the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and - VMGuest blob. - :vartype disk_encryption_set: "DiskEncryptionSetParameters" + :vartype securityEncryptionType: Union[str, "SecurityEncryptionTypes"] + :ivar diskEncryptionSet: Specifies the customer managed disk encryption set resource id for the + managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest + blob. + :vartype diskEncryptionSet: "DiskEncryptionSetParameters" """ securityEncryptionType: Union[str, "SecurityEncryptionTypes"] @@ -12410,19 +12763,19 @@ class VMGalleryApplication(TypedDict, total=False): :vartype tags: str :ivar order: Optional, Specifies the order in which the packages have to be installed. :vartype order: int - :ivar package_reference_id: Specifies the GalleryApplicationVersion resource id on the form of + :ivar packageReferenceId: Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}. Required. - :vartype package_reference_id: str - :ivar configuration_reference: Optional, Specifies the uri to an azure blob that will replace + :vartype packageReferenceId: str + :ivar configurationReference: Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided. - :vartype configuration_reference: str - :ivar treat_failure_as_deployment_failure: Optional, If true, any failure for any operation in - the VmApplication will fail the deployment. - :vartype treat_failure_as_deployment_failure: bool - :ivar enable_automatic_upgrade: If set to true, when a new Gallery Application version is + :vartype configurationReference: str + :ivar treatFailureAsDeploymentFailure: Optional, If true, any failure for any operation in the + VmApplication will fail the deployment. + :vartype treatFailureAsDeploymentFailure: bool + :ivar enableAutomaticUpgrade: If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS. - :vartype enable_automatic_upgrade: bool + :vartype enableAutomaticUpgrade: bool """ tags: str @@ -12446,11 +12799,11 @@ class VMGalleryApplication(TypedDict, total=False): class VMScaleSetConvertToSinglePlacementGroupInput(TypedDict, total=False): # pylint: disable=name-too-long """VMScaleSetConvertToSinglePlacementGroupInput. - :ivar active_placement_group_id: Id of the placement group in which you want future virtual + :ivar activePlacementGroupId: Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual machine instances. - :vartype active_placement_group_id: str + :vartype activePlacementGroupId: str """ activePlacementGroupId: str @@ -12486,32 +12839,32 @@ class VMScaleSetLifecycleHookEventProperties(TypedDict, total=False): event to the customer. Known values are: "UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting". :vartype type: Union[str, "VMScaleSetLifecycleHookEventType"] - :ivar wait_until: Specifies the exact UTC timestamp in ISO 8601 format till which the event + :ivar waitUntil: Specifies the exact UTC timestamp in ISO 8601 format till which the event would remain in the current lifecycle state waiting for an action from the customer. Beyond this timestamp, the platform will apply the defaultAction for the event. - :vartype wait_until: str - :ivar max_wait_until: Specifies the exact UTC timestamp in ISO 8601 format till when the - customer can delay the lifecycle hook event. The customer will not be allowed to delay the - event to a timestamp beyond this. - :vartype max_wait_until: str - :ivar time_created: The UTC timestamp in ISO 8601 format at which the platform creates the + :vartype waitUntil: str + :ivar maxWaitUntil: Specifies the exact UTC timestamp in ISO 8601 format till when the customer + can delay the lifecycle hook event. The customer will not be allowed to delay the event to a + timestamp beyond this. + :vartype maxWaitUntil: str + :ivar timeCreated: The UTC timestamp in ISO 8601 format at which the platform creates the virtual machine scale set lifecycle hook event entity. - :vartype time_created: str - :ivar default_action: Specify the action that will be applied on the a target resource in the + :vartype timeCreated: str + :ivar defaultAction: Specify the action that will be applied on the a target resource in the virtual machine scale set lifecycle hook event if the platform does not get a response from the customer for the target resource before waitUntil. Known values are: "Approve" and "Reject". - :vartype default_action: Union[str, "LifecycleHookAction"] - :ivar target_resources: List of target resources which are getting processed in the virtual + :vartype defaultAction: Union[str, "LifecycleHookAction"] + :ivar targetResources: List of target resources which are getting processed in the virtual machine scale set lifecycle hook event. - :vartype target_resources: list["VMScaleSetLifecycleHookEventTargetResource"] - :ivar additional_context: Additional key-value pairs set on the lifecycle hook event that gives + :vartype targetResources: list["VMScaleSetLifecycleHookEventTargetResource"] + :ivar additionalContext: Additional key-value pairs set on the lifecycle hook event that gives customer some useful context/data. The keys in this dictionary are specific to the lifecycle hook type. Different lifecycle hook events can have different sets of keys in the additional context depending on the lifecycle hook type. For example, for a lifecycle hook event with UpgradeAutoOSScheduling type, the additional context can contain the key "priority" that helps customer identify the priority of the Auto OS Upgrade operation triggered on the virtual machine scale set. - :vartype additional_context: "VMScaleSetLifecycleHookEventAdditionalContext" + :vartype additionalContext: "VMScaleSetLifecycleHookEventAdditionalContext" :ivar state: Specifies the state of the virtual machine scale set lifecycle hook event. Known values are: "Active" and "Completed". :vartype state: Union[str, "VMScaleSetLifecycleHookEventState"] @@ -12559,10 +12912,10 @@ class VMScaleSetLifecycleHookEventTargetResource(TypedDict, total=False): # pyl :ivar resource: Specifies the target ARM resource. Currently, this can be a virtual machine scale set resource or an individual virtual machine resource within a VMScaleSet. :vartype resource: "ApiEntityReference" - :ivar action_state: State of the lifecycle hook for the target resource. The customer can patch + :ivar actionState: State of the lifecycle hook for the target resource. The customer can patch this property to move the lifecycle hook to a terminal state. Known values are: "Waiting", "Approved", and "Rejected". - :vartype action_state: Union[str, "LifecycleHookActionState"] + :vartype actionState: Union[str, "LifecycleHookActionState"] """ resource: "ApiEntityReference" @@ -12614,17 +12967,17 @@ class VMScaleSetScaleOutInputProperties(TypedDict, total=False): class VMSizeProperties(TypedDict, total=False): """Specifies VM Size Property settings on the virtual machine. - :ivar v_cpus_available: Specifies the number of vCPUs available for the VM. When this property - is not specified in the request body the default behavior is to set it to the value of vCPUs + :ivar vCPUsAvailable: Specifies the number of vCPUs available for the VM. When this property is + not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of `List all available virtual machine sizes in a region `_. - :vartype v_cpus_available: int - :ivar v_cpus_per_core: Specifies the vCPU to physical core ratio. When this property is not + :vartype vCPUsAvailable: int + :ivar vCPUsPerCore: Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of `List all available virtual machine sizes in a region `_. **Setting this property to 1 also means that hyper-threading is disabled.**. - :vartype v_cpus_per_core: int + :vartype vCPUsPerCore: int """ vCPUsAvailable: int @@ -12643,33 +12996,33 @@ class VMSizeProperties(TypedDict, total=False): class WindowsConfiguration(TypedDict, total=False): """Specifies Windows operating system settings on the virtual machine. - :ivar provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + :ivar provisionVMAgent: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. - :vartype provision_vm_agent: bool - :ivar enable_automatic_updates: Indicates whether Automatic Updates is enabled for the Windows + :vartype provisionVMAgent: bool + :ivar enableAutomaticUpdates: Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. - :vartype enable_automatic_updates: bool - :ivar time_zone: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". + :vartype enableAutomaticUpdates: bool + :ivar timeZone: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be `TimeZoneInfo.Id `_ value from time zones returned by `TimeZoneInfo.GetSystemTimeZones `_. - :vartype time_zone: str - :ivar additional_unattend_content: Specifies additional base-64 encoded XML formatted - information that can be included in the Unattend.xml file, which is used by Windows Setup. - :vartype additional_unattend_content: list["AdditionalUnattendContent"] - :ivar patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + :vartype timeZone: str + :ivar additionalUnattendContent: Specifies additional base-64 encoded XML formatted information + that can be included in the Unattend.xml file, which is used by Windows Setup. + :vartype additionalUnattendContent: list["AdditionalUnattendContent"] + :ivar patchSettings: [Preview Feature] Specifies settings related to VM Guest Patching on Windows. - :vartype patch_settings: "PatchSettings" - :ivar win_rm: Specifies the Windows Remote Management listeners. This enables remote Windows + :vartype patchSettings: "PatchSettings" + :ivar winRM: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. - :vartype win_rm: "WinRMConfiguration" - :ivar enable_vm_agent_platform_updates: Indicates whether VMAgent Platform Updates are enabled - for the Windows Virtual Machine. - :vartype enable_vm_agent_platform_updates: bool + :vartype winRM: "WinRMConfiguration" + :ivar enableVMAgentPlatformUpdates: Indicates whether VMAgent Platform Updates are enabled for + the Windows Virtual Machine. + :vartype enableVMAgentPlatformUpdates: bool """ provisionVMAgent: bool @@ -12700,29 +13053,29 @@ class WindowsConfiguration(TypedDict, total=False): class WindowsParameters(TypedDict, total=False): """Input for InstallPatches on a Windows VM, as directly received by the API. - :ivar classifications_to_include: The update classifications to select when installing patches + :ivar classificationsToInclude: The update classifications to select when installing patches for Windows. - :vartype classifications_to_include: list[Union[str, "VMGuestPatchClassificationWindows"]] - :ivar kb_numbers_to_include: Kbs to include in the patch operation. - :vartype kb_numbers_to_include: list[str] - :ivar kb_numbers_to_exclude: Kbs to exclude in the patch operation. - :vartype kb_numbers_to_exclude: list[str] - :ivar exclude_kbs_requiring_reboot: Filters out Kbs that don't have an - InstallationRebootBehavior of 'NeverReboots' when this is set to true. - :vartype exclude_kbs_requiring_reboot: bool - :ivar max_patch_publish_date: This is used to install patches that were published on or before + :vartype classificationsToInclude: list[Union[str, "VMGuestPatchClassificationWindows"]] + :ivar kbNumbersToInclude: Kbs to include in the patch operation. + :vartype kbNumbersToInclude: list[str] + :ivar kbNumbersToExclude: Kbs to exclude in the patch operation. + :vartype kbNumbersToExclude: list[str] + :ivar excludeKbsRequiringReboot: Filters out Kbs that don't have an InstallationRebootBehavior + of 'NeverReboots' when this is set to true. + :vartype excludeKbsRequiringReboot: bool + :ivar maxPatchPublishDate: This is used to install patches that were published on or before this given max published date. - :vartype max_patch_publish_date: str - :ivar patch_name_masks_to_include: This is used to include patches that match the given patch - name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only - supported as input values in the list. Null, empty and only whitespaces strings as inputs - values are not supported. - :vartype patch_name_masks_to_include: list[str] - :ivar patch_name_masks_to_exclude: This is used to exclude patches that match the given patch - name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only - supported as input values in the list. Null, empty and only whitespaces strings as inputs - values are not supported. - :vartype patch_name_masks_to_exclude: list[str] + :vartype maxPatchPublishDate: str + :ivar patchNameMasksToInclude: This is used to include patches that match the given patch name + masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported + as input values in the list. Null, empty and only whitespaces strings as inputs values are not + supported. + :vartype patchNameMasksToInclude: list[str] + :ivar patchNameMasksToExclude: This is used to exclude patches that match the given patch name + masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported + as input values in the list. Null, empty and only whitespaces strings as inputs values are not + supported. + :vartype patchNameMasksToExclude: list[str] """ classificationsToInclude: list[Union[str, "VMGuestPatchClassificationWindows"]] @@ -12750,12 +13103,12 @@ class WindowsVMGuestPatchAutomaticByPlatformSettings(TypedDict, total=False): # """Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings. - :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch + :ivar rebootSetting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". - :vartype reboot_setting: Union[str, "WindowsVMGuestPatchAutomaticByPlatformRebootSetting"] - :ivar bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching - without accidental upgrades. - :vartype bypass_platform_safety_checks_on_user_schedule: bool + :vartype rebootSetting: Union[str, "WindowsVMGuestPatchAutomaticByPlatformRebootSetting"] + :ivar bypassPlatformSafetyChecksOnUserSchedule: Enables customer to schedule patching without + accidental upgrades. + :vartype bypassPlatformSafetyChecksOnUserSchedule: bool """ rebootSetting: Union[str, "WindowsVMGuestPatchAutomaticByPlatformRebootSetting"] @@ -12782,8 +13135,8 @@ class WinRMListener(TypedDict, total=False): :ivar protocol: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**. Known values are: "Http" and "Https". :vartype protocol: Union[str, "ProtocolTypes"] - :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as - a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault + :ivar certificateUrl: This is the URL of a certificate that has been uploaded to Key Vault as a + secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
@@ -12792,7 +13145,7 @@ class WinRMListener(TypedDict, total=False): `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :vartype certificate_url: str + :vartype certificateUrl: str """ protocol: Union[str, "ProtocolTypes"] @@ -12815,12 +13168,12 @@ class WinRMListener(TypedDict, total=False): class ZoneAllocationPolicy(TypedDict, total=False): """The configuration parameters for zone allocation of a virtual machine scale set. - :ivar max_zone_count: The maximum number of availability zones to use if the - ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used. - :vartype max_zone_count: int - :ivar max_instance_percent_per_zone_policy: The configuration parameters used to limit the - number of virtual machines per availability zone in the virtual machine scale set. - :vartype max_instance_percent_per_zone_policy: "MaxInstancePercentPerZonePolicy" + :ivar maxZoneCount: The maximum number of availability zones to use if the ZonePlacementPolicy + is 'Auto'. If not specified, all availability zones will be used. + :vartype maxZoneCount: int + :ivar maxInstancePercentPerZonePolicy: The configuration parameters used to limit the number of + virtual machines per availability zone in the virtual machine scale set. + :vartype maxInstancePercentPerZonePolicy: "MaxInstancePercentPerZonePolicy" """ maxZoneCount: int @@ -12835,9 +13188,9 @@ class ZoneMovement(TypedDict, total=False): """Describes zone movement configuration. This allows VM to be moved across availability zones during an outage. - :ivar is_enabled: Indicates if zone movement is enabled. By default isEnabled is set to false + :ivar isEnabled: Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can't be moved from one zone to another. - :vartype is_enabled: bool + :vartype isEnabled: bool """ isEnabled: bool diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_cancel_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_cancel_migration_to_virtual_machine_scale_set.py index c3fc208fcf8a..404c215a7f26 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_cancel_migration_to_virtual_machine_scale_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_cancel_migration_to_virtual_machine_scale_set.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_CancelMigrationToVirtualMachineScaleSet.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_CancelMigrationToVirtualMachineScaleSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_convert_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_convert_to_virtual_machine_scale_set.py index 6dbfd586656b..c62d743f9ebd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_convert_to_virtual_machine_scale_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_convert_to_virtual_machine_scale_set.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ConvertToVirtualMachineScaleSet.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ConvertToVirtualMachineScaleSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create.py index 91cf62426a17..35f797baa74f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Create.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create_with_scheduled_event_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create_with_scheduled_event_profile.py index ff433238c1fb..159add2c97cc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create_with_scheduled_event_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_create_with_scheduled_event_profile.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_maximum_set_gen.py index 073336a6e903..84156bef96a8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_minimum_set_gen.py index 27ce4f55c853..b44b2fb54fa7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_maximum_set_gen.py index 8a03e1238b27..c4d1bfb73adb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_minimum_set_gen.py index 5a7d8038bfc5..79aae3eb3235 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_get_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_maximum_set_gen.py index d3eb745957dd..09a97d476f8f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_minimum_set_gen.py index 23b83b44f8c4..b67973babb8e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_available_sizes_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_by_subscription.py index 656b74692d64..0db925d80f84 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListBySubscription.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_maximum_set_gen.py index 221f49dc82dc..3894e2170172 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_minimum_set_gen.py index 703eb588c272..f9d88f96a025 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_start_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_start_migration_to_virtual_machine_scale_set.py index b68c5ed9b7da..2ee31a9a1d8c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_start_migration_to_virtual_machine_scale_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_start_migration_to_virtual_machine_scale_set.py @@ -42,6 +42,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_StartMigrationToVirtualMachineScaleSet.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_StartMigrationToVirtualMachineScaleSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_maximum_set_gen.py index 204a3ecdbf68..0ce588171b58 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_maximum_set_gen.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_minimum_set_gen.py index bdaed61af2d3..97221bdf443b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_update_minimum_set_gen.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_validate_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_validate_migration_to_virtual_machine_scale_set.py index 42f43c608acd..63a092941960 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_validate_migration_to_virtual_machine_scale_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_validate_migration_to_virtual_machine_scale_set.py @@ -42,6 +42,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet.json +# x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_create_or_update.py index aaa5eccd9b72..bc20b8707034 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_create_or_update.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_get.py index 574a843f12d2..8681435f3935 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_create_or_update.py index 0f65f4a5ba21..62d794319e1e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_create_or_update.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservationGroup_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservationGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_get.py index 0728d496ac3c..cb65f6c58de1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservationGroup_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservationGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_list_by_reservation_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_list_by_reservation_group.py index 3dccf958d6d0..335b877e6f1f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_list_by_reservation_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/block_capacity_reservation_list_by_reservation_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_ListByReservationGroup.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_ListByReservationGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_create_or_update.py index 58101460fd0c..9cebebed7225 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_create_or_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_maximum_set_gen.py index 71a44dae8dc5..e81e3b7369c2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_minimum_set_gen.py index ea2735b0c0b6..f284767b02b6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_get.py index a6b1d8a94513..325a144b2142 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_create_or_update.py index 630dd6798de4..4e7a0420adc9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_create_or_update.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_maximum_set_gen.py index 4717b66089fc..8ecf7f738e68 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_minimum_set_gen.py index bfe68d6ddcd9..48961fe7f83e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_get.py index 87f808c59610..544a9968b3f6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_resource_group.py index c5a20a46a733..d42745b357a6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription.py index 3564811720dd..6d2e3593dc46 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py index d2c6bd9de094..fbfe4a3e94ad 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_maximum_set_gen.py index 953d9054c1a0..64f3d7d3df66 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_minimum_set_gen.py index 18c4ce20dfa1..d3a2818a6f72 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_group_update_minimum_set_gen.py @@ -40,6 +40,7 @@ def main(): "capacityReservations": [ { "name": "str", + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -49,7 +50,11 @@ def main(): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, } ], "sharedSubscriptionIds": [{"id": "str"}], @@ -64,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_list_by_reservation_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_list_by_reservation_group.py index 91dac3cb5719..4a7555eb86ae 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_list_by_reservation_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_list_by_reservation_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_maximum_set_gen.py index d7eb979c4103..ea3bf4d94280 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_maximum_set_gen.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_minimum_set_gen.py index c45fbc02d188..2a9f0a17a467 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_update_minimum_set_gen.py @@ -37,6 +37,7 @@ def main(): parameters={ "properties": { "instanceView": { + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -46,13 +47,22 @@ def main(): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, }, "platformFaultDomainCount": 0, "provisioningState": "str", "provisioningTime": "2020-02-20 00:00:00", "reservationId": "str", - "scheduleProfile": {"end": "str", "start": "str"}, + "scheduleProfile": { + "end": "str", + "minimumCommitmentDays": 0, + "modifiableUntil": "2020-02-20 00:00:00", + "start": "str", + }, "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, @@ -63,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_create_or_update.py index fb1eb1dc61e8..e605ac4cdc41 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_create_or_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_maximum_set_gen.py index 8f772c3f2742..b16b9aaa1a7f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_minimum_set_gen.py index 6b8c62651224..d0a327808438 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_get.py index fd575289970d..7bd38b982bcc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Get.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update.py index a69ff2da1598..15e369aae2c8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update_with_ultra_ssd.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update_with_ultra_ssd.py index a38cdac1645a..fb7cda000226 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update_with_ultra_ssd.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_create_or_update_with_ultra_ssd.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_maximum_set_gen.py index 8c34a59e1811..f4c01cdbd5f0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_minimum_set_gen.py index 084ef9bbe0a1..7c0a39063816 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get.py index 4484e4459217..0706ecabdb70 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Get.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py index abc5671343b4..6c71739bd893 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py index 832a0e3639a2..33291b53a1c5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py index c0711182e3cc..82c03144da15 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_maximum_set_gen.py index 48954e1257ec..cb68dcfd9619 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_minimum_set_gen.py index ec689c788e42..1ef05b54172d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_list_by_subscription_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_maximum_set_gen.py index 1c9a3aabec0e..066aa784a999 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_maximum_set_gen.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_minimum_set_gen.py index 6996fac747c2..5434dd38cd71 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_group_update_minimum_set_gen.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_available_sizes.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_available_sizes.py index 804db61d6de3..d2f5b543b473 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_available_sizes.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_available_sizes.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_maximum_set_gen.py index 3aa9e53ec4ab..d5202a587eee 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_minimum_set_gen.py index a6b8d9aabaf8..efce873a3770 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_list_by_host_group_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_redeploy.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_redeploy.py index 34b95ad44a70..030e3508e350 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_redeploy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_redeploy.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Redeploy.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Redeploy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_restart.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_restart.py index cca631c0b4b9..a012bf705b53 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_restart.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_restart.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Restart.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Restart.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_maximum_set_gen.py index e2780b3640b1..b747a7b0cb7b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_maximum_set_gen.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_minimum_set_gen.py index 80f38945ec23..30fce7fe6ef2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_minimum_set_gen.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_resize.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_resize.py index 5691ad2e5294..bd32c2243277 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_resize.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_update_resize.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_Resize.json +# x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_Resize.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_create_or_update.py new file mode 100644 index 000000000000..c72833cec643 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_create_or_update.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python future_capacity_reservation_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.capacity_reservations.begin_create_or_update( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="futureCapacityReservationGroup", + capacity_reservation_name="futureCapacityReservation", + parameters={ + "location": "westus", + "properties": {"scheduleProfile": {"minimumCommitmentDays": 30, "start": "2026-08-01T12:00:00Z"}}, + "sku": {"capacity": 4, "name": "Standard_DS1_v2"}, + "tags": {"department": "HR"}, + "zones": ["1"], + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_get.py new file mode 100644 index 000000000000..63a3620b388d --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python future_capacity_reservation_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.capacity_reservations.get( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="futureCapacityReservationGroup", + capacity_reservation_name="futureCapacityReservation", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_virtual_machine_resource_id.py b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_list_by_reservation_group.py similarity index 75% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_virtual_machine_resource_id.py rename to sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_list_by_reservation_group.py index 12197a20b267..85ce53e8c9c0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_virtual_machine_resource_id.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/future_capacity_reservation_list_by_reservation_group.py @@ -1,4 +1,3 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -16,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_vm_list_with_virtual_machine_resource_id.py + python future_capacity_reservation_list_by_reservation_group.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -31,14 +30,14 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.virtual_machine_scale_set_vms.list( - resource_group_name="resourceGroupname", - virtual_machine_scale_set_name="vmssName", + response = client.capacity_reservations.list_by_capacity_reservation_group( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="futureCapacityReservationGroup", ) for item in response: print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithVirtualMachineResourceId.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_ListByReservationGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_ablob_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_ablob_included.py index df6a21f02915..49af4f72a85c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_ablob_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_ablob_included.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromABlobIncluded.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromABlobIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_amanaged_disk_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_amanaged_disk_included.py index 3a2d166902ab..8581b92a65b5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_amanaged_disk_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_amanaged_disk_included.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_asnapshot_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_asnapshot_included.py index d4738c02e393..6d85b6798d08 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_asnapshot_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_data_disk_from_asnapshot_included.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob.py index 7015ac56df6f..09b316e3ec81 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromABlob.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromABlob.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob_with_disk_encryption_set.py index 57b690db8f60..4a58d114b9c1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_ablob_with_disk_encryption_set.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk.py index 38a1f60f426a..f9419031f8d9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAManagedDisk.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAManagedDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk_with_disk_encryption_set.py index e3f35e795d79..062e7ed5037d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_amanaged_disk_with_disk_encryption_set.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot.py index 50de3c9bd0bc..7be072cc6ca8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromASnapshot.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromASnapshot.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot_with_disk_encryption_set.py index 9da076da2447..e6910d890dd3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_asnapshot_with_disk_encryption_set.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_avm.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_avm.py index 6e39a50101e0..1954e57fa66d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_avm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_create_from_avm.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAVM.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_get.py index 5a88b7be4498..5277b87a3198 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_Get.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_resource_group.py index ee111f2c8696..1f717670cd6c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/imageExamples/Image_ListByResourceGroup.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_subscription.py index 3f71365b4bef..91094306dd88 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/imageExamples/Image_ListBySubscription.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_update.py index 5e104ac40824..11f7bd992eb8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/imageExamples/Image_Update.json +# x-ms-original-file: 2026-04-01/imageExamples/Image_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_maximum_set_gen.py index 4a9f2f850285..1cf88c255583 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/imageExamples/Images_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/imageExamples/Images_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_minimum_set_gen.py index 0b275ee9cc64..4bd134caaa8a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/images_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/imageExamples/Images_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/imageExamples/Images_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update.py index 05250e27dd86..e3eefcda4f18 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update_any_zone.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update_any_zone.py index c76a84caa3dd..d6dc73b0b35e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update_any_zone.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_create_or_update_any_zone.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate_AnyZone.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate_AnyZone.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_delete.py index ed05c2bd121d..37a8d37abd86 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Delete.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get.py index 243c3dbeec3d..faf92085fe4e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get_instance_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get_instance_view.py index 0daa32a05d06..d5fa528c55b7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get_instance_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_get_instance_view.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get_InstanceView.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Get_InstanceView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_resource_group.py index d305c24d22ef..6c6ccf696a45 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListByResourceGroup.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_subscription.py index 9937baf35ff8..87d819940d5f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListBySubscription.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_update.py index 7a2e62cbdf70..1328d87cbeca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/interconnect_blocks_update.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Update.json +# x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_request_rate_by_interval.py b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_request_rate_by_interval.py index 8245e207c5b1..77b9af63a0ac 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_request_rate_by_interval.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_request_rate_by_interval.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json +# x-ms-original-file: 2026-04-01/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_throttled_requests.py b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_throttled_requests.py index 4b5e9b298ce3..d2ce77e9f15f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_throttled_requests.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytics_throttled_requests.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/logAnalyticExamples/LogAnalytics_ThrottledRequests.json +# x-ms-original-file: 2026-04-01/logAnalyticExamples/LogAnalytics_ThrottledRequests.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_get.py new file mode 100644 index 000000000000..e70ab7cf3fbd --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python open_capacity_reservation_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.capacity_reservations.get( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="openCapacityReservationGroup", + capacity_reservation_name="openCapacityReservation", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservation_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_create_or_update.py new file mode 100644 index 000000000000..2f8df815bf05 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_create_or_update.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python open_capacity_reservation_group_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.capacity_reservation_groups.create_or_update( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="openCapacityReservationGroup", + parameters={ + "location": "westus", + "properties": { + "reservationType": "Open", + "sharingProfile": { + "subscriptionIds": [ + {"id": "/subscriptions/{subscription-id1}"}, + {"id": "/subscriptions/{subscription-id2}"}, + ] + }, + }, + "tags": {"department": "finance"}, + "zones": ["1", "2"], + }, + ) + print(response) + + +# x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservationGroup_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_get.py new file mode 100644 index 000000000000..4841044863cd --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/open_capacity_reservation_group_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python open_capacity_reservation_group_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.capacity_reservation_groups.get( + resource_group_name="myResourceGroup", + capacity_reservation_group_name="openCapacityReservationGroup", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservationGroup_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_maximum_set_gen.py index 33a2690d3a5c..6ce99db17a4b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_minimum_set_gen.py index fa1c287a1f56..d26b6cdde867 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/operations_list_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_create_or_update.py index 04dd93ad5110..a68268e16be2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_create_or_update.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_delete.py index 9b9d3d600435..b3fe01d1b0aa 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_get.py index bee3bc581024..0f71eac0c2e4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_resource_group.py index 3d1b261a3b09..3d0a623747a8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_subscription.py index d13c500ba99b..682fc5c50a88 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_patch.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_patch.py index b9506a03f05a..daaef72453c1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_patch.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json +# x-ms-original-file: 2026-04-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update.py index 163d55bbea42..13e24893e8f8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update_for_cross_region_copy.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update_for_cross_region_copy.py index 400f36045acf..b21e06afa3bb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update_for_cross_region_copy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_create_or_update_for_cross_region_copy.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_maximum_set_gen.py index 03c67fc81167..065a43d34f48 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_minimum_set_gen.py index 3a55c0816b32..1caf53c84c48 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get.py index b93f995f0090..0006106f020f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Get.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get_with_contained_restore_points.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get_with_contained_restore_points.py index 6d2fdf4f02ae..e0d3ff7211e7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get_with_contained_restore_points.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_get_with_contained_restore_points.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_resource_group.py index db37345bfebb..33ecfddb8619 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_ListByResourceGroup.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_subscription.py index 694ac85762ee..4b4c463849a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_ListBySubscription.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_maximum_set_gen.py index 4bbb4d686cbe..52a6077f8f32 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_maximum_set_gen.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_minimum_set_gen.py index 9a0c09fc8b3d..8037993879ec 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_collection_update_minimum_set_gen.py @@ -77,6 +77,7 @@ def main(): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -141,10 +142,18 @@ def main(): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -161,6 +170,21 @@ def main(): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -188,6 +212,21 @@ def main(): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -226,6 +265,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_copy_between_regions.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_copy_between_regions.py index 8d9e2c3e6377..cbb7c06aad88 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_copy_between_regions.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_copy_between_regions.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Copy_BetweenRegions.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Copy_BetweenRegions.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_create.py index fa300f0bec8c..9e55cf3f69b5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_create.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Create.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_maximum_set_gen.py index e8b498911ead..3a9532d2c1ab 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_minimum_set_gen.py index 97721a1f8425..a6e5ea875441 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get.py index 96ddba4401bc..c7969d5a4411 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Get.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get_with_instance_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get_with_instance_view.py index 97698157b471..b84e9f58f271 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get_with_instance_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_get_with_instance_view.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Get_WithInstanceView.json +# x-ms-original-file: 2026-04-01/restorePointExamples/RestorePoint_Get_WithInstanceView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_get.py index c0270596e3a9..dec1fc66c40f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/RunCommand_Get.json +# x-ms-original-file: 2026-04-01/runCommandExamples/RunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_list.py index 1255a4ecaca6..8b0d1c0b0607 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/runCommandExamples/RunCommand_List.json +# x-ms-original-file: 2026-04-01/runCommandExamples/RunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_create.py index f5da94ef47bf..88b02cc3999f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Create.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_maximum_set_gen.py index 21cc5f8bcf8c..b9abf9a72f48 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_minimum_set_gen.py index 83b84071b86a..8c5d2d2c0366 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair.py index a3e4da464d65..a33cab4488c1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py index 4c6367dbc008..c7d118bfa252 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_rsa.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_rsa.py index 63294ad9e2ec..2f2dc8ab0988 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_rsa.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_generate_key_pair_encryption_with_rsa.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_get.py index 4d425345954c..c93c1295b7a5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Get.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_maximum_set_gen.py index 45d4421e9cf7..b46fb845d56a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_minimum_set_gen.py index 9fa66ab87084..631d6957f762 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_resource_group_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_maximum_set_gen.py index 0db70d93a464..c213fa7f3165 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_minimum_set_gen.py index 302391c38432..89d39a8da2d9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_list_by_subscription_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_maximum_set_gen.py index 94f8a96f39cc..866a71ae4dc4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_minimum_set_gen.py index 816f0205b80d..5c15bcef3c13 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_update_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_create_or_update.py index a6413da0b3c9..d04b2176b9aa 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_create_or_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_get.py index ad23dd805042..67594ceee878 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_create_or_update.py index dd22869d576f..b3e1a2a9f96f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_create_or_update.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservationGroup_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservationGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_get.py index 8ed4881c4885..9fe039f03d9a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservationGroup_Get.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservationGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_list_by_reservation_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_list_by_reservation_group.py index c79307215f87..bc2feaed1297 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_list_by_reservation_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/targeted_capacity_reservation_list_by_reservation_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_ListByReservationGroup.json +# x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_ListByReservationGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_maximum_set_gen.py index 0c7de6a5c4c9..6b22c44c5466 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_minimum_set_gen.py index d8ec39c84dc5..8d1be128ff6e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/usage_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_assess_patches.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_assess_patches.py index e07d38c2c902..4b85f948a55a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_assess_patches.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_assess_patches.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AssessPatches.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_AssessPatches.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py index 01789a51b0c5..aca3c8a7d8e9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py index fe5f281f3f77..21e582a5547d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_maximum_set_gen.py index afcbf5cdc32d..055b50e4fee8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_minimum_set_gen.py index 863ca608273f..1d5155f249da 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_capture_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py index 380648636c6c..f908c31656f5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py index a7af9b655294..95b6e65912dd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py index 4c5119a66e12..be4405dcf5ec 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acommunity_gallery_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acommunity_gallery_image.py index 3af83e0fd9c9..4c21e6519bff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acommunity_gallery_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acommunity_gallery_image.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acustom_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acustom_image.py index 58eb9076bf23..c2bfe9e9d4f3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acustom_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_acustom_image.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ageneralized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ageneralized_shared_image.py index af71fdd610b7..2dd73801a8ed 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ageneralized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ageneralized_shared_image.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ashared_gallery_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ashared_gallery_image.py index cfec82cbbf21..a7f1adfb6795 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ashared_gallery_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_ashared_gallery_image.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_aspecialized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_aspecialized_shared_image.py index 826e264c2049..e2cc66ea32f2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_aspecialized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_from_aspecialized_shared_image.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_an_availability_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_an_availability_set.py index 29d98692bae0..1104880fe357 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_an_availability_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_an_availability_set.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py index 4263b0fc83e3..cde6066ca44e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py index a8a58e311963..34fe66a7de06 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py @@ -82,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py index c24a8e46f773..10eebb18b526 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py index 79cecf7ffd0d..245e96c2b16b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py index 8888e70b9075..447a0eb2e247 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py index 600079054efd..a97e80abc45e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py index 96498351524c..a9465d3435a9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py index 343590f44d84..20623c0c1ad2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py index 6ef88d86b25e..6a8977b7e230 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py index 92e766d60326..3ef07ae18aea 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py index 5f52e1cbd1d2..a25b285ab1b1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py index 0f8385d1f134..8ab3f939895f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_additional_disk_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_additional_disk_properties.py new file mode 100644 index 000000000000..6f2e717a290f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_additional_disk_properties.py @@ -0,0 +1,103 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_create_with_additional_disk_properties.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machines.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_name="myVM", + parameters={ + "location": "westus", + "properties": { + "hardwareProfile": {"vmSize": "Standard_D4s_v3"}, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": {"primary": True}, + } + ] + }, + "osProfile": { + "adminPassword": "{your-password}", + "adminUsername": "{your-username}", + "computerName": "myVM", + }, + "storageProfile": { + "dataDisks": [ + { + "createOption": "Empty", + "diskSizeGB": 1024, + "lun": 0, + "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess", + "networkAccessPolicy": "AllowPrivate", + "tier": "P30", + } + }, + "storageAccountType": "Premium_LRS", + }, + "name": "myDataDisk", + } + ], + "diskApiVersion": "2026-03-02", + "imageReference": { + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2022-datacenter-azure-edition", + "version": "latest", + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess", + "networkAccessPolicy": "AllowPrivate", + } + }, + "storageAccountType": "Premium_LRS", + }, + "name": "myVMosdisk", + }, + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithAdditionalDiskProperties.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk.py index 42c22eec610d..f500793e58f2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py index 6616ac9e3ef8..40bc9a7c41d2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py index 12682e28ed44..df67e9d1609b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py index b1bb81f556c8..bd5abf94cf3a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_amarketplace_image_plan.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_amarketplace_image_plan.py index 53adbfdb0e36..997d58217fc9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_amarketplace_image_plan.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_amarketplace_image_plan.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_application_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_application_profile.py index ba9f103a38d5..1b7a4e5fe8c0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_application_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_application_profile.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_boot_diagnostics.py index a2815e495513..e53f54e1d642 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_boot_diagnostics.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation.py index 6a8676e7f2a8..dafaf5c74e15 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_and_full_caching_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation_assignment_disabled.py similarity index 80% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_and_full_caching_enabled.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation_assignment_disabled.py index 7f6e519c6848..5600f0d773fa 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_adiff_os_disk_and_full_caching_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_capacity_reservation_assignment_disabled.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_create_with_adiff_os_disk_and_full_caching_enabled.py + python virtual_machine_create_with_capacity_reservation_assignment_disabled.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -36,8 +36,8 @@ def main(): vm_name="myVM", parameters={ "location": "westus", - "plan": {"name": "windows2016", "product": "windows-data-science-vm", "publisher": "microsoft-ads"}, "properties": { + "capacityReservation": {"disableCapacityReservationAssignment": True}, "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": { "networkInterfaces": [ @@ -54,15 +54,14 @@ def main(): }, "storageProfile": { "imageReference": { - "offer": "windows-data-science-vm", - "publisher": "microsoft-ads", - "sku": "windows2016", + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2016-Datacenter", "version": "latest", }, "osDisk": { - "caching": "ReadOnly", + "caching": "ReadWrite", "createOption": "FromImage", - "diffDiskSettings": {"enableFullCaching": True, "option": "Local", "placement": "TempDisk"}, "managedDisk": {"storageAccountType": "Standard_LRS"}, "name": "myVMosdisk", }, @@ -73,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskAndFullCachingEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservationAssignmentDisabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_data_disks_from_source_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_data_disks_from_source_resource.py index 2c3bbc468e41..9e34738edee7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_data_disks_from_source_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_data_disks_from_source_resource.py @@ -97,6 +97,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_zone_movement_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_deterministic_processor_mode.py similarity index 76% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_zone_movement_enabled.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_deterministic_processor_mode.py index dbf874c14394..d1c26afefe41 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_zone_movement_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_deterministic_processor_mode.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_create_with_zone_movement_enabled.py + python virtual_machine_create_with_deterministic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -37,7 +37,7 @@ def main(): parameters={ "location": "westus", "properties": { - "hardwareProfile": {"vmSize": "Standard_D2s_v3"}, + "hardwareProfile": {"processorMode": "Deterministic", "vmSize": "Standard_E2pds_v8"}, "networkProfile": { "networkInterfaces": [ { @@ -51,28 +51,17 @@ def main(): "adminUsername": "{your-username}", "computerName": "myVM", }, - "resiliencyProfile": {"zoneMovement": {"isEnabled": True}}, "storageProfile": { - "dataDisks": [ - { - "caching": "ReadWrite", - "createOption": "Empty", - "diskSizeGB": 128, - "lun": 0, - "managedDisk": {"storageAccountType": "Premium_ZRS"}, - "name": "myVMdatadisk1", - } - ], "imageReference": { "offer": "WindowsServer", "publisher": "MicrosoftWindowsServer", - "sku": "2016-Datacenter", + "sku": "2019-Datacenter", "version": "latest", }, "osDisk": { "caching": "ReadWrite", "createOption": "FromImage", - "managedDisk": {"storageAccountType": "Premium_ZRS"}, + "managedDisk": {"storageAccountType": "Premium_LRS"}, "name": "myVMosdisk", }, }, @@ -82,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithZoneMovementEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDeterministicProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_controller_type.py index 32967b492713..321bf8b22fb3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_controller_type.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_encryption_set_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_encryption_set_resource.py index 517b53041095..09efadb58b98 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_encryption_set_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_disk_encryption_set_resource.py @@ -100,6 +100,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_empty_data_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_empty_data_disks.py index 0d4ea0cfb64c..c7c0b0e3fe45 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_empty_data_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_empty_data_disks.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_at_host.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_at_host.py index 5998891bd168..bbeda5ffac17 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_at_host.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_at_host.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_identity.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_identity.py index fc159fe9a518..dbd0a53d017d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_identity.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_encryption_identity.py @@ -82,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_extensions_time_budget.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_extensions_time_budget.py index 1bd38c482219..b4d43e7f2313 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_extensions_time_budget.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_extensions_time_budget.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_fips1403_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_fips1403_enabled.py index 930d4bb24142..0162efe8a234 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_fips1403_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_fips1403_enabled.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_hibernation_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_hibernation_enabled.py index 2f6df1a0e7b2..702513f9377f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_hibernation_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_hibernation_enabled.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_managed_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_managed_boot_diagnostics.py index 87c1b47c0734..1c616898edcb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_managed_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_managed_boot_diagnostics.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration.py index c086f388c869..4f663c41c74c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration_dns_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration_dns_settings.py index f5d16773147c..d4fbdc45cf98 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration_dns_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_network_interface_configuration_dns_settings.py @@ -95,6 +95,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_interconnect_block.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_opportunistic_processor_mode.py similarity index 64% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_interconnect_block.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_opportunistic_processor_mode.py index e886144c56c7..04f98b42792b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_interconnect_block.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_opportunistic_processor_mode.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_create_with_interconnect_block.py + python virtual_machine_create_with_opportunistic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -37,41 +37,25 @@ def main(): parameters={ "location": "westus", "properties": { - "hardwareProfile": {"vmSize": "Standard_ND128isr_GB300_v6"}, - "interconnectBlockProfile": { - "interconnectBlock": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/interconnectBlocks/myInterconnectBlock" - } - }, + "hardwareProfile": {"processorMode": "Opportunistic", "vmSize": "Standard_D2s_v5"}, "networkProfile": { - "interconnectGroupProfile": { - "interconnectGroup": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup" - }, - "subgroups": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup/subgroups/subgroup0" - } - ], - }, "networkInterfaces": [ { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", "properties": {"primary": True}, } - ], + ] }, "osProfile": { "adminPassword": "{your-password}", "adminUsername": "{your-username}", "computerName": "myVM", - "linuxConfiguration": {"disablePasswordAuthentication": False}, }, "storageProfile": { "imageReference": { - "offer": "ubuntu-hpc", - "publisher": "microsoft-dsvm", - "sku": "2404-gb", + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2019-Datacenter", "version": "latest", }, "osDisk": { @@ -82,12 +66,11 @@ def main(): }, }, }, - "zones": ["1"], }, ).result() print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithInterconnectBlock.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithOpportunisticProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_password_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_password_authentication.py index a2aafc07abcd..bef749273c6f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_password_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_password_authentication.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_placement.py index 4e452181dff5..20d40b03ebf6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_placement.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_placement.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_premium_storage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_premium_storage.py index d2321d7ddaba..1fa46ebb9587 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_premium_storage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_premium_storage.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_proxy_agent_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_proxy_agent_settings.py index 1726b09dafdd..657fe5b2e8b7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_proxy_agent_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_proxy_agent_settings.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_scheduled_events_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_scheduled_events_profile.py index c1845a640f02..4e88b6c53081 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_scheduled_events_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_scheduled_events_profile.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm.py index cb9f4ec8f63d..f427d1d3e0f0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py index d997d33494c9..6c588cee8c26 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py index 61dccab09e34..a5dcbe53740f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_spot_plus_priority.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_spot_plus_priority.py new file mode 100644 index 000000000000..782630d2e3ee --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_spot_plus_priority.py @@ -0,0 +1,79 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_create_with_spot_plus_priority.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machines.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_name="myVM", + parameters={ + "location": "westus", + "properties": { + "billingProfile": {"maxPrice": -1}, + "evictionPolicy": "Deallocate", + "hardwareProfile": {"vmSize": "Standard_D2s_v5"}, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": {"primary": True}, + } + ] + }, + "osProfile": { + "adminPassword": "{your-password}", + "adminUsername": "{your-username}", + "computerName": "myVM", + }, + "priority": "SpotPlus", + "storageProfile": { + "imageReference": { + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2016-Datacenter", + "version": "latest", + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "managedDisk": {"storageAccountType": "Standard_LRS"}, + "name": "myVMosdisk", + }, + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSpotPlusPriority.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_ssh_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_ssh_authentication.py index 15dcb86da05a..27fe658c0e9e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_ssh_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_ssh_authentication.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_uefi_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_uefi_settings.py index 0fc0daa64435..febfaaba2c5f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_uefi_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_uefi_settings.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_user_data.py index c55a1b787195..e4eeb5fced82 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_user_data.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_vm_size_properties.py index 1008bd2658a7..8ad72ffe99ff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_create_with_vm_size_properties.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_hibernation.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_maximum_set_gen.py similarity index 87% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_hibernation.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_maximum_set_gen.py index 8fd373d32f81..b7da2c89e3c1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_hibernation.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_maximum_set_gen.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_deallocate_with_hibernation.py + python virtual_machine_deallocate_maximum_set_gen.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -32,10 +32,10 @@ def main(): client.virtual_machines.begin_deallocate( resource_group_name="rgcompute", - vm_name="aaaaaaaaaaaaaaaa", + vm_name="aaaaaaaaaa", ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithHibernation.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_minimum_set_gen.py index 46a80d36d7f0..7ce4c50add39 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_delete_force.py index 09ddd16fdcfa..3f5cd8d4cb17 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_delete_force.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Delete_Force.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_create_or_update.py new file mode 100644 index 000000000000..f86bfb7b92e5 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_create_or_update.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_diagnostic_run_command_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_diagnostic_run_commands.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_name="myVM", + run_command_name="myRunCommand", + run_command={ + "location": "West US", + "properties": { + "asyncExecution": False, + "parameters": [{"name": "param1", "value": "value1"}, {"name": "param2", "value": "value2"}], + "source": {"commandId": "FleetDiagnosticsWindows"}, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": False, + }, + }, + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_delete.py new file mode 100644 index 000000000000..9776587f865c --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_diagnostic_run_command_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_diagnostic_run_commands.begin_delete( + resource_group_name="myResourceGroup", + vm_name="myVM", + run_command_name="myRunCommand", + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_get.py new file mode 100644 index 000000000000..fdd6a856bc90 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_diagnostic_run_command_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machine_diagnostic_run_commands.get_by_virtual_machine( + resource_group_name="myResourceGroup", + vm_name="myVM", + run_command_name="myRunCommand", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_list.py new file mode 100644 index 000000000000..8198e70a2a71 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_diagnostic_run_command_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machine_diagnostic_run_commands.diagnostic_list_by_virtual_machine( + resource_group_name="myResourceGroup", + vm_name="myVM", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_List.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_update.py new file mode 100644 index 000000000000..1a6add58bce6 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_diagnostic_run_command_update.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_diagnostic_run_command_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_diagnostic_run_commands.begin_update( + resource_group_name="myResourceGroup", + vm_name="myVM", + run_command_name="myRunCommand", + run_command={ + "properties": { + "asyncExecution": False, + "parameters": [{"name": "param1", "value": "value1"}, {"name": "param2", "value": "value2"}], + "source": {"commandId": "FleetDiagnosticsWindows"}, + "timeoutInSeconds": 3600, + } + }, + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Update.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_maximum_set_gen.py index 3708825cbf3e..78e97a1c3c29 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_maximum_set_gen.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_minimum_set_gen.py index 7135995e85b5..53e2a01b7535 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_create_or_update_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_maximum_set_gen.py index 2a7dd099c29f..9794f2579117 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_minimum_set_gen.py index c717c82183ef..3f46c658bd31 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_maximum_set_gen.py index 8bb4af7b3c81..f21f46e462ae 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_minimum_set_gen.py index 9c3aa860be63..e88526c69c3d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_get_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_maximum_set_gen.py index 3c79827b1bfc..2e6e144c6ed6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_minimum_set_gen.py index c7575d9d99b6..0f8003e3ccc7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_get_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_maximum_set_gen.py index 4088f2cfe765..c44df27589b5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_minimum_set_gen.py index e644889f6d62..9cef4dd19ccd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_types_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_maximum_set_gen.py index 1a016ed2c4a9..e0213774c262 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_minimum_set_gen.py index 2ab6d39cc5ab..9e9be6301658 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_with_expand_properties_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_with_expand_properties_gen.py new file mode 100644 index 000000000000..b489551bb174 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_list_versions_with_expand_properties_gen.py @@ -0,0 +1,44 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_extension_image_list_versions_with_expand_properties_gen.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machine_extension_images.list_versions( + location="aaaaaaaaaaaaaaaaaaaaaaaaaa", + publisher_name="aaaaaaaaaaaaaaaaaaaa", + type="aaaaaaaaaaaaaaaaaa", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_WithExpandProperties_Gen.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_maximum_set_gen.py index 63cf363778ac..bc838b7ee07d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_minimum_set_gen.py index cebc9a0ecfe4..a3d1aad6901b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_update.py index 25a6457ebc07..c11cf1cdf82d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_update.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Update.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachineExtension_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_generalize.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_generalize.py index fe6ec3248539..928668b16da2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_generalize.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_generalize.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Generalize.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Generalize.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get.py index 0f8939b9e2c7..f208e19612ab 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_auto_placed_on_dedicated_host_group.py index 7837a7dfc38f..fd7f813209dc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_auto_placed_on_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view.py index 9410065a47ef..ade6070e7c8e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceView.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_InstanceView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py index c36fc0e77a00..63c97fd37736 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_with_interconnect_block.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_deterministic_processor_mode.py similarity index 84% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_with_interconnect_block.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_deterministic_processor_mode.py index e86d725e9746..02e560b988b1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_instance_view_with_interconnect_block.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_deterministic_processor_mode.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_get_instance_view_with_interconnect_block.py + python virtual_machine_get_with_deterministic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -30,13 +30,13 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.virtual_machines.instance_view( + response = client.virtual_machines.get( resource_group_name="myResourceGroup", vm_name="myVM", ) print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceView_WithInterconnectBlock.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithDeterministicProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_disk_controller_type.py index 3a9cfdb05aca..8a705ef23b62 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_disk_controller_type.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_force_deallocate.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_opportunistic_processor_mode.py similarity index 79% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_force_deallocate.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_opportunistic_processor_mode.py index f78eedd8cc32..f1a9a81f9435 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_deallocate_with_force_deallocate.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_opportunistic_processor_mode.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_deallocate_with_force_deallocate.py + python virtual_machine_get_with_opportunistic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -30,12 +30,13 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - client.virtual_machines.begin_deallocate( - resource_group_name="rgcompute", - vm_name="aaaaaaaaaaaaaaaa", - ).result() + response = client.virtual_machines.get( + resource_group_name="myResourceGroup", + vm_name="myVM", + ) + print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithOpportunisticProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_vm_size_properties.py index 19a2233df406..2863e10227d4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_get_with_vm_size_properties.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_maximum_set_gen.py index 917a4b79ff63..e64afcdf9d85 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_minimum_set_gen.py index 457bcab06333..144a7b385fd9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_get_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_maximum_set_gen.py index bfe5f1b60696..a366ed13e2bd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_minimum_set_gen.py index 4affb1e30f0a..207a8755ab0a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_maximum_set_gen.py index 8c10348e5e3e..1ea94978ff19 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_minimum_set_gen.py index fcd2b6f95101..2d970c464207 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_offers_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_maximum_set_gen.py index b779f198b8f9..8d5a781e8c13 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_minimum_set_gen.py index 8c24a0cc6663..789e976d10ad 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_publishers_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_maximum_set_gen.py index 424206233bc9..a1c6f495c2af 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_minimum_set_gen.py index aa98adf4d4b7..d7db82a99f68 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_list_skus_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_maximum_set_gen.py index ad43f92dd5fd..b245c974ebbc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_maximum_set_gen.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_minimum_set_gen.py index 76a6622078ef..c0d2c476053e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_get_minimum_set_gen.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py index d026c33fb3a2..6f69fd5863d8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py index 9aa628b17928..190fb7e97aab 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_maximum_set_gen.py index 4a49b464424e..1e7a10d4d4e4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_minimum_set_gen.py index e481ba2a1ae8..08183eae626b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py index 85a6e50b4d6a..69fc5d03a0c2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py index fa9e66652a57..8ee624e5394d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py index 7e5ebf14de38..fd8b787816ba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py index a9bf80667bb5..77969795a182 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py index 4613c5d0fad8..b49a8b7db21e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py index 4bea2c8bd176..502459174ed8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_maximum_set_gen.py index 8df4e01a7ee9..3c5c04ad6466 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_minimum_set_gen.py index 997dead06afd..a4dfdba4122b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_images_list_with_properties_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_install_patches.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_install_patches.py index f7201dc2d8a3..03c898dc6d69 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_install_patches.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_install_patches.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_InstallPatches.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_InstallPatches.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_maximum_set_gen.py index 178f462ca501..e1514a930f65 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_minimum_set_gen.py index 39443036cc51..0f7e6908d361 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_all_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_available_vm_sizes.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_available_vm_sizes.py index 5ba4ad838d53..0529231fbe2b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_available_vm_sizes.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_available_vm_sizes.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_by_subscription_by_location.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_by_subscription_by_location.py index 33919d5e9a04..b76442401427 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_by_subscription_by_location.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_by_subscription_by_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_maximum_set_gen.py index 2183eaa48124..e48c3647633f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_minimum_set_gen.py index c9e0dff5e2c7..48e475364eaf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_migrate_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_migrate_to_virtual_machine_scale_set.py index 77b4c219f00c..4df257be4d46 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_migrate_to_virtual_machine_scale_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_migrate_to_virtual_machine_scale_set.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_maximum_set_gen.py index bf731193d251..5cf4940103e3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_minimum_set_gen.py index 5ce7ae729ae9..219482d5728b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_perform_maintenance_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_maximum_set_gen.py index bfc558f4fad8..11b50467c0ad 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_minimum_set_gen.py index 793aa962cbe4..d80885d10017 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_power_off_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reapply.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reapply.py index dbdf36bb842c..66618c6111d6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reapply.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reapply.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reapply.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Reapply.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_maximum_set_gen.py index 919f7aa9722a..89d4e1ab4af6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_minimum_set_gen.py index fc1fa906560d..61c48b85bdce 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_redeploy_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage.py index 575783b2f7a8..fef49c9c9cb6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Reimage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage_non_ephemeral_vms.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage_non_ephemeral_vms.py index 58b87495940a..5d438bc5416f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage_non_ephemeral_vms.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_reimage_non_ephemeral_vms.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_maximum_set_gen.py index 8b5f61f99950..327d5628fc2e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_minimum_set_gen.py index ed9665347f7d..842151fd8be0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_restart_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_retrieve_boot_diagnostics_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_retrieve_boot_diagnostics_data.py index b84db79d603b..6fb071d940d2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_retrieve_boot_diagnostics_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_retrieve_boot_diagnostics_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command.py index 618af61e6086..d610202fb011 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_create_or_update.py index a496ca0502bf..2c2258817fb5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_create_or_update.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_delete.py index ad35f1f21324..13f631e2c7f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Delete.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_get.py index 284405d430b1..26442944e415 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Get.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_list.py index 9ced3d3d6fc3..abc72566cd40 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_List.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_update.py index 14408156ad81..c7e2f17aed20 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_run_command_update.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Update.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineRunCommand_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_approve_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_approve_rolling_upgrade.py index a6971b576301..48508ff79430 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_approve_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_approve_rolling_upgrade.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py index 6525959aa969..e1f931e86c66 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_minimum_set_gen.py index 278e9159a436..325a91749e11 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_convert_to_single_placement_group_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py index cf07d0edce29..5af30f30eb21 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_and_full_caching_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_and_full_caching_enabled.py deleted file mode 100644 index becc151cd43a..000000000000 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_and_full_caching_enabled.py +++ /dev/null @@ -1,98 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.compute import ComputeManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-compute -# USAGE - python virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_and_full_caching_enabled.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = ComputeManagementClient( - credential=DefaultAzureCredential(), - subscription_id="SUBSCRIPTION_ID", - ) - - response = client.virtual_machine_scale_sets.begin_create_or_update( - resource_group_name="myResourceGroup", - vm_scale_set_name="{vmss-name}", - parameters={ - "location": "westus", - "plan": {"name": "windows2016", "product": "windows-data-science-vm", "publisher": "microsoft-ads"}, - "properties": { - "overprovision": True, - "upgradePolicy": {"mode": "Manual"}, - "virtualMachineProfile": { - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "enableIPForwarding": True, - "ipConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - }, - } - ], - "primary": True, - }, - } - ] - }, - "osProfile": { - "adminPassword": "{your-password}", - "adminUsername": "{your-username}", - "computerNamePrefix": "{vmss-name}", - }, - "storageProfile": { - "imageReference": { - "offer": "windows-data-science-vm", - "publisher": "microsoft-ads", - "sku": "windows2016", - "version": "latest", - }, - "osDisk": { - "caching": "ReadOnly", - "createOption": "FromImage", - "diffDiskSettings": { - "enableFullCaching": True, - "option": "Local", - "placement": "ResourceDisk", - }, - "managedDisk": {"storageAccountType": "Standard_LRS"}, - }, - }, - }, - }, - "sku": {"capacity": 3, "name": "Standard_DS1_v2", "tier": "Standard"}, - }, - ).result() - print(response) - - -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAndFullCachingEnabled.json -if __name__ == "__main__": - main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py index 985eafb325f4..f8686835aeba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py index b7daa3ec46b4..af10c335c07a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py @@ -84,6 +84,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_acustom_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_acustom_image.py index 416fb6ad176a..9a9dd7750aed 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_acustom_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_acustom_image.py @@ -84,6 +84,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py index 5659a887fcd3..060f1e2433e4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py @@ -84,6 +84,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py index a87864b24100..09171026a6b6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py @@ -79,6 +79,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py index 6376d211fac9..d9a29079d7d2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py @@ -107,6 +107,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py index 47d277df6ef1..217ef80680b5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py @@ -105,6 +105,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py index 37a681245ca1..3ff237dd9a3d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py @@ -121,6 +121,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py index a5167d94c7e0..c6b029571098 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py index 9c4626d0819e..e8573847c9e2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_application_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_application_profile.py index a733555d9697..455bab7d9cd6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_application_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_application_profile.py @@ -102,6 +102,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_repairs.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_repairs.py index 111ebbd33e39..29c856414ac2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_repairs.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_repairs.py @@ -96,6 +96,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py index 26127e7c6c67..a4789101b0e1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_application_gateway.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_application_gateway.py index 81c90ee468b4..762912f43df3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_application_gateway.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_application_gateway.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_load_balancer.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_load_balancer.py index 0dc9f387c01e..b4adab054009 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_load_balancer.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_azure_load_balancer.py @@ -101,6 +101,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_boot_diagnostics.py index 74cee0697a95..ee225ec2488b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_boot_diagnostics.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_capacity_reservation.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_capacity_reservation.py index 6cd0c18f4c54..f23bb3737016 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_capacity_reservation.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_capacity_reservation.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_operation_recovery_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_deterministic_processor_mode.py similarity index 83% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_operation_recovery_settings.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_deterministic_processor_mode.py index 3b9253ad68f5..df71d4b33227 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_operation_recovery_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_deterministic_processor_mode.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_create_with_operation_recovery_settings.py + python virtual_machine_scale_set_create_with_deterministic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -37,16 +37,10 @@ def main(): parameters={ "location": "westus", "properties": { - "overprovision": False, - "resiliencyPolicy": { - "operationRecoverySettings": { - "reimageRecoveryPolicy": {"enabled": True}, - "restartRecoveryPolicy": {"enabled": True}, - "startRecoveryPolicy": {"enabled": True}, - } - }, + "overprovision": True, "upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": { + "hardwareProfile": {"processorMode": "Deterministic"}, "networkProfile": { "networkInterfaceConfigurations": [ { @@ -77,7 +71,7 @@ def main(): "imageReference": { "offer": "WindowsServer", "publisher": "MicrosoftWindowsServer", - "sku": "2016-Datacenter", + "sku": "2019-Datacenter", "version": "latest", }, "osDisk": { @@ -88,12 +82,12 @@ def main(): }, }, }, - "sku": {"capacity": 3, "name": "Standard_D1_v2", "tier": "Standard"}, + "sku": {"capacity": 3, "name": "Standard_E2pds_v8", "tier": "Standard"}, }, ).result() print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOperationRecoverySettings.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDeterministicProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_diff_os_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_diff_os_disk.py index c44356974815..253a71e08a54 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_diff_os_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_diff_os_disk.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_controller_type.py index b46cd297dac8..e170cd3ca3ca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_controller_type.py @@ -98,6 +98,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py index b4c73f675f75..f788077a4abc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py @@ -103,6 +103,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py index f859ba5bac67..ec1a2e87dd60 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_encryption_at_host.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_encryption_at_host.py index a548f0c55460..e05399a2d5ff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_encryption_at_host.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_encryption_at_host.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py index fe179511ea58..ef0f19f9f65e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_time_budget.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_time_budget.py index 2fe3b2d44c42..0b4b49a8e088 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_time_budget.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_extensions_time_budget.py @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_external_health_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_external_health_policy.py deleted file mode 100644 index c02d466287c7..000000000000 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_external_health_policy.py +++ /dev/null @@ -1,101 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.compute import ComputeManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-compute -# USAGE - python virtual_machine_scale_set_create_with_external_health_policy.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = ComputeManagementClient( - credential=DefaultAzureCredential(), - subscription_id="SUBSCRIPTION_ID", - ) - - response = client.virtual_machine_scale_sets.begin_create_or_update( - resource_group_name="myResourceGroup", - vm_scale_set_name="{vmss-name}", - parameters={ - "location": "westus", - "properties": { - "externalHealthPolicy": {"enabled": True, "expiryDuration": "PT10M", "gracePeriod": "PT4H"}, - "overprovision": True, - "scheduledEventsPolicy": { - "allInstancesDown": {"automaticallyApprove": True}, - "scheduledEventsAdditionalPublishingTargets": { - "eventGridAndResourceGraph": {"enable": True, "scheduledEventsApiVersion": "2020-07-01"} - }, - "userInitiatedReboot": {"automaticallyApprove": True}, - "userInitiatedRedeploy": {"automaticallyApprove": True}, - }, - "upgradePolicy": {"mode": "Manual"}, - "virtualMachineProfile": { - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "enableIPForwarding": True, - "ipConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - }, - } - ], - "primary": True, - }, - } - ] - }, - "osProfile": { - "adminPassword": "{your-password}", - "adminUsername": "{your-username}", - "computerNamePrefix": "{vmss-name}", - }, - "storageProfile": { - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2016-Datacenter", - "version": "latest", - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "managedDisk": {"storageAccountType": "Standard_LRS"}, - }, - }, - }, - }, - "sku": {"capacity": 3, "name": "Standard_D1_v2", "tier": "Standard"}, - }, - ).result() - print(response) - - -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExternalHealthPolicy.json -if __name__ == "__main__": - main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_high_speed_interconnect_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_high_speed_interconnect_placement.py index 3fed517d121d..17ed7bb88437 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_high_speed_interconnect_placement.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_high_speed_interconnect_placement.py @@ -97,6 +97,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_interconnect_block.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_interconnect_block.py deleted file mode 100644 index 34c551aad5b6..000000000000 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_interconnect_block.py +++ /dev/null @@ -1,110 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.compute import ComputeManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-compute -# USAGE - python virtual_machine_scale_set_create_with_interconnect_block.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = ComputeManagementClient( - credential=DefaultAzureCredential(), - subscription_id="SUBSCRIPTION_ID", - ) - - response = client.virtual_machine_scale_sets.begin_create_or_update( - resource_group_name="myResourceGroup", - vm_scale_set_name="{vmss-name}", - parameters={ - "location": "westus", - "properties": { - "highSpeedInterconnectPlacement": "Trunk", - "overprovision": True, - "upgradePolicy": {"mode": "Manual"}, - "virtualMachineProfile": { - "interconnectBlockProfile": { - "interconnectBlock": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/interconnectBlocks/myInterconnectBlock" - } - }, - "networkProfile": { - "interconnectGroupProfile": { - "interconnectGroup": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup" - }, - "subgroups": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup/subgroups/subgroup0" - } - ], - }, - "networkInterfaceConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "enableIPForwarding": True, - "ipConfigurations": [ - { - "name": "{vmss-name}", - "properties": { - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - }, - } - ], - "primary": True, - }, - } - ], - }, - "osProfile": { - "adminPassword": "{your-password}", - "adminUsername": "{your-username}", - "computerNamePrefix": "{vmss-name}", - "linuxConfiguration": {"disablePasswordAuthentication": False}, - }, - "storageProfile": { - "imageReference": { - "offer": "ubuntu-hpc", - "publisher": "microsoft-dsvm", - "sku": "2404-gb", - "version": "latest", - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "managedDisk": {"storageAccountType": "Premium_LRS"}, - }, - }, - }, - }, - "sku": {"capacity": 3, "name": "Standard_ND128isr_GB300_v6", "tier": "Standard"}, - "zones": ["1"], - }, - ).result() - print(response) - - -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithInterconnectBlock.json -if __name__ == "__main__": - main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py index 37aafef19c50..54159264e8bd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_instance_percent_per_zone_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_instance_percent_per_zone_policy.py index 1519a0d43efc..1e3f6202f6ac 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_instance_percent_per_zone_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_instance_percent_per_zone_policy.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_zone_count.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_zone_count.py index 503ac8ab5e92..7b9a7db4a2ce 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_zone_count.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_max_zone_count.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_storage_fault_domain_alignment.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_opportunistic_processor_mode.py similarity index 81% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_storage_fault_domain_alignment.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_opportunistic_processor_mode.py index e6be6101ac68..7f77eaf81d88 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_storage_fault_domain_alignment.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_opportunistic_processor_mode.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_create_with_storage_fault_domain_alignment.py + python virtual_machine_scale_set_create_with_opportunistic_processor_mode.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -38,13 +38,9 @@ def main(): "location": "westus", "properties": { "overprovision": True, - "scheduledEventsPolicy": { - "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": {"enable": True}}, - "userInitiatedReboot": {"automaticallyApprove": True}, - "userInitiatedRedeploy": {"automaticallyApprove": True}, - }, "upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": { + "hardwareProfile": {"processorMode": "Opportunistic"}, "networkProfile": { "networkInterfaceConfigurations": [ { @@ -75,25 +71,23 @@ def main(): "imageReference": { "offer": "WindowsServer", "publisher": "MicrosoftWindowsServer", - "sku": "2016-Datacenter", + "sku": "2019-Datacenter", "version": "latest", }, "osDisk": { "caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Standard_LRS"}, - "storageFaultDomainAlignment": "BestEffortAligned", }, }, }, - "zonalPlatformFaultDomainAlignMode": "Aligned", }, - "sku": {"capacity": 3, "name": "Standard_D1_v2", "tier": "Standard"}, + "sku": {"capacity": 3, "name": "Standard_D2s_v5", "tier": "Standard"}, }, ).result() print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithStorageFaultDomainAlignment.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOpportunisticProcessorMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py index 46d5d0f34811..bb9d305ecc6c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_password_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_password_authentication.py index 1fa7d9076365..a8f1be521a7e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_password_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_password_authentication.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_placement.py index 7008fb0a2e49..219f44c44c46 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_placement.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_placement.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_premium_storage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_premium_storage.py index 5cb4945a5737..1d6a95a56108 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_premium_storage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_premium_storage.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_priority_mix_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_priority_mix_policy.py index d058aea6993a..51ed8e4e0ce5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_priority_mix_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_priority_mix_policy.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py index 6d5bb1315db1..14f958a8092d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py @@ -113,6 +113,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_proxy_agent_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_proxy_agent_settings.py index 8ec61c2975f9..14160cae4e47 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_proxy_agent_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_proxy_agent_settings.py @@ -95,6 +95,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py index e9bda3a8d1f5..60d10110a557 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py index a3eed298f66f..6068e3ebf65f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_scale_in_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_scale_in_policy.py index 77c8d993ff76..a77bd4d720bc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_scale_in_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_scale_in_policy.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_posture_reference.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_posture_reference.py index 680ad3b54b43..0cb1f4692659 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_posture_reference.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_posture_reference.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py index ce9a8a86eabe..6fed9106d644 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py index 535068de3774..91cf2bdf8f1b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_service_artifact_reference.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_service_artifact_reference.py index 6b76b9d237ad..7d0fbbb3c5bf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_service_artifact_reference.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_service_artifact_reference.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile.py index 9ef905d90776..f5e7f590697a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile.py @@ -95,6 +95,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py index ec172d3a8c12..4eb0032554ba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py @@ -99,6 +99,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_lifecycle_hooks_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority.py similarity index 85% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_lifecycle_hooks_profile.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority.py index 7091191ff514..c68f6f5ba0b0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_lifecycle_hooks_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_create_with_lifecycle_hooks_profile.py + python virtual_machine_scale_set_create_with_spot_plus_priority.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -37,16 +37,11 @@ def main(): parameters={ "location": "westus", "properties": { - "lifecycleHooksProfile": { - "lifecycleHooks": [ - { - "defaultAction": "Approve", - "type": "UpgradeAutoOSRollingBatchStarting", - "waitDuration": "PT20M", - } - ] - }, + "overprovision": True, + "upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": { + "billingProfile": {"maxPrice": -1}, + "evictionPolicy": "Deallocate", "networkProfile": { "networkInterfaceConfigurations": [ { @@ -73,6 +68,7 @@ def main(): "adminUsername": "{your-username}", "computerNamePrefix": "{vmss-name}", }, + "priority": "SpotPlus", "storageProfile": { "imageReference": { "offer": "WindowsServer", @@ -88,12 +84,12 @@ def main(): }, }, }, - "sku": {"capacity": 4, "name": "Standard_D1_v2", "tier": "Standard"}, + "sku": {"capacity": 2, "name": "Standard_D2s_v5", "tier": "Standard"}, }, ).result() print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithLifecycleHooksProfile.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotPlusPriority.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_sku_migration_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority_flex.py similarity index 73% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_sku_migration_policy.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority_flex.py index 85057befb96b..ceda3e81e867 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_automatic_sku_migration_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_plus_priority_flex.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_create_with_automatic_sku_migration_policy.py + python virtual_machine_scale_set_create_with_spot_plus_priority_flex.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -38,48 +38,53 @@ def main(): "location": "westus", "properties": { "orchestrationMode": "Flexible", + "platformFaultDomainCount": 1, "priorityMixPolicy": {"baseRegularPriorityCount": 4, "regularPriorityPercentageAboveBase": 50}, "singlePlacementGroup": False, "skuProfile": { "allocationStrategy": "CapacityOptimized", - "automaticSkuMigrationPolicy": {"enabled": True}, "vmSizes": [{"name": "Standard_D8s_v5"}, {"name": "Standard_E16s_v5"}, {"name": "Standard_D2s_v5"}], }, "virtualMachineProfile": { "billingProfile": {"maxPrice": -1}, "evictionPolicy": "Deallocate", "networkProfile": { + "networkApiVersion": "2020-11-01", "networkInterfaceConfigurations": [ { "name": "{vmss-name}", "properties": { + "enableAcceleratedNetworking": False, "enableIPForwarding": True, "ipConfigurations": [ { "name": "{vmss-name}", "properties": { + "applicationGatewayBackendAddressPools": [], + "loadBalancerBackendAddressPools": [], + "primary": True, + "publicIPAddressConfiguration": { + "name": "{vmss-name}", + "properties": {"idleTimeoutInMinutes": 15}, + }, "subnet": { "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } + }, }, } ], "primary": True, }, } - ] + ], }, - "osProfile": { - "adminPassword": "{your-password}", - "adminUsername": "{your-username}", - "computerNamePrefix": "{vmss-name}", - }, - "priority": "Spot", + "osProfile": {"adminUsername": "{your-username}", "computerNamePrefix": "{vmss-name}"}, + "priority": "SpotPlus", "storageProfile": { "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2016-Datacenter", + "offer": "0001-com-ubuntu-server-focal", + "publisher": "Canonical", + "sku": "20_04-lts-gen2", "version": "latest", }, "osDisk": { @@ -96,6 +101,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticSkuMigrationPolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotPlusPriorityFlex.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_restore_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_restore_policy.py index a3d5198cf1d9..37c003be9fdb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_restore_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_spot_restore_policy.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_ssh_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_ssh_authentication.py index b945e5cdca40..38e4ea3b888f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_ssh_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_ssh_authentication.py @@ -97,6 +97,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py index 28b014b22ec9..3981ec769cdc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_uefi_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_uefi_settings.py index 3a8158181398..84f84a927006 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_uefi_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_uefi_settings.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_user_data.py index 59baba8fc9a1..313ed3396fb0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_user_data.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vm_size_properties.py index 72383cb35f2b..315619d85a5c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vm_size_properties.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vms_in_different_zones.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vms_in_different_zones.py index b93d7e7442da..9d8dca263ada 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vms_in_different_zones.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_vms_in_different_zones.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py index 3b8aa5b2b718..81046d4ed9a5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_maximum_set_gen.py index 07eab96cae20..1a69b7f0274b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_minimum_set_gen.py index bf386b46252f..4cde1ebbf9d3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_deallocate_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_force.py index df01d0bfa116..90be363677ff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_force.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_maximum_set_gen.py index f89f4395cfb9..cf9a0a228eae 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_minimum_set_gen.py index 900503faff5f..3f16b4e9a7eb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_delete_instances_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py index 6197ce46ea5a..24bae8bf1600 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_minimum_set_gen.py index a05367f860e8..0115852f14e4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_create_or_update_minimum_set_gen.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py index 043f061054ae..9004b83a7ad2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py index 94e1e0a3addd..3662e0a3ed2f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_maximum_set_gen.py index e83fbf4f417e..dd323c8bed13 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_minimum_set_gen.py index ec6897d7d066..10772c29fc64 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_get_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_maximum_set_gen.py index 4e3a124a2006..1469c5359b03 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_minimum_set_gen.py index 382a4ee98f2f..5b4f4079d278 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_list_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_rolling_upgrade.py index 9cd7fefeb6e8..719fd43e2a63 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_rolling_upgrade.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_maximum_set_gen.py index 13484d3272de..13de3862b070 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_maximum_set_gen.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_minimum_set_gen.py index 4727ddbecc19..553bfa4a839a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_extension_update_minimum_set_gen.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py index eaa36f7a8d8c..d85a9c78142f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py index d67ab3251e76..7e0e13d2229e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get.py index f93b18f9dd41..4aae59c45187 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py index 8b72c0752463..e1577f1b5ec2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py index face003ceb02..7a02680cdebc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py index a52673e738b5..cce7222ad45c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py index 4f7e6753de28..abcbe2096278 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py index 61af73e92371..a245877c7b0f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_disk_controller_type.py index fabeaba7da59..d6f2baa0074a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_disk_controller_type.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_user_data.py index 22ad55032943..f9401b4f6e93 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_get_with_user_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_get.py index e0fc61ffc41d..313c656d8ec1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Get.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_list.py index d3f126e0d808..ee3b7ef38c4f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_List.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_update.py index f9150df9415c..27482438133f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_life_cycle_hook_event_update.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Update.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_maximum_set_gen.py index bb0da7a6a6e9..01b94507b709 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_minimum_set_gen.py index f6709cb1d121..935ff35f3e56 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_all_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_by_subscription_by_location.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_by_subscription_by_location.py index b9881b6c51fe..20a22896ff78 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_by_subscription_by_location.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_by_subscription_by_location.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_maximum_set_gen.py index ca07a198da30..928fa269f431 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_minimum_set_gen.py index 7b13de648f03..444040f91cff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_maximum_set_gen.py index 8e26ce1d4b86..ae4d253a776c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_minimum_set_gen.py index 5aa1627f016c..88b38eb6e58d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_list_skus_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_migrate_vm_availability_zone.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_migrate_vm_availability_zone.py new file mode 100644 index 000000000000..9bea5a1a5f6d --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_migrate_vm_availability_zone.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_migrate_vm_availability_zone.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_scale_sets.begin_migrate_vm_availability_zone( + resource_group_name="myResourceGroup", + vm_scale_set_name="{vmss-name}", + body={"instanceIds": ["0", "1", "2"], "targetZone": "2"}, + ).result() + + +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_MigrateVMAvailabilityZone.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py index f7784d293f49..1c277c326d09 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py index 47c42b435c65..4f6fac22a976 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_maximum_set_gen.py index 00ac386144be..6938ecc00f26 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_minimum_set_gen.py index 6a5316c11d1f..fdf6b19c7d07 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_power_off_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_maximum_set_gen.py index 46db6f492553..0fdc6ebb1062 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_minimum_set_gen.py index 68fd3515df9d..322fed378304 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reapply_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_maximum_set_gen.py index c537798b9cf4..28193db0345d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_minimum_set_gen.py index d45c3abcd104..6ce615b259ce 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_redeploy_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py index 9f8c5e78cc34..b372d30ddce0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py index ce4d214aca95..8bcd5b6ba891 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_maximum_set_gen.py index 961cb7f508b0..d8b9f9a097df 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_minimum_set_gen.py index f09cf4d8203b..3da3d67b8a4f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_reimage_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_maximum_set_gen.py index 590005830996..39c52c56140f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_minimum_set_gen.py index 5c85bbf3f8ef..4a523d5b8544 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_restart_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py index ce1293c62874..5e6adb4bba8c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py index daa08ee7502e..d583b7535fca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py index 6f96e7e50dab..189a18b94fa7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py index f6374740718d..0e9126dfed52 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py index 8ec2b3b2362f..acf36313f6a3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py index 785b43b98486..ce05497d7047 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_scale_out.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_scale_out.py index e6ad31487c25..2cb46c973735 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_scale_out.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_scale_out.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ScaleOut.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ScaleOut.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py index 7bfd7f23f666..5e4041ab5930 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py index 87de852dc671..72e799ec4d50 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_maximum_set_gen.py index 5167fdcf2724..0a074848ddcc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_minimum_set_gen.py index 1efdd26a210f..041c426687cc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_start_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_maximum_set_gen.py index c53d52b7049f..90f28e00a301 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_minimum_set_gen.py index e48e488262ce..948f3767c49c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_instances_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_maximum_set_gen.py index f2c661449da9..f0cfe87dff77 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_maximum_set_gen.py @@ -266,6 +266,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_minimum_set_gen.py index 81ca155a6152..4ece05141976 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_update_minimum_set_gen.py @@ -128,7 +128,10 @@ def main(): ], "extensionsTimeBudget": "str", }, - "hardwareProfile": {"vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "interconnectBlockProfile": {"interconnectBlock": {"id": "str"}}, "licenseType": "str", "networkProfile": { @@ -234,10 +237,18 @@ def main(): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -253,6 +264,21 @@ def main(): "diskMBpsReadWrite": 0, "diskSizeGB": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -265,6 +291,7 @@ def main(): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -283,6 +310,21 @@ def main(): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -307,6 +349,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py index efd53d68b139..e494e0efe880 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py index f0709f3d4cb2..63b8d684996e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py index 4b0e9cc2b6b5..6c843213d66a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py index 9adb338e0642..105f5663585e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py index 494d0b84cab6..7cdaf7d2c273 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_delete_force.py index 7f35a25ea15f..14ef1e381f59 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_delete_force.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_create_or_update.py new file mode 100644 index 000000000000..b9ea5bff077f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_create_or_update.py @@ -0,0 +1,55 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_diagnostic_run_command_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_scale_set_name="myvmScaleSet", + instance_id="0", + run_command_name="myRunCommand", + run_command={ + "location": "West US", + "properties": { + "asyncExecution": False, + "parameters": [{"name": "param1", "value": "value1"}, {"name": "param2", "value": "value2"}], + "runAsPassword": "", + "source": {"commandId": "FleetDiagnosticsWindows"}, + "timeoutInSeconds": 3600, + "treatFailureAsDeploymentFailure": True, + }, + }, + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_delete.py new file mode 100644 index 000000000000..ceffa0f46ae3 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_delete.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_diagnostic_run_command_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_delete( + resource_group_name="myResourceGroup", + vm_scale_set_name="myvmScaleSet", + instance_id="0", + run_command_name="myRunCommand", + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_get.py new file mode 100644 index 000000000000..d4a0149677d9 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_get.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_diagnostic_run_command_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machine_scale_set_vm_diagnostic_run_commands.get( + resource_group_name="myResourceGroup", + vm_scale_set_name="myvmScaleSet", + instance_id="0", + run_command_name="myRunCommand", + ) + print(response) + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_list.py new file mode 100644 index 000000000000..2b5558d2aade --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_list.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_diagnostic_run_command_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_machine_scale_set_vm_diagnostic_run_commands.diagnostic_list( + resource_group_name="myResourceGroup", + vm_scale_set_name="myvmScaleSet", + instance_id="0", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_List.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_update.py new file mode 100644 index 000000000000..09b4250d4fec --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_diagnostic_run_command_update.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_diagnostic_run_command_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_update( + resource_group_name="myResourceGroup", + vm_scale_set_name="myvmScaleSet", + instance_id="0", + run_command_name="myRunCommand", + run_command={"properties": {"source": {"commandId": "FleetDiagnosticsWindows"}}}, + ).result() + + +# x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Update.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_create.py index 9b6b17b0be3f..52cda97022bc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_delete.py index 238a7d05f345..39f8197b9b6b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_get.py index a082795ee420..8d83778ddbdf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_list.py index 6932e37edc55..f5c2fde64f36 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_update.py index a79992640ed5..d8ff97c55fdc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_extension_update.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py index 1cae354530f7..aa216531a9d0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_virtual_machine_resource_id.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_with_capacity_reservation_type.py similarity index 77% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_virtual_machine_resource_id.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_with_capacity_reservation_type.py index 621f3660bc3b..ae3f728da11b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_virtual_machine_resource_id.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_instance_view_with_capacity_reservation_type.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_vm_get_with_virtual_machine_resource_id.py + python virtual_machine_scale_set_vm_get_instance_view_with_capacity_reservation_type.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -31,14 +31,14 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.virtual_machine_scale_set_vms.get( + response = client.virtual_machine_scale_set_vms.get_instance_view( resource_group_name="myResourceGroup", - vm_scale_set_name="{vmss-flex-name}", - instance_id="{vmss-flex-vm-name}", + vm_scale_set_name="myVirtualMachineScaleSet", + instance_id="0", ) print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVirtualMachineResourceId.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewWithCapacityReservationType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_interconnect_block.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_capacity_reservation.py similarity index 85% rename from sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_interconnect_block.py rename to sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_capacity_reservation.py index 1d66b61601f0..d0967ea8de61 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_interconnect_block.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_capacity_reservation.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -15,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute # USAGE - python virtual_machine_scale_set_vm_get_with_interconnect_block.py + python virtual_machine_scale_set_vm_get_with_capacity_reservation.py Before run the sample, please set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, @@ -38,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithInterconnectBlock.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithCapacityReservation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py index 4add9b4e9d5d..38ce6b133002 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_user_data.py index 3f73731d79d2..dcb43ac7a0cd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_user_data.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py index 71200b400415..689dd913f542 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_maximum_set_gen.py index 71e994a94d76..d1bcaf99d8ac 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_minimum_set_gen.py index 0f5bf3aebe45..dc73b611f556 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_resiliency_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_resiliency_view.py index b6581403c67c..869db06e41fe 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_resiliency_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_list_with_resiliency_view.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py index 59ce188c74d7..a8ab59c91018 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py index 440ea178cb89..29e1d1906a2c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py index 88635b6f3848..17cbe117f5eb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py index 2900200b0714..c6bbc5e45b56 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py index 0f242e540d3e..86b97a113f8b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py index 288ee1266249..30081e87f505 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py index 6256a25e5e08..a0bba8995f87 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py index 8cb65897a760..978f24fa27da 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py index 7d86ac0f2da0..3da64351c507 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py index 562ec89d9455..674f002ade65 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py index 2a011af6848f..5d4f3b236649 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py index d30a65432675..141bfd0cee8f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py index 4529f2549e31..a0a92a3d70c9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command.py index 5f4fbc460117..06f73f631294 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_create_or_update.py index d8fddab023cb..5d3fa68e385a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_create_or_update.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_delete.py index 4b679bb73768..732ff62d52a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_get.py index d585b2a76e0f..7b617fef0c99 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_list.py index 7f78a46b172a..70c01295745b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_update.py index d4b63a926b5c..1ea02bf440dd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_run_command_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json +# x-ms-original-file: 2026-04-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_simulate_eviction.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_simulate_eviction.py index 27137880d25e..36ec80d72f77 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_simulate_eviction.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_simulate_eviction.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_maximum_set_gen.py index df3ab9c0f6a6..35410ac7efe8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_minimum_set_gen.py index 703907f1a405..8ff45f2e8573 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_start_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_maximum_set_gen.py index 5b35f2c55106..be21d151b3af 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_maximum_set_gen.py @@ -437,6 +437,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_minimum_set_gen.py index f6b7bb8ad595..5e69ed0364eb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_vm_update_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_simulate_eviction.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_simulate_eviction.py index be4241de3a22..4e214640868a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_simulate_eviction.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_simulate_eviction.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_SimulateEviction.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_SimulateEviction.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_maximum_set_gen.py index 08b0b813be99..96d275844ece 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_minimum_set_gen.py index f95b17f3fd92..b63dbd4c7a7b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_sizes_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_maximum_set_gen.py index 8421c3fcc26f..9b07a8f8c47a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_minimum_set_gen.py index fa6328c6f7aa..ddc08d064906 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_start_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py index e287ad7434b6..4611f5910bce 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_force_detach_data_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_force_detach_data_disk.py index 65de1015dc85..1fdf9406316a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_force_detach_data_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_update_force_detach_data_disk.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json +# x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py index 4212d551484a..563eaf3a32f7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py @@ -24,7 +24,7 @@ def test_availability_sets_get(self, resource_group): response = self.client.availability_sets.get( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_availability_sets_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -128,7 +128,7 @@ def test_availability_sets_update(self, resource_group): "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ def test_availability_sets_delete(self, resource_group): response = self.client.availability_sets.delete( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -151,7 +151,7 @@ def test_availability_sets_delete(self, resource_group): def test_availability_sets_list(self, resource_group): response = self.client.availability_sets.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -161,7 +161,7 @@ def test_availability_sets_list(self, resource_group): @recorded_by_proxy def test_availability_sets_list_by_subscription(self, resource_group): response = self.client.availability_sets.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -173,7 +173,7 @@ def test_availability_sets_list_available_sizes(self, resource_group): response = self.client.availability_sets.list_available_sizes( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -186,7 +186,7 @@ def test_availability_sets_start_migration_to_virtual_machine_scale_set(self, re resource_group_name=resource_group.name, availability_set_name="str", parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -198,7 +198,7 @@ def test_availability_sets_cancel_migration_to_virtual_machine_scale_set(self, r response = self.client.availability_sets.cancel_migration_to_virtual_machine_scale_set( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -211,7 +211,7 @@ def test_availability_sets_validate_migration_to_virtual_machine_scale_set(self, resource_group_name=resource_group.name, availability_set_name="str", parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -223,7 +223,7 @@ def test_availability_sets_begin_convert_to_virtual_machine_scale_set(self, reso response = self.client.availability_sets.begin_convert_to_virtual_machine_scale_set( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py index 95979e1fad19..2764c905adf3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py @@ -25,7 +25,7 @@ async def test_availability_sets_get(self, resource_group): response = await self.client.availability_sets.get( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_availability_sets_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -129,7 +129,7 @@ async def test_availability_sets_update(self, resource_group): "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -141,7 +141,7 @@ async def test_availability_sets_delete(self, resource_group): response = await self.client.availability_sets.delete( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -152,7 +152,7 @@ async def test_availability_sets_delete(self, resource_group): async def test_availability_sets_list(self, resource_group): response = self.client.availability_sets.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -162,7 +162,7 @@ async def test_availability_sets_list(self, resource_group): @recorded_by_proxy_async async def test_availability_sets_list_by_subscription(self, resource_group): response = self.client.availability_sets.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -174,7 +174,7 @@ async def test_availability_sets_list_available_sizes(self, resource_group): response = self.client.availability_sets.list_available_sizes( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -187,7 +187,7 @@ async def test_availability_sets_start_migration_to_virtual_machine_scale_set(se resource_group_name=resource_group.name, availability_set_name="str", parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -199,7 +199,7 @@ async def test_availability_sets_cancel_migration_to_virtual_machine_scale_set(s response = await self.client.availability_sets.cancel_migration_to_virtual_machine_scale_set( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -212,7 +212,7 @@ async def test_availability_sets_validate_migration_to_virtual_machine_scale_set resource_group_name=resource_group.name, availability_set_name="str", parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -225,7 +225,7 @@ async def test_availability_sets_begin_convert_to_virtual_machine_scale_set(self await self.client.availability_sets.begin_convert_to_virtual_machine_scale_set( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py index 9a51321bf0d9..f267bbdd1c82 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py @@ -24,7 +24,7 @@ def test_capacity_reservation_groups_get(self, resource_group): response = self.client.capacity_reservation_groups.get( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -46,6 +46,7 @@ def test_capacity_reservation_groups_create_or_update(self, resource_group): "capacityReservations": [ { "name": "str", + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -55,7 +56,11 @@ def test_capacity_reservation_groups_create_or_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, } ], "sharedSubscriptionIds": [{"id": "str"}], @@ -76,7 +81,7 @@ def test_capacity_reservation_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -95,6 +100,7 @@ def test_capacity_reservation_groups_update(self, resource_group): "capacityReservations": [ { "name": "str", + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -104,7 +110,11 @@ def test_capacity_reservation_groups_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, } ], "sharedSubscriptionIds": [{"id": "str"}], @@ -115,7 +125,7 @@ def test_capacity_reservation_groups_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -127,7 +137,7 @@ def test_capacity_reservation_groups_delete(self, resource_group): response = self.client.capacity_reservation_groups.delete( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -138,7 +148,7 @@ def test_capacity_reservation_groups_delete(self, resource_group): def test_capacity_reservation_groups_list_by_resource_group(self, resource_group): response = self.client.capacity_reservation_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -148,7 +158,7 @@ def test_capacity_reservation_groups_list_by_resource_group(self, resource_group @recorded_by_proxy def test_capacity_reservation_groups_list_by_subscription(self, resource_group): response = self.client.capacity_reservation_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py index 0d244f212d0b..065e98161cba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_capacity_reservation_groups_get(self, resource_group): response = await self.client.capacity_reservation_groups.get( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -47,6 +47,7 @@ async def test_capacity_reservation_groups_create_or_update(self, resource_group "capacityReservations": [ { "name": "str", + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -56,7 +57,11 @@ async def test_capacity_reservation_groups_create_or_update(self, resource_group "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, } ], "sharedSubscriptionIds": [{"id": "str"}], @@ -77,7 +82,7 @@ async def test_capacity_reservation_groups_create_or_update(self, resource_group "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -96,6 +101,7 @@ async def test_capacity_reservation_groups_update(self, resource_group): "capacityReservations": [ { "name": "str", + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -105,7 +111,11 @@ async def test_capacity_reservation_groups_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, } ], "sharedSubscriptionIds": [{"id": "str"}], @@ -116,7 +126,7 @@ async def test_capacity_reservation_groups_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -128,7 +138,7 @@ async def test_capacity_reservation_groups_delete(self, resource_group): response = await self.client.capacity_reservation_groups.delete( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -139,7 +149,7 @@ async def test_capacity_reservation_groups_delete(self, resource_group): async def test_capacity_reservation_groups_list_by_resource_group(self, resource_group): response = self.client.capacity_reservation_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -149,7 +159,7 @@ async def test_capacity_reservation_groups_list_by_resource_group(self, resource @recorded_by_proxy_async async def test_capacity_reservation_groups_list_by_subscription(self, resource_group): response = self.client.capacity_reservation_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py index b302fe068f21..373b096131e5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py @@ -25,7 +25,7 @@ def test_capacity_reservations_get(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -45,6 +45,7 @@ def test_capacity_reservations_begin_create_or_update(self, resource_group): "name": "str", "properties": { "instanceView": { + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -54,13 +55,22 @@ def test_capacity_reservations_begin_create_or_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, }, "platformFaultDomainCount": 0, "provisioningState": "str", "provisioningTime": "2020-02-20 00:00:00", "reservationId": "str", - "scheduleProfile": {"end": "str", "start": "str"}, + "scheduleProfile": { + "end": "str", + "minimumCommitmentDays": 0, + "modifiableUntil": "2020-02-20 00:00:00", + "start": "str", + }, "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, @@ -76,7 +86,7 @@ def test_capacity_reservations_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -92,6 +102,7 @@ def test_capacity_reservations_begin_update(self, resource_group): parameters={ "properties": { "instanceView": { + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -101,20 +112,29 @@ def test_capacity_reservations_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, }, "platformFaultDomainCount": 0, "provisioningState": "str", "provisioningTime": "2020-02-20 00:00:00", "reservationId": "str", - "scheduleProfile": {"end": "str", "start": "str"}, + "scheduleProfile": { + "end": "str", + "minimumCommitmentDays": 0, + "modifiableUntil": "2020-02-20 00:00:00", + "start": "str", + }, "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -127,7 +147,7 @@ def test_capacity_reservations_begin_delete(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -139,7 +159,7 @@ def test_capacity_reservations_list_by_capacity_reservation_group(self, resource response = self.client.capacity_reservations.list_by_capacity_reservation_group( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py index ddd23726ba36..1c437c14d74e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py @@ -26,7 +26,7 @@ async def test_capacity_reservations_get(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -47,6 +47,7 @@ async def test_capacity_reservations_begin_create_or_update(self, resource_group "name": "str", "properties": { "instanceView": { + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -56,13 +57,22 @@ async def test_capacity_reservations_begin_create_or_update(self, resource_group "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, }, "platformFaultDomainCount": 0, "provisioningState": "str", "provisioningTime": "2020-02-20 00:00:00", "reservationId": "str", - "scheduleProfile": {"end": "str", "start": "str"}, + "scheduleProfile": { + "end": "str", + "minimumCommitmentDays": 0, + "modifiableUntil": "2020-02-20 00:00:00", + "start": "str", + }, "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, @@ -78,7 +88,7 @@ async def test_capacity_reservations_begin_create_or_update(self, resource_group "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -96,6 +106,7 @@ async def test_capacity_reservations_begin_update(self, resource_group): parameters={ "properties": { "instanceView": { + "reservationStateInfo": {"reservationState": "str"}, "statuses": [ { "code": "str", @@ -105,20 +116,29 @@ async def test_capacity_reservations_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", } ], - "utilizationInfo": {"currentCapacity": 0, "virtualMachinesAllocated": [{"id": "str"}]}, + "utilizationInfo": { + "currentCapacity": 0, + "usedReservedCountBySubscription": {"str": 0}, + "virtualMachinesAllocated": [{"id": "str"}], + }, }, "platformFaultDomainCount": 0, "provisioningState": "str", "provisioningTime": "2020-02-20 00:00:00", "reservationId": "str", - "scheduleProfile": {"end": "str", "start": "str"}, + "scheduleProfile": { + "end": "str", + "minimumCommitmentDays": 0, + "modifiableUntil": "2020-02-20 00:00:00", + "start": "str", + }, "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -133,7 +153,7 @@ async def test_capacity_reservations_begin_delete(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -146,7 +166,7 @@ async def test_capacity_reservations_list_by_capacity_reservation_group(self, re response = self.client.capacity_reservations.list_by_capacity_reservation_group( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py index b08099908a97..31a732e3cee5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py @@ -24,7 +24,7 @@ def test_dedicated_host_groups_get(self, resource_group): response = self.client.dedicated_host_groups.get( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_dedicated_host_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_dedicated_host_groups_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -128,7 +128,7 @@ def test_dedicated_host_groups_delete(self, resource_group): response = self.client.dedicated_host_groups.delete( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ def test_dedicated_host_groups_delete(self, resource_group): def test_dedicated_host_groups_list_by_resource_group(self, resource_group): response = self.client.dedicated_host_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -149,7 +149,7 @@ def test_dedicated_host_groups_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_dedicated_host_groups_list_by_subscription(self, resource_group): response = self.client.dedicated_host_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py index d52582b06145..401b4cd29b99 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_dedicated_host_groups_get(self, resource_group): response = await self.client.dedicated_host_groups.get( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_dedicated_host_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -117,7 +117,7 @@ async def test_dedicated_host_groups_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -129,7 +129,7 @@ async def test_dedicated_host_groups_delete(self, resource_group): response = await self.client.dedicated_host_groups.delete( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ async def test_dedicated_host_groups_delete(self, resource_group): async def test_dedicated_host_groups_list_by_resource_group(self, resource_group): response = self.client.dedicated_host_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -150,7 +150,7 @@ async def test_dedicated_host_groups_list_by_resource_group(self, resource_group @recorded_by_proxy_async async def test_dedicated_host_groups_list_by_subscription(self, resource_group): response = self.client.dedicated_host_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py index a24f8a77d0a0..80f0d2127e76 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py @@ -25,7 +25,7 @@ def test_dedicated_hosts_get(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_dedicated_hosts_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +117,7 @@ def test_dedicated_hosts_begin_update(self, resource_group): "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -130,7 +130,7 @@ def test_dedicated_hosts_begin_delete(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -142,7 +142,7 @@ def test_dedicated_hosts_list_by_host_group(self, resource_group): response = self.client.dedicated_hosts.list_by_host_group( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -155,7 +155,7 @@ def test_dedicated_hosts_list_available_sizes(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -168,7 +168,7 @@ def test_dedicated_hosts_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -181,7 +181,7 @@ def test_dedicated_hosts_begin_restart(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py index ccd816b85abe..910ae0e68575 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py @@ -26,7 +26,7 @@ async def test_dedicated_hosts_get(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_dedicated_hosts_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_dedicated_hosts_begin_update(self, resource_group): "sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -136,7 +136,7 @@ async def test_dedicated_hosts_begin_delete(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -149,7 +149,7 @@ async def test_dedicated_hosts_list_by_host_group(self, resource_group): response = self.client.dedicated_hosts.list_by_host_group( resource_group_name=resource_group.name, host_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -162,7 +162,7 @@ async def test_dedicated_hosts_list_available_sizes(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -176,7 +176,7 @@ async def test_dedicated_hosts_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -191,7 +191,7 @@ async def test_dedicated_hosts_begin_restart(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py index 4de2b3733f0c..c8b764e58426 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py @@ -24,7 +24,7 @@ def test_images_get(self, resource_group): response = self.client.images.get( resource_group_name=resource_group.name, image_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_images_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -129,7 +129,7 @@ def test_images_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -141,7 +141,7 @@ def test_images_begin_delete(self, resource_group): response = self.client.images.begin_delete( resource_group_name=resource_group.name, image_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -152,7 +152,7 @@ def test_images_begin_delete(self, resource_group): def test_images_list_by_resource_group(self, resource_group): response = self.client.images.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -162,7 +162,7 @@ def test_images_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_images_list(self, resource_group): response = self.client.images.list( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py index 827971081c94..dbdc4c9eb80e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py @@ -25,7 +25,7 @@ async def test_images_get(self, resource_group): response = await self.client.images.get( resource_group_name=resource_group.name, image_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -85,7 +85,7 @@ async def test_images_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -133,7 +133,7 @@ async def test_images_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -147,7 +147,7 @@ async def test_images_begin_delete(self, resource_group): await self.client.images.begin_delete( resource_group_name=resource_group.name, image_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -159,7 +159,7 @@ async def test_images_begin_delete(self, resource_group): async def test_images_list_by_resource_group(self, resource_group): response = self.client.images.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -169,7 +169,7 @@ async def test_images_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_images_list(self, resource_group): response = self.client.images.list( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations.py index 3ce00fad28aa..4f951bed0679 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations.py @@ -24,7 +24,7 @@ def test_interconnect_blocks_get(self, resource_group): response = self.client.interconnect_blocks.get( resource_group_name=resource_group.name, interconnect_block_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_interconnect_blocks_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_interconnect_blocks_begin_update(self, resource_group): resource_group_name=resource_group.name, interconnect_block_name="str", properties={"sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_interconnect_blocks_begin_delete(self, resource_group): response = self.client.interconnect_blocks.begin_delete( resource_group_name=resource_group.name, interconnect_block_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -110,7 +110,7 @@ def test_interconnect_blocks_begin_delete(self, resource_group): def test_interconnect_blocks_list_by_resource_group(self, resource_group): response = self.client.interconnect_blocks.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -120,7 +120,7 @@ def test_interconnect_blocks_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_interconnect_blocks_list_by_subscription(self, resource_group): response = self.client.interconnect_blocks.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations_async.py index 36a653e9b8b3..9e8ce90545a5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_interconnect_blocks_operations_async.py @@ -25,7 +25,7 @@ async def test_interconnect_blocks_get(self, resource_group): response = await self.client.interconnect_blocks.get( resource_group_name=resource_group.name, interconnect_block_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_interconnect_blocks_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_interconnect_blocks_begin_update(self, resource_group): resource_group_name=resource_group.name, interconnect_block_name="str", properties={"sku": {"capacity": 0, "name": "str", "tier": "str"}, "tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -105,7 +105,7 @@ async def test_interconnect_blocks_begin_delete(self, resource_group): await self.client.interconnect_blocks.begin_delete( resource_group_name=resource_group.name, interconnect_block_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -117,7 +117,7 @@ async def test_interconnect_blocks_begin_delete(self, resource_group): async def test_interconnect_blocks_list_by_resource_group(self, resource_group): response = self.client.interconnect_blocks.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -127,7 +127,7 @@ async def test_interconnect_blocks_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_interconnect_blocks_list_by_subscription(self, resource_group): response = self.client.interconnect_blocks.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py index a59119fbc62c..9a18cda8f3f3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py @@ -34,7 +34,7 @@ def test_log_analytics_begin_export_request_rate_by_interval(self, resource_grou "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -55,7 +55,7 @@ def test_log_analytics_begin_export_throttled_requests(self, resource_group): "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py index 673b47dba37e..cd3ef203f69a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py @@ -36,7 +36,7 @@ async def test_log_analytics_begin_export_request_rate_by_interval(self, resourc "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -59,7 +59,7 @@ async def test_log_analytics_begin_export_throttled_requests(self, resource_grou "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py index ab0181251851..cc643b3e27ea 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py index 7d2f0d2c481b..c7e148688225 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py index 5ee8f4941d6e..01384f6e9c80 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py @@ -24,7 +24,7 @@ def test_proximity_placement_groups_get(self, resource_group): response = self.client.proximity_placement_groups.get( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_proximity_placement_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -112,7 +112,7 @@ def test_proximity_placement_groups_update(self, resource_group): resource_group_name=resource_group.name, proximity_placement_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -124,7 +124,7 @@ def test_proximity_placement_groups_delete(self, resource_group): response = self.client.proximity_placement_groups.delete( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -135,7 +135,7 @@ def test_proximity_placement_groups_delete(self, resource_group): def test_proximity_placement_groups_list_by_resource_group(self, resource_group): response = self.client.proximity_placement_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -145,7 +145,7 @@ def test_proximity_placement_groups_list_by_resource_group(self, resource_group) @recorded_by_proxy def test_proximity_placement_groups_list_by_subscription(self, resource_group): response = self.client.proximity_placement_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py index c8c1aec585b5..b75d2d6fc281 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_proximity_placement_groups_get(self, resource_group): response = await self.client.proximity_placement_groups.get( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -100,7 +100,7 @@ async def test_proximity_placement_groups_create_or_update(self, resource_group) "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -113,7 +113,7 @@ async def test_proximity_placement_groups_update(self, resource_group): resource_group_name=resource_group.name, proximity_placement_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -125,7 +125,7 @@ async def test_proximity_placement_groups_delete(self, resource_group): response = await self.client.proximity_placement_groups.delete( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -136,7 +136,7 @@ async def test_proximity_placement_groups_delete(self, resource_group): async def test_proximity_placement_groups_list_by_resource_group(self, resource_group): response = self.client.proximity_placement_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -146,7 +146,7 @@ async def test_proximity_placement_groups_list_by_resource_group(self, resource_ @recorded_by_proxy_async async def test_proximity_placement_groups_list_by_subscription(self, resource_group): response = self.client.proximity_placement_groups.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py index 226a0801bc54..d77c9a1f6c0c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py @@ -24,7 +24,7 @@ def test_restore_point_collections_get(self, resource_group): response = self.client.restore_point_collections.get( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -83,6 +83,7 @@ def test_restore_point_collections_create_or_update(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -149,10 +150,18 @@ def test_restore_point_collections_create_or_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -169,6 +178,21 @@ def test_restore_point_collections_create_or_update(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -196,6 +220,21 @@ def test_restore_point_collections_create_or_update(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -239,7 +278,7 @@ def test_restore_point_collections_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -295,6 +334,7 @@ def test_restore_point_collections_update(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -361,10 +401,18 @@ def test_restore_point_collections_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -381,6 +429,21 @@ def test_restore_point_collections_update(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -408,6 +471,21 @@ def test_restore_point_collections_update(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -442,7 +520,7 @@ def test_restore_point_collections_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -454,7 +532,7 @@ def test_restore_point_collections_begin_delete(self, resource_group): response = self.client.restore_point_collections.begin_delete( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -465,7 +543,7 @@ def test_restore_point_collections_begin_delete(self, resource_group): def test_restore_point_collections_list(self, resource_group): response = self.client.restore_point_collections.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -475,7 +553,7 @@ def test_restore_point_collections_list(self, resource_group): @recorded_by_proxy def test_restore_point_collections_list_all(self, resource_group): response = self.client.restore_point_collections.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py index 757304ea0973..6b73bb41d381 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py @@ -25,7 +25,7 @@ async def test_restore_point_collections_get(self, resource_group): response = await self.client.restore_point_collections.get( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -84,6 +84,7 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -150,10 +151,18 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -170,6 +179,21 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -197,6 +221,21 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -240,7 +279,7 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -296,6 +335,7 @@ async def test_restore_point_collections_update(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -362,10 +402,18 @@ async def test_restore_point_collections_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -382,6 +430,21 @@ async def test_restore_point_collections_update(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -409,6 +472,21 @@ async def test_restore_point_collections_update(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -443,7 +521,7 @@ async def test_restore_point_collections_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -456,7 +534,7 @@ async def test_restore_point_collections_begin_delete(self, resource_group): await self.client.restore_point_collections.begin_delete( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -468,7 +546,7 @@ async def test_restore_point_collections_begin_delete(self, resource_group): async def test_restore_point_collections_list(self, resource_group): response = self.client.restore_point_collections.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -478,7 +556,7 @@ async def test_restore_point_collections_list(self, resource_group): @recorded_by_proxy_async async def test_restore_point_collections_list_all(self, resource_group): response = self.client.restore_point_collections.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py index cc841289fd9f..cc2cd1b76615 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py @@ -25,7 +25,7 @@ def test_restore_points_get(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -76,6 +76,7 @@ def test_restore_points_begin_create(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -135,10 +136,18 @@ def test_restore_points_begin_create(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -155,6 +164,21 @@ def test_restore_points_begin_create(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -182,6 +206,21 @@ def test_restore_points_begin_create(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -211,7 +250,7 @@ def test_restore_points_begin_create(self, resource_group): }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -224,7 +263,7 @@ def test_restore_points_begin_delete(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py index 7ee266aa432b..c0d5a75fc386 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py @@ -26,7 +26,7 @@ async def test_restore_points_get(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -78,6 +78,7 @@ async def test_restore_points_begin_create(self, resource_group): "sourceMetadata": { "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -142,10 +143,18 @@ async def test_restore_points_begin_create(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -162,6 +171,21 @@ async def test_restore_points_begin_create(self, resource_group): "diskSizeGB": 0, "lun": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -189,6 +213,21 @@ async def test_restore_points_begin_create(self, resource_group): "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, }, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -218,7 +257,7 @@ async def test_restore_points_begin_create(self, resource_group): }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -233,7 +272,7 @@ async def test_restore_points_begin_delete(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py index 7a8915e4aad8..d037987aca85 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py @@ -24,7 +24,7 @@ def test_ssh_public_keys_get(self, resource_group): response = self.client.ssh_public_keys.get( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_ssh_public_keys_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_ssh_public_keys_update(self, resource_group): resource_group_name=resource_group.name, ssh_public_key_name="str", parameters={"properties": {"publicKey": "str"}, "tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_ssh_public_keys_delete(self, resource_group): response = self.client.ssh_public_keys.delete( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_ssh_public_keys_delete(self, resource_group): def test_ssh_public_keys_list_by_resource_group(self, resource_group): response = self.client.ssh_public_keys.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -98,7 +98,7 @@ def test_ssh_public_keys_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_ssh_public_keys_list_by_subscription(self, resource_group): response = self.client.ssh_public_keys.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -110,7 +110,7 @@ def test_ssh_public_keys_generate_key_pair(self, resource_group): response = self.client.ssh_public_keys.generate_key_pair( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py index 0ade5fd0e1d9..f5d01b674c00 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py @@ -25,7 +25,7 @@ async def test_ssh_public_keys_get(self, resource_group): response = await self.client.ssh_public_keys.get( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_ssh_public_keys_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_ssh_public_keys_update(self, resource_group): resource_group_name=resource_group.name, ssh_public_key_name="str", parameters={"properties": {"publicKey": "str"}, "tags": {"str": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_ssh_public_keys_delete(self, resource_group): response = await self.client.ssh_public_keys.delete( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ async def test_ssh_public_keys_delete(self, resource_group): async def test_ssh_public_keys_list_by_resource_group(self, resource_group): response = self.client.ssh_public_keys.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -99,7 +99,7 @@ async def test_ssh_public_keys_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_ssh_public_keys_list_by_subscription(self, resource_group): response = self.client.ssh_public_keys.list_by_subscription( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -111,7 +111,7 @@ async def test_ssh_public_keys_generate_key_pair(self, resource_group): response = await self.client.ssh_public_keys.generate_key_pair( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py index 3bbf48538b3e..0ce8635cda80 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usage_list(self, resource_group): response = self.client.usage.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py index 315c51104779..1a18e9c56899 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usage_list(self, resource_group): response = self.client.usage.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations.py new file mode 100644 index 000000000000..144a16579cce --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations.py @@ -0,0 +1,181 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.compute import ComputeManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestComputeManagementVirtualMachineDiagnosticRunCommandsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ComputeManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_diagnostic_run_commands_get_by_virtual_machine(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.get_by_virtual_machine( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + api_version="2026-04-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_diagnostic_run_commands_begin_create_or_update(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.begin_create_or_update( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + run_command={ + "location": "str", + "id": "str", + "name": "str", + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_diagnostic_run_commands_begin_update(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.begin_update( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + run_command={ + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "tags": {"str": "str"}, + }, + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_diagnostic_run_commands_begin_delete(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.begin_delete( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.diagnostic_list_by_virtual_machine( + resource_group_name=resource_group.name, + vm_name="str", + api_version="2026-04-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations_async.py new file mode 100644 index 000000000000..3ec1a2c223bc --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_diagnostic_run_commands_operations_async.py @@ -0,0 +1,188 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.compute.aio import ComputeManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestComputeManagementVirtualMachineDiagnosticRunCommandsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ComputeManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_diagnostic_run_commands_get_by_virtual_machine(self, resource_group): + response = await self.client.virtual_machine_diagnostic_run_commands.get_by_virtual_machine( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + api_version="2026-04-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_diagnostic_run_commands_begin_create_or_update(self, resource_group): + response = await ( + await self.client.virtual_machine_diagnostic_run_commands.begin_create_or_update( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + run_command={ + "location": "str", + "id": "str", + "name": "str", + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_diagnostic_run_commands_begin_update(self, resource_group): + response = await ( + await self.client.virtual_machine_diagnostic_run_commands.begin_update( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + run_command={ + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "tags": {"str": "str"}, + }, + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_diagnostic_run_commands_begin_delete(self, resource_group): + response = await ( + await self.client.virtual_machine_diagnostic_run_commands.begin_delete( + resource_group_name=resource_group.name, + vm_name="str", + run_command_name="str", + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_diagnostic_run_commands_diagnostic_list_by_virtual_machine(self, resource_group): + response = self.client.virtual_machine_diagnostic_run_commands.diagnostic_list_by_virtual_machine( + resource_group_name=resource_group.name, + vm_name="str", + api_version="2026-04-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py index 0a47a08ddbc5..b7a0a614c4a6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py @@ -26,7 +26,7 @@ def test_virtual_machine_extension_images_get(self, resource_group): publisher_name="str", type="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_virtual_machine_extension_images_list_types(self, resource_group): response = self.client.virtual_machine_extension_images.list_types( location="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_virtual_machine_extension_images_list_versions(self, resource_group): location="str", publisher_name="str", type="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py index a9eaf3d85720..f4e2b114e710 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_machine_extension_images_get(self, resource_group): publisher_name="str", type="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_virtual_machine_extension_images_list_types(self, resource_group) response = await self.client.virtual_machine_extension_images.list_types( location="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_virtual_machine_extension_images_list_versions(self, resource_gro location="str", publisher_name="str", type="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py index d6bf4206bdd4..ff4235cfc58d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_virtual_machine_extensions_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -118,7 +118,7 @@ def test_virtual_machine_extensions_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -131,7 +131,7 @@ def test_virtual_machine_extensions_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -143,7 +143,7 @@ def test_virtual_machine_extensions_list(self, resource_group): response = self.client.virtual_machine_extensions.list( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py index b6c9f2ef932d..b1fe10c25787 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_virtual_machine_extensions_begin_create_or_update(self, resource_ "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -122,7 +122,7 @@ async def test_virtual_machine_extensions_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -137,7 +137,7 @@ async def test_virtual_machine_extensions_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -150,7 +150,7 @@ async def test_virtual_machine_extensions_list(self, resource_group): response = await self.client.virtual_machine_extensions.list( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py index 91666c622d74..b00d4c089b0b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py @@ -24,7 +24,7 @@ def test_virtual_machine_images_edge_zone_list_publishers(self, resource_group): response = self.client.virtual_machine_images_edge_zone.list_publishers( location="str", edge_zone="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_virtual_machine_images_edge_zone_list_offers(self, resource_group): location="str", edge_zone="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_virtual_machine_images_edge_zone_list_skus(self, resource_group): edge_zone="str", publisher_name="str", offer="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_virtual_machine_images_edge_zone_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_virtual_machine_images_edge_zone_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py index 0d05a686cc22..bcf679fc2256 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_machine_images_edge_zone_list_publishers(self, resource_g response = await self.client.virtual_machine_images_edge_zone.list_publishers( location="str", edge_zone="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_virtual_machine_images_edge_zone_list_offers(self, resource_group location="str", edge_zone="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_virtual_machine_images_edge_zone_list_skus(self, resource_group): edge_zone="str", publisher_name="str", offer="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_virtual_machine_images_edge_zone_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_virtual_machine_images_edge_zone_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py index 2d4ad683b1fb..a38fd950fd7e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py @@ -24,7 +24,7 @@ def test_virtual_machine_images_list_by_edge_zone(self, resource_group): response = self.client.virtual_machine_images.list_by_edge_zone( location="str", edge_zone="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -35,7 +35,7 @@ def test_virtual_machine_images_list_by_edge_zone(self, resource_group): def test_virtual_machine_images_list_publishers(self, resource_group): response = self.client.virtual_machine_images.list_publishers( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ def test_virtual_machine_images_list_offers(self, resource_group): response = self.client.virtual_machine_images.list_offers( location="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_virtual_machine_images_list_skus(self, resource_group): location="str", publisher_name="str", offer="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_virtual_machine_images_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_virtual_machine_images_list_with_properties(self, resource_group): offer="str", skus="str", expand="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_virtual_machine_images_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py index 10b1b215114e..decf626691cb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_machine_images_list_by_edge_zone(self, resource_group): response = await self.client.virtual_machine_images.list_by_edge_zone( location="str", edge_zone="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -36,7 +36,7 @@ async def test_virtual_machine_images_list_by_edge_zone(self, resource_group): async def test_virtual_machine_images_list_publishers(self, resource_group): response = await self.client.virtual_machine_images.list_publishers( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -48,7 +48,7 @@ async def test_virtual_machine_images_list_offers(self, resource_group): response = await self.client.virtual_machine_images.list_offers( location="str", publisher_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_virtual_machine_images_list_skus(self, resource_group): location="str", publisher_name="str", offer="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_virtual_machine_images_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ async def test_virtual_machine_images_list_with_properties(self, resource_group) offer="str", skus="str", expand="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_virtual_machine_images_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py index 100330eff94e..98b01d08c431 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_run_commands_get_by_virtual_machine(self, resource_grou resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ def test_virtual_machine_run_commands_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -149,7 +149,7 @@ def test_virtual_machine_run_commands_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -162,7 +162,7 @@ def test_virtual_machine_run_commands_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -174,7 +174,7 @@ def test_virtual_machine_run_commands_list_by_virtual_machine(self, resource_gro response = self.client.virtual_machine_run_commands.list_by_virtual_machine( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -185,7 +185,7 @@ def test_virtual_machine_run_commands_list_by_virtual_machine(self, resource_gro def test_virtual_machine_run_commands_list(self, resource_group): response = self.client.virtual_machine_run_commands.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -197,7 +197,7 @@ def test_virtual_machine_run_commands_get(self, resource_group): response = self.client.virtual_machine_run_commands.get( location="str", command_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py index ac1555a9120d..34fe4c55c7e8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_run_commands_get_by_virtual_machine(self, resourc resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -95,7 +95,7 @@ async def test_virtual_machine_run_commands_begin_create_or_update(self, resourc "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -153,7 +153,7 @@ async def test_virtual_machine_run_commands_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -168,7 +168,7 @@ async def test_virtual_machine_run_commands_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -181,7 +181,7 @@ async def test_virtual_machine_run_commands_list_by_virtual_machine(self, resour response = self.client.virtual_machine_run_commands.list_by_virtual_machine( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -192,7 +192,7 @@ async def test_virtual_machine_run_commands_list_by_virtual_machine(self, resour async def test_virtual_machine_run_commands_list(self, resource_group): response = self.client.virtual_machine_run_commands.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -204,7 +204,7 @@ async def test_virtual_machine_run_commands_get(self, resource_group): response = await self.client.virtual_machine_run_commands.get( location="str", command_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py index 80dad42ba0fe..757a905c3849 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_scale_set_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -57,7 +57,7 @@ def test_virtual_machine_scale_set_extensions_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_virtual_machine_scale_set_extensions_begin_update(self, resource_group) }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -102,7 +102,7 @@ def test_virtual_machine_scale_set_extensions_begin_delete(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_virtual_machine_scale_set_extensions_list(self, resource_group): response = self.client.virtual_machine_scale_set_extensions.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py index f61a7163e5d9..e0dc4745b066 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_set_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ async def test_virtual_machine_scale_set_extensions_begin_create_or_update(self, }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -93,7 +93,7 @@ async def test_virtual_machine_scale_set_extensions_begin_update(self, resource_ }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -108,7 +108,7 @@ async def test_virtual_machine_scale_set_extensions_begin_delete(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_virtual_machine_scale_set_extensions_list(self, resource_group): response = self.client.virtual_machine_scale_set_extensions.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations.py index 6edded97a0cb..36067d21d4c8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_scale_set_life_cycle_hook_events_get(self, resource_gro resource_group_name=resource_group.name, vm_scale_set_name="str", lifecycle_hook_event_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_virtual_machine_scale_set_life_cycle_hook_events_update(self, resource_ "waitUntil": "str", } }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_virtual_machine_scale_set_life_cycle_hook_events_list(self, resource_gr response = self.client.virtual_machine_scale_set_life_cycle_hook_events.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations_async.py index 707ffb454fb8..e1654407c881 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_life_cycle_hook_events_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_set_life_cycle_hook_events_get(self, resour resource_group_name=resource_group.name, vm_scale_set_name="str", lifecycle_hook_event_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_virtual_machine_scale_set_life_cycle_hook_events_update(self, res "waitUntil": "str", } }, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ async def test_virtual_machine_scale_set_life_cycle_hook_events_list(self, resou response = self.client.virtual_machine_scale_set_life_cycle_hook_events.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py index 0e8f4de52ea2..98f69dc6b9a3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -24,7 +24,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_start_extension_upgrad response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_extension_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -36,7 +36,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_start_os_upgrade(self, response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_os_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -48,7 +48,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_cancel(self, resource_ response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_cancel( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_get_latest(self, resource_gr response = self.client.virtual_machine_scale_set_rolling_upgrades.get_latest( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py index d88bbf6ebf09..5a686ec95ff6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_start_extension_ await self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_extension_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -40,7 +40,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_start_os_upgrade await self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_os_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +54,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_cancel(self, res await self.client.virtual_machine_scale_set_rolling_upgrades.begin_cancel( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_get_latest(self, resou response = await self.client.virtual_machine_scale_set_rolling_upgrades.get_latest( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations.py new file mode 100644 index 000000000000..0161fc241851 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations.py @@ -0,0 +1,186 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.compute import ComputeManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestComputeManagementVirtualMachineScaleSetVMDiagnosticRunCommandsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ComputeManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_set_vm_diagnostic_run_commands_get(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.get( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + api_version="2026-04-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_create_or_update(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_create_or_update( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + run_command={ + "location": "str", + "id": "str", + "name": "str", + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_update(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_update( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + run_command={ + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "tags": {"str": "str"}, + }, + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_delete(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_delete( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.diagnostic_list( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + api_version="2026-04-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations_async.py new file mode 100644 index 000000000000..f7441255df3b --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_diagnostic_run_commands_operations_async.py @@ -0,0 +1,193 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.compute.aio import ComputeManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestComputeManagementVirtualMachineScaleSetVMDiagnosticRunCommandsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ComputeManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_set_vm_diagnostic_run_commands_get(self, resource_group): + response = await self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.get( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + api_version="2026-04-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_create_or_update(self, resource_group): + response = await ( + await self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_create_or_update( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + run_command={ + "location": "str", + "id": "str", + "name": "str", + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_update(self, resource_group): + response = await ( + await self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_update( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + run_command={ + "properties": { + "asyncExecution": bool, + "errorBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "errorBlobUri": "str", + "instanceView": { + "endTime": "2020-02-20 00:00:00", + "error": "str", + "executionMessage": "str", + "executionState": "str", + "exitCode": 0, + "output": "str", + "startTime": "2020-02-20 00:00:00", + "statuses": [ + { + "code": "str", + "displayStatus": "str", + "level": "str", + "message": "str", + "time": "2020-02-20 00:00:00", + } + ], + }, + "outputBlobManagedIdentity": {"clientId": "str", "objectId": "str"}, + "outputBlobUri": "str", + "parameters": [{"name": "str", "value": "str"}], + "protectedParameters": [{"name": "str", "value": "str"}], + "provisioningState": "str", + "runAsPassword": "str", + "runAsUser": "str", + "source": { + "commandId": "str", + "galleryScriptReferenceId": "str", + "script": "str", + "scriptShell": "str", + "scriptUri": "str", + "scriptUriManagedIdentity": {"clientId": "str", "objectId": "str"}, + }, + "timeoutInSeconds": 0, + "treatFailureAsDeploymentFailure": bool, + }, + "tags": {"str": "str"}, + }, + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_set_vm_diagnostic_run_commands_begin_delete(self, resource_group): + response = await ( + await self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.begin_delete( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + run_command_name="str", + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_set_vm_diagnostic_run_commands_diagnostic_list(self, resource_group): + response = self.client.virtual_machine_scale_set_vm_diagnostic_run_commands.diagnostic_list( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + instance_id="str", + api_version="2026-04-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py index f7f7bb6e7bd1..55215521c784 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py @@ -26,7 +26,7 @@ def test_virtual_machine_scale_set_vm_extensions_get(self, resource_group): vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_create_or_update(self, re }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_update(self, resource_gro }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -128,7 +128,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_delete(self, resource_gro vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -141,7 +141,7 @@ def test_virtual_machine_scale_set_vm_extensions_list(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py index 770c7c2769bf..3f93e3c3e24f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_machine_scale_set_vm_extensions_get(self, resource_group) vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -85,7 +85,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_create_or_update(se }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -118,7 +118,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_update(self, resour }, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -134,7 +134,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_delete(self, resour vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -148,7 +148,7 @@ async def test_virtual_machine_scale_set_vm_extensions_list(self, resource_group resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py index bbfaa7851a19..065e3688c32c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py @@ -26,7 +26,7 @@ def test_virtual_machine_scale_set_vm_run_commands_get(self, resource_group): vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -95,7 +95,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_create_or_update(self, "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -152,7 +152,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_update(self, resource_g }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -166,7 +166,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_delete(self, resource_g vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -179,7 +179,7 @@ def test_virtual_machine_scale_set_vm_run_commands_list(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py index 65d5ba981420..ec24113eff2d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_get(self, resource_grou vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -97,7 +97,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_create_or_update( "tags": {"str": "str"}, "type": "str", }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -156,7 +156,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_update(self, reso }, "tags": {"str": "str"}, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -172,7 +172,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_delete(self, reso vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -186,7 +186,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_list(self, resource_gro resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py index 0e3e80243795..a61b7629c38f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_scale_set_vms_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -58,8 +58,16 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "ultraSSDEnabled": bool, }, "availabilitySet": {"id": "str"}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, - "hardwareProfile": {"vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSize": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "instanceView": { "assignedHost": "str", "bootDiagnostics": { @@ -73,6 +81,7 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -211,7 +220,13 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -265,7 +280,13 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPPrefix": {"id": "str"}, }, @@ -347,10 +368,18 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -369,6 +398,21 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -385,6 +429,7 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -409,6 +454,21 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -496,7 +556,7 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -509,7 +569,7 @@ def test_virtual_machine_scale_set_vms_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -521,7 +581,7 @@ def test_virtual_machine_scale_set_vms_list(self, resource_group): response = self.client.virtual_machine_scale_set_vms.list( resource_group_name=resource_group.name, virtual_machine_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -534,7 +594,7 @@ def test_virtual_machine_scale_set_vms_begin_approve_rolling_upgrade(self, resou resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -547,7 +607,7 @@ def test_virtual_machine_scale_set_vms_begin_deallocate(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -560,7 +620,7 @@ def test_virtual_machine_scale_set_vms_get_instance_view(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -573,7 +633,7 @@ def test_virtual_machine_scale_set_vms_begin_reimage(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -586,7 +646,7 @@ def test_virtual_machine_scale_set_vms_begin_reimage_all(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -599,7 +659,7 @@ def test_virtual_machine_scale_set_vms_simulate_eviction(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -625,7 +685,7 @@ def test_virtual_machine_scale_set_vms_begin_attach_detach_data_disks(self, reso ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -638,7 +698,7 @@ def test_virtual_machine_scale_set_vms_begin_perform_maintenance(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -651,7 +711,7 @@ def test_virtual_machine_scale_set_vms_begin_power_off(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -664,7 +724,7 @@ def test_virtual_machine_scale_set_vms_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -677,7 +737,7 @@ def test_virtual_machine_scale_set_vms_begin_restart(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -690,7 +750,7 @@ def test_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data(self, reso resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -703,7 +763,7 @@ def test_virtual_machine_scale_set_vms_begin_start(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -717,7 +777,7 @@ def test_virtual_machine_scale_set_vms_begin_run_command(self, resource_group): vm_scale_set_name="str", instance_id="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py index d70357fbc6b9..9e97df8fb198 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_set_vms_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -60,8 +60,13 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "ultraSSDEnabled": bool, }, "availabilitySet": {"id": "str"}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -78,6 +83,7 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -219,7 +225,13 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -278,7 +290,13 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPPrefix": {"id": "str"}, }, @@ -360,10 +378,18 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -382,6 +408,21 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -398,6 +439,7 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -422,6 +464,21 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -509,7 +566,7 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -524,7 +581,7 @@ async def test_virtual_machine_scale_set_vms_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -537,7 +594,7 @@ async def test_virtual_machine_scale_set_vms_list(self, resource_group): response = self.client.virtual_machine_scale_set_vms.list( resource_group_name=resource_group.name, virtual_machine_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -551,7 +608,7 @@ async def test_virtual_machine_scale_set_vms_begin_approve_rolling_upgrade(self, resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -566,7 +623,7 @@ async def test_virtual_machine_scale_set_vms_begin_deallocate(self, resource_gro resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -580,7 +637,7 @@ async def test_virtual_machine_scale_set_vms_get_instance_view(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -594,7 +651,7 @@ async def test_virtual_machine_scale_set_vms_begin_reimage(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -609,7 +666,7 @@ async def test_virtual_machine_scale_set_vms_begin_reimage_all(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -623,7 +680,7 @@ async def test_virtual_machine_scale_set_vms_simulate_eviction(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -650,7 +707,7 @@ async def test_virtual_machine_scale_set_vms_begin_attach_detach_data_disks(self ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -665,7 +722,7 @@ async def test_virtual_machine_scale_set_vms_begin_perform_maintenance(self, res resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -680,7 +737,7 @@ async def test_virtual_machine_scale_set_vms_begin_power_off(self, resource_grou resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -695,7 +752,7 @@ async def test_virtual_machine_scale_set_vms_begin_redeploy(self, resource_group resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -710,7 +767,7 @@ async def test_virtual_machine_scale_set_vms_begin_restart(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -724,7 +781,7 @@ async def test_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data(self resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -738,7 +795,7 @@ async def test_virtual_machine_scale_set_vms_begin_start(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -754,7 +811,7 @@ async def test_virtual_machine_scale_set_vms_begin_run_command(self, resource_gr vm_scale_set_name="str", instance_id="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py index 12d8df7b7d2b..384489fc7547 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -24,7 +25,7 @@ def test_virtual_machine_scale_sets_get(self, resource_group): response = self.client.virtual_machine_scale_sets.get( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -144,7 +145,10 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) ] }, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionProfile": { @@ -174,7 +178,10 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) ], "extensionsTimeBudget": "str", }, - "hardwareProfile": {"vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "interconnectBlockProfile": {"interconnectBlock": {"id": "str"}}, "licenseType": "str", "networkProfile": { @@ -207,7 +214,13 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPPrefix": {"id": "str"}, }, @@ -292,10 +305,18 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -312,6 +333,21 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "diskMBpsReadWrite": 0, "diskSizeGB": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -324,6 +360,7 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -343,6 +380,21 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -376,7 +428,7 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -486,7 +538,10 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): ], "extensionsTimeBudget": "str", }, - "hardwareProfile": {"vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "interconnectBlockProfile": {"interconnectBlock": {"id": "str"}}, "licenseType": "str", "networkProfile": { @@ -595,10 +650,18 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -614,6 +677,21 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "diskMBpsReadWrite": 0, "diskSizeGB": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -626,6 +704,7 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -644,6 +723,21 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -664,7 +758,7 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -676,7 +770,7 @@ def test_virtual_machine_scale_sets_begin_delete(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_delete( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -687,7 +781,7 @@ def test_virtual_machine_scale_sets_begin_delete(self, resource_group): def test_virtual_machine_scale_sets_list(self, resource_group): response = self.client.virtual_machine_scale_sets.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -697,7 +791,7 @@ def test_virtual_machine_scale_sets_list(self, resource_group): @recorded_by_proxy def test_virtual_machine_scale_sets_list_all(self, resource_group): response = self.client.virtual_machine_scale_sets.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -709,7 +803,7 @@ def test_virtual_machine_scale_sets_begin_approve_rolling_upgrade(self, resource response = self.client.virtual_machine_scale_sets.begin_approve_rolling_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -722,7 +816,7 @@ def test_virtual_machine_scale_sets_convert_to_single_placement_group(self, reso resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"activePlacementGroupId": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -734,7 +828,7 @@ def test_virtual_machine_scale_sets_begin_deallocate(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_deallocate( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -747,7 +841,7 @@ def test_virtual_machine_scale_sets_begin_delete_instances(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -760,7 +854,7 @@ def test_virtual_machine_scale_sets_force_recovery_service_fabric_platform_updat resource_group_name=resource_group.name, vm_scale_set_name="str", platform_update_domain=0, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -772,7 +866,7 @@ def test_virtual_machine_scale_sets_get_instance_view(self, resource_group): response = self.client.virtual_machine_scale_sets.get_instance_view( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -785,7 +879,7 @@ def test_virtual_machine_scale_sets_begin_update_instances(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -797,7 +891,7 @@ def test_virtual_machine_scale_sets_get_os_upgrade_history(self, resource_group) response = self.client.virtual_machine_scale_sets.get_os_upgrade_history( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -809,7 +903,7 @@ def test_virtual_machine_scale_sets_begin_perform_maintenance(self, resource_gro response = self.client.virtual_machine_scale_sets.begin_perform_maintenance( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -821,7 +915,7 @@ def test_virtual_machine_scale_sets_begin_power_off(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_power_off( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -833,7 +927,7 @@ def test_virtual_machine_scale_sets_begin_reapply(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reapply( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -845,7 +939,7 @@ def test_virtual_machine_scale_sets_begin_redeploy(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_redeploy( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -857,7 +951,7 @@ def test_virtual_machine_scale_sets_begin_reimage(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reimage( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -869,7 +963,7 @@ def test_virtual_machine_scale_sets_begin_reimage_all(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reimage_all( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -881,7 +975,7 @@ def test_virtual_machine_scale_sets_begin_restart(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_restart( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -894,7 +988,7 @@ def test_virtual_machine_scale_sets_begin_set_orchestration_service_state(self, resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"action": "str", "serviceName": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -906,7 +1000,7 @@ def test_virtual_machine_scale_sets_list_skus(self, resource_group): response = self.client.virtual_machine_scale_sets.list_skus( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -918,7 +1012,7 @@ def test_virtual_machine_scale_sets_begin_start(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_start( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -931,7 +1025,20 @@ def test_virtual_machine_scale_sets_begin_scale_out(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"capacity": 0, "properties": {"zone": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_scale_sets_begin_migrate_vm_availability_zone(self, resource_group): + response = self.client.virtual_machine_scale_sets.begin_migrate_vm_availability_zone( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + body={"instanceIds": ["str"], "targetZone": "str"}, + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -942,7 +1049,7 @@ def test_virtual_machine_scale_sets_begin_scale_out(self, resource_group): def test_virtual_machine_scale_sets_list_by_location(self, resource_group): response = self.client.virtual_machine_scale_sets.list_by_location( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py index 2c1c99d02626..ba3d90ce2137 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_sets_get(self, resource_group): response = await self.client.virtual_machine_scale_sets.get( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -149,7 +149,10 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ ] }, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionProfile": { @@ -179,7 +182,10 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ ], "extensionsTimeBudget": "str", }, - "hardwareProfile": {"vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "interconnectBlockProfile": {"interconnectBlock": {"id": "str"}}, "licenseType": "str", "networkProfile": { @@ -212,7 +218,13 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPPrefix": {"id": "str"}, }, @@ -306,10 +318,18 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -326,6 +346,21 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "diskMBpsReadWrite": 0, "diskSizeGB": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -338,6 +373,7 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -361,6 +397,21 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -394,7 +445,7 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -508,7 +559,10 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): ], "extensionsTimeBudget": "str", }, - "hardwareProfile": {"vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "interconnectBlockProfile": {"interconnectBlock": {"id": "str"}}, "licenseType": "str", "networkProfile": { @@ -626,10 +680,18 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -645,6 +707,21 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "diskMBpsReadWrite": 0, "diskSizeGB": 0, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -657,6 +734,7 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -679,6 +757,21 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "securityProfile": { "diskEncryptionSet": {"id": "str"}, @@ -699,7 +792,7 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -713,7 +806,7 @@ async def test_virtual_machine_scale_sets_begin_delete(self, resource_group): await self.client.virtual_machine_scale_sets.begin_delete( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -725,7 +818,7 @@ async def test_virtual_machine_scale_sets_begin_delete(self, resource_group): async def test_virtual_machine_scale_sets_list(self, resource_group): response = self.client.virtual_machine_scale_sets.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -735,7 +828,7 @@ async def test_virtual_machine_scale_sets_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_machine_scale_sets_list_all(self, resource_group): response = self.client.virtual_machine_scale_sets.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -748,7 +841,7 @@ async def test_virtual_machine_scale_sets_begin_approve_rolling_upgrade(self, re await self.client.virtual_machine_scale_sets.begin_approve_rolling_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -762,7 +855,7 @@ async def test_virtual_machine_scale_sets_convert_to_single_placement_group(self resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"activePlacementGroupId": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -775,7 +868,7 @@ async def test_virtual_machine_scale_sets_begin_deallocate(self, resource_group) await self.client.virtual_machine_scale_sets.begin_deallocate( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -790,7 +883,7 @@ async def test_virtual_machine_scale_sets_begin_delete_instances(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -807,7 +900,7 @@ async def test_virtual_machine_scale_sets_force_recovery_service_fabric_platform resource_group_name=resource_group.name, vm_scale_set_name="str", platform_update_domain=0, - api_version="2026-03-01", + api_version="2026-04-01", ) ) @@ -820,7 +913,7 @@ async def test_virtual_machine_scale_sets_get_instance_view(self, resource_group response = await self.client.virtual_machine_scale_sets.get_instance_view( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -834,7 +927,7 @@ async def test_virtual_machine_scale_sets_begin_update_instances(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -847,7 +940,7 @@ async def test_virtual_machine_scale_sets_get_os_upgrade_history(self, resource_ response = self.client.virtual_machine_scale_sets.get_os_upgrade_history( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -860,7 +953,7 @@ async def test_virtual_machine_scale_sets_begin_perform_maintenance(self, resour await self.client.virtual_machine_scale_sets.begin_perform_maintenance( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -874,7 +967,7 @@ async def test_virtual_machine_scale_sets_begin_power_off(self, resource_group): await self.client.virtual_machine_scale_sets.begin_power_off( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -888,7 +981,7 @@ async def test_virtual_machine_scale_sets_begin_reapply(self, resource_group): await self.client.virtual_machine_scale_sets.begin_reapply( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -902,7 +995,7 @@ async def test_virtual_machine_scale_sets_begin_redeploy(self, resource_group): await self.client.virtual_machine_scale_sets.begin_redeploy( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -916,7 +1009,7 @@ async def test_virtual_machine_scale_sets_begin_reimage(self, resource_group): await self.client.virtual_machine_scale_sets.begin_reimage( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -930,7 +1023,7 @@ async def test_virtual_machine_scale_sets_begin_reimage_all(self, resource_group await self.client.virtual_machine_scale_sets.begin_reimage_all( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -944,7 +1037,7 @@ async def test_virtual_machine_scale_sets_begin_restart(self, resource_group): await self.client.virtual_machine_scale_sets.begin_restart( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -959,7 +1052,7 @@ async def test_virtual_machine_scale_sets_begin_set_orchestration_service_state( resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"action": "str", "serviceName": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -972,7 +1065,7 @@ async def test_virtual_machine_scale_sets_list_skus(self, resource_group): response = self.client.virtual_machine_scale_sets.list_skus( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -985,7 +1078,7 @@ async def test_virtual_machine_scale_sets_begin_start(self, resource_group): await self.client.virtual_machine_scale_sets.begin_start( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1000,7 +1093,22 @@ async def test_virtual_machine_scale_sets_begin_scale_out(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"capacity": 0, "properties": {"zone": "str"}}, - api_version="2026-03-01", + api_version="2026-04-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_scale_sets_begin_migrate_vm_availability_zone(self, resource_group): + response = await ( + await self.client.virtual_machine_scale_sets.begin_migrate_vm_availability_zone( + resource_group_name=resource_group.name, + vm_scale_set_name="str", + body={"instanceIds": ["str"], "targetZone": "str"}, + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1012,7 +1120,7 @@ async def test_virtual_machine_scale_sets_begin_scale_out(self, resource_group): async def test_virtual_machine_scale_sets_list_by_location(self, resource_group): response = self.client.virtual_machine_scale_sets.list_by_location( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py index 576f76d9d8ff..5eee3d359e14 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_machine_sizes_list(self, resource_group): response = self.client.virtual_machine_sizes.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py index 9675f87cc95e..21188c49382c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_machine_sizes_list(self, resource_group): response = self.client.virtual_machine_sizes.list( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py index 4396355ba42c..816e90638ed6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py @@ -25,7 +25,7 @@ def test_virtual_machines_get(self, resource_group): response = self.client.virtual_machines.get( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -72,11 +72,18 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): }, "availabilitySet": {"id": "str"}, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionsTimeBudget": "str", - "hardwareProfile": {"vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSize": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "host": {"id": "str"}, "hostGroup": {"id": "str"}, "instanceView": { @@ -92,6 +99,7 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -274,7 +282,13 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -373,10 +387,18 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -395,6 +417,21 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -411,6 +448,7 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -435,6 +473,21 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -521,7 +574,7 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -561,11 +614,18 @@ def test_virtual_machines_begin_update(self, resource_group): }, "availabilitySet": {"id": "str"}, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionsTimeBudget": "str", - "hardwareProfile": {"vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}}, + "hardwareProfile": { + "processorMode": "str", + "vmSize": "str", + "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, + }, "host": {"id": "str"}, "hostGroup": {"id": "str"}, "instanceView": { @@ -581,6 +641,7 @@ def test_virtual_machines_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -763,7 +824,13 @@ def test_virtual_machines_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -862,10 +929,18 @@ def test_virtual_machines_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -884,6 +959,21 @@ def test_virtual_machines_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -900,6 +990,7 @@ def test_virtual_machines_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -924,6 +1015,21 @@ def test_virtual_machines_begin_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -947,7 +1053,7 @@ def test_virtual_machines_begin_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -959,7 +1065,7 @@ def test_virtual_machines_begin_delete(self, resource_group): response = self.client.virtual_machines.begin_delete( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -970,7 +1076,7 @@ def test_virtual_machines_begin_delete(self, resource_group): def test_virtual_machines_list(self, resource_group): response = self.client.virtual_machines.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -980,7 +1086,7 @@ def test_virtual_machines_list(self, resource_group): @recorded_by_proxy def test_virtual_machines_list_all(self, resource_group): response = self.client.virtual_machines.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -992,7 +1098,7 @@ def test_virtual_machines_begin_assess_patches(self, resource_group): response = self.client.virtual_machines.begin_assess_patches( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1017,7 +1123,7 @@ def test_virtual_machines_begin_attach_detach_data_disks(self, resource_group): ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1030,7 +1136,7 @@ def test_virtual_machines_begin_capture(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"destinationContainerName": "str", "overwriteVhds": bool, "vhdPrefix": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1042,7 +1148,7 @@ def test_virtual_machines_begin_convert_to_managed_disks(self, resource_group): response = self.client.virtual_machines.begin_convert_to_managed_disks( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1054,7 +1160,7 @@ def test_virtual_machines_begin_deallocate(self, resource_group): response = self.client.virtual_machines.begin_deallocate( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1066,7 +1172,7 @@ def test_virtual_machines_generalize(self, resource_group): response = self.client.virtual_machines.generalize( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1097,7 +1203,7 @@ def test_virtual_machines_begin_install_patches(self, resource_group): "patchNameMasksToInclude": ["str"], }, }, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1109,7 +1215,7 @@ def test_virtual_machines_instance_view(self, resource_group): response = self.client.virtual_machines.instance_view( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1121,7 +1227,7 @@ def test_virtual_machines_begin_perform_maintenance(self, resource_group): response = self.client.virtual_machines.begin_perform_maintenance( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1133,7 +1239,7 @@ def test_virtual_machines_begin_power_off(self, resource_group): response = self.client.virtual_machines.begin_power_off( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1145,7 +1251,7 @@ def test_virtual_machines_begin_reapply(self, resource_group): response = self.client.virtual_machines.begin_reapply( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1157,7 +1263,7 @@ def test_virtual_machines_begin_redeploy(self, resource_group): response = self.client.virtual_machines.begin_redeploy( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1169,7 +1275,7 @@ def test_virtual_machines_begin_reimage(self, resource_group): response = self.client.virtual_machines.begin_reimage( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1181,7 +1287,7 @@ def test_virtual_machines_begin_restart(self, resource_group): response = self.client.virtual_machines.begin_restart( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1193,7 +1299,7 @@ def test_virtual_machines_retrieve_boot_diagnostics_data(self, resource_group): response = self.client.virtual_machines.retrieve_boot_diagnostics_data( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1205,7 +1311,7 @@ def test_virtual_machines_simulate_eviction(self, resource_group): response = self.client.virtual_machines.simulate_eviction( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1217,7 +1323,7 @@ def test_virtual_machines_begin_start(self, resource_group): response = self.client.virtual_machines.begin_start( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1229,7 +1335,7 @@ def test_virtual_machines_list_available_sizes(self, resource_group): response = self.client.virtual_machines.list_available_sizes( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -1242,7 +1348,7 @@ def test_virtual_machines_begin_run_command(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1254,7 +1360,7 @@ def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_group): response = self.client.virtual_machines.begin_migrate_to_vm_scale_set( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1265,7 +1371,7 @@ def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_group): def test_virtual_machines_list_by_location(self, resource_group): response = self.client.virtual_machines.list_by_location( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py index 3fa42df09cbc..a3c7cf10b107 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machines_get(self, resource_group): response = await self.client.virtual_machines.get( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -74,11 +74,15 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): }, "availabilitySet": {"id": "str"}, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionsTimeBudget": "str", "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -97,6 +101,7 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -282,7 +287,13 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -383,10 +394,18 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -405,6 +424,21 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -421,6 +455,7 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -445,6 +480,21 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -531,7 +581,7 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -573,11 +623,15 @@ async def test_virtual_machines_begin_update(self, resource_group): }, "availabilitySet": {"id": "str"}, "billingProfile": {"maxPrice": 0.0}, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, + "capacityReservation": { + "capacityReservationGroup": {"id": "str"}, + "disableCapacityReservationAssignment": bool, + }, "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, "evictionPolicy": "str", "extensionsTimeBudget": "str", "hardwareProfile": { + "processorMode": "str", "vmSize": "str", "vmSizeProperties": {"vCPUsAvailable": 0, "vCPUsPerCore": 0}, }, @@ -596,6 +650,7 @@ async def test_virtual_machines_begin_update(self, resource_group): "time": "2020-02-20 00:00:00", }, }, + "capacityReservationType": "str", "computerName": "str", "disks": [ { @@ -781,7 +836,13 @@ async def test_virtual_machines_begin_update(self, resource_group): "domainNameLabelScope": "str", }, "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "publicIPAddressVersion": "str", "publicIPAllocationMethod": "str", "publicIPPrefix": {"id": "str"}, @@ -882,10 +943,18 @@ async def test_virtual_machines_begin_update(self, resource_group): "proxyAgentSettings": { "addProxyAgentExtension": bool, "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "imds": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, "keyIncarnationId": 0, "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "wireServer": { + "inVMAccessControlProfileReferenceId": "str", + "mode": "str", + "useLocalFileRules": bool, + }, }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, @@ -904,6 +973,21 @@ async def test_virtual_machines_begin_update(self, resource_group): "diskSizeGB": 0, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -920,6 +1004,7 @@ async def test_virtual_machines_begin_update(self, resource_group): "writeAcceleratorEnabled": bool, } ], + "diskApiVersion": "str", "diskControllerType": "str", "imageReference": { "communityGalleryImageId": "str", @@ -944,6 +1029,21 @@ async def test_virtual_machines_begin_update(self, resource_group): }, "image": {"uri": "str"}, "managedDisk": { + "additionalDiskProperties": { + "managedDiskProperties": { + "availabilityPolicy": {"actionOnDiskDelay": "str"}, + "burstingEnabled": bool, + "diskAccessId": "str", + "diskIOPSReadOnly": 0, + "diskMBpsReadOnly": 0, + "logicalSectorSize": 0, + "maxShares": 0, + "networkAccessPolicy": "str", + "optimizedForFrequentAttach": bool, + "performancePlus": bool, + "tier": "str", + } + }, "diskEncryptionSet": {"id": "str"}, "id": "str", "securityProfile": { @@ -967,7 +1067,7 @@ async def test_virtual_machines_begin_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -981,7 +1081,7 @@ async def test_virtual_machines_begin_delete(self, resource_group): await self.client.virtual_machines.begin_delete( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -993,7 +1093,7 @@ async def test_virtual_machines_begin_delete(self, resource_group): async def test_virtual_machines_list(self, resource_group): response = self.client.virtual_machines.list( resource_group_name=resource_group.name, - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -1003,7 +1103,7 @@ async def test_virtual_machines_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_machines_list_all(self, resource_group): response = self.client.virtual_machines.list_all( - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -1016,7 +1116,7 @@ async def test_virtual_machines_begin_assess_patches(self, resource_group): await self.client.virtual_machines.begin_assess_patches( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1043,7 +1143,7 @@ async def test_virtual_machines_begin_attach_detach_data_disks(self, resource_gr ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1058,7 +1158,7 @@ async def test_virtual_machines_begin_capture(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"destinationContainerName": "str", "overwriteVhds": bool, "vhdPrefix": "str"}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1072,7 +1172,7 @@ async def test_virtual_machines_begin_convert_to_managed_disks(self, resource_gr await self.client.virtual_machines.begin_convert_to_managed_disks( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1086,7 +1186,7 @@ async def test_virtual_machines_begin_deallocate(self, resource_group): await self.client.virtual_machines.begin_deallocate( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1099,7 +1199,7 @@ async def test_virtual_machines_generalize(self, resource_group): response = await self.client.virtual_machines.generalize( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1131,7 +1231,7 @@ async def test_virtual_machines_begin_install_patches(self, resource_group): "patchNameMasksToInclude": ["str"], }, }, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1144,7 +1244,7 @@ async def test_virtual_machines_instance_view(self, resource_group): response = await self.client.virtual_machines.instance_view( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1157,7 +1257,7 @@ async def test_virtual_machines_begin_perform_maintenance(self, resource_group): await self.client.virtual_machines.begin_perform_maintenance( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1171,7 +1271,7 @@ async def test_virtual_machines_begin_power_off(self, resource_group): await self.client.virtual_machines.begin_power_off( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1185,7 +1285,7 @@ async def test_virtual_machines_begin_reapply(self, resource_group): await self.client.virtual_machines.begin_reapply( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1199,7 +1299,7 @@ async def test_virtual_machines_begin_redeploy(self, resource_group): await self.client.virtual_machines.begin_redeploy( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1213,7 +1313,7 @@ async def test_virtual_machines_begin_reimage(self, resource_group): await self.client.virtual_machines.begin_reimage( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1227,7 +1327,7 @@ async def test_virtual_machines_begin_restart(self, resource_group): await self.client.virtual_machines.begin_restart( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1240,7 +1340,7 @@ async def test_virtual_machines_retrieve_boot_diagnostics_data(self, resource_gr response = await self.client.virtual_machines.retrieve_boot_diagnostics_data( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1252,7 +1352,7 @@ async def test_virtual_machines_simulate_eviction(self, resource_group): response = await self.client.virtual_machines.simulate_eviction( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) # please add some check logic here by yourself @@ -1265,7 +1365,7 @@ async def test_virtual_machines_begin_start(self, resource_group): await self.client.virtual_machines.begin_start( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1278,7 +1378,7 @@ async def test_virtual_machines_list_available_sizes(self, resource_group): response = self.client.virtual_machines.list_available_sizes( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -1292,7 +1392,7 @@ async def test_virtual_machines_begin_run_command(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1306,7 +1406,7 @@ async def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_gro await self.client.virtual_machines.begin_migrate_to_vm_scale_set( resource_group_name=resource_group.name, vm_name="str", - api_version="2026-03-01", + api_version="2026-04-01", ) ).result() # call '.result()' to poll until service return final result @@ -1318,7 +1418,7 @@ async def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_gro async def test_virtual_machines_list_by_location(self, resource_group): response = self.client.virtual_machines.list_by_location( location="str", - api_version="2026-03-01", + api_version="2026-04-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/tsp-location.yaml b/sdk/compute/azure-mgmt-compute/tsp-location.yaml index b24776124c47..d169f298e2d5 100644 --- a/sdk/compute/azure-mgmt-compute/tsp-location.yaml +++ b/sdk/compute/azure-mgmt-compute/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/compute/resource-manager/Microsoft.Compute/Compute -commit: 3afe65f7239e0e1f26202c75d960266adddb1eeb +commit: f033bb63819c74607f4086c49ae7b07a22c35f78 repo: Azure/azure-rest-api-specs additionalDirectories: From 9bc9a3c25aa378521092e336acb4b85aab399fa1 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Thu, 13 Aug 2026 10:53:04 +0800 Subject: [PATCH 2/2] update --- sdk/compute/azure-mgmt-compute/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/compute/azure-mgmt-compute/CHANGELOG.md b/sdk/compute/azure-mgmt-compute/CHANGELOG.md index 7daa487a42e7..43479ee06102 100644 --- a/sdk/compute/azure-mgmt-compute/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-compute/CHANGELOG.md @@ -50,8 +50,8 @@ - Added enum `VirtualMachineDiskDelayAction` - Added enum `VirtualMachineDiskNetworkAccessPolicy` - Added model `VirtualMachineDiskProperties` - - Model `VirtualMachineExtensionImagesOperations` added parameter `expand` in method `list_versions` - - Model `VirtualMachineScaleSetsOperations` added method `begin_migrate_vm_availability_zone` + - Operation group `VirtualMachineExtensionImagesOperations` added parameter `expand` in method `list_versions` + - Operation group `VirtualMachineScaleSetsOperations` added method `begin_migrate_vm_availability_zone` - Added operation group `VirtualMachineDiagnosticRunCommandsOperations` - Added operation group `VirtualMachineScaleSetVMDiagnosticRunCommandsOperations`