共用方式為


ArmServiceFabricManagedClustersModelFactory.ServiceFabricManagedNodeTypeData Method

Definition

Initializes a new instance of ServiceFabricManagedNodeTypeData.

public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = default, bool? isPrimary = default, int? vmInstanceCount = default, int? dataDiskSizeInGB = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default, string dataDiskLetter = default, System.Collections.Generic.IDictionary<string,string> placementProperties = default, System.Collections.Generic.IDictionary<string,string> capacities = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = default, string vmSize = default, string vmImagePublisher = default, string vmImageOffer = default, string vmImageSku = default, string vmImageVersion = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVaultSecretGroup> vmSecrets = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssExtension> vmExtensions = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> userAssignedIdentities = default, bool? isStateless = default, bool? hasMultiplePlacementGroups = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFrontendConfiguration> frontendConfigurations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule> networkSecurityRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssDataDisk> additionalDataDisks = default, bool? isEncryptionAtHostEnabled = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default, bool? isAcceleratedNetworkingEnabled = default, bool? useDefaultPublicLoadBalancer = default, bool? useTempDataDisk = default, bool? isOverProvisioningEnabled = default, System.Collections.Generic.IEnumerable<string> zones = default, bool? isSpotVm = default, string hostGroupId = default, bool? useEphemeralOSDisk = default, string spotRestoreTimeout = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default, Azure.Core.ResourceIdentifier vmImageResourceId = default, Azure.Core.ResourceIdentifier subnetId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmSetupAction> vmSetupActions = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default, bool? isSecureBootEnabled = default, bool? isNodePublicIPEnabled = default, bool? isNodePublicIPv6Enabled = default, Azure.Core.ResourceIdentifier vmSharedGalleryImageId = default, Azure.Core.ResourceIdentifier natGatewayId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeNatConfig> natConfigurations = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = default, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = default, Azure.Core.ResourceIdentifier dscpConfigurationId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.AdditionalNetworkInterfaceConfiguration> additionalNetworkInterfaceConfigurations = default, string computerNamePrefix = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedVmApplication> vmApplications = default, System.Collections.Generic.IDictionary<string,string> tags = default);
static member ServiceFabricManagedNodeTypeData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType> * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription * Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription * string * string * string * string * string * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVaultSecretGroup> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssExtension> * seq<Azure.Core.ResourceIdentifier> * Nullable<bool> * Nullable<bool> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFrontendConfiguration> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssDataDisk> * Nullable<bool> * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * seq<string> * Nullable<bool> * string * Nullable<bool> * string * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmSetupAction> * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeNatConfig> * Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.AdditionalNetworkInterfaceConfiguration> * string * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedVmApplication> * System.Collections.Generic.IDictionary<string, string> -> Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData
Public Shared Function ServiceFabricManagedNodeTypeData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional sku As NodeTypeSku = Nothing, Optional isPrimary As Nullable(Of Boolean) = Nothing, Optional vmInstanceCount As Nullable(Of Integer) = Nothing, Optional dataDiskSizeInGB As Nullable(Of Integer) = Nothing, Optional dataDiskType As Nullable(Of ServiceFabricManagedDataDiskType) = Nothing, Optional dataDiskLetter As String = Nothing, Optional placementProperties As IDictionary(Of String, String) = Nothing, Optional capacities As IDictionary(Of String, String) = Nothing, Optional applicationPorts As EndpointRangeDescription = Nothing, Optional ephemeralPorts As EndpointRangeDescription = Nothing, Optional vmSize As String = Nothing, Optional vmImagePublisher As String = Nothing, Optional vmImageOffer As String = Nothing, Optional vmImageSku As String = Nothing, Optional vmImageVersion As String = Nothing, Optional vmSecrets As IEnumerable(Of NodeTypeVaultSecretGroup) = Nothing, Optional vmExtensions As IEnumerable(Of NodeTypeVmssExtension) = Nothing, Optional userAssignedIdentities As IEnumerable(Of ResourceIdentifier) = Nothing, Optional isStateless As Nullable(Of Boolean) = Nothing, Optional hasMultiplePlacementGroups As Nullable(Of Boolean) = Nothing, Optional frontendConfigurations As IEnumerable(Of NodeTypeFrontendConfiguration) = Nothing, Optional networkSecurityRules As IEnumerable(Of ServiceFabricManagedNetworkSecurityRule) = Nothing, Optional additionalDataDisks As IEnumerable(Of NodeTypeVmssDataDisk) = Nothing, Optional isEncryptionAtHostEnabled As Nullable(Of Boolean) = Nothing, Optional provisioningState As Nullable(Of ServiceFabricManagedResourceProvisioningState) = Nothing, Optional isAcceleratedNetworkingEnabled As Nullable(Of Boolean) = Nothing, Optional useDefaultPublicLoadBalancer As Nullable(Of Boolean) = Nothing, Optional useTempDataDisk As Nullable(Of Boolean) = Nothing, Optional isOverProvisioningEnabled As Nullable(Of Boolean) = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional isSpotVm As Nullable(Of Boolean) = Nothing, Optional hostGroupId As String = Nothing, Optional useEphemeralOSDisk As Nullable(Of Boolean) = Nothing, Optional spotRestoreTimeout As String = Nothing, Optional evictionPolicy As Nullable(Of SpotNodeVmEvictionPolicyType) = Nothing, Optional vmImageResourceId As ResourceIdentifier = Nothing, Optional subnetId As ResourceIdentifier = Nothing, Optional vmSetupActions As IEnumerable(Of VmSetupAction) = Nothing, Optional securityType As Nullable(Of ServiceFabricManagedClusterSecurityType) = Nothing, Optional isSecureBootEnabled As Nullable(Of Boolean) = Nothing, Optional isNodePublicIPEnabled As Nullable(Of Boolean) = Nothing, Optional isNodePublicIPv6Enabled As Nullable(Of Boolean) = Nothing, Optional vmSharedGalleryImageId As ResourceIdentifier = Nothing, Optional natGatewayId As ResourceIdentifier = Nothing, Optional natConfigurations As IEnumerable(Of NodeTypeNatConfig) = Nothing, Optional vmImagePlan As VmImagePlan = Nothing, Optional serviceArtifactReferenceId As ResourceIdentifier = Nothing, Optional dscpConfigurationId As ResourceIdentifier = Nothing, Optional additionalNetworkInterfaceConfigurations As IEnumerable(Of AdditionalNetworkInterfaceConfiguration) = Nothing, Optional computerNamePrefix As String = Nothing, Optional vmApplications As IEnumerable(Of ServiceFabricManagedVmApplication) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing) As ServiceFabricManagedNodeTypeData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

sku
NodeTypeSku

The node type sku.

isPrimary
Nullable<Boolean>

Indicates the Service Fabric system services for the cluster will run on this node type. This setting cannot be changed once the node type is created.

vmInstanceCount
Nullable<Int32>

The number of nodes in the node type. <br /><br />Values: <br />-1 - Use when auto scale rules are configured or sku.capacity is defined <br /> 0 - Not supported <br /> >0 - Use for manual scale.

dataDiskSizeInGB
Nullable<Int32>

Disk size for the managed disk attached to the vms on the node type in GBs.

dataDiskType
Nullable<ServiceFabricManagedDataDiskType>

Managed data disk type. Specifies the storage account type for the managed disk.

dataDiskLetter
String

Managed data disk letter. It can not use the reserved letter C or D and it can not change after created.

placementProperties
IDictionary<String,String>

The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.

capacities
IDictionary<String,String>

The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.

applicationPorts
EndpointRangeDescription

The range of ports from which cluster assigned port to Service Fabric applications.

ephemeralPorts
EndpointRangeDescription

The range of ephemeral ports that nodes in this node type should be configured with.

vmSize
String

The size of virtual machines in the pool. All virtual machines in a pool are the same size. For example, Standard_D3.

vmImagePublisher
String

The publisher of the Azure Virtual Machines Marketplace image. For example, Canonical or MicrosoftWindowsServer.

vmImageOffer
String

The offer type of the Azure Virtual Machines Marketplace image. For example, UbuntuServer or WindowsServer.

vmImageSku
String

The SKU of the Azure Virtual Machines Marketplace image. For example, 14.04.0-LTS or 2012-R2-Datacenter.

vmImageVersion
String

The version of the Azure Virtual Machines Marketplace image. A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.

vmSecrets
IEnumerable<NodeTypeVaultSecretGroup>

The secrets to install in the virtual machines.

vmExtensions
IEnumerable<NodeTypeVmssExtension>

Set of extensions that should be installed onto the virtual machines.

userAssignedIdentities
IEnumerable<ResourceIdentifier>

Identities to assign to the virtual machine scale set under the node type.

isStateless
Nullable<Boolean>

Indicates if the node type can only host Stateless workloads.

hasMultiplePlacementGroups
Nullable<Boolean>

Indicates if scale set associated with the node type can be composed of multiple placement groups.

frontendConfigurations
IEnumerable<NodeTypeFrontendConfiguration>

Indicates the node type uses its own frontend configurations instead of the default one for the cluster. This setting can only be specified for non-primary node types and can not be added or removed after the node type is created.

networkSecurityRules
IEnumerable<ServiceFabricManagedNetworkSecurityRule>

The Network Security Rules for this node type. This setting can only be specified for node types that are configured with frontend configurations.

additionalDataDisks
IEnumerable<NodeTypeVmssDataDisk>

Additional managed data disks.

isEncryptionAtHostEnabled
Nullable<Boolean>

Enable or disable the Host Encryption for the virtual machines on the node type. This will enable the encryption for all the disks including Resource/Temp disk at host itself. Default: The Encryption at host will be disabled unless this property is set to true for the resource.

provisioningState
Nullable<ServiceFabricManagedResourceProvisioningState>

The provisioning state of the node type resource.

isAcceleratedNetworkingEnabled
Nullable<Boolean>

Specifies whether the network interface is accelerated networking-enabled.

useDefaultPublicLoadBalancer
Nullable<Boolean>

Specifies whether the use public load balancer. If not specified and the node type doesn't have its own frontend configuration, it will be attached to the default load balancer. If the node type uses its own Load balancer and useDefaultPublicLoadBalancer is true, then the frontend has to be an Internal Load Balancer. If the node type uses its own Load balancer and useDefaultPublicLoadBalancer is false or not set, then the custom load balancer must include a public load balancer to provide outbound connectivity.

useTempDataDisk
Nullable<Boolean>

Specifies whether to use the temporary disk for the service fabric data root, in which case no managed data disk will be attached and the temporary disk will be used. It is only allowed for stateless node types.

isOverProvisioningEnabled
Nullable<Boolean>

Specifies whether the node type should be overprovisioned. It is only allowed for stateless node types.

zones
IEnumerable<String>

Specifies the availability zones where the node type would span across. If the cluster is not spanning across availability zones, initiates az migration for the cluster.

isSpotVm
Nullable<Boolean>

Indicates whether the node type will be Spot Virtual Machines. Azure will allocate the VMs if there is capacity available and the VMs can be evicted at any time.

hostGroupId
String

Specifies the full host group resource Id. This property is used for deploying on azure dedicated hosts.

useEphemeralOSDisk
Nullable<Boolean>

Indicates whether to use ephemeral os disk. The sku selected on the vmSize property needs to support this feature.

spotRestoreTimeout
String

Indicates the time duration after which the platform will not try to restore the VMSS SPOT instances specified as ISO 8601.

evictionPolicy
Nullable<SpotNodeVmEvictionPolicyType>

Specifies the eviction policy for virtual machines in a SPOT node type. Default is Delete.

vmImageResourceId
ResourceIdentifier

Indicates the resource id of the vm image. This parameter is used for custom vm image.

subnetId
ResourceIdentifier

Indicates the resource id of the subnet for the node type.

vmSetupActions
IEnumerable<VmSetupAction>

Specifies the actions to be performed on the vms before bootstrapping the service fabric runtime.

securityType
Nullable<ServiceFabricManagedClusterSecurityType>

Specifies the security type of the nodeType. Only Standard and TrustedLaunch are currently supported.

isSecureBootEnabled
Nullable<Boolean>

Specifies whether secure boot should be enabled on the nodeType. Can only be used with TrustedLaunch SecurityType.

isNodePublicIPEnabled
Nullable<Boolean>

Specifies whether each node is allocated its own public IPv4 address. This is only supported on secondary node types with custom Load Balancers.

isNodePublicIPv6Enabled
Nullable<Boolean>

Specifies whether each node is allocated its own public IPv6 address. This is only supported on secondary node types with custom Load Balancers.

vmSharedGalleryImageId
ResourceIdentifier

Indicates the resource id of the vm shared galleries image. This parameter is used for custom vm image.

natGatewayId
ResourceIdentifier

Specifies the resource id of a NAT Gateway to attach to the subnet of this node type. Node type must use custom load balancer.

natConfigurations
IEnumerable<NodeTypeNatConfig>

Specifies the NAT configuration on default public Load Balancer for the node type. This is only supported for node types use the default public Load Balancer.

vmImagePlan
VmImagePlan

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.

serviceArtifactReferenceId
ResourceIdentifier

Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version.

dscpConfigurationId
ResourceIdentifier

Specifies the resource id of the DSCP configuration to apply to the node type network interface.

additionalNetworkInterfaceConfigurations
IEnumerable<AdditionalNetworkInterfaceConfiguration>

Specifies the settings for any additional secondary network interfaces to attach to the node type.

computerNamePrefix
String

Specifies the computer name prefix. Limited to 9 characters. If specified, allows for a longer name to be specified for the node type name.

vmApplications
IEnumerable<ServiceFabricManagedVmApplication>

Specifies the gallery applications that should be made available to the underlying VMSS.

tags
IDictionary<String,String>

Azure resource tags.

Returns

A new ServiceFabricManagedNodeTypeData instance for mocking.

Applies to