Skip to content

Commit 7635c22

Browse files
Move ResourceMover to main (#16681)
Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com>
1 parent 0beb46d commit 7635c22

File tree

479 files changed

+25078
-6995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

479 files changed

+25078
-6995
lines changed

src/ResourceMover/Az.ResourceMover.format.ps1xml

Lines changed: 378 additions & 156 deletions
Large diffs are not rendered by default.

src/ResourceMover/Az.ResourceMover.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 4/29/2021
6+
# Generated on: 12/20/2021
77
#
88

99
@{
@@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
4545
DotNetFrameworkVersion = '4.7.2'
4646

4747
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
48+
# ClrVersion = ''
4949

5050
# Processor architecture (None, X86, Amd64) required by this module
5151
# ProcessorArchitecture = ''
@@ -90,7 +90,7 @@ CmdletsToExport = @()
9090
# VariablesToExport = @()
9191

9292
# 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.
93-
AliasesToExport = 'Update-AzResourceMoverMoveResource'
93+
AliasesToExport = 'Update-AzResourceMoverMoveResource', '*'
9494

9595
# DSC resources to export from this module
9696
# DscResourcesToExport = @()
@@ -119,7 +119,7 @@ PrivateData = @{
119119
# IconUri = ''
120120

121121
# ReleaseNotes of this module
122-
ReleaseNotes = '* General availability of ''Az.ResourceMover'' module'
122+
# ReleaseNotes = ''
123123

124124
# Prerelease string of this module
125125
# Prerelease = ''

src/ResourceMover/Az.ResourceMover.psm1

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# region Generated
22
# ----------------------------------------------------------------------------------
3-
#
4-
# Copyright Microsoft Corporation
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
1415
# ----------------------------------------------------------------------------------
1516
# Load required Az.Accounts module
1617
$accountsName = 'Az.Accounts'
@@ -32,9 +33,9 @@
3233
}
3334

3435
if(-not $accountsModule) {
35-
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
36+
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
3637
} elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
37-
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
38+
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
3839
}
3940
Write-Information "Loaded Module '$($accountsModule.Name)'"
4041

@@ -50,6 +51,7 @@
5051
# Tweaks the pipeline on module load
5152
$instance.OnModuleLoad = $VTable.OnModuleLoad
5253

54+
5355
# Tweaks the pipeline per call
5456
$instance.OnNewRequest = $VTable.OnNewRequest
5557

src/ResourceMover/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ module-name: $(prefix).$(service-name)
6060
namespace: Microsoft.Azure.PowerShell.Cmdlets.$(service-name)
6161
clear-output-folder: true
6262
output-folder: .
63-
aks: $(repo)/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-01-01
63+
aks: $(repo)/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01
6464
input-file:
65-
- $(aks)/resourcemovercollection.json
66-
module-version: 0.1.0
65+
- $(aks)/resourcemovercollection.json
66+
module-version: 1.0.0
6767

6868
directive:
6969
# Remove the unexpanded parameter set
Lines changed: 86 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,104 @@
1+
12
Microsoft Visual Studio Solution File, Format Version 12.00
23
# Visual Studio Version 16
3-
VisualStudioVersion = 16.0.29709.97
4+
VisualStudioVersion = 16.0.30114.105
45
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{FFDDFB52-B1B9-450E-A501-65ACCA628518}"
67
EndProject
7-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{0B74C96A-E355-45FC-952A-29B6FACC5D24}"
89
EndProject
9-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{89771729-CD88-42AE-9594-C32C20D3CD3C}"
1011
EndProject
11-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{41F54294-07AE-4C55-B588-FD07AAA1E43B}"
1213
EndProject
13-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.ResourceMover", "Az.ResourceMover.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{ED28B514-9DD3-4330-BF96-4AA7DABAB840}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ResourceMover", "Az.ResourceMover.csproj", "{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}"
1417
EndProject
1518
Global
1619
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1720
Debug|Any CPU = Debug|Any CPU
21+
Debug|x64 = Debug|x64
22+
Debug|x86 = Debug|x86
1823
Release|Any CPU = Release|Any CPU
19-
EndGlobalSection
20-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
23-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
24-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
25-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
27-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
28-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
29-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
24+
Release|x64 = Release|x64
25+
Release|x86 = Release|x86
4126
EndGlobalSection
4227
GlobalSection(SolutionProperties) = preSolution
4328
HideSolutionNode = FALSE
4429
EndGlobalSection
45-
GlobalSection(ExtensibilityGlobals) = postSolution
46-
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
30+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|Any CPU.Build.0 = Debug|Any CPU
33+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|x64.ActiveCfg = Debug|Any CPU
34+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|x64.Build.0 = Debug|Any CPU
35+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|x86.ActiveCfg = Debug|Any CPU
36+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Debug|x86.Build.0 = Debug|Any CPU
37+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|Any CPU.ActiveCfg = Release|Any CPU
38+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|Any CPU.Build.0 = Release|Any CPU
39+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|x64.ActiveCfg = Release|Any CPU
40+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|x64.Build.0 = Release|Any CPU
41+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|x86.ActiveCfg = Release|Any CPU
42+
{FFDDFB52-B1B9-450E-A501-65ACCA628518}.Release|x86.Build.0 = Release|Any CPU
43+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|x64.ActiveCfg = Debug|Any CPU
46+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|x64.Build.0 = Debug|Any CPU
47+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|x86.ActiveCfg = Debug|Any CPU
48+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Debug|x86.Build.0 = Debug|Any CPU
49+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|Any CPU.Build.0 = Release|Any CPU
51+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|x64.ActiveCfg = Release|Any CPU
52+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|x64.Build.0 = Release|Any CPU
53+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|x86.ActiveCfg = Release|Any CPU
54+
{0B74C96A-E355-45FC-952A-29B6FACC5D24}.Release|x86.Build.0 = Release|Any CPU
55+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
57+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|x64.ActiveCfg = Debug|Any CPU
58+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|x64.Build.0 = Debug|Any CPU
59+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|x86.ActiveCfg = Debug|Any CPU
60+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Debug|x86.Build.0 = Debug|Any CPU
61+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
62+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|Any CPU.Build.0 = Release|Any CPU
63+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|x64.ActiveCfg = Release|Any CPU
64+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|x64.Build.0 = Release|Any CPU
65+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|x86.ActiveCfg = Release|Any CPU
66+
{89771729-CD88-42AE-9594-C32C20D3CD3C}.Release|x86.Build.0 = Release|Any CPU
67+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|Any CPU.Build.0 = Debug|Any CPU
69+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|x64.ActiveCfg = Debug|Any CPU
70+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|x64.Build.0 = Debug|Any CPU
71+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|x86.ActiveCfg = Debug|Any CPU
72+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Debug|x86.Build.0 = Debug|Any CPU
73+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|Any CPU.ActiveCfg = Release|Any CPU
74+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|Any CPU.Build.0 = Release|Any CPU
75+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|x64.ActiveCfg = Release|Any CPU
76+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|x64.Build.0 = Release|Any CPU
77+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|x86.ActiveCfg = Release|Any CPU
78+
{41F54294-07AE-4C55-B588-FD07AAA1E43B}.Release|x86.Build.0 = Release|Any CPU
79+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|Any CPU.Build.0 = Debug|Any CPU
81+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|x64.ActiveCfg = Debug|Any CPU
82+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|x64.Build.0 = Debug|Any CPU
83+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|x86.ActiveCfg = Debug|Any CPU
84+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Debug|x86.Build.0 = Debug|Any CPU
85+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|Any CPU.ActiveCfg = Release|Any CPU
86+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|Any CPU.Build.0 = Release|Any CPU
87+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|x64.ActiveCfg = Release|Any CPU
88+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|x64.Build.0 = Release|Any CPU
89+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|x86.ActiveCfg = Release|Any CPU
90+
{ED28B514-9DD3-4330-BF96-4AA7DABAB840}.Release|x86.Build.0 = Release|Any CPU
91+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|Any CPU.Build.0 = Debug|Any CPU
93+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|x64.ActiveCfg = Debug|Any CPU
94+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|x64.Build.0 = Debug|Any CPU
95+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|x86.ActiveCfg = Debug|Any CPU
96+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Debug|x86.Build.0 = Debug|Any CPU
97+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|Any CPU.ActiveCfg = Release|Any CPU
98+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|Any CPU.Build.0 = Release|Any CPU
99+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|x64.ActiveCfg = Release|Any CPU
100+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|x64.Build.0 = Release|Any CPU
101+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|x86.ActiveCfg = Release|Any CPU
102+
{E9A38BD5-0CA0-4859-8B71-65FA49D1393F}.Release|x86.Build.0 = Release|Any CPU
47103
EndGlobalSection
48104
EndGlobal

src/ResourceMover/build-module.ps1

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# ----------------------------------------------------------------------------------
2-
#
3-
# Copyright Microsoft Corporation
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
65
# You may obtain a copy of the License at
@@ -10,6 +9,8 @@
109
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1110
# See the License for the specific language governing permissions and
1211
# limitations under the License.
12+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
13+
# is regenerated.
1314
# ----------------------------------------------------------------------------------
1415
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
1516
$ErrorActionPreference = 'Stop'
@@ -104,13 +105,13 @@ if(Test-Path $customPsm1) {
104105

105106
$exportsFolder = Join-Path $PSScriptRoot 'exports'
106107
if(Test-Path $exportsFolder) {
107-
$null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
108+
$null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
108109
}
109110
$null = New-Item -ItemType Directory -Force -Path $exportsFolder
110111

111112
$internalFolder = Join-Path $PSScriptRoot 'internal'
112113
if(Test-Path $internalFolder) {
113-
$null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
114+
$null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
114115
}
115116
$null = New-Item -ItemType Directory -Force -Path $internalFolder
116117

@@ -120,6 +121,13 @@ $moduleName = 'Az.ResourceMover'
120121
$examplesFolder = Join-Path $PSScriptRoot 'examples'
121122
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
122123

124+
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125+
$modelCmdlets = @()
126+
if ($modelCmdlets.Count -gt 0) {
127+
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
128+
CreateModelCmdlet($modelCmdlets)
129+
}
130+
123131
if($NoDocs) {
124132
Write-Host -ForegroundColor Green 'Creating exports...'
125133
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
@@ -128,7 +136,7 @@ if($NoDocs) {
128136
$moduleDescription = 'Microsoft Azure PowerShell: ResourceMover cmdlets'
129137
$docsFolder = Join-Path $PSScriptRoot 'docs'
130138
if(Test-Path $docsFolder) {
131-
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
139+
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
132140
}
133141
$null = New-Item -ItemType Directory -Force -Path $docsFolder
134142
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid

0 commit comments

Comments
 (0)