diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_create.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_create.py
index 1e06462a675..97f8497a752 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_create.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_create.py
@@ -19,13 +19,13 @@ class Create(AAZCommand):
"""Create an Azure Compute Fleet
:example: Fleets_CreateOrUpdate
- az compute-fleet create --resource-group rgazurefleet --fleet-name testFleet --spot-priority-profile "{capacity:20,min-capacity:10,max-price-per-vm:0.00865,eviction-policy:Delete,allocation-strategy:PriceCapacityOptimized,maintain:True}" --regular-priority-profile "{capacity:20,min-capacity:10,allocation-strategy:LowestPrice}" --vm-sizes-profile "[{name:Standard_d1_v2,rank:19225}]" --compute-profile "{base-virtual-machine-profile:{osProfile:{computerNamePrefix:o,adminUsername:nrgzqciiaaxjrqldbmjbqkyhntp,adminPassword:adfbrdxpv,customData:xjjib,windowsConfiguration:{provisionVMAgent:True,enableAutomaticUpdates:True,timeZone:hlyjiqcfksgrpjrct,additionalUnattendContent:[{passName:OobeSystem,componentName:Microsoft-Windows-Shell-Setup,settingName:AutoLogon,content:bubmqbxjkj}],patchSettings:{patchMode:Manual,enableHotpatching:True,assessmentMode:ImageDefault,automaticByPlatformSettings:{rebootSetting:Unknown,bypassPlatformSafetyChecksOnUserSchedule:True}},winRM:{listeners:[{protocol:Https,certificateUrl:'https://myVaultName.vault.azure.net/secrets/myCertName'}]},enableVMAgentPlatformUpdates:True},linuxConfiguration:{disablePasswordAuthentication:True,ssh:{publicKeys:[{path:kmqz,keyData:kivgsubusvpprwqaqpjcmhsv}]},provisionVMAgent:True,patchSettings:{patchMode:ImageDefault,assessmentMode:ImageDefault,automaticByPlatformSettings:{rebootSetting:Unknown,bypassPlatformSafetyChecksOnUserSchedule:True}},enableVMAgentPlatformUpdates:True},secrets:[{sourceVault:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'},vaultCertificates:[{certificateUrl:'https://myVaultName.vault.azure.net/secrets/myCertName',certificateStore:nlxrwavpzhueffxsshlun}]}],allowExtensionOperations:True,requireGuestProvisionSignal:True},storageProfile:{imageReference:{publisher:mqxgwbiyjzmxavhbkd,offer:isxgumkarlkomp,sku:eojmppqcrnpmxirtp,version:wvpcqefgtmqdgltiuz,sharedGalleryImageId:kmkgihoxwlawuuhcinfirktdwkmx,communityGalleryImageId:vlqe,id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}'},osDisk:{name:wfttw,caching:None,writeAcceleratorEnabled:True,createOption:FromImage,diffDiskSettings:{option:Local,placement:CacheDisk},diskSizeGB:14,osType:Windows,image:{uri:'https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd'},vhdContainers:[tkzcwddtinkfpnfklatw],managedDisk:{storageAccountType:Standard_LRS,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'},securityProfile:{securityEncryptionType:VMGuestStateOnly,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'}}},deleteOption:Delete},dataDisks:[{name:eogiykmdmeikswxmigjws,lun:14,caching:None,writeAcceleratorEnabled:True,createOption:FromImage,diskSizeGB:6,managedDisk:{storageAccountType:Standard_LRS,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'},securityProfile:{securityEncryptionType:VMGuestStateOnly,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'}}},diskIOPSReadWrite:27,diskMBpsReadWrite:2,deleteOption:Delete}],diskControllerType:uzb},networkProfile:{healthProbe:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'},networkInterfaceConfigurations:[{name:i,properties:{primary:True,enableAcceleratedNetworking:True,disableTcpStateTracking:True,enableFpga:True,networkSecurityGroup:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'},dnsSettings:{dnsServers:[nxmmfolhclsesu]},ipConfigurations:[{name:oezqhkidfhyywlfzwuotilrpbqnjg,properties:{subnet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}'},primary:True,publicIPAddressConfiguration:{name:fvpqf,properties:{idleTimeoutInMinutes:9,dnsSettings:{domainNameLabel:ukrddzvmorpmfsczjwtbvp,domainNameLabelScope:TenantReuse},ipTags:[{ipTagType:sddgsoemnzgqizale,tag:wufmhrjsakbiaetyara}],publicIPPrefix:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}'},publicIPAddressVersion:IPv4,deleteOption:Delete},sku:{name:Basic,tier:Regional}},privateIPAddressVersion:IPv4,applicationGatewayBackendAddressPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}'}],applicationSecurityGroups:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'}],loadBalancerBackendAddressPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'}],loadBalancerInboundNatPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}'}]}}],enableIPForwarding:True,deleteOption:Delete,auxiliaryMode:None,auxiliarySku:None}}],networkApiVersion:2020-11-01},securityProfile:{uefiSettings:{secureBootEnabled:True,vTpmEnabled:True},encryptionAtHost:True,securityType:TrustedLaunch,encryptionIdentity:{userAssignedIdentityResourceId:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}'},proxyAgentSettings:{enabled:True,mode:Audit,keyIncarnationId:20}},diagnosticsProfile:{bootDiagnostics:{enabled:True,storageUri:'http://myStorageAccountName.blob.core.windows.net'}},extensionProfile:{extensions:[{name:bndxuxx,properties:{forceUpdateTag:yhgxw,publisher:kpxtirxjfprhs,type:pgjilctjjwaa,typeHandlerVersion:zevivcoilxmbwlrihhhibq,autoUpgradeMinorVersion:True,enableAutomaticUpgrade:True,settings:{},protectedSettings:{},provisionAfterExtensions:[nftzosroolbcwmpupujzqwqe],suppressFailures:True,protectedSettingsFromKeyVault:{secretUrl:'https://myvaultName.vault.azure.net/secrets/secret/mySecretName',sourceVault:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'}}}}],extensionsTimeBudget:mbhjahtdygwgyszdwjtvlvtgchdwil},licenseType:v,scheduledEventsProfile:{terminateNotificationProfile:{notBeforeTimeout:iljppmmw,enable:True},osImageNotificationProfile:{notBeforeTimeout:olbpadmevekyczfokodtfprxti,enable:True}},userData:s,capacityReservation:{capacityReservationGroup:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'}},applicationProfile:{galleryApplications:[{tags:eyrqjbib,order:5,packageReferenceId:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}',configurationReference:ulztmiavpojpbpbddgnuuiimxcpau,treatFailureAsDeploymentFailure:True,enableAutomaticUpgrade:True}]},hardwareProfile:{vmSizeProperties:{vCPUsAvailable:16,vCPUsPerCore:23}},serviceArtifactReference:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}'},securityPostureReference:{id:'/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest',excludeExtensions:['{securityPostureVMExtensionName}'],isOverridable:True}},compute-api-version:2023-07-01,platform-fault-domain-count:1}" --zones "[zone1,zone2]" --identity "{type:UserAssigned,user-assigned-identities:{key9851:{}}}" --tags "{key3518:luvrnuvsgdpbuofdskkcoqhfh}" --location westus --plan "{name:jwgrcrnrtfoxn,publisher:iozjbiqqckqm,product:cgopbyvdyqikahwyxfpzwaqk,promotion-code:naglezezplcaruqogtxnuizslqnnbr,version:wa}"
+ az compute-fleet create --resource-group rgazurefleet --fleet-name testFleet --mode "Launch" --vm-name-prefix "testPrefix" --spot-priority-profile "{capacity:20,min-capacity:10,max-price-per-vm:0.00865,eviction-policy:Delete,allocation-strategy:PriceCapacityOptimized,maintain:True}" --regular-priority-profile "{capacity:20,min-capacity:10,allocation-strategy:LowestPrice}" --vm-sizes-profile "[{name:Standard_d1_v2,rank:19225}]" --compute-profile "{base-virtual-machine-profile:{osProfile:{computerNamePrefix:o,adminUsername:nrgzqciiaaxjrqldbmjbqkyhntp,adminPassword:adfbrdxpv,customData:xjjib,windowsConfiguration:{provisionVMAgent:True,enableAutomaticUpdates:True,timeZone:hlyjiqcfksgrpjrct,additionalUnattendContent:[{passName:OobeSystem,componentName:Microsoft-Windows-Shell-Setup,settingName:AutoLogon,content:bubmqbxjkj}],patchSettings:{patchMode:Manual,enableHotpatching:True,assessmentMode:ImageDefault,automaticByPlatformSettings:{rebootSetting:Unknown,bypassPlatformSafetyChecksOnUserSchedule:True}},winRM:{listeners:[{protocol:Https,certificateUrl:'https://myVaultName.vault.azure.net/secrets/myCertName'}]},enableVMAgentPlatformUpdates:True},linuxConfiguration:{disablePasswordAuthentication:True,ssh:{publicKeys:[{path:kmqz,keyData:kivgsubusvpprwqaqpjcmhsv}]},provisionVMAgent:True,patchSettings:{patchMode:ImageDefault,assessmentMode:ImageDefault,automaticByPlatformSettings:{rebootSetting:Unknown,bypassPlatformSafetyChecksOnUserSchedule:True}},enableVMAgentPlatformUpdates:True},secrets:[{sourceVault:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'},vaultCertificates:[{certificateUrl:'https://myVaultName.vault.azure.net/secrets/myCertName',certificateStore:nlxrwavpzhueffxsshlun}]}],allowExtensionOperations:True,requireGuestProvisionSignal:True},storageProfile:{imageReference:{publisher:mqxgwbiyjzmxavhbkd,offer:isxgumkarlkomp,sku:eojmppqcrnpmxirtp,version:wvpcqefgtmqdgltiuz,sharedGalleryImageId:kmkgihoxwlawuuhcinfirktdwkmx,communityGalleryImageId:vlqe,id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}'},osDisk:{name:wfttw,caching:None,writeAcceleratorEnabled:True,createOption:FromImage,diffDiskSettings:{option:Local,placement:CacheDisk},diskSizeGB:14,osType:Windows,image:{uri:'https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd'},vhdContainers:[tkzcwddtinkfpnfklatw],managedDisk:{storageAccountType:Standard_LRS,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'},securityProfile:{securityEncryptionType:VMGuestStateOnly,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'}}},deleteOption:Delete},dataDisks:[{name:eogiykmdmeikswxmigjws,lun:14,caching:None,writeAcceleratorEnabled:True,createOption:FromImage,diskSizeGB:6,managedDisk:{storageAccountType:Standard_LRS,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'},securityProfile:{securityEncryptionType:VMGuestStateOnly,diskEncryptionSet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}'}}},diskIOPSReadWrite:27,diskMBpsReadWrite:2,deleteOption:Delete}],diskControllerType:uzb},networkProfile:{healthProbe:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'},networkInterfaceConfigurations:[{name:i,properties:{primary:True,enableAcceleratedNetworking:True,disableTcpStateTracking:True,enableFpga:True,networkSecurityGroup:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'},dnsSettings:{dnsServers:[nxmmfolhclsesu]},ipConfigurations:[{name:oezqhkidfhyywlfzwuotilrpbqnjg,properties:{subnet:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}'},primary:True,publicIPAddressConfiguration:{name:fvpqf,properties:{idleTimeoutInMinutes:9,dnsSettings:{domainNameLabel:ukrddzvmorpmfsczjwtbvp,domainNameLabelScope:TenantReuse},ipTags:[{ipTagType:sddgsoemnzgqizale,tag:wufmhrjsakbiaetyara}],publicIPPrefix:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}'},publicIPAddressVersion:IPv4,deleteOption:Delete},sku:{name:Basic,tier:Regional}},privateIPAddressVersion:IPv4,applicationGatewayBackendAddressPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}'}],applicationSecurityGroups:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'}],loadBalancerBackendAddressPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'}],loadBalancerInboundNatPools:[{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}'}]}}],enableIPForwarding:True,deleteOption:Delete,auxiliaryMode:None,auxiliarySku:None}}],networkApiVersion:2020-11-01},securityProfile:{uefiSettings:{secureBootEnabled:True,vTpmEnabled:True},encryptionAtHost:True,securityType:TrustedLaunch,encryptionIdentity:{userAssignedIdentityResourceId:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}'},proxyAgentSettings:{enabled:True,mode:Audit,keyIncarnationId:20}},diagnosticsProfile:{bootDiagnostics:{enabled:True,storageUri:'http://myStorageAccountName.blob.core.windows.net'}},extensionProfile:{extensions:[{name:bndxuxx,properties:{forceUpdateTag:yhgxw,publisher:kpxtirxjfprhs,type:pgjilctjjwaa,typeHandlerVersion:zevivcoilxmbwlrihhhibq,autoUpgradeMinorVersion:True,enableAutomaticUpgrade:True,settings:{},protectedSettings:{},provisionAfterExtensions:[nftzosroolbcwmpupujzqwqe],suppressFailures:True,protectedSettingsFromKeyVault:{secretUrl:'https://myvaultName.vault.azure.net/secrets/secret/mySecretName',sourceVault:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}'}}}}],extensionsTimeBudget:mbhjahtdygwgyszdwjtvlvtgchdwil},licenseType:v,scheduledEventsProfile:{terminateNotificationProfile:{notBeforeTimeout:iljppmmw,enable:True},osImageNotificationProfile:{notBeforeTimeout:olbpadmevekyczfokodtfprxti,enable:True}},userData:s,capacityReservation:{capacityReservationGroup:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'}},applicationProfile:{galleryApplications:[{tags:eyrqjbib,order:5,packageReferenceId:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}',configurationReference:ulztmiavpojpbpbddgnuuiimxcpau,treatFailureAsDeploymentFailure:True,enableAutomaticUpgrade:True}]},hardwareProfile:{vmSizeProperties:{vCPUsAvailable:16,vCPUsPerCore:23}},serviceArtifactReference:{id:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}'},securityPostureReference:{id:'/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest',excludeExtensions:['{securityPostureVMExtensionName}'],isOverridable:True}},compute-api-version:2023-07-01,platform-fault-domain-count:1}" --zones "[zone1,zone2]" --identity "{type:UserAssigned,user-assigned-identities:{key9851:{}}}" --tags "{key3518:luvrnuvsgdpbuofdskkcoqhfh}" --location westus --plan "{name:jwgrcrnrtfoxn,publisher:iozjbiqqckqm,product:cgopbyvdyqikahwyxfpzwaqk,promotion-code:naglezezplcaruqogtxnuizslqnnbr,version:wa}"
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01"],
]
}
@@ -111,11 +111,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Properties",
help="List of VM sizes supported for Compute Fleet",
)
- _args_schema.zone_allocation_policy = AAZObjectArg(
- options=["--zone-allocation-policy"],
- arg_group="Properties",
- help="Zone Allocation Policy for Fleet.",
- )
additional_locations_profile = cls._args_schema.additional_locations_profile
additional_locations_profile.location_profiles = AAZListArg(
@@ -372,36 +367,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
- zone_allocation_policy = cls._args_schema.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrArg(
- options=["distribution-strategy"],
- help="Distribution strategy used for zone allocation policy.",
- required=True,
- enum={"BestEffortSingleZone": "BestEffortSingleZone", "Prioritized": "Prioritized"},
- )
- zone_allocation_policy.zone_preferences = AAZListArg(
- options=["zone-preferences"],
- help="Zone preferences, required when zone distribution strategy is Prioritized.",
- )
-
- zone_preferences = cls._args_schema.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectArg()
-
- _element = cls._args_schema.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntArg(
- options=["rank"],
- help="The rank of the zone. This is used with 'Prioritized' ZoneDistributionStrategy. The lower the number, the higher the priority, starting with 0. 0 is the highest rank. If not specified, defaults to lowest rank.",
- fmt=AAZIntArgFormat(
- maximum=65535,
- minimum=0,
- ),
- )
- _element.zone = AAZStrArg(
- options=["zone"],
- help="Name of the zone.",
- required=True,
- )
-
# define Arg Group "Resource"
_args_schema = cls._args_schema
@@ -979,8 +944,8 @@ def _build_args_base_virtual_machine_profile_create(cls, _schema):
options=["admin-password"],
help="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 fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)",
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Please provide VMSS password:",
+ confirm=True),
)
os_profile.admin_username = AAZStrArg(
options=["admin-username"],
@@ -998,8 +963,8 @@ def _build_args_base_virtual_machine_profile_create(cls, _schema):
options=["custom-data"],
help="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](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init)",
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Please enter VM Password:",
+ confirm=True),
)
os_profile.linux_configuration = AAZObjectArg(
options=["linux-configuration"],
@@ -1156,8 +1121,7 @@ def _build_args_base_virtual_machine_profile_create(cls, _schema):
options=["content"],
help="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.",
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Password:"),
)
_element.pass_name = AAZStrArg(
options=["pass-name"],
@@ -1737,7 +1701,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -1803,7 +1767,6 @@ def content(self):
properties.set_prop("vmAttributes", AAZObjectType, ".vm_attributes")
properties.set_prop("vmNamePrefix", AAZStrType, ".vm_name_prefix")
properties.set_prop("vmSizesProfile", AAZListType, ".vm_sizes_profile", typ_kwargs={"flags": {"required": True}})
- properties.set_prop("zoneAllocationPolicy", AAZObjectType, ".zone_allocation_policy")
additional_locations_profile = _builder.get(".properties.additionalLocationsProfile")
if additional_locations_profile is not None:
@@ -1905,20 +1868,6 @@ def content(self):
_elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("rank", AAZIntType, ".rank")
- zone_allocation_policy = _builder.get(".properties.zoneAllocationPolicy")
- if zone_allocation_policy is not None:
- zone_allocation_policy.set_prop("distributionStrategy", AAZStrType, ".distribution_strategy", typ_kwargs={"flags": {"required": True}})
- zone_allocation_policy.set_prop("zonePreferences", AAZListType, ".zone_preferences")
-
- zone_preferences = _builder.get(".properties.zoneAllocationPolicy.zonePreferences")
- if zone_preferences is not None:
- zone_preferences.set_elements(AAZObjectType, ".")
-
- _elements = _builder.get(".properties.zoneAllocationPolicy.zonePreferences[]")
- if _elements is not None:
- _elements.set_prop("rank", AAZIntType, ".rank")
- _elements.set_prop("zone", AAZStrType, ".zone", typ_kwargs={"flags": {"required": True}})
-
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
@@ -2057,9 +2006,6 @@ def _build_schema_on_200_201(cls):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = cls._schema_on_200_201.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -2231,24 +2177,6 @@ def _build_schema_on_200_201(cls):
)
_element.rank = AAZIntType()
- zone_allocation_policy = cls._schema_on_200_201.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = cls._schema_on_200_201.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = cls._schema_on_200_201.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = cls._schema_on_200_201.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_delete.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_delete.py
index 65a66ad77e1..95182fe25f2 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_delete.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_delete.py
@@ -24,9 +24,9 @@ class Delete(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01"],
]
}
@@ -147,7 +147,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list.py
index 8f799465a65..05fda04ad3d 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list.py
@@ -23,10 +23,10 @@ class List(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurefleet/fleets", "2026-04-01-preview"],
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurefleet/fleets", "2026-08-01"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets", "2026-08-01"],
]
}
@@ -52,12 +52,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
def _execute_operations(self):
self.pre_operations()
- condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id)
- condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True
+ condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True
+ condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id)
if condition_0:
- self.FleetsListByResourceGroup(ctx=self.ctx)()
- if condition_1:
self.FleetsListBySubscription(ctx=self.ctx)()
+ if condition_1:
+ self.FleetsListByResourceGroup(ctx=self.ctx)()
self.post_operations()
@register_callback
@@ -73,7 +73,7 @@ def _output(self, *args, **kwargs):
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
return result, next_link
- class FleetsListByResourceGroup(AAZHttpOperation):
+ class FleetsListBySubscription(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
@@ -87,7 +87,7 @@ def __call__(self, *args, **kwargs):
@property
def url(self):
return self.client.format_url(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureFleet/fleets",
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets",
**self.url_parameters
)
@@ -102,10 +102,6 @@ def error_format(self):
@property
def url_parameters(self):
parameters = {
- **self.serialize_url_param(
- "resourceGroupName", self.ctx.args.resource_group,
- required=True,
- ),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
@@ -117,7 +113,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -271,9 +267,6 @@ def _build_schema_on_200(cls):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = cls._schema_on_200.value.Element.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -445,24 +438,6 @@ def _build_schema_on_200(cls):
)
_element.rank = AAZIntType()
- zone_allocation_policy = cls._schema_on_200.value.Element.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = cls._schema_on_200.value.Element.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = cls._schema_on_200.value.Element.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
@@ -491,7 +466,7 @@ def _build_schema_on_200(cls):
return cls._schema_on_200
- class FleetsListBySubscription(AAZHttpOperation):
+ class FleetsListByResourceGroup(AAZHttpOperation):
CLIENT_TYPE = "MgmtClient"
def __call__(self, *args, **kwargs):
@@ -505,7 +480,7 @@ def __call__(self, *args, **kwargs):
@property
def url(self):
return self.client.format_url(
- "/subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureFleet/fleets",
**self.url_parameters
)
@@ -520,6 +495,10 @@ def error_format(self):
@property
def url_parameters(self):
parameters = {
+ **self.serialize_url_param(
+ "resourceGroupName", self.ctx.args.resource_group,
+ required=True,
+ ),
**self.serialize_url_param(
"subscriptionId", self.ctx.subscription_id,
required=True,
@@ -531,7 +510,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -685,9 +664,6 @@ def _build_schema_on_200(cls):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = cls._schema_on_200.value.Element.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -859,24 +835,6 @@ def _build_schema_on_200(cls):
)
_element.rank = AAZIntType()
- zone_allocation_policy = cls._schema_on_200.value.Element.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = cls._schema_on_200.value.Element.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = cls._schema_on_200.value.Element.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vms.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vms.py
index 5359791aef1..53082b09ece 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vms.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vms.py
@@ -22,9 +22,9 @@ class ListVms(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}/virtualmachines", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}/virtualmachines", "2026-08-01"],
]
}
@@ -138,7 +138,7 @@ def query_parameters(self):
"$skiptoken", self.ctx.args.skiptoken,
),
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -195,9 +195,19 @@ def _build_schema_on_200(cls):
serialized_name="operationStatus",
flags={"read_only": True},
)
+ _element.priority = AAZStrType(
+ flags={"read_only": True},
+ )
_element.type = AAZStrType(
flags={"read_only": True},
)
+ _element.vm_size = AAZStrType(
+ serialized_name="vmSize",
+ flags={"read_only": True},
+ )
+ _element.zone = AAZStrType(
+ flags={"read_only": True},
+ )
error = cls._schema_on_200.value.Element.error
error.code = AAZStrType()
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vmss.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vmss.py
index 1ee7976855a..39aaa80bab6 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vmss.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_list_vmss.py
@@ -23,9 +23,9 @@ class ListVmss(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}/virtualmachinescalesets", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}/virtualmachinescalesets", "2026-08-01"],
]
}
@@ -125,7 +125,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_show.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_show.py
index af8f467f321..8e3b5b454bd 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_show.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_show.py
@@ -23,9 +23,9 @@ class Show(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01"],
]
}
@@ -124,7 +124,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -267,9 +267,6 @@ def _build_schema_on_200(cls):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = cls._schema_on_200.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -441,24 +438,6 @@ def _build_schema_on_200(cls):
)
_element.rank = AAZIntType()
- zone_allocation_policy = cls._schema_on_200.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = cls._schema_on_200.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = cls._schema_on_200.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_update.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_update.py
index 96e2636c321..280934d1b63 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_update.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_update.py
@@ -23,9 +23,9 @@ class Update(AAZCommand):
"""
_aaz_info = {
- "version": "2026-04-01-preview",
+ "version": "2026-08-01",
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01"],
]
}
@@ -121,12 +121,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Properties",
help="List of VM sizes supported for Compute Fleet",
)
- _args_schema.zone_allocation_policy = AAZObjectArg(
- options=["--zone-allocation-policy"],
- arg_group="Properties",
- help="Zone Allocation Policy for Fleet.",
- nullable=True,
- )
additional_locations_profile = cls._args_schema.additional_locations_profile
additional_locations_profile.location_profiles = AAZListArg(
@@ -417,38 +411,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
- zone_allocation_policy = cls._args_schema.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrArg(
- options=["distribution-strategy"],
- help="Distribution strategy used for zone allocation policy.",
- enum={"BestEffortSingleZone": "BestEffortSingleZone", "Prioritized": "Prioritized"},
- )
- zone_allocation_policy.zone_preferences = AAZListArg(
- options=["zone-preferences"],
- help="Zone preferences, required when zone distribution strategy is Prioritized.",
- nullable=True,
- )
-
- zone_preferences = cls._args_schema.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectArg(
- nullable=True,
- )
-
- _element = cls._args_schema.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntArg(
- options=["rank"],
- help="The rank of the zone. This is used with 'Prioritized' ZoneDistributionStrategy. The lower the number, the higher the priority, starting with 0. 0 is the highest rank. If not specified, defaults to lowest rank.",
- nullable=True,
- fmt=AAZIntArgFormat(
- maximum=65535,
- minimum=0,
- ),
- )
- _element.zone = AAZStrArg(
- options=["zone"],
- help="Name of the zone.",
- )
-
# define Arg Group "Resource"
_args_schema = cls._args_schema
@@ -1113,8 +1075,8 @@ def _build_args_base_virtual_machine_profile_update(cls, _schema):
help="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 fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)",
nullable=True,
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Please provide VMSS password:",
+ confirm=True),
)
os_profile.admin_username = AAZStrArg(
options=["admin-username"],
@@ -1136,8 +1098,8 @@ def _build_args_base_virtual_machine_profile_update(cls, _schema):
help="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](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init)",
nullable=True,
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Please enter VM Password:",
+ confirm=True),
)
os_profile.linux_configuration = AAZObjectArg(
options=["linux-configuration"],
@@ -1332,8 +1294,7 @@ def _build_args_base_virtual_machine_profile_update(cls, _schema):
help="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.",
nullable=True,
blank=AAZPromptPasswordInput(
- msg="VM Admin Password",
- confirm=True),
+ msg="Password:"),
)
_element.pass_name = AAZStrArg(
options=["pass-name"],
@@ -1996,7 +1957,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -2095,7 +2056,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -2187,7 +2148,6 @@ def _update_instance(self, instance):
properties.set_prop("vmAttributes", AAZObjectType, ".vm_attributes")
properties.set_prop("vmNamePrefix", AAZStrType, ".vm_name_prefix")
properties.set_prop("vmSizesProfile", AAZListType, ".vm_sizes_profile", typ_kwargs={"flags": {"required": True}})
- properties.set_prop("zoneAllocationPolicy", AAZObjectType, ".zone_allocation_policy")
additional_locations_profile = _builder.get(".properties.additionalLocationsProfile")
if additional_locations_profile is not None:
@@ -2289,20 +2249,6 @@ def _update_instance(self, instance):
_elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}})
_elements.set_prop("rank", AAZIntType, ".rank")
- zone_allocation_policy = _builder.get(".properties.zoneAllocationPolicy")
- if zone_allocation_policy is not None:
- zone_allocation_policy.set_prop("distributionStrategy", AAZStrType, ".distribution_strategy", typ_kwargs={"flags": {"required": True}})
- zone_allocation_policy.set_prop("zonePreferences", AAZListType, ".zone_preferences")
-
- zone_preferences = _builder.get(".properties.zoneAllocationPolicy.zonePreferences")
- if zone_preferences is not None:
- zone_preferences.set_elements(AAZObjectType, ".")
-
- _elements = _builder.get(".properties.zoneAllocationPolicy.zonePreferences[]")
- if _elements is not None:
- _elements.set_prop("rank", AAZIntType, ".rank")
- _elements.set_prop("zone", AAZStrType, ".zone", typ_kwargs={"flags": {"required": True}})
-
tags = _builder.get(".tags")
if tags is not None:
tags.set_elements(AAZStrType, ".")
@@ -3672,9 +3618,6 @@ def _build_schema_fleet_read(cls, _schema):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = _schema_fleet_read.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -3846,24 +3789,6 @@ def _build_schema_fleet_read(cls, _schema):
)
_element.rank = AAZIntType()
- zone_allocation_policy = _schema_fleet_read.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = _schema_fleet_read.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = _schema_fleet_read.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = _schema_fleet_read.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_wait.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_wait.py
index f76c958eced..43308a28a87 100644
--- a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_wait.py
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/_wait.py
@@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):
_aaz_info = {
"resources": [
- ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-04-01-preview"],
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01"],
]
}
@@ -119,7 +119,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
- "api-version", "2026-04-01-preview",
+ "api-version", "2026-08-01",
required=True,
),
}
@@ -262,9 +262,6 @@ def _build_schema_on_200(cls):
serialized_name="vmSizesProfile",
flags={"required": True},
)
- properties.zone_allocation_policy = AAZObjectType(
- serialized_name="zoneAllocationPolicy",
- )
additional_locations_profile = cls._schema_on_200.properties.additional_locations_profile
additional_locations_profile.location_profiles = AAZListType(
@@ -436,24 +433,6 @@ def _build_schema_on_200(cls):
)
_element.rank = AAZIntType()
- zone_allocation_policy = cls._schema_on_200.properties.zone_allocation_policy
- zone_allocation_policy.distribution_strategy = AAZStrType(
- serialized_name="distributionStrategy",
- flags={"required": True},
- )
- zone_allocation_policy.zone_preferences = AAZListType(
- serialized_name="zonePreferences",
- )
-
- zone_preferences = cls._schema_on_200.properties.zone_allocation_policy.zone_preferences
- zone_preferences.Element = AAZObjectType()
-
- _element = cls._schema_on_200.properties.zone_allocation_policy.zone_preferences.Element
- _element.rank = AAZIntType()
- _element.zone = AAZStrType(
- flags={"required": True},
- )
-
system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__cmd_group.py
new file mode 100644
index 00000000000..eff974d7e14
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__cmd_group.py
@@ -0,0 +1,23 @@
+# --------------------------------------------------------------------------------------------
+# 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 aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_command_group(
+ "compute-fleet identity",
+)
+class __CMDGroup(AAZCommandGroup):
+ """Manage Identity
+ """
+ pass
+
+
+__all__ = ["__CMDGroup"]
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__init__.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__init__.py
new file mode 100644
index 00000000000..3a074471e35
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/__init__.py
@@ -0,0 +1,15 @@
+# --------------------------------------------------------------------------------------------
+# 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 aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from .__cmd_group import *
+from ._assign import *
+from ._remove import *
+from ._show import *
+from ._wait import *
diff --git a/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_assign.py b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_assign.py
new file mode 100644
index 00000000000..0f60afab6ed
--- /dev/null
+++ b/src/azure-cli/azure/cli/command_modules/computefleet/aaz/latest/compute_fleet/identity/_assign.py
@@ -0,0 +1,1510 @@
+# --------------------------------------------------------------------------------------------
+# 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 aaz-dev-tools
+# --------------------------------------------------------------------------------------------
+
+# pylint: skip-file
+# flake8: noqa
+
+from azure.cli.core.aaz import *
+
+
+@register_command(
+ "compute-fleet identity assign",
+)
+class Assign(AAZCommand):
+ """Assign the user or system managed identities.
+
+ :example: Assign a system-assigned managed identity to a Compute Fleet.
+ az compute-fleet identity assign --resource-group MyResourceGroup --fleet-name MyFleet --system-assigned
+
+ :example: Assign a user-assigned managed identity to a Compute Fleet without waiting for the operation to finish.
+ az compute-fleet identity assign --resource-group MyResourceGroup --fleet-name MyFleet --user-assigned MyIdentityResourceId --no-wait
+ """
+
+ _aaz_info = {
+ "version": "2026-08-01",
+ "resources": [
+ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurefleet/fleets/{}", "2026-08-01", "identity"],
+ ]
+ }
+
+ AZ_SUPPORT_NO_WAIT = True
+
+ def _handler(self, command_args):
+ super()._handler(command_args)
+ self.SubresourceSelector(ctx=self.ctx, name="subresource")
+ return self.build_lro_poller(self._execute_operations, self._output)
+
+ _args_schema = None
+
+ @classmethod
+ def _build_arguments_schema(cls, *args, **kwargs):
+ if cls._args_schema is not None:
+ return cls._args_schema
+ cls._args_schema = super()._build_arguments_schema(*args, **kwargs)
+
+ # define Arg Group ""
+
+ _args_schema = cls._args_schema
+ _args_schema.fleet_name = AAZStrArg(
+ options=["-n", "--name", "--fleet-name"],
+ help="The name of the Compute Fleet",
+ required=True,
+ fmt=AAZStrArgFormat(
+ pattern="^[^_\\W][\\w\\-._]{0,79}(?