แชร์ผ่าน


az stack-hci-vm network public-ip

Note

This reference is part of the stack-hci-vm extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az stack-hci-vm network public-ip command. Learn more about extensions.

Manage public IP addresses with stack-hci-vm.

Commands

Name Description Type Status
az stack-hci-vm network public-ip create

Create a public IP address.

Extension GA
az stack-hci-vm network public-ip delete

Delete a public IP address.

Extension GA
az stack-hci-vm network public-ip list

List all public IP addresses.

Extension GA
az stack-hci-vm network public-ip show

Get the details of a public IP address.

Extension GA
az stack-hci-vm network public-ip update

Update a public IP address.

Extension GA

az stack-hci-vm network public-ip create

Create a public IP address.

az stack-hci-vm network public-ip create --custom-location
                                         --name
                                         --resource-group
                                         [--allocation-scope]
                                         [--ip-address]
                                         [--location]
                                         [--polling-interval]
                                         [--tags]
                                         [--version {IPv4, IPv6}]

Examples

CreatePublicIP

az stack-hci-vm network public-ip create --resource-group "test-rg" --name "test-pip" --location "eastus" --version IPv4 --allocation-scope /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/MyHciRg/providers/Microsoft.AzureStackHCI/logicalNetworks/MyLnet --ip-address 20.30.40.50 --tags env=prod pip=yes --custom-location "/subscriptions/xxxx/resourceGroups/test-rg/providers/Microsoft.ExtendedLocation/customLocations/test-location"

Required Parameters

--custom-location

The ID of the custom location.

--name -n

Name of the Public IP address.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--allocation-scope

IP allocation scope (e.g., logical network or pool reference).

--ip-address

Static IP address to allocate. If omitted, one is allocated automatically.

--location -l

If location is not specified, the location of the resource group is used.

--polling-interval

ARM polling interval for long running operations.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--version

IP version. Defaults to IPv4.

Property Value
Accepted values: IPv4, IPv6
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az stack-hci-vm network public-ip delete

Delete a public IP address.

az stack-hci-vm network public-ip delete --name
                                         --resource-group
                                         [--polling-interval]
                                         [--yes]

Examples

DeletePublicIP

az stack-hci-vm network public-ip delete --name "test-pip" --resource-group "test-rg" --yes

Required Parameters

--name -n

Name of the Public IP address.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--polling-interval

ARM polling interval for long running operations.

--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az stack-hci-vm network public-ip list

List all public IP addresses.

az stack-hci-vm network public-ip list [--resource-group]

Examples

ListPublicIPs

az stack-hci-vm network public-ip list --resource-group "test-rg"

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az stack-hci-vm network public-ip show

Get the details of a public IP address.

az stack-hci-vm network public-ip show --name
                                       --resource-group

Examples

ShowPublicIP

az stack-hci-vm network public-ip show --name "test-pip" --resource-group "test-rg"

Required Parameters

--name -n

Name of the Public IP address.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az stack-hci-vm network public-ip update

Update a public IP address.

az stack-hci-vm network public-ip update --name
                                         --resource-group
                                         [--tags]

Examples

UpdatePublicIP

az stack-hci-vm network public-ip update --resource-group "test-rg" --name "test-pip" --tags env=prod updated=yes

Required Parameters

--name -n

Name of the Public IP address.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False