ArmComputeModelFactory.VirtualMachineScaleSetVmData 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.
Initializes a new instance of VirtualMachineScaleSetVmData.
public static Azure.ResourceManager.Compute.VirtualMachineScaleSetVmData VirtualMachineScaleSetVmData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string instanceId = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, Azure.ResourceManager.Compute.Models.ComputePlan plan = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.VirtualMachineExtensionData> resources = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, string etag = default, bool? latestModelApplied = default, string vmId = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmInstanceView instanceView = default, Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile hardwareProfile = default, Azure.ResourceManager.Compute.Models.VirtualMachineStorageProfile storageProfile = default, Azure.ResourceManager.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Azure.ResourceManager.Compute.Models.VirtualMachineOSProfile osProfile = default, Azure.ResourceManager.Compute.Models.SecurityProfile securityProfile = default, Azure.ResourceManager.Compute.Models.VirtualMachineNetworkProfile networkProfile = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetNetworkConfiguration> networkInterfaceConfigurations = default, Azure.ResourceManager.Compute.Models.BootDiagnostics bootDiagnostics = default, Azure.Core.ResourceIdentifier availabilitySetId = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProtectionPolicy protectionPolicy = default, string userData = default, DateTimeOffset? timeCreated = default);
static member VirtualMachineScaleSetVmData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Azure.ResourceManager.Compute.Models.ComputeSku * Azure.ResourceManager.Compute.Models.ComputePlan * seq<Azure.ResourceManager.Compute.VirtualMachineExtensionData> * seq<string> * Azure.ResourceManager.Models.ManagedServiceIdentity * string * Nullable<bool> * string * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmInstanceView * Azure.ResourceManager.Compute.Models.VirtualMachineHardwareProfile * Azure.ResourceManager.Compute.Models.VirtualMachineStorageProfile * Azure.ResourceManager.Compute.Models.AdditionalCapabilities * Azure.ResourceManager.Compute.Models.VirtualMachineOSProfile * Azure.ResourceManager.Compute.Models.SecurityProfile * Azure.ResourceManager.Compute.Models.VirtualMachineNetworkProfile * seq<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetNetworkConfiguration> * Azure.ResourceManager.Compute.Models.BootDiagnostics * Azure.Core.ResourceIdentifier * string * string * string * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProtectionPolicy * string * Nullable<DateTimeOffset> -> Azure.ResourceManager.Compute.VirtualMachineScaleSetVmData
Public Shared Function VirtualMachineScaleSetVmData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional instanceId As String = Nothing, Optional sku As ComputeSku = Nothing, Optional plan As ComputePlan = Nothing, Optional resources As IEnumerable(Of VirtualMachineExtensionData) = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional etag As String = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVmInstanceView = Nothing, Optional hardwareProfile As VirtualMachineHardwareProfile = Nothing, Optional storageProfile As VirtualMachineStorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As VirtualMachineOSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As VirtualMachineNetworkProfile = Nothing, Optional networkInterfaceConfigurations As IEnumerable(Of VirtualMachineScaleSetNetworkConfiguration) = Nothing, Optional bootDiagnostics As BootDiagnostics = Nothing, Optional availabilitySetId As ResourceIdentifier = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVmProtectionPolicy = Nothing, Optional userData As String = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing) As VirtualMachineScaleSetVmData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- instanceId
- String
The virtual machine instance ID.
- sku
- ComputeSku
The virtual machine SKU.
- plan
- ComputePlan
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 image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
- resources
- IEnumerable<VirtualMachineExtensionData>
The virtual machine child extension resources.
- zones
- IEnumerable<String>
The virtual machine zones.
- identity
- ManagedServiceIdentity
The identity of the virtual machine, if configured.
- etag
- String
Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates.
Specifies whether the latest model has been applied to the virtual machine.
- vmId
- String
Azure VM unique ID.
- instanceView
- VirtualMachineScaleSetVmInstanceView
The virtual machine instance view.
- hardwareProfile
- VirtualMachineHardwareProfile
Specifies the hardware settings for the virtual machine.
- storageProfile
- VirtualMachineStorageProfile
Specifies the storage settings for the virtual machine disks.
- additionalCapabilities
- 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.
- osProfile
- VirtualMachineOSProfile
Specifies the operating system settings for the virtual machine.
- securityProfile
- SecurityProfile
Specifies the Security related profile settings for the virtual machine.
- networkProfile
- VirtualMachineNetworkProfile
Specifies the network interfaces of the virtual machine.
- networkInterfaceConfigurations
- IEnumerable<VirtualMachineScaleSetNetworkConfiguration>
Specifies the network profile configuration of the virtual machine.
- bootDiagnostics
- BootDiagnostics
Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
- availabilitySetId
- ResourceIdentifier
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. For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure. Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
- provisioningState
- String
The provisioning state, which only appears in the response.
- licenseType
- String
Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15.
- modelDefinitionApplied
- String
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.
- protectionPolicy
- VirtualMachineScaleSetVmProtectionPolicy
Specifies the protection policy of the virtual machine.
- userData
- String
UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01.
- timeCreated
- Nullable<DateTimeOffset>
Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01.
Returns
A new VirtualMachineScaleSetVmData instance for mocking.
Applies to
Azure SDK for .NET