ArmComputeBulkActionsModelFactory.HardwareProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the hardware profile for the virtual machine.
public static Azure.ResourceManager.Compute.BulkActions.Models.HardwareProfile HardwareProfile(string vmSize = default, Azure.ResourceManager.Compute.BulkActions.Models.VmSizeProperties vmSizeProperties = default);
static member HardwareProfile : string * Azure.ResourceManager.Compute.BulkActions.Models.VmSizeProperties -> Azure.ResourceManager.Compute.BulkActions.Models.HardwareProfile
Public Shared Function HardwareProfile (Optional vmSize As String = Nothing, Optional vmSizeProperties As VmSizeProperties = Nothing) As HardwareProfile
Parameters
- vmSize
- String
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, List all available virtual machine sizes in a region, List all available virtual machine sizes for resizing. For more information about virtual machine sizes, see Sizes for virtual machines. The available VM sizes depend on region and availability set.
- vmSizeProperties
- 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.
Returns
A new HardwareProfile instance for mocking.