The Convert-AzAvailabilitySet cmdlet creates a new Flexible Virtual Machine Scale Set and migrates all the Virtual Machines in the Availability Set to it. This operation does not trigger a downtime on the Virtual Machines.
This feature requires the subscription to be enabled for the feature flag Microsoft.Compute/MigrateToVmssFlex.
Examples
Example 1: Convert an Availability Set to a Virtual Machine Scale Set
This command converts the availability set named MyAvailabilitySet in the resource group MyResourceGroup to a new Flexible Virtual Machine Scale Set named MyScaleSet.
Example 2: Convert an Availability Set with NoWait
Starts the operation and returns immediately, before the operation is completed. In order to determine if the operation has successfully been completed, use some other mechanism.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.