Delen via


VirtualMachinePublicIPAddressConfiguration Constructors

Definition

Overloads

VirtualMachinePublicIPAddressConfiguration()

Initializes a new instance of the VirtualMachinePublicIPAddressConfiguration class.

VirtualMachinePublicIPAddressConfiguration(String, Nullable<Int32>, String, VirtualMachinePublicIPAddressDnsSettingsConfiguration, IList<VirtualMachineIpTag>, SubResource, String, String, PublicIPAddressSku)

Initializes a new instance of the VirtualMachinePublicIPAddressConfiguration class.

VirtualMachinePublicIPAddressConfiguration()

Initializes a new instance of the VirtualMachinePublicIPAddressConfiguration class.

public VirtualMachinePublicIPAddressConfiguration ();
Public Sub New ()

Applies to

VirtualMachinePublicIPAddressConfiguration(String, Nullable<Int32>, String, VirtualMachinePublicIPAddressDnsSettingsConfiguration, IList<VirtualMachineIpTag>, SubResource, String, String, PublicIPAddressSku)

Initializes a new instance of the VirtualMachinePublicIPAddressConfiguration class.

public VirtualMachinePublicIPAddressConfiguration (string name, int? idleTimeoutInMinutes = default, string deleteOption = default, Microsoft.Azure.Management.Compute.Models.VirtualMachinePublicIPAddressDnsSettingsConfiguration dnsSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineIpTag> ipTags = default, Microsoft.Azure.Management.Compute.Models.SubResource publicIPPrefix = default, string publicIPAddressVersion = default, string publicIPAllocationMethod = default, Microsoft.Azure.Management.Compute.Models.PublicIPAddressSku sku = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachinePublicIPAddressConfiguration : string * Nullable<int> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachinePublicIPAddressDnsSettingsConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineIpTag> * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * Microsoft.Azure.Management.Compute.Models.PublicIPAddressSku -> Microsoft.Azure.Management.Compute.Models.VirtualMachinePublicIPAddressConfiguration
Public Sub New (name As String, Optional idleTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional deleteOption As String = Nothing, Optional dnsSettings As VirtualMachinePublicIPAddressDnsSettingsConfiguration = Nothing, Optional ipTags As IList(Of VirtualMachineIpTag) = Nothing, Optional publicIPPrefix As SubResource = Nothing, Optional publicIPAddressVersion As String = Nothing, Optional publicIPAllocationMethod As String = Nothing, Optional sku As PublicIPAddressSku = Nothing)

Parameters

name
String

The publicIP address configuration name.

idleTimeoutInMinutes
Nullable<Int32>

The idle timeout of the public IP address.

deleteOption
String

Specify what happens to the public IP address when the VM is deleted. Possible values include: 'Delete', 'Detach'

dnsSettings
VirtualMachinePublicIPAddressDnsSettingsConfiguration

The dns settings to be applied on the publicIP addresses .

ipTags
IList<VirtualMachineIpTag>

The list of IP tags associated with the public IP address.

publicIPPrefix
SubResource

The PublicIPPrefix from which to allocate publicIP addresses.

publicIPAddressVersion
String

Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'

publicIPAllocationMethod
String

Specify the public IP allocation type. Possible values include: 'Dynamic', 'Static'

Applies to