Skip to content

Commit

Permalink
20201020 regionalmove (Azure#11582)
Browse files Browse the repository at this point in the history
* regionmove

* resourcemover
  • Loading branch information
changlong-liu authored and giromm2ms committed Dec 20, 2020
1 parent 8aea2fb commit 4f0defb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"api-version": "2019-10-01-preview",
"body": {
"properties": {
"sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1",
"sourceId": "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1",
"dependsOnOverrides": [
{
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/networkInterfaces/eastusvm140"
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"
}
],
"resourceSettings": {
"resourceType": "Microsoft.Compute/virtualMachines",
"targetResourceName": "westusvm1",
"targetAvailabilityZone": "2",
"targetVmSize": null,
"targetAvailabilitySetId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/availabilitySets/avset1"
"targetAvailabilitySetId": "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1"
}
}
}
Expand All @@ -31,26 +31,26 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1",
"type": "Microsoft.Migrate/MoveCollections/MoveResources",
"properties": {
"sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1",
"sourceId": "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1",
"dependsOn": [
{
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"resolutionType": "Automatic",
"resolutionStatus": "Unresolved"
}
],
"dependsOnOverrides": [
{
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/networkInterfaces/eastusvm140"
"id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140",
"targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"
}
],
"resourceSettings": {
"resourceType": "Microsoft.Compute/virtualMachines",
"targetResourceName": "westusvm1",
"targetAvailabilityZone": "2",
"targetVmSize": null,
"targetAvailabilitySetId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/availabilitySets/avset1"
"targetAvailabilitySetId": "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1"
},
"provisioningState": "Succeeded"
}
Expand Down
12 changes: 12 additions & 0 deletions specification/resourcemover/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## AZ

These settings apply only when `--az` is specified on the command line.

``` yaml $(az)
az:
extensions: resourcemover
package-name: azure-mgmt-resourcemover
namespace: azure.mgmt.resourcemover
az-output-folder: $(azure-cli-extension-folder)/src/resourcemover
python-sdk-output-folder: "$(az-output-folder)/azext_resourcemover/vendored_sdks/resourcemover"
```
10 changes: 10 additions & 0 deletions specification/resourcemover/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## CLI

These settings apply only when `--cli` is specified on the command line.

``` yaml $(cli)
cli:
cli-name: resourcemover
package-name: azure-mgmt-resourcemover
namespace: azure.mgmt.resourcemover
```

0 comments on commit 4f0defb

Please sign in to comment.