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
16 changes: 16 additions & 0 deletions Commands/network/vnet-gateway/migration/_abort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vnet-gateway migration abort_

Trigger abort migration for the virtual network gateway.

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/abortmigration 2024-07-01 -->

#### examples

- Abort a gateway migration
```bash
network vnet-gateway migration abort -g group -n gateway
```
16 changes: 16 additions & 0 deletions Commands/network/vnet-gateway/migration/_commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vnet-gateway migration commit_

Trigger commit migration for the virtual network gateway.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3JrZ2F0ZXdheXMve30vY29tbWl0bWlncmF0aW9u/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/commitmigration 2024-07-01 -->

#### examples

- Commit a gateway migration.
```bash
network vnet-gateway migration commit -g rg -n gateway
```
16 changes: 16 additions & 0 deletions Commands/network/vnet-gateway/migration/_execute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vnet-gateway migration execute_

Trigger execute migration for the virtual network gateway.

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/executemigration 2024-07-01 -->

#### examples

- Execute a gateway migration.
```bash
network vnet-gateway migration execute -g rg -n gateway
```
16 changes: 16 additions & 0 deletions Commands/network/vnet-gateway/migration/_prepare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network vnet-gateway migration prepare_

Trigger prepare migration for the virtual network gateway.

## Versions

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/preparemigration 2024-07-01 -->

#### examples

- Prepare a gateway migration.
```bash
network vnet-gateway migration prepare -g rg -n gateway --migration-type UpgradeDeploymentToStandardIP --resource-url testUrl
```
17 changes: 17 additions & 0 deletions Commands/network/vnet-gateway/migration/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _network vnet-gateway migration_

Migrate vpn gateway from basic IP CSES to Standard IP based VMSS deployment.

## Commands

- [abort](/Commands/network/vnet-gateway/migration/_abort.md)
: Trigger abort migration for the virtual network gateway.

- [commit](/Commands/network/vnet-gateway/migration/_commit.md)
: Trigger commit migration for the virtual network gateway.

- [execute](/Commands/network/vnet-gateway/migration/_execute.md)
: Trigger execute migration for the virtual network gateway.

- [prepare](/Commands/network/vnet-gateway/migration/_prepare.md)
: Trigger prepare migration for the virtual network gateway.
3 changes: 3 additions & 0 deletions Commands/network/vnet-gateway/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ To learn more about Azure Virtual Network Gateways, visit https://learn.microsof
- [ipsec-policy](/Commands/network/vnet-gateway/ipsec-policy/readme.md)
: Manage virtual network gateway IPSec policies.

- [migration](/Commands/network/vnet-gateway/migration/readme.md)
: Migrate vpn gateway from basic IP CSES to Standard IP based VMSS deployment.

- [nat-rule](/Commands/network/vnet-gateway/nat-rule/readme.md)
: Manage nat rule in a virtual network gateway.

Expand Down
136 changes: 136 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -152261,6 +152261,142 @@
"ipsec-policy"
]
},
"migration": {
"commands": {
"abort": {
"help": {
"short": "Trigger abort migration for the virtual network gateway."
},
"names": [
"network",
"vnet-gateway",
"migration",
"abort"
],
"versions": [
{
"examples": [
{
"commands": [
"network vnet-gateway migration abort -g group -n gateway"
],
"name": "Abort a gateway migration"
}
],
"name": "2024-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/abortmigration",
"plane": "mgmt-plane",
"version": "2024-07-01"
}
]
}
]
},
"commit": {
"help": {
"short": "Trigger commit migration for the virtual network gateway."
},
"names": [
"network",
"vnet-gateway",
"migration",
"commit"
],
"versions": [
{
"examples": [
{
"commands": [
"network vnet-gateway migration commit -g rg -n gateway"
],
"name": "Commit a gateway migration."
}
],
"name": "2024-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/commitmigration",
"plane": "mgmt-plane",
"version": "2024-07-01"
}
]
}
]
},
"execute": {
"help": {
"short": "Trigger execute migration for the virtual network gateway."
},
"names": [
"network",
"vnet-gateway",
"migration",
"execute"
],
"versions": [
{
"examples": [
{
"commands": [
"network vnet-gateway migration execute -g rg -n gateway"
],
"name": "Execute a gateway migration."
}
],
"name": "2024-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/executemigration",
"plane": "mgmt-plane",
"version": "2024-07-01"
}
]
}
]
},
"prepare": {
"help": {
"short": "Trigger prepare migration for the virtual network gateway."
},
"names": [
"network",
"vnet-gateway",
"migration",
"prepare"
],
"versions": [
{
"examples": [
{
"commands": [
"network vnet-gateway migration prepare -g rg -n gateway --migration-type UpgradeDeploymentToStandardIP --resource-url testUrl"
],
"name": "Prepare a gateway migration."
}
],
"name": "2024-07-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/preparemigration",
"plane": "mgmt-plane",
"version": "2024-07-01"
}
]
}
]
}
},
"help": {
"short": "Migrate vpn gateway from basic IP CSES to Standard IP based VMSS deployment."
},
"names": [
"network",
"vnet-gateway",
"migration"
]
},
"nat-rule": {
"commands": {
"add": {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
<help short="Minimum scale units for auto-scale configuration."/>
</arg>
<arg type="boolean" var="$parameters.properties.enableHighBandwidthVpnGateway" options="enable-high-bandwidth-vpn-gateway enable-high-bandwidth" group="">
<help short="To enable high-bandwidth Advanced Connectivity feature for VPN gateway"/>
<help short="To enable Advanced Connectivity feature for VPN gateway"/>
</arg>
<arg type="boolean" var="$parameters.properties.enablePrivateIpAddress" options="enable-private-ip" group="">
<help short="Whether private IP needs to be enabled on this gateway for connections or not."/>
Expand Down Expand Up @@ -860,7 +860,7 @@
<item name="VpnGw5AZ" value="&quot;VpnGw5AZ&quot;"/>
</enum>
</arg>
<arg type="object" var="$parameters.properties.virtualNetworkGatewayMigrationStatus" options="virtual-network-gateway-migration-status" hide="True" group="Properties">
<arg type="object" var="$parameters.properties.virtualNetworkGatewayMigrationStatus" options="virtual-network-gateway-migration-status" group="Properties">
<help short="The reference to the VirtualNetworkGatewayMigrationStatus which represents the status of migration."/>
<arg type="string" var="$parameters.properties.virtualNetworkGatewayMigrationStatus.errorMessage" options="error-message">
<help short="Error if any occurs during migration."/>
Expand Down Expand Up @@ -2046,7 +2046,7 @@
<arg nullable="True" type="integer" var="$parameters.properties.autoScaleConfiguration.bounds.min" options="min-scale-unit" group="">
<help short="Minimum scale units for auto-scale configuration."/>
</arg>
<arg nullable="True" type="boolean" var="$parameters.properties.enableHighBandwidthVpnGateway" options="enable-advanced-connectivity" hide="True" group="">
<arg nullable="True" type="boolean" var="$parameters.properties.enableHighBandwidthVpnGateway" options="enable-high-bandwidth-vpn-gateway enable-high-bandwidth" group="">
<help short="To enable Advanced Connectivity feature for VPN gateway"/>
</arg>
<arg nullable="True" type="boolean" var="$parameters.properties.enablePrivateIpAddress" options="enable-private-ip" group="">
Expand Down Expand Up @@ -2309,7 +2309,7 @@
<arg nullable="True" type="string" var="$parameters.properties.vNetExtendedLocationResourceId" options="edge-zone-vnet-id" hide="True" group="Properties">
<help short="The Extended vnet resource id of the local gateway."/>
</arg>
<arg nullable="True" type="object" var="$parameters.properties.virtualNetworkGatewayMigrationStatus" options="virtual-network-gateway-migration-status" hide="True" group="Properties">
<arg nullable="True" type="object" var="$parameters.properties.virtualNetworkGatewayMigrationStatus" options="virtual-network-gateway-migration-status" group="Properties">
<help short="The reference to the VirtualNetworkGatewayMigrationStatus which represents the status of migration."/>
<arg nullable="True" type="string" var="$parameters.properties.virtualNetworkGatewayMigrationStatus.errorMessage" options="error-message">
<help short="Error if any occurs during migration."/>
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/virtualnetworkgateways/{}/commitmigration", "version": "2024-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya0dhdGV3YXlzL3t2aXJ0dWFsTmV0d29ya0dhdGV3YXlOYW1lfS9jb21taXRNaWdyYXRpb24=/V/MjAyNC0wNy0wMQ=="}], "commandGroups": [{"name": "network vnet-gateway migration", "commands": [{"name": "commit", "version": "2024-07-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/commitmigration", "version": "2024-07-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya0dhdGV3YXlzL3t2aXJ0dWFsTmV0d29ya0dhdGV3YXlOYW1lfS9jb21taXRNaWdyYXRpb24=/V/MjAyNC0wNy0wMQ=="}], "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.virtualNetworkGatewayName", "options": ["n", "gateway-name", "vnet-gateway-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the gateway."}}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "VirtualNetworkGateways_InvokeCommitMigration", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/commitMigration", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "virtualNetworkGatewayName", "arg": "$Path.virtualNetworkGatewayName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-07-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202], "header": {"items": [{"name": "location"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/commitmigration" version="2024-07-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya0dhdGV3YXlzL3t2aXJ0dWFsTmV0d29ya0dhdGV3YXlOYW1lfS9jb21taXRNaWdyYXRpb24=/V/MjAyNC0wNy0wMQ=="/>
<commandGroup name="network vnet-gateway migration">
<command name="commit" version="2024-07-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}/commitmigration" version="2024-07-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya0dhdGV3YXlzL3t2aXJ0dWFsTmV0d29ya0dhdGV3YXlOYW1lfS9jb21taXRNaWdyYXRpb24=/V/MjAyNC0wNy0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.virtualNetworkGatewayName" options="vnet-gateway-name gateway-name n" required="True" group="" idPart="name">
<help short="The name of the gateway."/>
</arg>
</argGroup>
<operation operationId="VirtualNetworkGateways_InvokeCommitMigration">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/commitMigration">
<request method="post">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="virtualNetworkGatewayName" arg="$Path.virtualNetworkGatewayName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-07-01&quot;"/>
</const>
</query>
</request>
<response statusCode="202">
<header>
<item name="location"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
</command>
</commandGroup>
</CodeGen>
Loading