Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Commands/network/vhub/connection/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _network vhub connection create_

Create a virtual hub VNet connection.

## Versions

### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 -->

#### examples

- Create a virtual hub VNet connection without routing configuration.
```bash
network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet
```

- Create a virtual hub VNet connection with routing configuration.
```bash
network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet --associated-route-table /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 --propagated-route-tables /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable2 --labels label1 label2 --route-name route1 --next-hop 70.0.0.2 --address-prefixes 10.80.0.0/16 10.90.0.0/16
```
16 changes: 16 additions & 0 deletions Commands/network/vhub/connection/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vhub connection delete_

Delete a virtual hub VNet connection.

## Versions

### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 -->

#### examples

- Delete a virtual hub VNet connection.
```bash
network vhub connection delete -n MyConnection --vhub-name MyHub -g MyRG
```
16 changes: 16 additions & 0 deletions Commands/network/vhub/connection/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vhub connection list_

List virtual hub VNet connections.

## Versions

### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnM=/2022-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections 2022-07-01 -->

#### examples

- List VNet connections in a given virtual hub.
```bash
network vhub connection list --vhub-name MyHub -g MyRG
```
16 changes: 16 additions & 0 deletions Commands/network/vhub/connection/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vhub connection show_

Get the details of a virtual hub VNet connection.

## Versions

### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 -->

#### examples

- Get the details of a virtual hub VNet connection.
```bash
network vhub connection show -n MyConnection --vhub-name MyHub -g MyRG
```
16 changes: 16 additions & 0 deletions Commands/network/vhub/connection/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vhub connection update_

Update settings of a virtual hub connection.

## Versions

### [2022-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxodWJzL3t9L2h1YnZpcnR1YWxuZXR3b3JrY29ubmVjdGlvbnMve30=/2022-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{} 2022-07-01 -->

#### examples

- Add labels for propagated route tables under routing configuration.
```bash
network vhub connection update -n MyConnection --vhub-name MyHub -g MyRG --labels Newlabel1 Newlabel2
```
20 changes: 20 additions & 0 deletions Commands/network/vhub/connection/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _network vhub connection_

Manage virtual hub VNet connections.

## Commands

- [create](/Commands/network/vhub/connection/_create.md)
: Create a virtual hub VNet connection.

- [delete](/Commands/network/vhub/connection/_delete.md)
: Delete a virtual hub VNet connection.

- [list](/Commands/network/vhub/connection/_list.md)
: List virtual hub VNet connections.

- [show](/Commands/network/vhub/connection/_show.md)
: Get the details of a virtual hub VNet connection.

- [update](/Commands/network/vhub/connection/_update.md)
: Update settings of a virtual hub connection.
3 changes: 3 additions & 0 deletions Commands/network/vhub/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Manage virtual hubs.

## Subgroups

- [connection](/Commands/network/vhub/connection/readme.md)
: Manage virtual hub VNet connections.

- [route-map](/Commands/network/vhub/route-map/readme.md)
: Manage route map

Expand Down
173 changes: 173 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -52089,6 +52089,179 @@
},
"vhub": {
"commandGroups": {
"connection": {
"commands": {
"create": {
"help": {
"short": "Create a virtual hub VNet connection."
},
"names": [
"network",
"vhub",
"connection",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet"
],
"name": "Create a virtual hub VNet connection without routing configuration."
},
{
"commands": [
"network vhub connection create -n MyConnection --vhub-name MyHub -g MyRG --remote-vnet MyVNet --associated-route-table /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 --propagated-route-tables /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable1 /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/RouteTable2 --labels label1 label2 --route-name route1 --next-hop 70.0.0.2 --address-prefixes 10.80.0.0/16 10.90.0.0/16"
],
"name": "Create a virtual hub VNet connection with routing configuration."
}
],
"name": "2022-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{}",
"plane": "mgmt-plane",
"version": "2022-07-01"
}
]
}
]
},
"delete": {
"help": {
"short": "Delete a virtual hub VNet connection."
},
"names": [
"network",
"vhub",
"connection",
"delete"
],
"versions": [
{
"examples": [
{
"commands": [
"network vhub connection delete -n MyConnection --vhub-name MyHub -g MyRG"
],
"name": "Delete a virtual hub VNet connection."
}
],
"name": "2022-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{}",
"plane": "mgmt-plane",
"version": "2022-07-01"
}
]
}
]
},
"list": {
"help": {
"short": "List virtual hub VNet connections."
},
"names": [
"network",
"vhub",
"connection",
"list"
],
"versions": [
{
"examples": [
{
"commands": [
"network vhub connection list --vhub-name MyHub -g MyRG"
],
"name": "List VNet connections in a given virtual hub."
}
],
"name": "2022-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections",
"plane": "mgmt-plane",
"version": "2022-07-01"
}
]
}
]
},
"show": {
"help": {
"short": "Get the details of a virtual hub VNet connection."
},
"names": [
"network",
"vhub",
"connection",
"show"
],
"versions": [
{
"examples": [
{
"commands": [
"network vhub connection show -n MyConnection --vhub-name MyHub -g MyRG"
],
"name": "Get the details of a virtual hub VNet connection."
}
],
"name": "2022-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{}",
"plane": "mgmt-plane",
"version": "2022-07-01"
}
]
}
]
},
"update": {
"help": {
"short": "Update settings of a virtual hub connection."
},
"names": [
"network",
"vhub",
"connection",
"update"
],
"versions": [
{
"examples": [
{
"commands": [
"network vhub connection update -n MyConnection --vhub-name MyHub -g MyRG --labels Newlabel1 Newlabel2"
],
"name": "Add labels for propagated route tables under routing configuration."
}
],
"name": "2022-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections/{}",
"plane": "mgmt-plane",
"version": "2022-07-01"
}
]
}
]
}
},
"help": {
"short": "Manage virtual hub VNet connections."
},
"names": [
"network",
"vhub",
"connection"
]
},
"route-map": {
"commandGroups": {
"rule": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections", "version": "2022-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsSHVicy97dmlydHVhbEh1Yk5hbWV9L2h1YlZpcnR1YWxOZXR3b3JrQ29ubmVjdGlvbnM=/V/MjAyMi0wNy0wMQ=="}], "commandGroups": [{"name": "network vhub connection", "commands": [{"name": "list", "version": "2022-07-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualhubs/{}/hubvirtualnetworkconnections", "version": "2022-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsSHVicy97dmlydHVhbEh1Yk5hbWV9L2h1YlZpcnR1YWxOZXR3b3JrQ29ubmVjdGlvbnM=/V/MjAyMi0wNy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.virtualHubName", "options": ["vhub-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the virtual hub."}}]}], "operations": [{"operationId": "HubVirtualNetworkConnections_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "virtualHubName", "arg": "$Path.virtualHubName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualHubs/{}/hubVirtualNetworkConnections/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "allowHubToRemoteVnetTransit"}, {"type": "boolean", "name": "allowRemoteVnetToUseHubVnetGateways"}, {"type": "boolean", "name": "enableInternetSecurity"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "remoteVirtualNetwork", "props": [{"type": "string", "name": "id"}], "cls": "SubResource_read"}, {"type": "object", "name": "routingConfiguration", "props": [{"type": "@SubResource_read", "name": "associatedRouteTable"}, {"type": "@SubResource_read", "name": "inboundRouteMap"}, {"type": "@SubResource_read", "name": "outboundRouteMap"}, {"type": "object", "name": "propagatedRouteTables", "props": [{"type": "array<@SubResource_read>", "name": "ids", "item": {"type": "@SubResource_read"}}, {"type": "array<string>", "name": "labels", "item": {"type": "string"}}]}, {"type": "object", "name": "vnetRoutes", "props": [{"readOnly": true, "type": "array<@SubResource_read>", "name": "bgpConnections", "item": {"type": "@SubResource_read"}}, {"type": "array<object>", "name": "staticRoutes", "item": {"type": "object", "props": [{"type": "array<string>", "name": "addressPrefixes", "item": {"type": "string"}}, {"type": "string", "name": "name"}, {"type": "string", "name": "nextHopIpAddress"}]}}, {"type": "object", "name": "staticRoutesConfig", "props": [{"readOnly": true, "type": "boolean", "name": "propagateStaticRoutes"}, {"type": "string", "name": "vnetLocalRouteOverrideCriteria", "enum": {"items": [{"value": "Contains"}, {"value": "Equal"}]}}]}]}]}], "clientFlatten": true}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Loading