From be957e3acefe8de6557cf0a40828514ea39dbcdc Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Sun, 27 Jul 2025 03:25:50 +1000 Subject: [PATCH 01/12] migrate ResourceMover to autorest v4 --- .../Properties/AssemblyInfo.cs | 26 +++++++++++++++++++ .../ResourceMover.Autorest/README.md | 6 +---- ...esourceMoverMoveResource_CreateExpanded.cs | 2 +- .../GetAzResourceMoverMoveCollection_Get.cs | 2 +- .../GetAzResourceMoverMoveCollection_List.cs | 2 +- .../GetAzResourceMoverMoveCollection_List1.cs | 2 +- .../GetAzResourceMoverMoveResource_Get.cs | 2 +- .../GetAzResourceMoverMoveResource_List.cs | 2 +- ...zResourceMoverRequiredForResources_List.cs | 2 +- ...AzResourceMoverUnresolvedDependency_Get.cs | 2 +- ...eAzResourceMoverBulkRemove_BulkExpanded.cs | 2 +- ...okeAzResourceMoverCommit_CommitExpanded.cs | 2 +- ...eAzResourceMoverDiscard_DiscardExpanded.cs | 2 +- ...ourceMoverInitiateMove_InitiateExpanded.cs | 2 +- ...eAzResourceMoverPrepare_PrepareExpanded.cs | 2 +- ...ourceMoverMoveCollection_CreateExpanded.cs | 2 +- ...oveAzResourceMoverMoveCollection_Delete.cs | 2 +- ...emoveAzResourceMoverMoveResource_Delete.cs | 2 +- ...ceMoverMoveCollectionDependency_Resolve.cs | 2 +- .../custom/csharp/RestErrorHandler.cs | 2 +- .../ResourceMover.Autorest/examples/README.md | 11 ++++++++ .../ResourceMover.Autorest/generate-info.json | 3 --- .../resources/README.md | 11 ++++++++ 23 files changed, 67 insertions(+), 26 deletions(-) create mode 100644 src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/README.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/generate-info.json create mode 100644 src/ResourceMover/ResourceMover.Autorest/resources/README.md diff --git a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..1f731e34659b --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ResourceMover")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 41284bbcc528..28e362bace8c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -62,10 +62,6 @@ input-file: - $(aks)/resourcemovercollection.json module-version: 1.0.0 -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: # Remove the unexpanded parameter set - where: @@ -135,7 +131,7 @@ directive: - ResourceSettings - from: ResourceMover.cs where: $ - transform: $ = $.replace(/throw new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.UndeclaredResponseException\(_response\);/g,"await onDefault\(_response,_response.Content.ReadAsStringAsync\(\).ContinueWith\( body => Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.CloudError.FromJson\(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse\(body.Result\)\) \)\);"); + transform: $ = $.replace(/throw new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.UndeclaredResponseException\(_response\);/g,"await onDefault\(_response,_response.Content.ReadAsStringAsync\(\).ContinueWith\( body => Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.CloudError.FromJson\(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse\(body.Result\)\) \)\);"); - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}"].put diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateExpanded.cs index 5c96079e7499..865fba4d7d05 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_Get.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_Get.cs index 000f17864dc7..0706dc440e21 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_Get.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List.cs index 31c6e128b0ae..767c1f6d32b4 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List1.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List1.cs index fc8ac42be08b..ab27f9fb558e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List1.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveCollection_List1.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_Get.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_Get.cs index f3ebaf8bcf43..af875342654b 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_Get.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_List.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_List.cs index 70a8a4f94392..9683ff3d2d91 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_List.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverRequiredForResources_List.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverRequiredForResources_List.cs index cfcdea248e31..d1f0e3410e47 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverRequiredForResources_List.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverRequiredForResources_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverUnresolvedDependency_Get.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverUnresolvedDependency_Get.cs index 9680f6538ce3..207be70c003e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverUnresolvedDependency_Get.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverUnresolvedDependency_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkExpanded.cs index d8339ced9b56..bde4ded50b96 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitExpanded.cs index 04a4c8df85f6..64d49869cd1c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardExpanded.cs index 8f31e7881288..1af727c96fdf 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateExpanded.cs index 8e80d5015faf..3add78e32e32 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareExpanded.cs index 88aa616ac5be..da3e6ade7134 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateExpanded.cs index f59f01322f02..be8213403218 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateExpanded.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveCollection_Delete.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveCollection_Delete.cs index 16230376c9c0..6406c89aab91 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveCollection_Delete.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveCollection_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_Delete.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_Delete.cs index a487df8c5b91..34477f67d8ad 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_Delete.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/ResolveAzResourceMoverMoveCollectionDependency_Resolve.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/ResolveAzResourceMoverMoveCollectionDependency_Resolve.cs index c6442360e7d2..d0afc7ef86d7 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/ResolveAzResourceMoverMoveCollectionDependency_Resolve.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/ResolveAzResourceMoverMoveCollectionDependency_Resolve.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs index 4c409e102d19..f81f5b251aa5 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs @@ -4,7 +4,7 @@ using System.Management.Automation; using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets { diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/README.md b/src/ResourceMover/ResourceMover.Autorest/examples/README.md new file mode 100644 index 000000000000..ac871d71fc72 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/README.md @@ -0,0 +1,11 @@ +# Examples +This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Purpose +This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder. \ No newline at end of file diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json deleted file mode 100644 index d25d3c5cad66..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "generate_Id": "07cb2b15-feee-4391-a45e-8314458515b9" -} diff --git a/src/ResourceMover/ResourceMover.Autorest/resources/README.md b/src/ResourceMover/ResourceMover.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file From deb1f394776078861d50a0ad2c1e1786bd49cc6f Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Thu, 31 Jul 2025 23:59:43 +1000 Subject: [PATCH 02/12] Fix list type count --- src/ResourceMover/ResourceMover.Autorest/README.md | 1 + .../ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 28e362bace8c..2e7612b4b7e7 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -129,6 +129,7 @@ directive: suppress-format: true - no-inline: - ResourceSettings + - from: ResourceMover.cs where: $ transform: $ = $.replace(/throw new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.UndeclaredResponseException\(_response\);/g,"await onDefault\(_response,_response.Content.ReadAsStringAsync\(\).ContinueWith\( body => Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.CloudError.FromJson\(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse\(body.Result\)\) \)\);"); diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs index f81f5b251aa5..6da6d2f7ace2 100644 --- a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RestErrorHandler.cs @@ -16,7 +16,7 @@ public static void WriteError(this Cmdlet cmdlet, HttpResponseMessage responseMe var errorString = string.Format("ErrorCode: {0}, Message: {1}", response.Code, response.Message); errorString+= System.Environment.NewLine; - if (response?.Detail != null && response?.Detail?.Length != 0) + if (response?.Detail != null && response?.Detail?.Count != 0) { var errors = response.Detail; From 1acd80d60f5ac8bc68fc04898b6e0df25968e950 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Fri, 1 Aug 2025 14:20:35 +1000 Subject: [PATCH 03/12] fix directive --- .../Properties/AssemblyInfo.cs | 8 +- .../ResourceMover.Autorest/README.md | 24 +- .../docs/Add-AzResourceMoverMoveResource.md | 12 +- .../docs/Az.ResourceMover.md | 42 ++- .../docs/Get-AzResourceMoverMoveCollection.md | 2 +- .../docs/Get-AzResourceMoverMoveResource.md | 33 +- ...Get-AzResourceMoverRequiredForResources.md | 2 +- ...Get-AzResourceMoverUnresolvedDependency.md | 6 +- ...AzResourceMoverBulkMoveCollectionRemove.md | 230 ++++++++++++ .../docs/Invoke-AzResourceMoverBulkRemove.md | 12 +- .../docs/Invoke-AzResourceMoverCommit.md | 10 +- ...oke-AzResourceMoverCommitMoveCollection.md | 230 ++++++++++++ .../docs/Invoke-AzResourceMoverDiscard.md | 12 +- .../Invoke-AzResourceMoverInitiateMove.md | 10 +- ...ResourceMoverInitiateMoveCollectionMove.md | 226 ++++++++++++ .../docs/Invoke-AzResourceMoverPrepare.md | 10 +- ...ke-AzResourceMoverPrepareMoveCollection.md | 230 ++++++++++++ .../docs/New-AzResourceMoverMoveCollection.md | 87 +++-- .../docs/New-AzResourceMoverMoveResource.md | 326 ++++++++++++++++++ .../Remove-AzResourceMoverMoveCollection.md | 49 ++- .../Remove-AzResourceMoverMoveResource.md | 32 +- ...AzResourceMoverMoveCollectionDependency.md | 2 +- .../Update-AzResourceMoverMoveResource.md | 236 +++++++++++++ ...AzResourceMoverBulkMoveCollectionRemove.md | 22 ++ ...oke-AzResourceMoverCommitMoveCollection.md | 22 ++ ...ResourceMoverInitiateMoveCollectionMove.md | 22 ++ ...ke-AzResourceMoverPrepareMoveCollection.md | 22 ++ .../New-AzResourceMoverMoveResource.md | 22 ++ .../ResourceMover.Autorest/examples/README.md | 11 - .../Update-AzResourceMoverMoveResource.md | 22 ++ ...rceMoverBulkMoveCollectionRemove.Tests.ps1 | 25 ++ ...esourceMoverCommitMoveCollection.Tests.ps1 | 25 ++ ...eMoverInitiateMoveCollectionMove.Tests.ps1 | 25 ++ ...sourceMoverPrepareMoveCollection.Tests.ps1 | 25 ++ .../New-AzResourceMoverMoveResource.Tests.ps1 | 29 ++ ...date-AzResourceMoverMoveResource.Tests.ps1 | 21 ++ src/ResourceMover/ResourceMover.sln | 87 ++++- .../ResourceMover/Az.ResourceMover.psd1 | 19 +- .../help/Add-AzResourceMoverMoveResource.md | 12 +- .../ResourceMover/help/Az.ResourceMover.md | 40 ++- .../help/Get-AzResourceMoverMoveCollection.md | 2 +- .../help/Get-AzResourceMoverMoveResource.md | 35 +- ...Get-AzResourceMoverRequiredForResources.md | 2 +- ...Get-AzResourceMoverUnresolvedDependency.md | 6 +- ...AzResourceMoverBulkMoveCollectionRemove.md | 229 ++++++++++++ .../help/Invoke-AzResourceMoverBulkRemove.md | 14 +- .../help/Invoke-AzResourceMoverCommit.md | 12 +- ...oke-AzResourceMoverCommitMoveCollection.md | 229 ++++++++++++ .../help/Invoke-AzResourceMoverDiscard.md | 11 +- .../Invoke-AzResourceMoverInitiateMove.md | 12 +- ...ResourceMoverInitiateMoveCollectionMove.md | 225 ++++++++++++ .../help/Invoke-AzResourceMoverPrepare.md | 12 +- ...ke-AzResourceMoverPrepareMoveCollection.md | 229 ++++++++++++ .../help/New-AzResourceMoverMoveCollection.md | 85 +++-- .../help/New-AzResourceMoverMoveResource.md | 325 +++++++++++++++++ .../Remove-AzResourceMoverMoveCollection.md | 49 ++- .../Remove-AzResourceMoverMoveResource.md | 35 +- ...AzResourceMoverMoveCollectionDependency.md | 2 +- 58 files changed, 3608 insertions(+), 188 deletions(-) create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/README.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 create mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md create mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md create mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md create mode 100644 src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md diff --git a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs index 1f731e34659b..cb5b75aea07e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs +++ b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,9 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ResourceMover")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file +[assembly: System.CLSCompliantAttribute(false)] + + diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 2e7612b4b7e7..41acc63a86d8 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -65,75 +65,89 @@ module-version: 1.0.0 directive: # Remove the unexpanded parameter set - where: - variant: ^Initiate$|^InitiateViaIdentity$|^InitiateViaIdentityExpanded$|^Commit$|^CommitViaIdentity$|^CommitViaIdentityExpanded$|^Discard$|^DiscardViaIdentity$|^DiscardViaIdentityExpanded$|^Prepare$|^PrepareViaIdentity$|^PrepareViaIdentityExpanded$|^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^UpdateViaIdentity$|^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$|^Bulk$|^BulkViaIdentity$|^BulkViaIdentityExpanded$ + variant: ^(Initiate|Commit|Discard|Prepare|Create|Update|Bulk)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true + + - where: + variant: ^InitiateViaIdentityExpanded$|^CommitViaIdentityExpanded$|^DiscardViaIdentityExpanded$|^PrepareViaIdentityExpanded$|^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$|^BulkViaIdentityExpanded$ + remove: true + - where: subject: OperationsDiscovery remove: true + - where: variant: DiscardExpanded subject: MoveCollection verb: Remove set: verb: Invoke + - where: variant: DiscardExpanded subject: MoveCollection verb: Invoke set: subject: Discard + - where: variant: CreateExpanded subject: MoveResource verb: New set: verb: Add + - where: variant: PrepareExpanded set: subject: Prepare + - where: variant: InitiateExpanded set: subject: InitiateMove + - where: variant: CommitExpanded set: subject: Commit + - where: variant: BulkExpanded set: subject: BulkRemove + - where: verb: Add subject: MoveResource set: alias: - Update-AzResourceMoverMoveResource + - where: verb: Get subject: MoveCollectionRequired set: subject: RequiredForResources + - where: model-name: MoveResource set: suppress-format: true + - where: model-name: OperationStatus set: suppress-format: true + - where: model-name: UnresolvedDependency set: suppress-format: true + - no-inline: - ResourceSettings - - from: ResourceMover.cs - where: $ - transform: $ = $.replace(/throw new Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.UndeclaredResponseException\(_response\);/g,"await onDefault\(_response,_response.Content.ReadAsStringAsync\(\).ContinueWith\( body => Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.CloudError.FromJson\(Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Runtime.Json.JsonNode.Parse\(body.Result\)\) \)\);"); - - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}"].put transform: $["description"] = "Creates or updates a move collection. The following types of move collections based on the move scenario are supported currently:\
\
**1. RegionToRegion** (Moving resources across regions)\
\
**2. RegionToZone** (Moving virtual machines into a zone within the same region)" diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md index 8e84e4a1b5a8..a0cd48d4dbbd 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Add-AzResourceMoverMoveResource ## SYNOPSIS -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -22,7 +22,7 @@ Add-AzResourceMoverMoveResource -MoveCollectionName -Name -Res ``` ## DESCRIPTION -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -327,10 +327,9 @@ Accept wildcard characters: False ### -DependsOnOverride Gets or sets the move resource dependencies overrides. -To construct, see NOTES section for DEPENDSONOVERRIDE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResourceDependencyOverride[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] Parameter Sets: (All) Aliases: @@ -418,10 +417,9 @@ Accept wildcard characters: False ### -ResourceSetting Gets or sets the resource settings. -To construct, see NOTES section for RESOURCESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IResourceSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings Parameter Sets: (All) Aliases: @@ -500,7 +498,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md index eb49ebc62491..87b62f44c61e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md @@ -1,6 +1,6 @@ --- Module Name: Az.ResourceMover -Module Guid: 97d87543-8eef-4574-a70d-7317ec4abe54 +Module Guid: 1cace6d9-20aa-4eea-aa4c-3c6f10b496e6 Download Help Link: https://learn.microsoft.com/powershell/module/az.resourcemover Help Version: 1.0.0.0 Locale: en-US @@ -12,7 +12,7 @@ Microsoft Azure PowerShell: ResourceMover cmdlets ## Az.ResourceMover Cmdlets ### [Add-AzResourceMoverMoveResource](Add-AzResourceMoverMoveResource.md) -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -42,6 +42,13 @@ Gets a list of unresolved dependencies. **However, for move collections with moveType 'RegionToZone' dependencies are automatically added to the move collection once 'Resolve-AzResourceMoverMoveCollectionDependency' is executed. Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command documentation for additional details.** +### [Invoke-AzResourceMoverBulkMoveCollectionRemove](Invoke-AzResourceMoverBulkMoveCollectionRemove.md) +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverBulkRemove](Invoke-AzResourceMoverBulkRemove.md) Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -56,6 +63,13 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** +### [Invoke-AzResourceMoverCommitMoveCollection](Invoke-AzResourceMoverCommitMoveCollection.md) +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverDiscard](Invoke-AzResourceMoverDiscard.md) Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -68,6 +82,11 @@ Moves the set of resources included in the request body.The move operation is tr **The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** +### [Invoke-AzResourceMoverInitiateMoveCollectionMove](Invoke-AzResourceMoverInitiateMoveCollectionMove.md) +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverPrepare](Invoke-AzResourceMoverPrepare.md) Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -75,8 +94,15 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** +### [Invoke-AzResourceMoverPrepareMoveCollection](Invoke-AzResourceMoverPrepareMoveCollection.md) +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + ### [New-AzResourceMoverMoveCollection](New-AzResourceMoverMoveCollection.md) -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -85,6 +111,11 @@ RegionToRegion** (Moving resources across regions) **2. RegionToZone** (Moving virtual machines into a zone within the same region) +### [New-AzResourceMoverMoveResource](New-AzResourceMoverMoveResource.md) +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Remove-AzResourceMoverMoveCollection](Remove-AzResourceMoverMoveCollection.md) Deletes a move collection. @@ -102,3 +133,8 @@ Computes, resolves and validate the dependencies of the moveResources in the mov **However, for moveType 'RegionToZone' this command finds the required dependencies and automatically adds them to the move collection in a single step.** +### [Update-AzResourceMoverMoveResource](Update-AzResourceMoverMoveResource.md) +Update a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveCollection.md index d6dffe172186..17b276fd84a0 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveCollection.md @@ -158,7 +158,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md index cf5ad668fa88..646a6258d9d5 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md @@ -26,6 +26,12 @@ Get-AzResourceMoverMoveResource -MoveCollectionName -Name -Res [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentityMoveCollection +``` +Get-AzResourceMoverMoveResource -MoveCollectionInputObject -Name + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets the Move Resource. @@ -324,12 +330,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: GetViaIdentityMoveCollection +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get, List Aliases: Required: True @@ -344,7 +365,7 @@ The Move Resource Name. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityMoveCollection Aliases: MoveResourceName Required: True @@ -359,7 +380,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Get, List Aliases: Required: True @@ -374,7 +395,7 @@ The Subscription ID. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: Get, List Aliases: Required: False @@ -389,9 +410,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverRequiredForResources.md b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverRequiredForResources.md index ee9528867777..e73115f78e60 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverRequiredForResources.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverRequiredForResources.md @@ -131,7 +131,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IRequiredForResourcesCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverUnresolvedDependency.md b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverUnresolvedDependency.md index 35fb389698b2..98d921bdd48f 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverUnresolvedDependency.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverUnresolvedDependency.md @@ -19,7 +19,7 @@ Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command docume ``` Get-AzResourceMoverUnresolvedDependency -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-DependencyLevel ] [-Filter ] [-Orderby ] + [-SubscriptionId ] [-DependencyLevel ] [-Filter ] [-Orderby ] [-DefaultProfile ] [] ``` @@ -71,7 +71,7 @@ Accept wildcard characters: False Defines the dependency level. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel +Type: System.String Parameter Sets: (All) Aliases: @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IUnresolvedDependency +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IUnresolvedDependency ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md new file mode 100644 index 000000000000..32d24651a9dd --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkmovecollectionremove +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverBulkMoveCollectionRemove + +## SYNOPSIS +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### BulkViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### BulkViaJsonString +``` +Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md index 268351076d7d..1e71ca6b4701 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md @@ -18,8 +18,8 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -31,7 +31,7 @@ To aid the user to prerequisite the operation the client can call operation with ## EXAMPLES -### Example 1: Validate the dependenciesss before remove of the Move Resources from Move Collection +### Example 1: Validate the dependecies before remove of the Move Resources from Move Collection ```powershell Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId" -ValidateOnly ``` @@ -51,7 +51,7 @@ Status : Succeeded ``` -Validate the dependencies before remove of the move resources from Move Collection. +Validate the dependecies before remove of the move resources from Move Collection. ### Example 2: Remove the Move Resource from Move Collection using "MoveResource Name" as input ```powershell @@ -162,7 +162,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -271,7 +271,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md index 6eddb13f3446..92b146a5acdb 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md @@ -17,8 +17,8 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX ``` -Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName -MoveResource - [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -197,7 +197,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -208,7 +208,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -317,7 +317,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md new file mode 100644 index 000000000000..275ecd3a6736 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommitmovecollection +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverCommitMoveCollection + +## SYNOPSIS +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### CommitViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CommitViaJsonString +``` +Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md index 927512739d10..2b6434339ac6 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md @@ -17,9 +17,9 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX ``` -Invoke-AzResourceMoverDiscard -Name -ResourceGroupName -MoveResource - [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] + [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -139,7 +139,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -150,7 +150,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -274,7 +274,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md index f136dba8f780..9c1ad0a01f42 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md @@ -16,8 +16,8 @@ Moves the set of resources included in the request body.The move operation is tr ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName - -MoveResource [-SubscriptionId ] [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -191,7 +191,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -202,7 +202,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -311,7 +311,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md new file mode 100644 index 000000000000..81578957b53e --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md @@ -0,0 +1,226 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemovecollectionmove +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverInitiateMoveCollectionMove + +## SYNOPSIS +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### InitiateViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### InitiateViaJsonString +``` +Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md index dda6d534966e..ed3a4c976860 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md @@ -18,8 +18,8 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName - -MoveResource [-SubscriptionId ] [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -166,7 +166,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -177,7 +177,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -286,7 +286,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md new file mode 100644 index 000000000000..7bbb0740ccc1 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverpreparemovecollection +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverPrepareMoveCollection + +## SYNOPSIS +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + +## SYNTAX + +### PrepareViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### PrepareViaJsonString +``` +Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md index f0adc156139f..163220dcf432 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzResourceMoverMoveCollection ## SYNOPSIS -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -19,16 +19,29 @@ RegionToZone** (Moving virtual machines into a zone within the same region) ## SYNTAX +### CreateExpanded (Default) ``` New-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] - [-IdentityPrincipalId ] [-IdentityTenantId ] [-IdentityType ] - [-Location ] [-MoveRegion ] [-MoveType ] [-SourceRegion ] - [-Tag ] [-TargetRegion ] [-Version ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-EnableSystemAssignedIdentity] [-IdentityPrincipalId ] [-IdentityTenantId ] + [-Location ] [-MoveRegion ] [-MoveType ] [-SourceRegion ] [-Tag ] + [-TargetRegion ] [-Version ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -87,12 +100,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityPrincipalId Gets or sets the principal id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -107,7 +135,7 @@ Gets or sets the tenant id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -117,15 +145,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityType -The type of identity used for the resource mover service. +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateViaJsonFilePath Aliases: -Required: False +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True Position: Named Default value: None Accept pipeline input: False @@ -137,7 +180,7 @@ The geo-location where the resource lives. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -152,7 +195,7 @@ Gets or sets the move region which indicates the region where the VM Regional to ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -166,8 +209,8 @@ Accept wildcard characters: False Defines the MoveType. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -212,7 +255,7 @@ Gets or sets the source region. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -242,7 +285,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -257,7 +300,7 @@ Gets or sets the target region. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -272,7 +315,7 @@ Gets or sets the version of move collection. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -320,7 +363,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md new file mode 100644 index 000000000000..fe5a6969e529 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md @@ -0,0 +1,326 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermoveresource +schema: 2.0.0 +--- + +# New-AzResourceMoverMoveResource + +## SYNOPSIS +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### CreateViaIdentityMoveCollectionExpanded (Default) +``` +New-AzResourceMoverMoveResource -MoveCollectionInputObject -Name + [-DependsOnOverride ] [-ExistingTargetId ] + [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DependsOnOverride +Gets or sets the move resource dependencies overrides. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExistingTargetId +Gets or sets the existing target ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The Move Resource Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: MoveResourceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceSetting +Gets or sets the resource settings. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceId +Gets or sets the Source ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md index 4ab650b71eb4..e727b8eff58e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md @@ -14,11 +14,26 @@ Deletes a move collection. ## SYNTAX +### Delete (Default) ``` Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DiscardViaJsonFilePath +``` +Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### DiscardViaJsonString +``` +Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Deletes a move collection. @@ -80,6 +95,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The Move Collection Name. @@ -115,7 +160,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: False @@ -193,7 +238,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveResource.md index 992b07a9a70f..697c1e9c26f3 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveResource.md @@ -14,12 +14,19 @@ Deletes a Move Resource from the move collection. ## SYNTAX +### Delete (Default) ``` Remove-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityMoveCollection +``` +Remove-AzResourceMoverMoveResource -MoveCollectionInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a Move Resource from the move collection. @@ -81,12 +88,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: DeleteViaIdentityMoveCollection +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: True @@ -146,7 +168,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: True @@ -161,7 +183,7 @@ The Subscription ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: False @@ -207,9 +229,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Resolve-AzResourceMoverMoveCollectionDependency.md b/src/ResourceMover/ResourceMover.Autorest/docs/Resolve-AzResourceMoverMoveCollectionDependency.md index 912b77504940..1556e0623bca 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Resolve-AzResourceMoverMoveCollectionDependency.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Resolve-AzResourceMoverMoveCollectionDependency.md @@ -204,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md new file mode 100644 index 000000000000..fd702207afaf --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/update-azresourcemovermoveresource +schema: 2.0.0 +--- + +# Update-AzResourceMoverMoveResource + +## SYNOPSIS +Update a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +``` +Update-AzResourceMoverMoveResource -MoveCollectionInputObject -Name + [-DependsOnOverride ] [-ExistingTargetId ] + [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DependsOnOverride +Gets or sets the move resource dependencies overrides. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExistingTargetId +Gets or sets the existing target ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The Move Resource Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: MoveResourceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceSetting +Gets or sets the resource settings. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceId +Gets or sets the Source ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource + +## NOTES + +## RELATED LINKS + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/README.md b/src/ResourceMover/ResourceMover.Autorest/examples/README.md deleted file mode 100644 index ac871d71fc72..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Examples -This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran. - -## Info -- Modifiable: yes -- Generated: partial -- Committed: yes -- Packaged: no - -## Purpose -This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder. \ No newline at end of file diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 new file mode 100644 index 000000000000..51f9f650035c --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverBulkMoveCollectionRemove')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverBulkMoveCollectionRemove.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzResourceMoverBulkMoveCollectionRemove' { + It 'BulkViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'BulkViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 new file mode 100644 index 000000000000..2a613b8b7b50 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverCommitMoveCollection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverCommitMoveCollection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzResourceMoverCommitMoveCollection' { + It 'CommitViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CommitViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 new file mode 100644 index 000000000000..25da20b63053 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverInitiateMoveCollectionMove')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverInitiateMoveCollectionMove.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzResourceMoverInitiateMoveCollectionMove' { + It 'InitiateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'InitiateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 new file mode 100644 index 000000000000..d3fc80dca1b5 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverPrepareMoveCollection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverPrepareMoveCollection.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Invoke-AzResourceMoverPrepareMoveCollection' { + It 'PrepareViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PrepareViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 new file mode 100644 index 000000000000..e7638bcc9463 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzResourceMoverMoveResource')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzResourceMoverMoveResource.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzResourceMoverMoveResource' { + It 'CreateViaIdentityMoveCollectionExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 new file mode 100644 index 000000000000..f039b8f293c6 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzResourceMoverMoveResource')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzResourceMoverMoveResource.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzResourceMoverMoveResource' { + It 'UpdateViaIdentityMoveCollectionExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index d43775948934..323011ceb9a0 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMover\ResourceMover.csproj", "{26991967-CCE2-4F52-94F1-A85E3723BE2D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{1F006A8D-0567-4F77-970A-35D2301074EC}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "ResourceMover.Autorest\Az.ResourceMover.csproj", "{D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|x64.ActiveCfg = Debug|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|x64.Build.0 = Debug|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|x86.ActiveCfg = Debug|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Debug|x86.Build.0 = Debug|Any CPU {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|Any CPU.ActiveCfg = Release|Any CPU {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|Any CPU.Build.0 = Release|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|x64.ActiveCfg = Release|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|x64.Build.0 = Release|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|x86.ActiveCfg = Release|Any CPU + {65E03409-AA84-40FE-8A3D-826C5542DA0E}.Release|x86.Build.0 = Release|Any CPU {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|x64.ActiveCfg = Debug|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|x64.Build.0 = Debug|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|x86.ActiveCfg = Debug|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Debug|x86.Build.0 = Debug|Any CPU {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|Any CPU.ActiveCfg = Release|Any CPU {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|Any CPU.Build.0 = Release|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|x64.ActiveCfg = Release|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|x64.Build.0 = Release|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|x86.ActiveCfg = Release|Any CPU + {327404DC-F503-4DD6-90B8-3058A42FA4FB}.Release|x86.Build.0 = Release|Any CPU {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|x64.ActiveCfg = Debug|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|x64.Build.0 = Debug|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|x86.ActiveCfg = Debug|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Debug|x86.Build.0 = Debug|Any CPU {C0285CAB-0196-43E5-9235-916058515F6F}.Release|Any CPU.ActiveCfg = Release|Any CPU {C0285CAB-0196-43E5-9235-916058515F6F}.Release|Any CPU.Build.0 = Release|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Release|x64.ActiveCfg = Release|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Release|x64.Build.0 = Release|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Release|x86.ActiveCfg = Release|Any CPU + {C0285CAB-0196-43E5-9235-916058515F6F}.Release|x86.Build.0 = Release|Any CPU {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|x64.ActiveCfg = Debug|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|x64.Build.0 = Debug|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|x86.ActiveCfg = Debug|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Debug|x86.Build.0 = Debug|Any CPU {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|Any CPU.ActiveCfg = Release|Any CPU {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|Any CPU.Build.0 = Release|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|x64.ActiveCfg = Release|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|x64.Build.0 = Release|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|x86.ActiveCfg = Release|Any CPU + {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D}.Release|x86.Build.0 = Release|Any CPU {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|x64.ActiveCfg = Debug|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|x64.Build.0 = Debug|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|x86.ActiveCfg = Debug|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Debug|x86.Build.0 = Debug|Any CPU {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|Any CPU.ActiveCfg = Release|Any CPU {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|Any CPU.Build.0 = Release|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|x64.ActiveCfg = Release|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|x64.Build.0 = Release|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|x86.ActiveCfg = Release|Any CPU + {257E080F-878F-4247-9C63-27D636AF9E3A}.Release|x86.Build.0 = Release|Any CPU {42263E13-6DA9-4608-9140-78D24858E049}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {42263E13-6DA9-4608-9140-78D24858E049}.Debug|Any CPU.Build.0 = Debug|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Debug|x64.ActiveCfg = Debug|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Debug|x64.Build.0 = Debug|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Debug|x86.ActiveCfg = Debug|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Debug|x86.Build.0 = Debug|Any CPU {42263E13-6DA9-4608-9140-78D24858E049}.Release|Any CPU.ActiveCfg = Release|Any CPU {42263E13-6DA9-4608-9140-78D24858E049}.Release|Any CPU.Build.0 = Release|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Release|x64.ActiveCfg = Release|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Release|x64.Build.0 = Release|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Release|x86.ActiveCfg = Release|Any CPU + {42263E13-6DA9-4608-9140-78D24858E049}.Release|x86.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|x64.ActiveCfg = Debug|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|x64.Build.0 = Debug|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|x86.ActiveCfg = Debug|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Debug|x86.Build.0 = Debug|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|Any CPU.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|Any CPU.Build.0 = Release|Any CPU - {1F006A8D-0567-4F77-970A-35D2301074EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1F006A8D-0567-4F77-970A-35D2301074EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1F006A8D-0567-4F77-970A-35D2301074EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1F006A8D-0567-4F77-970A-35D2301074EC}.Release|Any CPU.Build.0 = Release|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.ActiveCfg = Release|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU + {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x64.ActiveCfg = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x64.Build.0 = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x86.ActiveCfg = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x86.Build.0 = Debug|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|Any CPU.Build.0 = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x64.ActiveCfg = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x64.Build.0 = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x86.ActiveCfg = Release|Any CPU + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {65E03409-AA84-40FE-8A3D-826C5542DA0E} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} @@ -70,5 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} + {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 index b853d0805578..0015de523df6 100644 --- a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 8/1/2025 # @{ @@ -63,7 +63,8 @@ RequiredAssemblies = 'ResourceMover.Autorest/bin/Az.ResourceMover.private.dll' # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'ResourceMover.Autorest\Az.ResourceMover.format.ps1xml' +FormatsToProcess = 'ResourceMover.Autorest\Az.ResourceMover.format.ps1xml', + 'ResourceMover.Autorest/Az.ResourceMover.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ResourceMover.Autorest/Az.ResourceMover.psm1') @@ -81,13 +82,19 @@ FunctionsToExport = 'Add-AzResourceMoverMoveResource', 'New-AzResourceMoverMoveCollection', 'Remove-AzResourceMoverMoveCollection', 'Remove-AzResourceMoverMoveResource', - 'Resolve-AzResourceMoverMoveCollectionDependency' + 'Resolve-AzResourceMoverMoveCollectionDependency', + 'Invoke-AzResourceMoverBulkMoveCollectionRemove', + 'Invoke-AzResourceMoverCommitMoveCollection', + 'Invoke-AzResourceMoverInitiateMoveCollectionMove', + 'Invoke-AzResourceMoverPrepareMoveCollection', + 'New-AzResourceMoverMoveResource', + 'Update-AzResourceMoverMoveResource' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() # Variables to export from this module -# VariablesToExport = @() +VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = 'Update-AzResourceMoverMoveResource' @@ -107,7 +114,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ResourceMover' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ResourceMover' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -132,7 +139,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md index b18d66e658d9..6332fd9e992b 100644 --- a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Add-AzResourceMoverMoveResource ## SYNOPSIS -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -23,7 +23,7 @@ Add-AzResourceMoverMoveResource -MoveCollectionName -Name -Res ``` ## DESCRIPTION -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -328,10 +328,9 @@ Accept wildcard characters: False ### -DependsOnOverride Gets or sets the move resource dependencies overrides. -To construct, see NOTES section for DEPENDSONOVERRIDE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResourceDependencyOverride[] +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] Parameter Sets: (All) Aliases: @@ -419,10 +418,9 @@ Accept wildcard characters: False ### -ResourceSetting Gets or sets the resource settings. -To construct, see NOTES section for RESOURCESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IResourceSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings Parameter Sets: (All) Aliases: @@ -501,7 +499,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md index eb49ebc62491..60ed9a4e4fa6 100644 --- a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md @@ -12,7 +12,7 @@ Microsoft Azure PowerShell: ResourceMover cmdlets ## Az.ResourceMover Cmdlets ### [Add-AzResourceMoverMoveResource](Add-AzResourceMoverMoveResource.md) -Creates or updates a Move Resource in the move collection. +Create a Move Resource in the move collection. **The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** @@ -42,6 +42,13 @@ Gets a list of unresolved dependencies. **However, for move collections with moveType 'RegionToZone' dependencies are automatically added to the move collection once 'Resolve-AzResourceMoverMoveCollectionDependency' is executed. Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command documentation for additional details.** +### [Invoke-AzResourceMoverBulkMoveCollectionRemove](Invoke-AzResourceMoverBulkMoveCollectionRemove.md) +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverBulkRemove](Invoke-AzResourceMoverBulkRemove.md) Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -56,6 +63,13 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** +### [Invoke-AzResourceMoverCommitMoveCollection](Invoke-AzResourceMoverCommitMoveCollection.md) +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverDiscard](Invoke-AzResourceMoverDiscard.md) Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -68,6 +82,11 @@ Moves the set of resources included in the request body.The move operation is tr **The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** +### [Invoke-AzResourceMoverInitiateMoveCollectionMove](Invoke-AzResourceMoverInitiateMoveCollectionMove.md) +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Invoke-AzResourceMoverPrepare](Invoke-AzResourceMoverPrepare.md) Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -75,8 +94,15 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** +### [Invoke-AzResourceMoverPrepareMoveCollection](Invoke-AzResourceMoverPrepareMoveCollection.md) +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + ### [New-AzResourceMoverMoveCollection](New-AzResourceMoverMoveCollection.md) -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -85,6 +111,11 @@ RegionToRegion** (Moving resources across regions) **2. RegionToZone** (Moving virtual machines into a zone within the same region) +### [New-AzResourceMoverMoveResource](New-AzResourceMoverMoveResource.md) +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + ### [Remove-AzResourceMoverMoveCollection](Remove-AzResourceMoverMoveCollection.md) Deletes a move collection. @@ -102,3 +133,8 @@ Computes, resolves and validate the dependencies of the moveResources in the mov **However, for moveType 'RegionToZone' this command finds the required dependencies and automatically adds them to the move collection in a single step.** +### [Update-AzResourceMoverMoveResource](Update-AzResourceMoverMoveResource.md) +Update a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + diff --git a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveCollection.md index 58880b126ff4..f1f436366e80 100644 --- a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveCollection.md @@ -154,7 +154,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md index c8e9f18bf9db..77ed74fb3b47 100644 --- a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md @@ -23,11 +23,17 @@ Get-AzResourceMoverMoveResource -MoveCollectionName -ResourceGroupName ### Get ``` -Get-AzResourceMoverMoveResource -MoveCollectionName -ResourceGroupName -Name +Get-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentityMoveCollection +``` +Get-AzResourceMoverMoveResource -Name -MoveCollectionInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets the Move Resource. @@ -323,12 +329,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: GetViaIdentityMoveCollection +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: List, Get Aliases: Required: True @@ -343,7 +364,7 @@ The Move Resource Name. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityMoveCollection Aliases: MoveResourceName Required: True @@ -358,7 +379,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: List, Get Aliases: Required: True @@ -373,7 +394,7 @@ The Subscription ID. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: List, Get Aliases: Required: False @@ -388,9 +409,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverRequiredForResources.md b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverRequiredForResources.md index 47611b36a5bd..50a5568424a1 100644 --- a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverRequiredForResources.md +++ b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverRequiredForResources.md @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### System.String +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IRequiredForResourcesCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverUnresolvedDependency.md b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverUnresolvedDependency.md index 9a090f959132..474c82248036 100644 --- a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverUnresolvedDependency.md +++ b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverUnresolvedDependency.md @@ -19,7 +19,7 @@ Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command docume ``` Get-AzResourceMoverUnresolvedDependency -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-DependencyLevel ] [-Filter ] [-Orderby ] + [-SubscriptionId ] [-DependencyLevel ] [-Filter ] [-Orderby ] [-DefaultProfile ] [] ``` @@ -71,7 +71,7 @@ Accept wildcard characters: False Defines the dependency level. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel +Type: System.String Parameter Sets: (All) Aliases: @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IUnresolvedDependency +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IUnresolvedDependency ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md new file mode 100644 index 000000000000..5f3eca6ae150 --- /dev/null +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md @@ -0,0 +1,229 @@ +--- +external help file: Az.ResourceMover-help.xml +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkmovecollectionremove +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverBulkMoveCollectionRemove + +## SYNOPSIS +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### BulkViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### BulkViaJsonString +``` +Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Removes the set of move resources included in the request body from move collection. +The orchestration is done by service. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md index c2677decef3a..839b25cf55b0 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md @@ -18,9 +18,9 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -32,7 +32,7 @@ To aid the user to prerequisite the operation the client can call operation with ## EXAMPLES -### Example 1: Validate the dependencies before remove of the Move Resources from Move Collection +### Example 1: Validate the dependecies before remove of the Move Resources from Move Collection ```powershell Invoke-AzResourceMoverBulkRemove -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveCollectionName "PS-centralus-westcentralus-demoRMS" -MoveResource $('PSDemoVM') -MoveResourceInputType "MoveResourceId" -ValidateOnly ``` @@ -51,7 +51,7 @@ StartTime : 2/10/2021 12:52:28 PM Status : Succeeded ``` -Validate the dependencies before remove of the move resources from Move Collection. +Validate the dependecies before remove of the move resources from Move Collection. ### Example 2: Remove the Move Resource from Move Collection using "MoveResource Name" as input ```powershell @@ -162,7 +162,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -271,7 +271,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md index 44752a78d61b..974b22e0a619 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md @@ -18,9 +18,9 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -192,7 +192,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -203,7 +203,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -312,7 +312,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md new file mode 100644 index 000000000000..533d4bd6ee4e --- /dev/null +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md @@ -0,0 +1,229 @@ +--- +external help file: Az.ResourceMover-help.xml +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommitmovecollection +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverCommitMoveCollection + +## SYNOPSIS +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### CommitViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CommitViaJsonString +``` +Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Commits the set of resources included in the request body. +The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md index 2150f06299eb..ef4338eaa0d2 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md @@ -18,9 +18,8 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] - -MoveResource [-MoveResourceInputType ] [-ValidateOnly] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -136,7 +135,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -147,7 +146,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -271,7 +270,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md index f1de32c08dac..64a154789a6f 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md @@ -16,9 +16,9 @@ Moves the set of resources included in the request body.The move operation is tr ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -187,7 +187,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -198,7 +198,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -307,7 +307,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md new file mode 100644 index 000000000000..a335dea689e6 --- /dev/null +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md @@ -0,0 +1,225 @@ +--- +external help file: Az.ResourceMover-help.xml +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemovecollectionmove +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverInitiateMoveCollectionMove + +## SYNOPSIS +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### InitiateViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### InitiateViaJsonString +``` +Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md index 84ea9d03e9f7..b4f4444526a5 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md @@ -18,9 +18,9 @@ To aid the user to prerequisite the operation the client can call operation with ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] - [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -166,7 +166,7 @@ Type: System.String[] Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -177,7 +177,7 @@ Accept wildcard characters: False Defines the move resource input type. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType +Type: System.String Parameter Sets: (All) Aliases: @@ -286,7 +286,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md new file mode 100644 index 000000000000..7fb9b52a2734 --- /dev/null +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md @@ -0,0 +1,229 @@ +--- +external help file: Az.ResourceMover-help.xml +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverpreparemovecollection +schema: 2.0.0 +--- + +# Invoke-AzResourceMoverPrepareMoveCollection + +## SYNOPSIS +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + +## SYNTAX + +### PrepareViaJsonFilePath (Default) +``` +Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### PrepareViaJsonString +``` +Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Initiates prepare for the set of resources included in the request body. +The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. +To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. + +**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus + +## NOTES + +## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md index bd77a4f865e3..b148c4b79bfd 100644 --- a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzResourceMoverMoveCollection ## SYNOPSIS -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -19,16 +19,31 @@ RegionToZone** (Moving virtual machines into a zone within the same region) ## SYNTAX +### CreateExpanded (Default) ``` New-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] - [-IdentityPrincipalId ] [-IdentityTenantId ] [-IdentityType ] - [-Location ] [-MoveRegion ] [-MoveType ] [-SourceRegion ] [-Tag ] + [-EnableSystemAssignedIdentity] [-IdentityPrincipalId ] [-IdentityTenantId ] + [-Location ] [-MoveRegion ] [-MoveType ] [-SourceRegion ] [-Tag ] [-TargetRegion ] [-Version ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION -Creates or updates a move collection. +Create a move collection. The following types of move collections based on the move scenario are supported currently: **1. @@ -87,12 +102,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -EnableSystemAssignedIdentity +Determines whether to enable a system-assigned identity for the resource. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityPrincipalId Gets or sets the principal id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -107,7 +137,7 @@ Gets or sets the tenant id. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -117,15 +147,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -IdentityType -The type of identity used for the resource mover service. +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateViaJsonFilePath Aliases: -Required: False +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True Position: Named Default value: None Accept pipeline input: False @@ -137,7 +182,7 @@ The geo-location where the resource lives. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -152,7 +197,7 @@ Gets or sets the move region which indicates the region where the VM Regional to ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -166,8 +211,8 @@ Accept wildcard characters: False Defines the MoveType. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -212,7 +257,7 @@ Gets or sets the source region. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -242,7 +287,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -257,7 +302,7 @@ Gets or sets the target region. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -272,7 +317,7 @@ Gets or sets the version of move collection. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -320,7 +365,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveCollection ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md new file mode 100644 index 000000000000..671a71a1c02c --- /dev/null +++ b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md @@ -0,0 +1,325 @@ +--- +external help file: Az.ResourceMover-help.xml +Module Name: Az.ResourceMover +online version: https://learn.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermoveresource +schema: 2.0.0 +--- + +# New-AzResourceMoverMoveResource + +## SYNOPSIS +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## SYNTAX + +### CreateViaIdentityMoveCollectionExpanded (Default) +``` +New-AzResourceMoverMoveResource -Name -MoveCollectionInputObject + [-DependsOnOverride ] [-ExistingTargetId ] + [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a Move Resource in the move collection. + +**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DependsOnOverride +Gets or sets the move resource dependencies overrides. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExistingTargetId +Gets or sets the existing target ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -MoveCollectionName +The Move Collection Name. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The Move Resource Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: MoveResourceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceSetting +Gets or sets the resource settings. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceId +Gets or sets the Source ARM Id of the resource. + +```yaml +Type: System.String +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription ID. + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource + +## NOTES + +## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md index c27297144deb..7379cd534510 100644 --- a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md @@ -14,12 +14,27 @@ Deletes a move collection. ## SYNTAX +### Delete (Default) ``` Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DiscardViaJsonFilePath +``` +Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### DiscardViaJsonString +``` +Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Deletes a move collection. @@ -81,6 +96,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The Move Collection Name. @@ -116,7 +161,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: False @@ -194,7 +239,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveResource.md index 08df4def599c..accb26e73052 100644 --- a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveResource.md @@ -14,12 +14,20 @@ Deletes a Move Resource from the move collection. ## SYNTAX +### Delete (Default) ``` -Remove-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName +Remove-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityMoveCollection +``` +Remove-AzResourceMoverMoveResource -Name -MoveCollectionInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ## DESCRIPTION Deletes a Move Resource from the move collection. @@ -80,12 +88,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: DeleteViaIdentityMoveCollection +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: True @@ -145,7 +168,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: True @@ -160,7 +183,7 @@ The Subscription ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Delete Aliases: Required: False @@ -206,9 +229,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES diff --git a/src/ResourceMover/ResourceMover/help/Resolve-AzResourceMoverMoveCollectionDependency.md b/src/ResourceMover/ResourceMover/help/Resolve-AzResourceMoverMoveCollectionDependency.md index 027d3eab2561..cc44335f72ca 100644 --- a/src/ResourceMover/ResourceMover/help/Resolve-AzResourceMoverMoveCollectionDependency.md +++ b/src/ResourceMover/ResourceMover/help/Resolve-AzResourceMoverMoveCollectionDependency.md @@ -204,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus ## NOTES From 73da93e5205f8cecdfdec82091e29c733b3c28b9 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Sun, 3 Aug 2025 00:30:07 +1000 Subject: [PATCH 04/12] fix directive & docs & test --- .../Properties/AssemblyInfo.cs | 2 - .../ResourceMover.Autorest/README.md | 11 +- .../docs/Add-AzResourceMoverMoveResource.md | 36 +-- .../docs/Az.ResourceMover.md | 31 --- .../docs/Get-AzResourceMoverMoveResource.md | 28 +-- ...AzResourceMoverBulkMoveCollectionRemove.md | 230 ----------------- ...oke-AzResourceMoverCommitMoveCollection.md | 230 ----------------- ...ResourceMoverInitiateMoveCollectionMove.md | 226 ----------------- .../docs/Invoke-AzResourceMoverPrepare.md | 2 +- ...ke-AzResourceMoverPrepareMoveCollection.md | 230 ----------------- .../docs/New-AzResourceMoverMoveCollection.md | 4 +- .../Update-AzResourceMoverMoveResource.md | 236 ------------------ ...AzResourceMoverBulkMoveCollectionRemove.md | 22 -- ...oke-AzResourceMoverCommitMoveCollection.md | 22 -- ...ResourceMoverInitiateMoveCollectionMove.md | 22 -- ...ke-AzResourceMoverPrepareMoveCollection.md | 22 -- .../Update-AzResourceMoverMoveResource.md | 22 -- .../ResourceMover.Autorest/generate-info.json | 3 + .../Add-AzResourceMoverMoveResource.Tests.ps1 | 2 +- ...ew-AzResourceMoverMoveCollection.Tests.ps1 | 2 +- ...ve-AzResourceMoverMoveCollection.Tests.ps1 | 2 +- src/ResourceMover/ResourceMover.sln | 30 +-- .../ResourceMover/Az.ResourceMover.psd1 | 20 +- .../ResourceMover/help/Az.ResourceMover.md | 31 --- ...AzResourceMoverBulkMoveCollectionRemove.md | 229 ----------------- ...oke-AzResourceMoverCommitMoveCollection.md | 229 ----------------- ...ResourceMoverInitiateMoveCollectionMove.md | 225 ----------------- ...ke-AzResourceMoverPrepareMoveCollection.md | 229 ----------------- 28 files changed, 71 insertions(+), 2307 deletions(-) delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md create mode 100644 src/ResourceMover/ResourceMover.Autorest/generate-info.json delete mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md delete mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md delete mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md delete mode 100644 src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md diff --git a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs index cb5b75aea07e..98c7e9827d41 100644 --- a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs +++ b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs @@ -24,5 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 41acc63a86d8..6ccd6de843d4 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -61,15 +61,20 @@ aks: $(repo)/specification/resourcemover/resource-manager/Microsoft.Migrate/stab input-file: - $(aks)/resourcemovercollection.json module-version: 1.0.0 +disable-getput: true directive: # Remove the unexpanded parameter set - where: - variant: ^(Initiate|Commit|Discard|Prepare|Create|Update|Bulk)(?!.*?(Expanded|JsonFilePath|JsonString)) + variant: ^(Discard|Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true - + + - where: + variant: ^DiscardViaIdentityExpanded$|^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$ + remove: true + - where: - variant: ^InitiateViaIdentityExpanded$|^CommitViaIdentityExpanded$|^DiscardViaIdentityExpanded$|^PrepareViaIdentityExpanded$|^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$|^BulkViaIdentityExpanded$ + variant: ^(Bulk|Commit|Initiate|Prepare)(?!Expanded$) remove: true - where: diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md index a0cd48d4dbbd..73b5211a348d 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md @@ -30,7 +30,7 @@ Create a Move Resource in the move collection. ### Example 1: Add a resource to the Move Collection. (RegionToRegion) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "PSDemoVM" @@ -56,9 +56,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -73,7 +73,7 @@ Add a resource to 'RegionToRegion' type Move Collection. ### Example 2: Add a resource to the Move Collection. (RegionToZone) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "demo-RegionToZone-VM-Target" $targetResourceSettingsObj.TargetAvailabilityZone = "1" @@ -95,8 +95,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-R egionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. @@ -106,10 +106,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User @@ -146,9 +146,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -185,9 +185,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : PSDemoNIC-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PS-demo-RegionToZone-RG/providers/Microsoft.Network/networkinterfaces/nic_demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -229,9 +229,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -266,8 +266,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies. @@ -276,10 +276,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md index 87b62f44c61e..e9391d05d160 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md @@ -42,13 +42,6 @@ Gets a list of unresolved dependencies. **However, for move collections with moveType 'RegionToZone' dependencies are automatically added to the move collection once 'Resolve-AzResourceMoverMoveCollectionDependency' is executed. Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command documentation for additional details.** -### [Invoke-AzResourceMoverBulkMoveCollectionRemove](Invoke-AzResourceMoverBulkMoveCollectionRemove.md) -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverBulkRemove](Invoke-AzResourceMoverBulkRemove.md) Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -63,13 +56,6 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** -### [Invoke-AzResourceMoverCommitMoveCollection](Invoke-AzResourceMoverCommitMoveCollection.md) -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverDiscard](Invoke-AzResourceMoverDiscard.md) Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -82,11 +68,6 @@ Moves the set of resources included in the request body.The move operation is tr **The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** -### [Invoke-AzResourceMoverInitiateMoveCollectionMove](Invoke-AzResourceMoverInitiateMoveCollectionMove.md) -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverPrepare](Invoke-AzResourceMoverPrepare.md) Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -94,13 +75,6 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** -### [Invoke-AzResourceMoverPrepareMoveCollection](Invoke-AzResourceMoverPrepareMoveCollection.md) -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - ### [New-AzResourceMoverMoveCollection](New-AzResourceMoverMoveCollection.md) Create a move collection. The following types of move collections based on the move scenario are supported currently: @@ -133,8 +107,3 @@ Computes, resolves and validate the dependencies of the moveResources in the mov **However, for moveType 'RegionToZone' this command finds the required dependencies and automatically adds them to the move collection in a single step.** -### [Update-AzResourceMoverMoveResource](Update-AzResourceMoverMoveResource.md) -Update a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md index 646a6258d9d5..d2aafabbf716 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Get-AzResourceMoverMoveResource.md @@ -65,9 +65,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -98,10 +98,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -130,10 +130,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemorm-vnet ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v net -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -162,10 +162,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm-nsg ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde movm-nsg -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -194,9 +194,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : DeleteSourcePending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -236,9 +236,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -279,10 +279,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md deleted file mode 100644 index 32d24651a9dd..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkMoveCollectionRemove.md +++ /dev/null @@ -1,230 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkmovecollectionremove -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverBulkMoveCollectionRemove - -## SYNOPSIS -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### BulkViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### BulkViaJsonString -``` -Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Bulk operation - -```yaml -Type: System.String -Parameter Sets: BulkViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Bulk operation - -```yaml -Type: System.String -Parameter Sets: BulkViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md deleted file mode 100644 index 275ecd3a6736..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommitMoveCollection.md +++ /dev/null @@ -1,230 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommitmovecollection -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverCommitMoveCollection - -## SYNOPSIS -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### CommitViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### CommitViaJsonString -``` -Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Commit operation - -```yaml -Type: System.String -Parameter Sets: CommitViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Commit operation - -```yaml -Type: System.String -Parameter Sets: CommitViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md deleted file mode 100644 index 81578957b53e..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMoveCollectionMove.md +++ /dev/null @@ -1,226 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemovecollectionmove -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverInitiateMoveCollectionMove - -## SYNOPSIS -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### InitiateViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### InitiateViaJsonString -``` -Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Initiate operation - -```yaml -Type: System.String -Parameter Sets: InitiateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Initiate operation - -```yaml -Type: System.String -Parameter Sets: InitiateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md index ed3a4c976860..50bfd662448c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md @@ -37,7 +37,7 @@ $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demo ``` ```output -AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo} +AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.OperationErrorAdditionalInfo} Code : MoveCollectionMissingRequiredDependentResources Detail : {} EndTime : 2/9/2021 9:04:15 AM diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md deleted file mode 100644 index 7bbb0740ccc1..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepareMoveCollection.md +++ /dev/null @@ -1,230 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverpreparemovecollection -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverPrepareMoveCollection - -## SYNOPSIS -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - -## SYNTAX - -### PrepareViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### PrepareViaJsonString -``` -Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Prepare operation - -```yaml -Type: System.String -Parameter Sets: PrepareViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Prepare operation - -```yaml -Type: System.String -Parameter Sets: PrepareViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md index 163220dcf432..fccc79563fdb 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveCollection.md @@ -54,7 +54,7 @@ RegionToZone** (Moving virtual machines into a zone within the same region) ### Example 1: Create a new Move collection. (RegionToRegion) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned" +New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -EnableSystemAssignedIdentity ``` ```output @@ -69,7 +69,7 @@ Please ensure 'MoveRegion' parameter is not required and should be set to null, ### Example 2: Create a new Move collection. (RegionToZone) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -IdentityType "SystemAssigned" -MoveType "RegionToZone" +New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -EnableSystemAssignedIdentity -MoveType "RegionToZone" ``` ```output diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md deleted file mode 100644 index fd702207afaf..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Update-AzResourceMoverMoveResource.md +++ /dev/null @@ -1,236 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/update-azresourcemovermoveresource -schema: 2.0.0 ---- - -# Update-AzResourceMoverMoveResource - -## SYNOPSIS -Update a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -``` -Update-AzResourceMoverMoveResource -MoveCollectionInputObject -Name - [-DependsOnOverride ] [-ExistingTargetId ] - [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Update a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DependsOnOverride -Gets or sets the move resource dependencies overrides. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExistingTargetId -Gets or sets the existing target ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The Move Resource Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: MoveResourceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceSetting -Gets or sets the resource settings. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SourceId -Gets or sets the Source ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverBulkMoveCollectionRemove.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverCommitMoveCollection.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverInitiateMoveCollectionMove.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepareMoveCollection.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Update-AzResourceMoverMoveResource.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json new file mode 100644 index 000000000000..bb6d3455ee7a --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -0,0 +1,3 @@ +{ + "generate_Id": "3947cd23-75b0-44ae-8aff-8e66e3e65a6a" +} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Add-AzResourceMoverMoveResource.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Add-AzResourceMoverMoveResource.Tests.ps1 index 87f41c9dd257..312e00ef4b7c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/test/Add-AzResourceMoverMoveResource.Tests.ps1 +++ b/src/ResourceMover/ResourceMover.Autorest/test/Add-AzResourceMoverMoveResource.Tests.ps1 @@ -14,7 +14,7 @@ while (-not $mockingPath) { Describe 'Add-AzResourceMoverMoveResource' { It 'AddExpanded' { Remove-AzResourceMoverMoveResource -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.moveCollectionMetadataRG -MoveCollectionName $env.moveCollectionName -Name "mr-nsg" - $trs = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings + $trs = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings $trs.ResourceType = "Microsoft.Network/networkSecurityGroups" $trs.TargetResourceName = "demo-NSG-rms-centralus" $moveResource = Add-AzResourceMoverMoveResource -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.moveCollectionMetadataRG -MoveCollectionName $env.moveCollectionName -SourceId "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourcegroups/demo-RG-rms/providers/Microsoft.Network/networkSecurityGroups/demo-NSG-rms" -Name "mr-nsg" -ResourceSetting $trs diff --git a/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveCollection.Tests.ps1 index 9e291b842ff7..309f760670f2 100644 --- a/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveCollection.Tests.ps1 +++ b/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveCollection.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'New-AzResourceMoverMoveCollection' { It 'CreateExpanded' { - $moveCollection = New-AzResourceMoverMoveCollection -Name $env.moveCollectionName -ResourceGroupName $env.moveCollectionMetadataRG -SubscriptionId $env.SubscriptionId -SourceRegion "eastus" -TargetRegion "centralus" -Location "eastus2euap" -IdentityType "SystemAssigned" + $moveCollection = New-AzResourceMoverMoveCollection -Name $env.moveCollectionName -ResourceGroupName $env.moveCollectionMetadataRG -SubscriptionId $env.SubscriptionId -SourceRegion "eastus" -TargetRegion "centralus" -Location "eastus2euap" -EnableSystemAssignedIdentity $moveCollection.Name | Should -Be $env.moveCollectionName } } \ No newline at end of file diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Remove-AzResourceMoverMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Remove-AzResourceMoverMoveCollection.Tests.ps1 index 9e1d5e7f6d5d..1dc7437ecea5 100644 --- a/src/ResourceMover/ResourceMover.Autorest/test/Remove-AzResourceMoverMoveCollection.Tests.ps1 +++ b/src/ResourceMover/ResourceMover.Autorest/test/Remove-AzResourceMoverMoveCollection.Tests.ps1 @@ -14,7 +14,7 @@ while(-not $mockingPath) { Describe 'Remove-AzResourceMoverMoveCollection' { It 'Delete' { $moveCollectionName = "MoveColRemoveTest" - $moveCollection = New-AzResourceMoverMoveCollection -Name $moveCollectionName -ResourceGroupName $env.moveCollectionMetadataRG -SubscriptionId $env.SubscriptionId -SourceRegion "eastus" -TargetRegion "westus2" -Location "eastus2euap" -IdentityType "SystemAssigned" + $moveCollection = New-AzResourceMoverMoveCollection -Name $moveCollectionName -ResourceGroupName $env.moveCollectionMetadataRG -SubscriptionId $env.SubscriptionId -SourceRegion "eastus" -TargetRegion "westus2" -Location "eastus2euap" -EnableSystemAssignedIdentity $moveCollection.Name | Should -Be $moveCollectionName $removeResp = Remove-AzResourceMoverMoveCollection -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.moveCollectionMetadataRG -MoveCollectionName $moveCollectionName $removeResp.Status | Should -Be "Succeeded" diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index 323011ceb9a0..f8341760489b 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "ResourceMover.Autorest\Az.ResourceMover.csproj", "{D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{62A2E80F-5DC8-4C0B-BD17-7124A6045C07}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x64.ActiveCfg = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x64.Build.0 = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x86.ActiveCfg = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Debug|x86.Build.0 = Debug|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|Any CPU.Build.0 = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x64.ActiveCfg = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x64.Build.0 = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x86.ActiveCfg = Release|Any CPU - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B}.Release|x86.Build.0 = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x64.ActiveCfg = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x64.Build.0 = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x86.ActiveCfg = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x86.Build.0 = Debug|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|Any CPU.Build.0 = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x64.ActiveCfg = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x64.Build.0 = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x86.ActiveCfg = Release|Any CPU + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {D5FB221C-00AD-439C-98DE-4F5C08B2AF5B} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {62A2E80F-5DC8-4C0B-BD17-7124A6045C07} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 index 0015de523df6..0fa19f54e98b 100644 --- a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 @@ -51,20 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ResourceMover.Autorest/bin/Az.ResourceMover.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'ResourceMover.Autorest\Az.ResourceMover.format.ps1xml', - 'ResourceMover.Autorest/Az.ResourceMover.format.ps1xml' +FormatsToProcess = 'ResourceMover.Autorest/Az.ResourceMover.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ResourceMover.Autorest/Az.ResourceMover.psm1') @@ -80,21 +79,16 @@ FunctionsToExport = 'Add-AzResourceMoverMoveResource', 'Invoke-AzResourceMoverInitiateMove', 'Invoke-AzResourceMoverPrepare', 'New-AzResourceMoverMoveCollection', + 'New-AzResourceMoverMoveResource', 'Remove-AzResourceMoverMoveCollection', 'Remove-AzResourceMoverMoveResource', - 'Resolve-AzResourceMoverMoveCollectionDependency', - 'Invoke-AzResourceMoverBulkMoveCollectionRemove', - 'Invoke-AzResourceMoverCommitMoveCollection', - 'Invoke-AzResourceMoverInitiateMoveCollectionMove', - 'Invoke-AzResourceMoverPrepareMoveCollection', - 'New-AzResourceMoverMoveResource', - 'Update-AzResourceMoverMoveResource' + 'Resolve-AzResourceMoverMoveCollectionDependency' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() # Variables to export from this module -VariablesToExport = '*' +# VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = 'Update-AzResourceMoverMoveResource' diff --git a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md index 60ed9a4e4fa6..63d45aa0b1ff 100644 --- a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md @@ -42,13 +42,6 @@ Gets a list of unresolved dependencies. **However, for move collections with moveType 'RegionToZone' dependencies are automatically added to the move collection once 'Resolve-AzResourceMoverMoveCollectionDependency' is executed. Please refer to 'Resolve-AzResourceMoverMoveCollectionDependency' command documentation for additional details.** -### [Invoke-AzResourceMoverBulkMoveCollectionRemove](Invoke-AzResourceMoverBulkMoveCollectionRemove.md) -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverBulkRemove](Invoke-AzResourceMoverBulkRemove.md) Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -63,13 +56,6 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** -### [Invoke-AzResourceMoverCommitMoveCollection](Invoke-AzResourceMoverCommitMoveCollection.md) -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverDiscard](Invoke-AzResourceMoverDiscard.md) Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -82,11 +68,6 @@ Moves the set of resources included in the request body.The move operation is tr **The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** -### [Invoke-AzResourceMoverInitiateMoveCollectionMove](Invoke-AzResourceMoverInitiateMoveCollectionMove.md) -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Invoke-AzResourceMoverPrepare](Invoke-AzResourceMoverPrepare.md) Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -94,13 +75,6 @@ To aid the user to prerequisite the operation the client can call operation with **The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** -### [Invoke-AzResourceMoverPrepareMoveCollection](Invoke-AzResourceMoverPrepareMoveCollection.md) -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - ### [New-AzResourceMoverMoveCollection](New-AzResourceMoverMoveCollection.md) Create a move collection. The following types of move collections based on the move scenario are supported currently: @@ -133,8 +107,3 @@ Computes, resolves and validate the dependencies of the moveResources in the mov **However, for moveType 'RegionToZone' this command finds the required dependencies and automatically adds them to the move collection in a single step.** -### [Update-AzResourceMoverMoveResource](Update-AzResourceMoverMoveResource.md) -Update a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md deleted file mode 100644 index 5f3eca6ae150..000000000000 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkMoveCollectionRemove.md +++ /dev/null @@ -1,229 +0,0 @@ ---- -external help file: Az.ResourceMover-help.xml -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverbulkmovecollectionremove -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverBulkMoveCollectionRemove - -## SYNOPSIS -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### BulkViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### BulkViaJsonString -``` -Invoke-AzResourceMoverBulkMoveCollectionRemove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -Removes the set of move resources included in the request body from move collection. -The orchestration is done by service. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverBulkRemove ' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Bulk operation - -```yaml -Type: System.String -Parameter Sets: BulkViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Bulk operation - -```yaml -Type: System.String -Parameter Sets: BulkViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md deleted file mode 100644 index 533d4bd6ee4e..000000000000 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommitMoveCollection.md +++ /dev/null @@ -1,229 +0,0 @@ ---- -external help file: Az.ResourceMover-help.xml -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemovercommitmovecollection -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverCommitMoveCollection - -## SYNOPSIS -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### CommitViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### CommitViaJsonString -``` -Invoke-AzResourceMoverCommitMoveCollection -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -Commits the set of resources included in the request body. -The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverCommit' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Commit operation - -```yaml -Type: System.String -Parameter Sets: CommitViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Commit operation - -```yaml -Type: System.String -Parameter Sets: CommitViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md deleted file mode 100644 index a335dea689e6..000000000000 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMoveCollectionMove.md +++ /dev/null @@ -1,225 +0,0 @@ ---- -external help file: Az.ResourceMover-help.xml -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverinitiatemovecollectionmove -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverInitiateMoveCollectionMove - -## SYNOPSIS -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### InitiateViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### InitiateViaJsonString -``` -Invoke-AzResourceMoverInitiateMoveCollectionMove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverInitiateMove' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Initiate operation - -```yaml -Type: System.String -Parameter Sets: InitiateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Initiate operation - -```yaml -Type: System.String -Parameter Sets: InitiateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md deleted file mode 100644 index 7fb9b52a2734..000000000000 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepareMoveCollection.md +++ /dev/null @@ -1,229 +0,0 @@ ---- -external help file: Az.ResourceMover-help.xml -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/invoke-azresourcemoverpreparemovecollection -schema: 2.0.0 ---- - -# Invoke-AzResourceMoverPrepareMoveCollection - -## SYNOPSIS -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - -## SYNTAX - -### PrepareViaJsonFilePath (Default) -``` -Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### PrepareViaJsonString -``` -Invoke-AzResourceMoverPrepareMoveCollection -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -Initiates prepare for the set of resources included in the request body. -The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. -To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. - -**The 'Invoke-AzResourceMoverPrepare' command is not applicable on move collections with moveType 'RegionToZone' since prepare is not a valid operation for region to zone move scenario.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Prepare operation - -```yaml -Type: System.String -Parameter Sets: PrepareViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Prepare operation - -```yaml -Type: System.String -Parameter Sets: PrepareViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatus - -## NOTES - -## RELATED LINKS From 369df30426c3219c5c3b5fe7941be2f93e41b54e Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Sun, 3 Aug 2025 00:51:01 +1000 Subject: [PATCH 05/12] Fix example & rebuild --- .../Add-AzResourceMoverMoveResource.md | 36 +++++++++---------- .../Get-AzResourceMoverMoveResource.md | 28 +++++++-------- .../examples/Invoke-AzResourceMoverPrepare.md | 2 +- .../New-AzResourceMoverMoveCollection.md | 4 +-- .../ResourceMover.Autorest/generate-info.json | 2 +- src/ResourceMover/ResourceMover.sln | 28 +++++++-------- .../ResourceMover/Az.ResourceMover.psd1 | 2 +- .../help/Add-AzResourceMoverMoveResource.md | 36 +++++++++---------- .../help/Get-AzResourceMoverMoveResource.md | 28 +++++++-------- .../help/Invoke-AzResourceMoverPrepare.md | 2 +- .../help/New-AzResourceMoverMoveCollection.md | 4 +-- 11 files changed, 86 insertions(+), 86 deletions(-) diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/Add-AzResourceMoverMoveResource.md index 83ebdd5c5711..30e7139d043f 100644 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Add-AzResourceMoverMoveResource.md @@ -1,6 +1,6 @@ ### Example 1: Add a resource to the Move Collection. (RegionToRegion) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "PSDemoVM" @@ -26,9 +26,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -43,7 +43,7 @@ Add a resource to 'RegionToRegion' type Move Collection. ### Example 2: Add a resource to the Move Collection. (RegionToZone) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "demo-RegionToZone-VM-Target" $targetResourceSettingsObj.TargetAvailabilityZone = "1" @@ -65,8 +65,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-R egionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. @@ -76,10 +76,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User @@ -116,9 +116,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -154,9 +154,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : PSDemoNIC-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PS-demo-RegionToZone-RG/providers/Microsoft.Network/networkinterfaces/nic_demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -198,9 +198,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -235,8 +235,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies. @@ -245,10 +245,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/Get-AzResourceMoverMoveResource.md index d651aa58c170..05d030a12595 100644 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Get-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Get-AzResourceMoverMoveResource.md @@ -24,9 +24,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -57,10 +57,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -89,10 +89,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemorm-vnet ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v net -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -121,10 +121,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm-nsg ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde movm-nsg -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -153,9 +153,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : DeleteSourcePending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -195,9 +195,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -238,10 +238,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepare.md index 101e45ade5f4..68c135f9f5bb 100644 --- a/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover.Autorest/examples/Invoke-AzResourceMoverPrepare.md @@ -4,7 +4,7 @@ $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demo ``` ```output -AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo} +AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.OperationErrorAdditionalInfo} Code : MoveCollectionMissingRequiredDependentResources Detail : {} EndTime : 2/9/2021 9:04:15 AM diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveCollection.md index c0bb8cbb4f05..71e3eca03e58 100644 --- a/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveCollection.md @@ -1,6 +1,6 @@ ### Example 1: Create a new Move collection. (RegionToRegion) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned" +New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -EnableSystemAssignedIdentity ``` ```output @@ -13,7 +13,7 @@ Create a new Move Collection for moving resources across regions. **Please note ### Example 2: Create a new Move collection. (RegionToZone) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -IdentityType "SystemAssigned" -MoveType "RegionToZone" +New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -EnableSystemAssignedIdentity -MoveType "RegionToZone" ``` ```output diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index bb6d3455ee7a..509599441d06 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3947cd23-75b0-44ae-8aff-8e66e3e65a6a" + "generate_Id": "9ac21a5b-b0bc-480c-897e-9e0a24dfdecb" } diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index f8341760489b..a5f912caba69 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{62A2E80F-5DC8-4C0B-BD17-7124A6045C07}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{38E87D43-8417-48A5-ACD7-094719D498AF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|Any CPU.Build.0 = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x64.ActiveCfg = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x64.Build.0 = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x86.ActiveCfg = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Debug|x86.Build.0 = Debug|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|Any CPU.ActiveCfg = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|Any CPU.Build.0 = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x64.ActiveCfg = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x64.Build.0 = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x86.ActiveCfg = Release|Any CPU - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07}.Release|x86.Build.0 = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x64.ActiveCfg = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x64.Build.0 = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x86.ActiveCfg = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x86.Build.0 = Debug|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|Any CPU.Build.0 = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x64.ActiveCfg = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x64.Build.0 = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x86.ActiveCfg = Release|Any CPU + {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {62A2E80F-5DC8-4C0B-BD17-7124A6045C07} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {38E87D43-8417-48A5-ACD7-094719D498AF} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 index 0fa19f54e98b..451c4274d239 100644 --- a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/1/2025 +# Generated on: 8/3/2025 # @{ diff --git a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md index 6332fd9e992b..5c3ebe5adee4 100644 --- a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md @@ -31,7 +31,7 @@ Create a Move Resource in the move collection. ### Example 1: Add a resource to the Move Collection. (RegionToRegion) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "PSDemoVM" @@ -57,9 +57,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -74,7 +74,7 @@ Add a resource to 'RegionToRegion' type Move Collection. ### Example 2: Add a resource to the Move Collection. (RegionToZone) ```powershell -$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings $targetResourceSettingsObj.ResourceType = "Microsoft.Compute/virtualMachines" $targetResourceSettingsObj.TargetResourceName = "demo-RegionToZone-VM-Target" $targetResourceSettingsObj.TargetAvailabilityZone = "1" @@ -96,8 +96,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-R egionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. @@ -107,10 +107,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User @@ -147,9 +147,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -186,9 +186,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : CommitPending Name : PSDemoNIC-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/PS-demo-RegionToZone-RG/providers/Microsoft.Network/networkinterfaces/nic_demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -230,9 +230,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -267,8 +267,8 @@ IsResolveRequired : False JobStatusJobName : JobStatusJobProgress : MoveStatusErrorsPropertiesCode : DependencyComputationPending -MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.MoveResourceErrorBody} +MoveStatusErrorsPropertiesDetail : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.MoveResourceErrorBody} MoveStatusErrorsPropertiesMessage : The dependency computation is not completed for resource - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/demo-RegionToZone-VM'. Possible Causes: Dependency computation is pending for resource. Recommended Action: Validate dependencies to compute the dependencies. @@ -277,10 +277,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : MovePending Name : PSDemoVM-RegionToZone ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PS-demo-RegionToZone-RG/providers/Microsoft.Compute/virtualMachines/ demo-RegionToZone-VM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : 9/5/2023 11:13:46 AM SystemDataCreatedBy : xxxxxxx SystemDataCreatedByType : User diff --git a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md index 77ed74fb3b47..7f2f1dbe0cb7 100644 --- a/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Get-AzResourceMoverMoveResource.md @@ -67,9 +67,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -100,10 +100,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -132,10 +132,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemorm-vnet ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/psdemorm/providers/Microsoft.Network/virtualNetworks/psdemorm-v net -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualNetworkResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualNetworkResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -164,10 +164,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm-nsg ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networksecuritygroups/psde movm-nsg -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkSecurityGroupResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkSecurityGroupResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -196,9 +196,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : DeleteSourcePending Name : psdemorm ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.ResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.ResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -237,9 +237,9 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : PSDemoVM ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/PSDemoRM/providers/Microsoft.Compute/virtualMachines/PSDemoVM -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.VirtualMachineResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.VirtualMachineResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : @@ -279,10 +279,10 @@ MoveStatusErrorsPropertiesTarget : MoveStatusMoveState : PreparePending Name : psdemovm111 ProvisioningState : Succeeded -ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +ResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SourceId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/psdemorm/providers/microsoft.network/networkinterfaces/psdemovm 111 -SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.NetworkInterfaceResourceSettings +SourceResourceSetting : Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.NetworkInterfaceResourceSettings SystemDataCreatedAt : SystemDataCreatedBy : SystemDataCreatedByType : diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md index b4f4444526a5..8dfc3d5d1954 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md @@ -38,7 +38,7 @@ $resp = Invoke-AzResourceMoverPrepare -ResourceGroupName "RG-MoveCollection-demo ``` ```output -AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20191001Preview.OperationErrorAdditionalInfo} +AdditionalInfo : {Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.OperationErrorAdditionalInfo} Code : MoveCollectionMissingRequiredDependentResources Detail : {} EndTime : 2/9/2021 9:04:15 AM diff --git a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md index b148c4b79bfd..e69e4d4fd65c 100644 --- a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveCollection.md @@ -56,7 +56,7 @@ RegionToZone** (Moving virtual machines into a zone within the same region) ### Example 1: Create a new Move collection. (RegionToRegion) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -IdentityType "SystemAssigned" +New-AzResourceMoverMoveCollection -Name "PS-centralus-westcentralus-demoRMS" -ResourceGroupName "RG-MoveCollection-demoRMS" -SourceRegion "centralus" -TargetRegion "westcentralus" -Location "centraluseuap" -EnableSystemAssignedIdentity ``` ```output @@ -71,7 +71,7 @@ Please ensure 'MoveRegion' parameter is not required and should be set to null, ### Example 2: Create a new Move collection. (RegionToZone) ```powershell -New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -IdentityType "SystemAssigned" -MoveType "RegionToZone" +New-AzResourceMoverMoveCollection -Name "PS-demo-RegionToZone" -ResourceGroupName "RG-MoveCollection-demoRMS" -MoveRegion "eastus" -Location "eastus2euap" -EnableSystemAssignedIdentity -MoveType "RegionToZone" ``` ```output From 395b2562025535b8a966a1f48cb0871b58eca6b9 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Sun, 3 Aug 2025 01:25:54 +1000 Subject: [PATCH 06/12] Remove unused test files --- .../ResourceMover.Autorest/generate-info.json | 2 +- ...rceMoverBulkMoveCollectionRemove.Tests.ps1 | 25 ----------------- ...esourceMoverCommitMoveCollection.Tests.ps1 | 25 ----------------- ...eMoverInitiateMoveCollectionMove.Tests.ps1 | 25 ----------------- ...sourceMoverPrepareMoveCollection.Tests.ps1 | 25 ----------------- ...date-AzResourceMoverMoveResource.Tests.ps1 | 21 -------------- src/ResourceMover/ResourceMover.sln | 28 +++++++++---------- 7 files changed, 15 insertions(+), 136 deletions(-) delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index 509599441d06..ae1197b95846 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "9ac21a5b-b0bc-480c-897e-9e0a24dfdecb" + "generate_Id": "0251b088-3091-4d4f-91d1-c63205570575" } diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 deleted file mode 100644 index 51f9f650035c..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverBulkMoveCollectionRemove.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverBulkMoveCollectionRemove')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverBulkMoveCollectionRemove.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzResourceMoverBulkMoveCollectionRemove' { - It 'BulkViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'BulkViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 deleted file mode 100644 index 2a613b8b7b50..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverCommitMoveCollection.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverCommitMoveCollection')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverCommitMoveCollection.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzResourceMoverCommitMoveCollection' { - It 'CommitViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CommitViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 deleted file mode 100644 index 25da20b63053..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverInitiateMoveCollectionMove.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverInitiateMoveCollectionMove')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverInitiateMoveCollectionMove.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzResourceMoverInitiateMoveCollectionMove' { - It 'InitiateViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'InitiateViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 deleted file mode 100644 index d3fc80dca1b5..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/Invoke-AzResourceMoverPrepareMoveCollection.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzResourceMoverPrepareMoveCollection')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzResourceMoverPrepareMoveCollection.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Invoke-AzResourceMoverPrepareMoveCollection' { - It 'PrepareViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'PrepareViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 deleted file mode 100644 index f039b8f293c6..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/Update-AzResourceMoverMoveResource.Tests.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzResourceMoverMoveResource')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzResourceMoverMoveResource.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzResourceMoverMoveResource' { - It 'UpdateViaIdentityMoveCollectionExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index a5f912caba69..27601f695a08 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{38E87D43-8417-48A5-ACD7-094719D498AF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{11F1F031-3759-4D65-8439-FCD2E44C03E1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x64.ActiveCfg = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x64.Build.0 = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x86.ActiveCfg = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Debug|x86.Build.0 = Debug|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|Any CPU.Build.0 = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x64.ActiveCfg = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x64.Build.0 = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x86.ActiveCfg = Release|Any CPU - {38E87D43-8417-48A5-ACD7-094719D498AF}.Release|x86.Build.0 = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x64.ActiveCfg = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x64.Build.0 = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x86.ActiveCfg = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x86.Build.0 = Debug|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|Any CPU.Build.0 = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x64.ActiveCfg = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x64.Build.0 = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x86.ActiveCfg = Release|Any CPU + {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {38E87D43-8417-48A5-ACD7-094719D498AF} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {11F1F031-3759-4D65-8439-FCD2E44C03E1} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal From 16ee24bd86fac50f3371fb226426813e87a8999f Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Sun, 3 Aug 2025 16:58:43 +1000 Subject: [PATCH 07/12] add MoveResource default variants --- .../ResourceMover.Autorest/README.md | 1 - .../docs/Add-AzResourceMoverMoveResource.md | 84 ++++- .../docs/Az.ResourceMover.md | 5 - .../docs/New-AzResourceMoverMoveResource.md | 326 ------------------ .../New-AzResourceMoverMoveResource.md | 22 -- .../ResourceMover.Autorest/generate-info.json | 2 +- .../New-AzResourceMoverMoveResource.Tests.ps1 | 29 -- src/ResourceMover/ResourceMover.sln | 28 +- .../ResourceMover/Az.ResourceMover.psd1 | 1 - .../help/Add-AzResourceMoverMoveResource.md | 86 ++++- .../ResourceMover/help/Az.ResourceMover.md | 5 - .../help/New-AzResourceMoverMoveResource.md | 325 ----------------- 12 files changed, 170 insertions(+), 744 deletions(-) delete mode 100644 src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md delete mode 100644 src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 delete mode 100644 src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 6ccd6de843d4..2dc7d9c67729 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -96,7 +96,6 @@ directive: subject: Discard - where: - variant: CreateExpanded subject: MoveResource verb: New set: diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md index 73b5211a348d..492162e0a46c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Add-AzResourceMoverMoveResource.md @@ -14,6 +14,7 @@ Create a Move Resource in the move collection. ## SYNTAX +### CreateExpanded (Default) ``` Add-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName [-SubscriptionId ] [-DependsOnOverride ] @@ -21,6 +22,28 @@ Add-AzResourceMoverMoveResource -MoveCollectionName -Name -Res [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### CreateViaIdentityMoveCollectionExpanded +``` +Add-AzResourceMoverMoveResource -MoveCollectionInputObject -Name + [-DependsOnOverride ] [-ExistingTargetId ] + [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +Add-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonString +``` +Add-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + ## DESCRIPTION Create a Move Resource in the move collection. @@ -330,7 +353,7 @@ Gets or sets the move resource dependencies overrides. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -345,7 +368,7 @@ Gets or sets the existing target ARM Id of the resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -355,12 +378,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -405,7 +473,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -420,7 +488,7 @@ Gets or sets the resource settings. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -435,7 +503,7 @@ Gets or sets the Source ARM Id of the resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -450,7 +518,7 @@ The Subscription ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -496,6 +564,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md index e9391d05d160..2490e21c7e71 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Az.ResourceMover.md @@ -85,11 +85,6 @@ RegionToRegion** (Moving resources across regions) **2. RegionToZone** (Moving virtual machines into a zone within the same region) -### [New-AzResourceMoverMoveResource](New-AzResourceMoverMoveResource.md) -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Remove-AzResourceMoverMoveCollection](Remove-AzResourceMoverMoveCollection.md) Deletes a move collection. diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md deleted file mode 100644 index fe5a6969e529..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/docs/New-AzResourceMoverMoveResource.md +++ /dev/null @@ -1,326 +0,0 @@ ---- -external help file: -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermoveresource -schema: 2.0.0 ---- - -# New-AzResourceMoverMoveResource - -## SYNOPSIS -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### CreateViaIdentityMoveCollectionExpanded (Default) -``` -New-AzResourceMoverMoveResource -MoveCollectionInputObject -Name - [-DependsOnOverride ] [-ExistingTargetId ] - [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -### CreateViaJsonFilePath -``` -New-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName - -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -### CreateViaJsonString -``` -New-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName - -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] -``` - -## DESCRIPTION -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DependsOnOverride -Gets or sets the move resource dependencies overrides. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExistingTargetId -Gets or sets the existing target ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Create operation - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Create operation - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The Move Resource Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: MoveResourceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceSetting -Gets or sets the resource settings. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SourceId -Gets or sets the Source ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonFilePath, CreateViaJsonString -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource - -## NOTES - -## RELATED LINKS - diff --git a/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/examples/New-AzResourceMoverMoveResource.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index ae1197b95846..d5aab353315e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "0251b088-3091-4d4f-91d1-c63205570575" + "generate_Id": "0879a632-f7c0-4a1d-a96a-542d9590cd27" } diff --git a/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 b/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 deleted file mode 100644 index e7638bcc9463..000000000000 --- a/src/ResourceMover/ResourceMover.Autorest/test/New-AzResourceMoverMoveResource.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzResourceMoverMoveResource')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzResourceMoverMoveResource.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzResourceMoverMoveResource' { - It 'CreateViaIdentityMoveCollectionExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaJsonString' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaJsonFilePath' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index 27601f695a08..41abe59e1eb8 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{11F1F031-3759-4D65-8439-FCD2E44C03E1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{7DC45C83-B03A-48FC-8825-F71E49D0DE90}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x64.ActiveCfg = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x64.Build.0 = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x86.ActiveCfg = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Debug|x86.Build.0 = Debug|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|Any CPU.Build.0 = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x64.ActiveCfg = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x64.Build.0 = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x86.ActiveCfg = Release|Any CPU - {11F1F031-3759-4D65-8439-FCD2E44C03E1}.Release|x86.Build.0 = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x64.ActiveCfg = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x64.Build.0 = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x86.ActiveCfg = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x86.Build.0 = Debug|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|Any CPU.Build.0 = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x64.ActiveCfg = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x64.Build.0 = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x86.ActiveCfg = Release|Any CPU + {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {11F1F031-3759-4D65-8439-FCD2E44C03E1} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {7DC45C83-B03A-48FC-8825-F71E49D0DE90} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 index 451c4274d239..644d2ae5b732 100644 --- a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 @@ -79,7 +79,6 @@ FunctionsToExport = 'Add-AzResourceMoverMoveResource', 'Invoke-AzResourceMoverInitiateMove', 'Invoke-AzResourceMoverPrepare', 'New-AzResourceMoverMoveCollection', - 'New-AzResourceMoverMoveResource', 'Remove-AzResourceMoverMoveCollection', 'Remove-AzResourceMoverMoveResource', 'Resolve-AzResourceMoverMoveCollectionDependency' diff --git a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md index 5c3ebe5adee4..28b69c4d539d 100644 --- a/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md +++ b/src/ResourceMover/ResourceMover/help/Add-AzResourceMoverMoveResource.md @@ -14,14 +14,37 @@ Create a Move Resource in the move collection. ## SYNTAX +### CreateExpanded (Default) ``` -Add-AzResourceMoverMoveResource -MoveCollectionName -Name -ResourceGroupName +Add-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-DependsOnOverride ] [-ExistingTargetId ] [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonString +``` +Add-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +Add-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityMoveCollectionExpanded +``` +Add-AzResourceMoverMoveResource -Name -MoveCollectionInputObject + [-DependsOnOverride ] [-ExistingTargetId ] + [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Create a Move Resource in the move collection. @@ -331,7 +354,7 @@ Gets or sets the move resource dependencies overrides. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -346,7 +369,7 @@ Gets or sets the existing target ARM Id of the resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -356,12 +379,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MoveCollectionInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity +Parameter Sets: CreateViaIdentityMoveCollectionExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -406,7 +474,7 @@ The Resource Group Name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -421,7 +489,7 @@ Gets or sets the resource settings. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -436,7 +504,7 @@ Gets or sets the Source ARM Id of the resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaIdentityMoveCollectionExpanded Aliases: Required: False @@ -451,7 +519,7 @@ The Subscription ID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: False @@ -497,6 +565,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity + ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource diff --git a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md index 63d45aa0b1ff..a7eb685a3888 100644 --- a/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md +++ b/src/ResourceMover/ResourceMover/help/Az.ResourceMover.md @@ -85,11 +85,6 @@ RegionToRegion** (Moving resources across regions) **2. RegionToZone** (Moving virtual machines into a zone within the same region) -### [New-AzResourceMoverMoveResource](New-AzResourceMoverMoveResource.md) -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - ### [Remove-AzResourceMoverMoveCollection](Remove-AzResourceMoverMoveCollection.md) Deletes a move collection. diff --git a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md b/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md deleted file mode 100644 index 671a71a1c02c..000000000000 --- a/src/ResourceMover/ResourceMover/help/New-AzResourceMoverMoveResource.md +++ /dev/null @@ -1,325 +0,0 @@ ---- -external help file: Az.ResourceMover-help.xml -Module Name: Az.ResourceMover -online version: https://learn.microsoft.com/powershell/module/az.resourcemover/new-azresourcemovermoveresource -schema: 2.0.0 ---- - -# New-AzResourceMoverMoveResource - -## SYNOPSIS -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## SYNTAX - -### CreateViaIdentityMoveCollectionExpanded (Default) -``` -New-AzResourceMoverMoveResource -Name -MoveCollectionInputObject - [-DependsOnOverride ] [-ExistingTargetId ] - [-ResourceSetting ] [-SourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### CreateViaJsonString -``` -New-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### CreateViaJsonFilePath -``` -New-AzResourceMoverMoveResource -Name -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -Create a Move Resource in the move collection. - -**The 'Add-AzResourceMoverMoveResource' command remains same for both 'RegionToRegion' and 'RegionToZone' type move collections.** - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DependsOnOverride -Gets or sets the move resource dependencies overrides. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride[] -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExistingTargetId -Gets or sets the existing target ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonFilePath -Path of Json file supplied to the Create operation - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Create operation - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -MoveCollectionInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -MoveCollectionName -The Move Collection Name. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The Move Resource Name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: MoveResourceName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceGroupName -The Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ResourceSetting -Gets or sets the resource settings. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceSettings -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SourceId -Gets or sets the Source ARM Id of the resource. - -```yaml -Type: System.String -Parameter Sets: CreateViaIdentityMoveCollectionExpanded -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -The Subscription ID. - -```yaml -Type: System.String -Parameter Sets: CreateViaJsonString, CreateViaJsonFilePath -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IResourceMoverIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResource - -## NOTES - -## RELATED LINKS From 0eebe515be95a39c1f366c59e144b4a4841c519a Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:14:12 +1000 Subject: [PATCH 08/12] add variants & custom error handler --- .../Properties/AssemblyInfo.cs | 1 + .../ResourceMover.Autorest/README.md | 26 ++++++---- ...CreateViaIdentityMoveCollectionExpanded.cs | 17 +++++++ ...MoverMoveResource_CreateViaJsonFilePath.cs | 17 +++++++ ...ceMoverMoveResource_CreateViaJsonString.cs | 17 +++++++ ...veResource_GetViaIdentityMoveCollection.cs | 17 +++++++ ...urceMoverBulkRemove_BulkViaJsonFilePath.cs | 17 +++++++ ...sourceMoverBulkRemove_BulkViaJsonString.cs | 17 +++++++ ...sourceMoverCommit_CommitViaJsonFilePath.cs | 17 +++++++ ...ResourceMoverCommit_CommitViaJsonString.cs | 17 +++++++ ...urceMoverDiscard_DiscardViaJsonFilePath.cs | 17 +++++++ ...sourceMoverDiscard_DiscardViaJsonString.cs | 17 +++++++ ...verInitiateMove_InitiateViaJsonFilePath.cs | 17 +++++++ ...MoverInitiateMove_InitiateViaJsonString.cs | 17 +++++++ ...urceMoverPrepare_PrepareViaJsonFilePath.cs | 17 +++++++ ...sourceMoverPrepare_PrepareViaJsonString.cs | 17 +++++++ ...verMoveCollection_CreateViaJsonFilePath.cs | 17 +++++++ ...MoverMoveCollection_CreateViaJsonString.cs | 17 +++++++ ...esource_DeleteViaIdentityMoveCollection.cs | 17 +++++++ .../docs/Invoke-AzResourceMoverBulkRemove.md | 51 +++++++++++++++++-- .../docs/Invoke-AzResourceMoverCommit.md | 51 +++++++++++++++++-- .../docs/Invoke-AzResourceMoverDiscard.md | 51 +++++++++++++++++-- .../Invoke-AzResourceMoverInitiateMove.md | 51 +++++++++++++++++-- .../docs/Invoke-AzResourceMoverPrepare.md | 51 +++++++++++++++++-- .../Remove-AzResourceMoverMoveCollection.md | 47 +---------------- .../ResourceMover.Autorest/generate-info.json | 2 +- src/ResourceMover/ResourceMover.sln | 28 +++++----- .../ResourceMover/Az.ResourceMover.psd1 | 2 +- .../help/Invoke-AzResourceMoverBulkRemove.md | 51 +++++++++++++++++-- .../help/Invoke-AzResourceMoverCommit.md | 51 +++++++++++++++++-- .../help/Invoke-AzResourceMoverDiscard.md | 51 +++++++++++++++++-- .../Invoke-AzResourceMoverInitiateMove.md | 51 +++++++++++++++++-- .../help/Invoke-AzResourceMoverPrepare.md | 51 +++++++++++++++++-- .../Remove-AzResourceMoverMoveCollection.md | 47 +---------------- 34 files changed, 805 insertions(+), 147 deletions(-) create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaIdentityMoveCollectionExpanded.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_GetViaIdentityMoveCollection.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonFilePath.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonString.cs create mode 100644 src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_DeleteViaIdentityMoveCollection.cs diff --git a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs index 98c7e9827d41..7398c8047d5c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs +++ b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,4 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 2dc7d9c67729..23f13a364d03 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -66,15 +66,23 @@ disable-getput: true directive: # Remove the unexpanded parameter set - where: - variant: ^(Discard|Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) + variant: ^(Create|Update|Discard)(?!.*?(Expanded|JsonFilePath|JsonString)) remove: true - where: - variant: ^DiscardViaIdentityExpanded$|^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$ + variant: ^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^DiscardViaIdentityExpanded$ remove: true - where: - variant: ^(Bulk|Commit|Initiate|Prepare)(?!Expanded$) + variant: ^(Bulk|Commit|Initiate|Prepare)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + + - where: + variant: ^BulkViaIdentityExpanded$|^CommitViaIdentityExpanded$|^InitiateViaIdentityExpanded$|^PrepareViaIdentityExpanded$ + remove: true + + - where: + variant: ^ResolveViaIdentity$|^GetViaIdentity$|^DeleteViaIdentity$ remove: true - where: @@ -82,14 +90,14 @@ directive: remove: true - where: - variant: DiscardExpanded + variant: ^Discard subject: MoveCollection verb: Remove set: verb: Invoke - where: - variant: DiscardExpanded + variant: ^Discard subject: MoveCollection verb: Invoke set: @@ -102,22 +110,22 @@ directive: verb: Add - where: - variant: PrepareExpanded + variant: ^Prepare set: subject: Prepare - where: - variant: InitiateExpanded + variant: ^Initiate set: subject: InitiateMove - where: - variant: CommitExpanded + variant: ^Commit set: subject: Commit - where: - variant: BulkExpanded + variant: ^Bulk set: subject: BulkRemove diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaIdentityMoveCollectionExpanded.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaIdentityMoveCollectionExpanded.cs new file mode 100644 index 000000000000..02fa92d72e29 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaIdentityMoveCollectionExpanded.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class AddAzResourceMoverMoveResource_CreateViaIdentityMoveCollectionExpanded + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonFilePath.cs new file mode 100644 index 000000000000..10c2abcbd058 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class AddAzResourceMoverMoveResource_CreateViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonString.cs new file mode 100644 index 000000000000..6fc8d81f0cbd --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/AddAzResourceMoverMoveResource_CreateViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class AddAzResourceMoverMoveResource_CreateViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_GetViaIdentityMoveCollection.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_GetViaIdentityMoveCollection.cs new file mode 100644 index 000000000000..7f14c3735b9e --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/GetAzResourceMoverMoveResource_GetViaIdentityMoveCollection.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class GetAzResourceMoverMoveResource_GetViaIdentityMoveCollection + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonFilePath.cs new file mode 100644 index 000000000000..42ea71fbc993 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverBulkRemove_BulkViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonString.cs new file mode 100644 index 000000000000..ebdbf86096be --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverBulkRemove_BulkViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverBulkRemove_BulkViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonFilePath.cs new file mode 100644 index 000000000000..67d2c48750af --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverCommit_CommitViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonString.cs new file mode 100644 index 000000000000..7401591b276b --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverCommit_CommitViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverCommit_CommitViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonFilePath.cs new file mode 100644 index 000000000000..f3a41e461a77 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverDiscard_DiscardViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonString.cs new file mode 100644 index 000000000000..78eda80d53bc --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverDiscard_DiscardViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverDiscard_DiscardViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonFilePath.cs new file mode 100644 index 000000000000..a2c43a4a8f11 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverInitiateMove_InitiateViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonString.cs new file mode 100644 index 000000000000..91c0416bd174 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverInitiateMove_InitiateViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverInitiateMove_InitiateViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonFilePath.cs new file mode 100644 index 000000000000..670f446f973b --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverPrepare_PrepareViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonString.cs new file mode 100644 index 000000000000..7cc0f6c5141d --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/InvokeAzResourceMoverPrepare_PrepareViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class InvokeAzResourceMoverPrepare_PrepareViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonFilePath.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonFilePath.cs new file mode 100644 index 000000000000..bb93609ed1a6 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonFilePath.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class NewAzResourceMoverMoveCollection_CreateViaJsonFilePath + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonString.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonString.cs new file mode 100644 index 000000000000..874893f3ea64 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/NewAzResourceMoverMoveCollection_CreateViaJsonString.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class NewAzResourceMoverMoveCollection_CreateViaJsonString + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_DeleteViaIdentityMoveCollection.cs b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_DeleteViaIdentityMoveCollection.cs new file mode 100644 index 000000000000..83bb4421da27 --- /dev/null +++ b/src/ResourceMover/ResourceMover.Autorest/custom/csharp/RemoveAzResourceMoverMoveResource_DeleteViaIdentityMoveCollection.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models; + +namespace Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Cmdlets +{ + public partial class RemoveAzResourceMoverMoveResource_DeleteViaIdentityMoveCollection + { + partial void overrideOnDefault(HttpResponseMessage responseMessage, Task errorResponseTask, ref Task returnNow) + { + this.WriteError(responseMessage, errorResponseTask, ref returnNow); + } + } +} diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md index 1e71ca6b4701..fa125a554906 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverBulkRemove.md @@ -16,12 +16,27 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### BulkExpanded (Default) ``` Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### BulkViaJsonFilePath +``` +Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### BulkViaJsonString +``` +Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -128,6 +143,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName . @@ -148,7 +193,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False @@ -163,7 +208,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False @@ -223,7 +268,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md index 92b146a5acdb..00f65bf890bc 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md @@ -16,12 +16,27 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### CommitExpanded (Default) ``` Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### CommitViaJsonFilePath +``` +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CommitViaJsonString +``` +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. @@ -174,6 +189,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -194,7 +239,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False @@ -209,7 +254,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False @@ -269,7 +314,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md index 2b6434339ac6..e9222bcb5ec2 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md @@ -16,12 +16,27 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### DiscardExpanded (Default) ``` Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### DiscardViaJsonFilePath +``` +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### DiscardViaJsonString +``` +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -131,12 +146,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveResource Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False @@ -151,7 +196,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False @@ -226,7 +271,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md index 9c1ad0a01f42..61ba584d6c47 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md @@ -14,12 +14,27 @@ Moves the set of resources included in the request body.The move operation is tr ## SYNTAX +### InitiateExpanded (Default) ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### InitiateViaJsonFilePath +``` +Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### InitiateViaJsonString +``` +Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + ## DESCRIPTION Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. @@ -168,6 +183,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -188,7 +233,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False @@ -203,7 +248,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False @@ -263,7 +308,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md index 50bfd662448c..6697d02f392d 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md @@ -16,12 +16,27 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### PrepareExpanded (Default) ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### PrepareViaJsonFilePath +``` +Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### PrepareViaJsonString +``` +Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -143,6 +158,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -163,7 +208,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False @@ -178,7 +223,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False @@ -238,7 +283,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md index e727b8eff58e..f4cc016285dd 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Remove-AzResourceMoverMoveCollection.md @@ -14,26 +14,11 @@ Deletes a move collection. ## SYNTAX -### Delete (Default) ``` Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` -### DiscardViaJsonFilePath -``` -Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -### DiscardViaJsonString -``` -Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - ## DESCRIPTION Deletes a move collection. @@ -95,36 +80,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Discard operation - -```yaml -Type: System.String -Parameter Sets: DiscardViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Discard operation - -```yaml -Type: System.String -Parameter Sets: DiscardViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name The Move Collection Name. @@ -160,7 +115,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Delete +Parameter Sets: (All) Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index d5aab353315e..c20b644a217e 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "0879a632-f7c0-4a1d-a96a-542d9590cd27" + "generate_Id": "e4bfb296-a942-4bbe-9fde-330a317766ed" } diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index 41abe59e1eb8..252e9f675344 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{7DC45C83-B03A-48FC-8825-F71E49D0DE90}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x64.ActiveCfg = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x64.Build.0 = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x86.ActiveCfg = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Debug|x86.Build.0 = Debug|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|Any CPU.Build.0 = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x64.ActiveCfg = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x64.Build.0 = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x86.ActiveCfg = Release|Any CPU - {7DC45C83-B03A-48FC-8825-F71E49D0DE90}.Release|x86.Build.0 = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x64.ActiveCfg = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x64.Build.0 = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x86.ActiveCfg = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x86.Build.0 = Debug|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|Any CPU.Build.0 = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x64.ActiveCfg = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x64.Build.0 = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x86.ActiveCfg = Release|Any CPU + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {7DC45C83-B03A-48FC-8825-F71E49D0DE90} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 index 644d2ae5b732..06cf688abb3f 100644 --- a/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/ResourceMover/Az.ResourceMover.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/3/2025 +# Generated on: 8/6/2025 # @{ diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md index 839b25cf55b0..da2a56065694 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverBulkRemove.md @@ -16,6 +16,7 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### BulkExpanded (Default) ``` Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] @@ -23,6 +24,20 @@ Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName [] ``` +### BulkViaJsonFilePath +``` +Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### BulkViaJsonString +``` +Invoke-AzResourceMoverBulkRemove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Removes the set of move resources included in the request body from move collection. The orchestration is done by service. @@ -128,6 +143,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Bulk operation + +```yaml +Type: System.String +Parameter Sets: BulkViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName . @@ -148,7 +193,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False @@ -163,7 +208,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False @@ -223,7 +268,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: BulkExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md index 974b22e0a619..ebcb19d22f8f 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md @@ -16,6 +16,7 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### CommitExpanded (Default) ``` Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] @@ -23,6 +24,20 @@ Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName ] ``` +### CommitViaJsonFilePath +``` +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CommitViaJsonString +``` +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. @@ -169,6 +184,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Commit operation + +```yaml +Type: System.String +Parameter Sets: CommitViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -189,7 +234,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False @@ -204,7 +249,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False @@ -264,7 +309,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: CommitExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md index ef4338eaa0d2..3e2875f0c72d 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md @@ -16,12 +16,27 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### DiscardExpanded (Default) ``` Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### DiscardViaJsonFilePath +``` +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### DiscardViaJsonString +``` +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -127,12 +142,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Discard operation + +```yaml +Type: System.String +Parameter Sets: DiscardViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveResource Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False @@ -147,7 +192,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False @@ -222,7 +267,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: DiscardExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md index 64a154789a6f..45257d098ff0 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md @@ -14,6 +14,7 @@ Moves the set of resources included in the request body.The move operation is tr ## SYNTAX +### InitiateExpanded (Default) ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] @@ -21,6 +22,20 @@ Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupNa [] ``` +### InitiateViaJsonFilePath +``` +Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### InitiateViaJsonString +``` +Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Moves the set of resources included in the request body.The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending.To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. @@ -164,6 +179,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Initiate operation + +```yaml +Type: System.String +Parameter Sets: InitiateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -184,7 +229,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False @@ -199,7 +244,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False @@ -259,7 +304,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: InitiateExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md index 8dfc3d5d1954..fcc10bc0a29b 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md @@ -16,6 +16,7 @@ To aid the user to prerequisite the operation the client can call operation with ## SYNTAX +### PrepareExpanded (Default) ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] @@ -23,6 +24,20 @@ Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName ] ``` +### PrepareViaJsonFilePath +``` +Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### PrepareViaJsonString +``` +Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. @@ -143,6 +158,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Prepare operation + +```yaml +Type: System.String +Parameter Sets: PrepareViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -MoveCollectionName The Move Collection Name. @@ -163,7 +208,7 @@ Gets or sets the list of resource Id's, by default it accepts move resource id's ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False @@ -178,7 +223,7 @@ Defines the move resource input type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False @@ -238,7 +283,7 @@ Gets or sets a value indicating whether the operation needs to only run pre-requ ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) +Parameter Sets: PrepareExpanded Aliases: Required: False diff --git a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md index 7379cd534510..8fad5af71c02 100644 --- a/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md +++ b/src/ResourceMover/ResourceMover/help/Remove-AzResourceMoverMoveCollection.md @@ -14,27 +14,12 @@ Deletes a move collection. ## SYNTAX -### Delete (Default) ``` Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` -### DiscardViaJsonFilePath -``` -Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - -### DiscardViaJsonString -``` -Remove-AzResourceMoverMoveCollection -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] -``` - ## DESCRIPTION Deletes a move collection. @@ -96,36 +81,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -JsonFilePath -Path of Json file supplied to the Discard operation - -```yaml -Type: System.String -Parameter Sets: DiscardViaJsonFilePath -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -JsonString -Json string supplied to the Discard operation - -```yaml -Type: System.String -Parameter Sets: DiscardViaJsonString -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name The Move Collection Name. @@ -161,7 +116,7 @@ Returns true when the command succeeds ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: Delete +Parameter Sets: (All) Aliases: Required: False From 11353307f342d055b4ba2cfa69a9f088bc5f0944 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:04:46 +1000 Subject: [PATCH 09/12] remove tag & update variant --- .../Properties/AssemblyInfo.cs | 1 - .../ResourceMover.Autorest/README.md | 3 +- .../ResourceMover.Autorest/generate-info.json | 2 +- src/ResourceMover/ResourceMover.sln | 28 +++++++++---------- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs index 7398c8047d5c..98c7e9827d41 100644 --- a/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs +++ b/src/ResourceMover/ResourceMover.Autorest/Properties/AssemblyInfo.cs @@ -24,4 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index 23f13a364d03..b2a4717fd8ab 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -61,7 +61,6 @@ aks: $(repo)/specification/resourcemover/resource-manager/Microsoft.Migrate/stab input-file: - $(aks)/resourcemovercollection.json module-version: 1.0.0 -disable-getput: true directive: # Remove the unexpanded parameter set @@ -70,7 +69,7 @@ directive: remove: true - where: - variant: ^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^DiscardViaIdentityExpanded$ + variant: ^CreateViaIdentityExpanded$|^UpdateExpanded$|^UpdateViaIdentityExpanded$|^UpdateViaIdentityMoveCollectionExpanded$|^DiscardViaIdentityExpanded$ remove: true - where: diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index c20b644a217e..836fa39945df 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "e4bfb296-a942-4bbe-9fde-330a317766ed" + "generate_Id": "bad66c32-0b2d-444f-ba97-7fb04f26d2d6" } diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index 252e9f675344..e0810bddf2ce 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{47877281-4007-4933-AA9B-A42CABAA3616}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x64.ActiveCfg = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x64.Build.0 = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x86.ActiveCfg = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Debug|x86.Build.0 = Debug|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|Any CPU.Build.0 = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x64.ActiveCfg = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x64.Build.0 = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x86.ActiveCfg = Release|Any CPU - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE}.Release|x86.Build.0 = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x64.ActiveCfg = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x64.Build.0 = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x86.ActiveCfg = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x86.Build.0 = Debug|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|Any CPU.Build.0 = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x64.ActiveCfg = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x64.Build.0 = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x86.ActiveCfg = Release|Any CPU + {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {5B56F1C0-10A2-47C9-9006-FA2D94A3BBEE} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {47877281-4007-4933-AA9B-A42CABAA3616} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal From 04470ad2ea0d8b5f5d015c94c131cd45e0235f27 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:48:47 +1000 Subject: [PATCH 10/12] add required parameter --- .../ResourceMover.Autorest/README.md | 104 ++++++++++++++++++ .../docs/Invoke-AzResourceMoverCommit.md | 8 +- .../docs/Invoke-AzResourceMoverDiscard.md | 6 +- .../Invoke-AzResourceMoverInitiateMove.md | 4 +- .../docs/Invoke-AzResourceMoverPrepare.md | 4 +- .../ResourceMover.Autorest/generate-info.json | 2 +- src/ResourceMover/ResourceMover.sln | 28 ++--- .../help/Invoke-AzResourceMoverCommit.md | 4 +- .../help/Invoke-AzResourceMoverDiscard.md | 4 +- .../Invoke-AzResourceMoverInitiateMove.md | 4 +- .../help/Invoke-AzResourceMoverPrepare.md | 4 +- 11 files changed, 138 insertions(+), 34 deletions(-) diff --git a/src/ResourceMover/ResourceMover.Autorest/README.md b/src/ResourceMover/ResourceMover.Autorest/README.md index b2a4717fd8ab..96e31be56ee5 100644 --- a/src/ResourceMover/ResourceMover.Autorest/README.md +++ b/src/ResourceMover/ResourceMover.Autorest/README.md @@ -158,6 +158,110 @@ directive: - no-inline: - ResourceSettings + + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard"].post.parameters + transform: >- + return [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/moveCollectionName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DiscardRequest" + } + } + ] + + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit"].post.parameters + transform: >- + return [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/moveCollectionName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CommitRequest" + } + } + ] + + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove"].post.parameters + transform: >- + return [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/moveCollectionName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceMoveRequest" + } + } + ] + + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare"].post.parameters + transform: >- + return [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/moveCollectionName" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrepareRequest" + } + } + ] - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}"].put diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md index 00f65bf890bc..2110bce8f2b9 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverCommit.md @@ -18,9 +18,9 @@ To aid the user to prerequisite the operation the client can call operation with ### CommitExpanded (Default) ``` -Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName -MoveResource + [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CommitViaJsonFilePath @@ -242,7 +242,7 @@ Type: System.String[] Parameter Sets: CommitExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md index e9222bcb5ec2..bc33fd71fa80 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverDiscard.md @@ -18,8 +18,8 @@ To aid the user to prerequisite the operation the client can call operation with ### DiscardExpanded (Default) ``` -Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] - [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] +Invoke-AzResourceMoverDiscard -Name -ResourceGroupName -MoveResource + [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -184,7 +184,7 @@ Type: System.String[] Parameter Sets: DiscardExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md index 61ba584d6c47..e90f441ef49c 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverInitiateMove.md @@ -17,7 +17,7 @@ Moves the set of resources included in the request body.The move operation is tr ### InitiateExpanded (Default) ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + -MoveResource [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -236,7 +236,7 @@ Type: System.String[] Parameter Sets: InitiateExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md index 6697d02f392d..d79a2ae06425 100644 --- a/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover.Autorest/docs/Invoke-AzResourceMoverPrepare.md @@ -19,7 +19,7 @@ To aid the user to prerequisite the operation the client can call operation with ### PrepareExpanded (Default) ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + -MoveResource [-SubscriptionId ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -211,7 +211,7 @@ Type: System.String[] Parameter Sets: PrepareExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover.Autorest/generate-info.json b/src/ResourceMover/ResourceMover.Autorest/generate-info.json index 836fa39945df..c809cc9a073a 100644 --- a/src/ResourceMover/ResourceMover.Autorest/generate-info.json +++ b/src/ResourceMover/ResourceMover.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "bad66c32-0b2d-444f-ba97-7fb04f26d2d6" + "generate_Id": "72c2ba9b-01c5-4013-ac2f-1732d2410c88" } diff --git a/src/ResourceMover/ResourceMover.sln b/src/ResourceMover/ResourceMover.sln index e0810bddf2ce..9a350eec2dfb 100644 --- a/src/ResourceMover/ResourceMover.sln +++ b/src/ResourceMover/ResourceMover.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceMover", "ResourceMo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ResourceMover.Autorest", "ResourceMover.Autorest", "{FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{47877281-4007-4933-AA9B-A42CABAA3616}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "..\..\generated\ResourceMover\ResourceMover.Autorest\Az.ResourceMover.csproj", "{6B8A3765-382B-4191-912E-99605ABF1A81}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x64.Build.0 = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.ActiveCfg = Release|Any CPU {26991967-CCE2-4F52-94F1-A85E3723BE2D}.Release|x86.Build.0 = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|Any CPU.Build.0 = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x64.ActiveCfg = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x64.Build.0 = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x86.ActiveCfg = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Debug|x86.Build.0 = Debug|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|Any CPU.ActiveCfg = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|Any CPU.Build.0 = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x64.ActiveCfg = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x64.Build.0 = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x86.ActiveCfg = Release|Any CPU - {47877281-4007-4933-AA9B-A42CABAA3616}.Release|x86.Build.0 = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|x64.ActiveCfg = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|x64.Build.0 = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|x86.ActiveCfg = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Debug|x86.Build.0 = Debug|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|Any CPU.Build.0 = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|x64.ActiveCfg = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|x64.Build.0 = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|x86.ActiveCfg = Release|Any CPU + {6B8A3765-382B-4191-912E-99605ABF1A81}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {08DA3867-5ECF-48A9-9DDD-B81F9D2DFF0D} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {257E080F-878F-4247-9C63-27D636AF9E3A} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} {42263E13-6DA9-4608-9140-78D24858E049} = {2597EDD5-4E16-4746-BD2E-7BE7358494FB} - {47877281-4007-4933-AA9B-A42CABAA3616} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} + {6B8A3765-382B-4191-912E-99605ABF1A81} = {FBF8B4F0-CF4C-3D0F-3CA1-AFF09D158825} EndGlobalSection EndGlobal diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md index ebcb19d22f8f..4b0d9254d297 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverCommit.md @@ -19,7 +19,7 @@ To aid the user to prerequisite the operation the client can call operation with ### CommitExpanded (Default) ``` Invoke-AzResourceMoverCommit -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -237,7 +237,7 @@ Type: System.String[] Parameter Sets: CommitExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md index 3e2875f0c72d..d0c312c4c3a2 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverDiscard.md @@ -19,7 +19,7 @@ To aid the user to prerequisite the operation the client can call operation with ### DiscardExpanded (Default) ``` Invoke-AzResourceMoverDiscard -Name -ResourceGroupName [-SubscriptionId ] - [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] + -MoveResource [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -180,7 +180,7 @@ Type: System.String[] Parameter Sets: DiscardExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md index 45257d098ff0..564bdc18bb34 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverInitiateMove.md @@ -17,7 +17,7 @@ Moves the set of resources included in the request body.The move operation is tr ### InitiateExpanded (Default) ``` Invoke-AzResourceMoverInitiateMove -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -232,7 +232,7 @@ Type: System.String[] Parameter Sets: InitiateExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False diff --git a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md index fcc10bc0a29b..76c48b037895 100644 --- a/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md +++ b/src/ResourceMover/ResourceMover/help/Invoke-AzResourceMoverPrepare.md @@ -19,7 +19,7 @@ To aid the user to prerequisite the operation the client can call operation with ### PrepareExpanded (Default) ``` Invoke-AzResourceMoverPrepare -MoveCollectionName -ResourceGroupName - [-SubscriptionId ] [-MoveResource ] [-MoveResourceInputType ] [-ValidateOnly] + [-SubscriptionId ] -MoveResource [-MoveResourceInputType ] [-ValidateOnly] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -211,7 +211,7 @@ Type: System.String[] Parameter Sets: PrepareExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False From 788dd710732fca56b6abda77c07bc2c4ab43c1e9 Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:08:29 +1000 Subject: [PATCH 11/12] suppress breaking change --- .../Az.ResourceMover/BreakingChangeIssues.csv | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.ResourceMover/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.ResourceMover/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ResourceMover/BreakingChangeIssues.csv new file mode 100644 index 000000000000..2e9e0ec00ebc --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.ResourceMover/BreakingChangeIssues.csv @@ -0,0 +1,76 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'DependsOn' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency]'.","Change the type of property 'DependsOn' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'DependsOnOverride' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride]'.","Change the type of property 'DependsOnOverride' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesDetail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesDetail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesDetail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesDetail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'JobStatusJobName' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'JobStatusJobName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'MoveStatusMoveState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState]' to 'System.String'.","Change the type of property 'MoveStatusMoveState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState]'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesTarget' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesTarget' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesMessage' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesMessage' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesCode' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesCode' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'JobStatusJobProgress' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'JobStatusJobProgress' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesTarget' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesTarget' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesMessage' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesMessage' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Add-AzResourceMoverMoveResource","Add-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesCode' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesCode' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3010","The property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Detail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3000","The type of property 'MoveType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType]' to 'System.String'.","Change the type of property 'MoveType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3000","The type of property 'IdentityType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]' to 'System.String'.","Change the type of property 'IdentityType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3010","The property 'Target' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Target' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3010","The property 'Code' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Code' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","Get-AzResourceMoverMoveCollection","Get-AzResourceMoverMoveCollection","0","3010","The property 'Message' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Message' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'DependsOn' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency]'.","Change the type of property 'DependsOn' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependency'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'DependsOnOverride' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride]'.","Change the type of property 'DependsOnOverride' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IMoveResourceDependencyOverride'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesDetail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesDetail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesDetail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesDetail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'JobStatusJobName' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'JobStatusJobName' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'MoveStatusMoveState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState]' to 'System.String'.","Change the type of property 'MoveStatusMoveState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveState]'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesTarget' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesTarget' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesMessage' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesMessage' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'MoveStatusErrorsPropertiesCode' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'MoveStatusErrorsPropertiesCode' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'JobStatusJobProgress' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'JobStatusJobProgress' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesTarget' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesTarget' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesMessage' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesMessage' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverMoveResource","Get-AzResourceMoverMoveResource","0","3010","The property 'ErrorsPropertiesCode' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource' has been removed.","Add the property 'ErrorsPropertiesCode' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveResource'." +"Az.ResourceMover","Get-AzResourceMoverUnresolvedDependency","Get-AzResourceMoverUnresolvedDependency","0","2020","The cmdlet 'Get-AzResourceMoverUnresolvedDependency' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel' for parameter 'DependencyLevel'.","Change the type for parameter 'DependencyLevel' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.DependencyLevel'." +"Az.ResourceMover","Invoke-AzResourceMoverBulkRemove","Invoke-AzResourceMoverBulkRemove","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Invoke-AzResourceMoverBulkRemove","Invoke-AzResourceMoverBulkRemove","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Invoke-AzResourceMoverBulkRemove","Invoke-AzResourceMoverBulkRemove","0","2020","The cmdlet 'Invoke-AzResourceMoverBulkRemove' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType' for parameter 'MoveResourceInputType'.","Change the type for parameter 'MoveResourceInputType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType'." +"Az.ResourceMover","Invoke-AzResourceMoverCommit","Invoke-AzResourceMoverCommit","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Invoke-AzResourceMoverCommit","Invoke-AzResourceMoverCommit","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Invoke-AzResourceMoverCommit","Invoke-AzResourceMoverCommit","0","2020","The cmdlet 'Invoke-AzResourceMoverCommit' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType' for parameter 'MoveResourceInputType'.","Change the type for parameter 'MoveResourceInputType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType'." +"Az.ResourceMover","Invoke-AzResourceMoverDiscard","Invoke-AzResourceMoverDiscard","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Invoke-AzResourceMoverDiscard","Invoke-AzResourceMoverDiscard","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Invoke-AzResourceMoverDiscard","Invoke-AzResourceMoverDiscard","0","2020","The cmdlet 'Invoke-AzResourceMoverDiscard' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType' for parameter 'MoveResourceInputType'.","Change the type for parameter 'MoveResourceInputType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType'." +"Az.ResourceMover","Invoke-AzResourceMoverInitiateMove","Invoke-AzResourceMoverInitiateMove","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Invoke-AzResourceMoverInitiateMove","Invoke-AzResourceMoverInitiateMove","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Invoke-AzResourceMoverInitiateMove","Invoke-AzResourceMoverInitiateMove","0","2020","The cmdlet 'Invoke-AzResourceMoverInitiateMove' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType' for parameter 'MoveResourceInputType'.","Change the type for parameter 'MoveResourceInputType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType'." +"Az.ResourceMover","Invoke-AzResourceMoverPrepare","Invoke-AzResourceMoverPrepare","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Invoke-AzResourceMoverPrepare","Invoke-AzResourceMoverPrepare","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Invoke-AzResourceMoverPrepare","Invoke-AzResourceMoverPrepare","0","2020","The cmdlet 'Invoke-AzResourceMoverPrepare' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType' for parameter 'MoveResourceInputType'.","Change the type for parameter 'MoveResourceInputType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveResourceInputType'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3010","The property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Detail' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.CreatedByType]'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3000","The type of property 'MoveType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType]' to 'System.String'.","Change the type of property 'MoveType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType]'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ProvisioningState]'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3000","The type of property 'IdentityType' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]' to 'System.String'.","Change the type of property 'IdentityType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.ResourceIdentityType]'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3010","The property 'Target' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Target' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3010","The property 'Code' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Code' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","3010","The property 'Message' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection' has been removed.","Add the property 'Message' back to type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IMoveCollection'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","2000","The cmdlet 'New-AzResourceMoverMoveCollection' no longer supports the parameter 'IdentityType' and no alias was found for the original parameter name.","Add the parameter 'IdentityType' back to the cmdlet 'New-AzResourceMoverMoveCollection', or add an alias to the original parameter name." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","2020","The cmdlet 'New-AzResourceMoverMoveCollection' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType' for parameter 'MoveType'.","Change the type for parameter 'MoveType' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Support.MoveType'." +"Az.ResourceMover","New-AzResourceMoverMoveCollection","New-AzResourceMoverMoveCollection","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzResourceMoverMoveCollection' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzResourceMoverMoveCollection'." +"Az.ResourceMover","Remove-AzResourceMoverMoveCollection","Remove-AzResourceMoverMoveCollection","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Remove-AzResourceMoverMoveCollection","Remove-AzResourceMoverMoveCollection","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Remove-AzResourceMoverMoveResource","Remove-AzResourceMoverMoveResource","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Remove-AzResourceMoverMoveResource","Remove-AzResourceMoverMoveResource","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." +"Az.ResourceMover","Resolve-AzResourceMoverMoveCollectionDependency","Resolve-AzResourceMoverMoveCollectionDependency","0","3000","The type of property 'AdditionalInfo' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo]'.","Change the type of property 'AdditionalInfo' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationErrorAdditionalInfo'." +"Az.ResourceMover","Resolve-AzResourceMoverMoveCollectionDependency","Resolve-AzResourceMoverMoveCollectionDependency","0","3000","The type of property 'Detail' of type 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IOperationStatus' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError]'.","Change the type of property 'Detail' back to 'Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.IOperationStatusError'." From e5a2faa593b2f46d01cbc6191b2359635b27869c Mon Sep 17 00:00:00 2001 From: Qi Pan <43341456+Pan-Qi@users.noreply.github.com> Date: Thu, 28 Aug 2025 22:37:42 +1000 Subject: [PATCH 12/12] Add change log --- src/ResourceMover/ResourceMover/ChangeLog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ResourceMover/ResourceMover/ChangeLog.md b/src/ResourceMover/ResourceMover/ChangeLog.md index a44c7232b185..e2328f91e712 100644 --- a/src/ResourceMover/ResourceMover/ChangeLog.md +++ b/src/ResourceMover/ResourceMover/ChangeLog.md @@ -18,6 +18,11 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). +* The parameters of the `New-AzResourceMoverMoveCollection` and `New-AzResourceMoverMoveCollection` cmdlets will be changed by new Managed Identity settings. + - Removed `-IdentityType` and `-IdentityUserAssignedIdentity` parameters. + - Added `-UserAssignedIdentity` parameter. The type of `UserAssignedIdentity` is simplified to a list of strings that is used to specify the user's assigned identity. + - Added `EnableSystemAssignedIdentity` to enable/disable system-assigned identities. ## Version 1.3.0 * Upgraded nuget package to signed package.