你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachine.DefinitionStages.WithPublicIPAddress Interface
public interface WithPublicIPAddress
The stage of a virtual machine definition allowing to associate a public IP address with its primary network interface.
Method Summary
Modifier and Type | Method and Description |
---|---|
Virtual |
withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)
Associates an existing public IP address with the VM's primary network interface. |
Virtual |
withNewPrimaryPublicIPAddress(Creatable<PublicIPAddress> creatable)
Creates a new public IP address to associate with the VM's primary network interface. |
Virtual |
withNewPrimaryPublicIPAddress(String leafDnsLabel)
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. |
Virtual |
withoutPrimaryPublicIPAddress()
Specifies that the VM should not have a public IP address. |
Method Details
withExistingPrimaryPublicIPAddress
public WithOS withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)
Associates an existing public IP address with the VM's primary network interface.
Parameters:
Returns:
withNewPrimaryPublicIPAddress
public WithOS withNewPrimaryPublicIPAddress(Creatable
Creates a new public IP address to associate with the VM's primary network interface.
Parameters:
Returns:
withNewPrimaryPublicIPAddress
public WithOS withNewPrimaryPublicIPAddress(String leafDnsLabel)
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.
Parameters:
Returns:
withoutPrimaryPublicIPAddress
public WithOS withoutPrimaryPublicIPAddress()
Specifies that the VM should not have a public IP address.
Returns: