ArmComputeModelFactory.DedicatedHostPatch 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.
public static Azure.ResourceManager.Compute.Models.DedicatedHostPatch DedicatedHostPatch(System.Collections.Generic.IDictionary<string,string> tags = default, int? platformFaultDomain = default, bool? autoReplaceOnFailure = default, string hostId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> virtualMachineResources = default, Azure.ResourceManager.Compute.Models.DedicatedHostLicenseType? licenseType = default, DateTimeOffset? provisioningOn = default, string provisioningState = default, Azure.ResourceManager.Compute.Models.DedicatedHostInstanceView instanceView = default, DateTimeOffset? timeCreated = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default);
static member DedicatedHostPatch : System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<bool> * string * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * Nullable<Azure.ResourceManager.Compute.Models.DedicatedHostLicenseType> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Compute.Models.DedicatedHostInstanceView * Nullable<DateTimeOffset> * Azure.ResourceManager.Compute.Models.ComputeSku -> Azure.ResourceManager.Compute.Models.DedicatedHostPatch
Public Shared Function DedicatedHostPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional platformFaultDomain As Nullable(Of Integer) = Nothing, Optional autoReplaceOnFailure As Nullable(Of Boolean) = Nothing, Optional hostId As String = Nothing, Optional virtualMachineResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional licenseType As Nullable(Of DedicatedHostLicenseType) = Nothing, Optional provisioningOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As DedicatedHostInstanceView = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing, Optional sku As ComputeSku = Nothing) As DedicatedHostPatch
Parameters
- tags
- IDictionary<String,String>
Resource tags.
Fault domain of the dedicated host within a dedicated host group.
Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.
- hostId
- String
A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host.
- virtualMachineResources
- IEnumerable<ComputeSubResourceData>
A list of references to all virtual machines in the Dedicated Host.
- licenseType
- Nullable<DedicatedHostLicenseType>
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..
- provisioningOn
- Nullable<DateTimeOffset>
The date when the host was first provisioned.
- provisioningState
- String
The provisioning state, which only appears in the response.
- instanceView
- DedicatedHostInstanceView
The dedicated host instance view.
- timeCreated
- Nullable<DateTimeOffset>
Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01.
- sku
- ComputeSku
[List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set.
Returns
A new DedicatedHostPatch instance for mocking.