az network manager scope-connection

Note

This reference is part of the virtual-network-manager extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az network manager scope-connection command. Learn more about extensions.

Manage scope connection with network.

Commands

az network manager scope-connection create

Creates scope connection from Network Manager.

az network manager scope-connection delete

Delete the pending scope connection created by this network manager.

az network manager scope-connection list

List all scope connections created by this network manager.

az network manager scope-connection show

Get specified scope connection created by this Network Manager.

az network manager scope-connection update

Update scope connection from Network Manager.

az network manager scope-connection create

Creates scope connection from Network Manager.

az network manager scope-connection create --connection-name
                                           --network-manager
                                           --resource-group
                                           --resource-id
                                           --tenant-id
                                           [--description]

Examples

Create network manager scope-connection

az network manager scope-connection create --name "TestScopeConnect" --network-manager-name "testNetworkManager" --resource-group "rg1" --description "A sample policy" --tenant-id 00000000-0000-0000-0000-000000000000 --resource-id /subscriptions/00000000-0000-0000-0000-000000000000

Required Parameters

--connection-name --name -n

The name of the network manager scope connection.

--network-manager --network-manager-name

The name of the network manager.

--resource-group -g

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

--resource-id

The id of resource.

--tenant-id

The id of tenant.

Optional Parameters

--description

A description of the scope connection.

az network manager scope-connection delete

Delete the pending scope connection created by this network manager.

az network manager scope-connection delete --connection-name
                                           --network-manager
                                           --resource-group
                                           [--yes]

Examples

Delete network manager scope connection

az network manager scope-connection delete --name "TestScopeConnect" --network-manager-name "testNetworkManager" --resource-group "rg1"

Required Parameters

--connection-name --name -n

The name of the network manager scope connection.

--network-manager --network-manager-name

The name of the network manager.

--resource-group -g

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

Optional Parameters

--yes -y

Do not prompt for confirmation.

az network manager scope-connection list

List all scope connections created by this network manager.

az network manager scope-connection list --network-manager
                                         --resource-group
                                         [--skip-token]
                                         [--top]

Examples

List scope connections in a network manager

az network manager scope-connection list --network-manager-name "testNetworkManager" --resource-group "rg1"

Required Parameters

--network-manager --network-manager-name

The name of the network manager.

--resource-group -g

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

Optional Parameters

--skip-token

SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.

--top

An optional query parameter which specifies the maximum number of records to be returned by the server.

az network manager scope-connection show

Get specified scope connection created by this Network Manager.

az network manager scope-connection show --connection-name
                                         --network-manager
                                         --resource-group

Examples

Get network manager scope-connection

az network manager scope-connection show --name "TestScopeConnect" --network-manager-name "testNetworkManager" --resource-group "rg1"

Required Parameters

--connection-name --name -n

The name of the network manager scope connection.

--network-manager --network-manager-name

The name of the network manager.

--resource-group -g

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

az network manager scope-connection update

Update scope connection from Network Manager.

az network manager scope-connection update --connection-name
                                           --network-manager
                                           --resource-group
                                           [--add]
                                           [--description]
                                           [--force-string]
                                           [--remove]
                                           [--set]

Examples

Update network manager scope-connection

az network manager scope-connection update --name "TestScopeConnect" --network-manager-name "testNetworkManager" --resource-group "rg1" --description "A sample policy"

Required Parameters

--connection-name --name -n

The name of the network manager scope connection.

--network-manager --network-manager-name

The name of the network manager.

--resource-group -g

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

Optional Parameters

--add

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>.

--description

A description of the scope connection.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.