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