az peering service prefix

Peering service prefix.

Commands

az peering service prefix create

Creates a new prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix delete

Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix list

Lists all prefixes under the given subscription, resource group and peering service.

az peering service prefix show

Gets an existing prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix update

Creates a new prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix create

Creates a new prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix create --peering-service-name
                                 --prefix-name
                                 --resource-group
                                 [--peering-service-prefix-key]
                                 [--prefix]

Examples

Create or update a prefix for the peering service

az peering service prefix create --peering-service-name "peeringServiceName" --peering-service-prefix-key "00000000-0000-0000-0000-000000000000" --prefix "192.168.1.0/24" --prefix-name "peeringServicePrefixName" --resource-group "rgName"

Required Parameters

--peering-service-name

The name of the peering service.

--prefix-name

The name of the prefix.

--resource-group -g

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

Optional Parameters

--peering-service-prefix-key

The peering service prefix key.

--prefix

The prefix from which your traffic originates.

az peering service prefix delete

Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix delete --peering-service-name
                                 --prefix-name
                                 --resource-group

Examples

Delete a prefix associated with the peering service

az peering service prefix delete --peering-service-name "peeringServiceName" --prefix-name "peeringServicePrefixName" --resource-group "rgName"

Required Parameters

--peering-service-name

The name of the peering service.

--prefix-name

The name of the prefix.

--resource-group -g

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

az peering service prefix list

Lists all prefixes under the given subscription, resource group and peering service.

az peering service prefix list --peering-service-name
                               --resource-group
                               [--expand]

Examples

List all the prefixes associated with the peering service

az peering service prefix list --peering-service-name "peeringServiceName" --resource-group "rgName"

Required Parameters

--peering-service-name

The name of the peering service.

--resource-group -g

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

Optional Parameters

--expand

The properties to be expanded.

az peering service prefix show

Gets an existing prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix show --peering-service-name
                               --prefix-name
                               --resource-group
                               [--expand]

Examples

Get a prefix associated with the peering service

az peering service prefix show --peering-service-name "peeringServiceName" --prefix-name "peeringServicePrefixName" --resource-group "rgName"

Required Parameters

--peering-service-name

The name of the peering service.

--prefix-name

The name of the prefix.

--resource-group -g

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

Optional Parameters

--expand

The properties to be expanded.

az peering service prefix update

Creates a new prefix with the specified name under the given subscription, resource group and peering service.

az peering service prefix update --peering-service-name
                                 --prefix-name
                                 --resource-group
                                 [--peering-service-prefix-key]
                                 [--prefix]

Examples

Create or update a prefix for the peering service

az peering service prefix update --peering-service-name "peeringServiceName" --peering-service-prefix-key "00000000-0000-0000-0000-000000000000" --prefix "192.168.1.0/24" --prefix-name "peeringServicePrefixName" --resource-group "rgName"

Required Parameters

--peering-service-name

The name of the peering service.

--prefix-name

The name of the prefix.

--resource-group -g

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

Optional Parameters

--peering-service-prefix-key

The peering service prefix key.

--prefix

The prefix from which your traffic originates.