az network public-ip
Manage public IP addresses.
To learn more about public IP addresses visit https://docs.microsoft.com/azure/virtual-network/virtual-network-public-ip-address.
Commands
az network public-ip create |
Create a public IP address. |
az network public-ip delete |
Delete a public IP address. |
az network public-ip list |
List public IP addresses. |
az network public-ip prefix |
Manage public IP prefix resources. |
az network public-ip prefix create |
Create a public IP prefix resource. |
az network public-ip prefix delete |
Delete a public IP prefix resource. |
az network public-ip prefix list |
List public IP prefix resources. |
az network public-ip prefix show |
Get the details of a public IP prefix resource. |
az network public-ip prefix update |
Update a public IP prefix resource. |
az network public-ip show |
Get the details of a public IP address. |
az network public-ip update |
Update a public IP address. |
az network public-ip create
Create a public IP address.
[Coming breaking change] In the coming release, the default behavior will be changed as follows when sku is Standard and zone is not provided: For zonal regions, you will get a zone-redundant IP indicated by zones:["1","2","3"]; For non-zonal regions, you will get a non zone-redundant IP indicated by zones:[].
az network public-ip create --name
--resource-group
[--allocation-method {Dynamic, Static}]
[--dns-name]
[--idle-timeout]
[--ip-tags]
[--location]
[--public-ip-prefix]
[--reverse-fqdn]
[--sku {Basic, Standard}]
[--subscription]
[--tags]
[--version {IPv4, IPv6}]
[--zone {1, 2, 3}]
Examples
Create a basic public IP resource.
az network public-ip create -g MyResourceGroup -n MyIp
Create a static public IP resource for a DNS name label.
az network public-ip create -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static
Create a public IP resource in an availability zone in the current resource group region.
az network public-ip create -g MyResourceGroup -n MyIp --zone 2
Required Parameters
The name of the public IP address.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
IP address allocation method.
Globally unique DNS entry.
Idle timeout in minutes.
Space-separated list of IP tags in 'TYPE=VAL' format.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Name or ID of a public IP prefix.
Reverse FQDN (fully qualified domain name).
Public IP SKU.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
IP address type.
Availability zone into which to provision the resource.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az network public-ip delete
Delete a public IP address.
az network public-ip delete [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Delete a public IP address.
az network public-ip delete -g MyResourceGroup -n MyIp
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the public IP address.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az network public-ip list
List public IP addresses.
az network public-ip list [--query-examples]
[--resource-group]
[--subscription]
Examples
List all public IPs in a subscription.
az network public-ip list
List all public IPs in a resource group.
az network public-ip list -g MyResourceGroup
List all public IPs of a domain name label.
az network public-ip list -g MyResourceGroup --query "[?dnsSettings.domainNameLabel=='MyLabel']"
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az network public-ip show
Get the details of a public IP address.
az network public-ip show [--expand]
[--ids]
[--name]
[--query-examples]
[--resource-group]
[--subscription]
Examples
Get information about a public IP resource.
az network public-ip show -g MyResourceGroup -n MyIp
Get the FQDN and IP address of a public IP resource.
az network public-ip show -g MyResourceGroup -n MyIp --query "{fqdn: dnsSettings.fqdn, address: ipAddress}"
Optional Parameters
Expands referenced resources.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the public IP address.
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az network public-ip update
Update a public IP address.
az network public-ip update [--add]
[--allocation-method {Dynamic, Static}]
[--dns-name]
[--force-string]
[--idle-timeout]
[--ids]
[--ip-tags]
[--name]
[--public-ip-prefix]
[--remove]
[--resource-group]
[--reverse-fqdn]
[--set]
[--sku {Basic, Standard}]
[--subscription]
[--tags]
[--version {IPv4, IPv6}]
Examples
Update a public IP resource with a DNS name label and static allocation.
az network public-ip update -g MyResourceGroup -n MyIp --dns-name MyLabel --allocation-method Static
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
IP address allocation method.
Globally unique DNS entry.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Idle timeout in minutes.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Space-separated list of IP tags in 'TYPE=VAL' format.
The name of the public IP address.
Name or ID of a public IP prefix.
Remove a property or an element from a list. Example: --remove property.list
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Reverse FQDN (fully qualified domain name).
Update an object by specifying a property path and value to set. Example: --set property1.property2=
Public IP SKU.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
IP address type.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.