Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengTaoxu committed Jul 31, 2024
1 parent 9c475b0 commit ecdf1c4
Show file tree
Hide file tree
Showing 10 changed files with 1,032 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Commands/network/vnet/peering/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ To successfully peer two virtual networks this command must be called twice with
```bash
network vnet peering create -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --remote-vnet MyVnet2Id --allow-vnet-access
```

### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS92aXJ0dWFsbmV0d29ya3BlZXJpbmdzL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{} 2023-11-01 -->

#### examples

- Create a peering connection between two virtual networks.
```bash
network vnet peering create -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --remote-vnet MyVnet2Id --allow-vnet-access
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/peering/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ Delete a peering.
```bash
network vnet peering delete -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1
```

### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS92aXJ0dWFsbmV0d29ya3BlZXJpbmdzL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{} 2023-11-01 -->

#### examples

- Delete a virtual network peering connection.
```bash
network vnet peering delete -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/peering/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ List peerings.
```bash
network vnet peering list -g MyResourceGroup --vnet-name MyVnet1
```

### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS92aXJ0dWFsbmV0d29ya3BlZXJpbmdz/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings 2023-11-01 -->

#### examples

- List all peerings of a specified virtual network.
```bash
network vnet peering list -g MyResourceGroup --vnet-name MyVnet1
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/peering/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ Show details of a peering.
```bash
network vnet peering show -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1
```

### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS92aXJ0dWFsbmV0d29ya3BlZXJpbmdzL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{} 2023-11-01 -->

#### examples

- Show all details of the specified virtual network peering.
```bash
network vnet peering show -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1
```
26 changes: 26 additions & 0 deletions Commands/network/vnet/peering/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,29 @@ Update a peering.
```bash
network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set useRemoteGateways=true
```

### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS92aXJ0dWFsbmV0d29ya3BlZXJpbmdzL3t9/2023-11-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{} 2023-11-01 -->

#### examples

- Change forwarded traffic configuration of a virtual network peering.
```bash
network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowForwardedTraffic=true
```

- Change virtual network access of a virtual network peering.
```bash
network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowVirtualNetworkAccess=true
```

- Change gateway transit property configuration of a virtual network peering.
```bash
network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowGatewayTransit=true
```

- Use remote gateways in virtual network peering.
```bash
network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set useRemoteGateways=true
```
108 changes: 108 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -115321,6 +115321,24 @@
"version": "2017-10-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet peering create -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --remote-vnet MyVnet2Id --allow-vnet-access"
],
"name": "Create a peering connection between two virtual networks."
}
],
"name": "2023-11-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{}",
"plane": "mgmt-plane",
"version": "2023-11-01"
}
]
}
]
},
Expand Down Expand Up @@ -115388,6 +115406,24 @@
"version": "2017-10-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet peering delete -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1"
],
"name": "Delete a virtual network peering connection."
}
],
"name": "2023-11-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{}",
"plane": "mgmt-plane",
"version": "2023-11-01"
}
]
}
]
},
Expand Down Expand Up @@ -115455,6 +115491,24 @@
"version": "2017-10-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet peering list -g MyResourceGroup --vnet-name MyVnet1"
],
"name": "List all peerings of a specified virtual network."
}
],
"name": "2023-11-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings",
"plane": "mgmt-plane",
"version": "2023-11-01"
}
]
}
]
},
Expand Down Expand Up @@ -115522,6 +115576,24 @@
"version": "2017-10-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet peering show -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1"
],
"name": "Show all details of the specified virtual network peering."
}
],
"name": "2023-11-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{}",
"plane": "mgmt-plane",
"version": "2023-11-01"
}
]
}
]
},
Expand Down Expand Up @@ -115643,6 +115715,42 @@
"version": "2017-10-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowForwardedTraffic=true"
],
"name": "Change forwarded traffic configuration of a virtual network peering."
},
{
"commands": [
"network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowVirtualNetworkAccess=true"
],
"name": "Change virtual network access of a virtual network peering."
},
{
"commands": [
"network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set allowGatewayTransit=true"
],
"name": "Change gateway transit property configuration of a virtual network peering."
},
{
"commands": [
"network vnet peering update -g MyResourceGroup -n MyVnet1ToMyVnet2 --vnet-name MyVnet1 --set useRemoteGateways=true"
],
"name": "Use remote gateways in virtual network peering."
}
],
"name": "2023-11-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings/{}",
"plane": "mgmt-plane",
"version": "2023-11-01"
}
]
}
]
}
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/virtualnetworks/{}/virtualnetworkpeerings", "version": "2023-11-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mve3ZpcnR1YWxOZXR3b3JrTmFtZX0vdmlydHVhbE5ldHdvcmtQZWVyaW5ncw==/V/MjAyMy0xMS0wMQ=="}], "commandGroups": [{"name": "network vnet peering", "commands": [{"name": "list", "version": "2023-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/virtualnetworkpeerings", "version": "2023-11-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mve3ZpcnR1YWxOZXR3b3JrTmFtZX0vdmlydHVhbE5ldHdvcmtQZWVyaW5ncw==/V/MjAyMy0xMS0wMQ=="}], "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.virtualNetworkName", "options": ["vnet-name"], "required": true, "idPart": "name", "help": {"short": "The virtual network (VNet) name."}}]}], "operations": [{"operationId": "VirtualNetworkPeerings_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", "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": "virtualNetworkName", "arg": "$Path.virtualNetworkName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-11-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/virtualNetworks/{}/virtualNetworkPeerings/{}"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "allowForwardedTraffic"}, {"type": "boolean", "name": "allowGatewayTransit"}, {"type": "boolean", "name": "allowVirtualNetworkAccess"}, {"type": "boolean", "name": "doNotVerifyRemoteGateways"}, {"type": "boolean", "name": "enableOnlyIPv6Peering"}, {"type": "object", "name": "localAddressSpace", "props": [{"type": "array<string>", "name": "addressPrefixes", "item": {"type": "string"}}], "cls": "AddressSpace_read"}, {"type": "array<string>", "name": "localSubnetNames", "item": {"type": "string"}}, {"type": "@AddressSpace_read", "name": "localVirtualNetworkAddressSpace"}, {"type": "boolean", "name": "peerCompleteVnets"}, {"type": "string", "name": "peeringState", "enum": {"items": [{"value": "Connected"}, {"value": "Disconnected"}, {"value": "Initiated"}]}}, {"type": "string", "name": "peeringSyncLevel", "enum": {"items": [{"value": "FullyInSync"}, {"value": "LocalAndRemoteNotInSync"}, {"value": "LocalNotInSync"}, {"value": "RemoteNotInSync"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "@AddressSpace_read", "name": "remoteAddressSpace"}, {"type": "object", "name": "remoteBgpCommunities", "props": [{"readOnly": true, "type": "string", "name": "regionalCommunity"}, {"type": "string", "name": "virtualNetworkCommunity", "required": true}]}, {"type": "array<string>", "name": "remoteSubnetNames", "item": {"type": "string"}}, {"type": "object", "name": "remoteVirtualNetwork", "props": [{"type": "string", "name": "id"}]}, {"type": "@AddressSpace_read", "name": "remoteVirtualNetworkAddressSpace"}, {"type": "object", "name": "remoteVirtualNetworkEncryption", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"type": "string", "name": "enforcement", "enum": {"items": [{"value": "AllowUnencrypted"}, {"value": "DropUnencrypted"}]}}]}, {"readOnly": true, "type": "string", "name": "resourceGuid"}, {"type": "boolean", "name": "useRemoteGateways"}], "clientFlatten": true}, {"type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}
Loading

0 comments on commit ecdf1c4

Please sign in to comment.