IWithPublicIPAddress.WithNewPrimaryPublicIPAddress Method
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.
WithNewPrimaryPublicIPAddress(ICreatable<IPublicIPAddress>) |
Creates a new public IP address to associate with the VM's primary network interface. |
WithNewPrimaryPublicIPAddress(String) |
Creates a new public IP address in the same region and resource group as the resource, with the specified DNS label and associates it with the VM's primary network interface. The internal name for the public IP address will be derived from the DNS label. |
Creates a new public IP address to associate with the VM's primary network interface.
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithProximityPlacementGroup WithNewPrimaryPublicIPAddress(Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.IPublicIPAddress> creatable);
abstract member WithNewPrimaryPublicIPAddress : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.IPublicIPAddress> -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithProximityPlacementGroup
Public Function WithNewPrimaryPublicIPAddress (creatable As ICreatable(Of IPublicIPAddress)) As IWithProximityPlacementGroup
Parameters
- creatable
- ICreatable<IPublicIPAddress>
A creatable definition for a new public IP.
Returns
Applies to
Azure SDK for .NET Legacy
Продукт | Версії |
---|---|
Azure SDK for .NET | Legacy |
Creates a new public IP address in the same region and resource group as the resource, with the specified DNS label and associates it with the VM's primary network interface. The internal name for the public IP address will be derived from the DNS label.
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithProximityPlacementGroup WithNewPrimaryPublicIPAddress(string leafDnsLabel);
abstract member WithNewPrimaryPublicIPAddress : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithProximityPlacementGroup
Public Function WithNewPrimaryPublicIPAddress (leafDnsLabel As String) As IWithProximityPlacementGroup
Parameters
- leafDnsLabel
- String
A leaf domain label.
Returns
Applies to
Azure SDK for .NET Legacy
Продукт | Версії |
---|---|
Azure SDK for .NET | Legacy |
Відгук про Azure SDK for .NET
Azure SDK for .NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: