Skip to content

Commit f1f586a

Browse files
Migrate StorageMover from generation to main (#23746)
* Move StorageMover to main * Update ChangeLog.md for storagemover --------- Co-authored-by: Xiaogang <xidi@microsoft.com>
1 parent 6d4a397 commit f1f586a

File tree

74 files changed

+7436
-694
lines changed

Some content is hidden

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

74 files changed

+7436
-694
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,150 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.StorageMover'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 11/6/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.StorageMover.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '1.2.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = 'd6053d97-1a9b-4fc6-9bd2-09c5b23b34db'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: StorageMover cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.1'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.StorageMover.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.StorageMover.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions 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 functions to export.
72-
FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent',
73-
'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition',
74-
'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject',
75-
'New-AzStorageMover',
76-
'New-AzStorageMoverAzStorageContainerEndpoint',
77-
'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint',
78-
'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint',
79-
'New-AzStorageMoverSmbFileShareEndpoint', 'Remove-AzStorageMover',
80-
'Remove-AzStorageMoverEndpoint',
81-
'Remove-AzStorageMoverJobDefinition',
82-
'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition',
83-
'Stop-AzStorageMoverJobDefinition',
84-
'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover',
85-
'Update-AzStorageMoverAgent',
86-
'Update-AzStorageMoverAzStorageContainerEndpoint',
87-
'Update-AzStorageMoverJobDefinition',
88-
'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject',
89-
'Update-AzStorageMoverSmbEndpoint',
90-
'Update-AzStorageMoverSmbFileShareEndpoint'
91-
92-
# 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.
93-
CmdletsToExport = @()
94-
95-
# Variables to export from this module
96-
# VariablesToExport = @()
97-
98-
# 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.
99-
AliasesToExport = '*'
100-
101-
# DSC resources to export from this module
102-
# DscResourcesToExport = @()
103-
104-
# List of all modules packaged with this module
105-
# ModuleList = @()
106-
107-
# List of all files packaged with this module
108-
# FileList = @()
109-
110-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
111-
PrivateData = @{
112-
2+
GUID = 'd6053d97-1a9b-4fc6-9bd2-09c5b23b34db'
3+
RootModule = './Az.StorageMover.psm1'
4+
ModuleVersion = '1.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: StorageMover cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.StorageMover.private.dll'
13+
FormatsToProcess = './Az.StorageMover.format.ps1xml'
14+
FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition', 'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject', 'New-AzStorageMover', 'New-AzStorageMoverAzSmbFileShareEndpoint', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint', 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', 'Stop-AzStorageMoverJobDefinition', 'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzSmbFileShareEndpoint', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', 'Update-AzStorageMoverSmbEndpoint', '*'
15+
AliasesToExport = 'New-AzStorageMoverSmbFileShareEndpoint', 'Update-AzStorageMoverSmbFileShareEndpoint', '*'
16+
PrivateData = @{
11317
PSData = @{
114-
115-
# Tags applied to this module. These help with module discovery in online galleries.
116-
Tags = 'Azure','ResourceManager','ARM','PSModule','StorageMover'
117-
118-
# A URL to the license for this module.
119-
LicenseUri = 'https://aka.ms/azps-license'
120-
121-
# A URL to the main website for this project.
122-
ProjectUri = 'https://github.com/Azure/azure-powershell'
123-
124-
# A URL to an icon representing this module.
125-
# IconUri = ''
126-
127-
# ReleaseNotes of this module
128-
# ReleaseNotes = '* Supported SmbFileShareEndpoint and SmbEndpoint'
129-
130-
# Prerelease string of this module
131-
# Prerelease = ''
132-
133-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
134-
# RequireLicenseAcceptance = $false
135-
136-
# External dependent modules of this module
137-
# ExternalModuleDependencies = @()
138-
139-
} # End of PSData hashtable
140-
141-
} # End of PrivateData hashtable
142-
143-
# HelpInfo URI of this module
144-
# HelpInfoURI = ''
145-
146-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
147-
# DefaultCommandPrefix = ''
148-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageMover'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
14924
}
150-

src/StorageMover/StorageMover.Autorest/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ For information on how to develop for `Az.StorageMover`, see [how-to.md](how-to.
3131
3232
``` yaml
3333
# Please specify the commit id that includes your features to make sure generated codes stable.
34-
branch: 74948e5fb9b1e1f8b9d58fb65fc81d5cba6b6ced
34+
commit: 74948e5fb9b1e1f8b9d58fb65fc81d5cba6b6ced
3535
require:
3636
# readme.azure.noprofile.md is the common configuration file
37-
- $(this-folder)/../readme.azure.noprofile.md
37+
- $(this-folder)/../../readme.azure.noprofile.md
3838
input-file:
3939
- $(repo)/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-10-01/storagemover.json
4040

@@ -46,6 +46,10 @@ subject-prefix: $(service-name)
4646
nested-object-to-string: true
4747
identity-correction-for-post: true
4848

49+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
50+
use-extension:
51+
"@autorest/powershell": "3.x"
52+
4953
directive:
5054
- where:
5155
verb: Set

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou
2020
.Description
2121
Creates a Smb file share endpoint resource, which represents a data transfer source or destination.
2222
.Example
23-
New-AzStorageMoverSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description"
23+
New-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description"
2424
2525
.Inputs
2626
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint
@@ -34,11 +34,12 @@ COMPLEX PARAMETER PROPERTIES
3434
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
3535
3636
.Link
37-
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint
37+
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint
3838
#>
39-
function New-AzStorageMoverSmbFileShareEndpoint {
39+
function New-AzStorageMoverAzSmbFileShareEndpoint {
4040
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])]
4141
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
42+
[Alias("New-AzStorageMoverSmbFileShareEndpoint")]
4243
param(
4344
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
4445
[Alias('EndpointName')]

src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Properties not specified in the request body will be unchanged.
2222
Updates properties for a SMB file share endpoint resource.
2323
Properties not specified in the request body will be unchanged.
2424
.Example
25-
Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint"
25+
Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint"
2626
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters
@@ -51,11 +51,12 @@ INPUTOBJECT<IStorageMoverIdentity>: Identity Parameter
5151
[SubscriptionId<String>]: The ID of the target subscription.
5252
5353
.Link
54-
https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint
54+
https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazsmbfileshareendpoint
5555
#>
56-
function Update-AzStorageMoverSmbFileShareEndpoint {
56+
function Update-AzStorageMoverAzSmbFileShareEndpoint {
5757
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])]
5858
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
59+
[Alias("Update-AzStorageMoverSmbFileShareEndpoint")]
5960
param(
6061
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
6162
[Alias('EndpointName')]

src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverSmbFileShareEndpoint.md src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverAzSmbFileShareEndpoint.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Example 1: Create an Smb file share endpoint
22
```powershell
3-
New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint"
3+
New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint"
44
```
55

66
```output
@@ -22,6 +22,4 @@ SystemDataLastModifiedByType : Application
2222
Type : microsoft.storagemover/storagemovers/endpoints
2323
```
2424

25-
This command creats a Smb file share endpoint
26-
27-
25+
This command creats an Azure Storage SMB file share endpoint.

src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverSmbFileShareEndpoint.md src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Example 1: Update a Smb file share endpoint
22
```powershell
3-
Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint"
3+
Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint"
44
```
55

66
```output
@@ -22,11 +22,11 @@ SystemDataLastModifiedByType : Application
2222
Type : microsoft.storagemover/storagemovers/endpoints
2323
```
2424

25-
This command updates a Smb file share enpdoint's description by manual inputs.
25+
This command updates an Azure Storage SMB file share enpdoint's description by manual inputs.
2626

2727
### Example 2: Update a Smb file share endpoint by pipeline
2828
```powershell
29-
Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbFileShareEndpoint -Description "updated endpoint again"
29+
Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverAzSmbFileShareEndpoint -Description "updated endpoint again"
3030
```
3131

3232
```output
@@ -48,5 +48,5 @@ SystemDataLastModifiedByType : Application
4848
Type : microsoft.storagemover/storagemovers/endpoints
4949
```
5050

51-
This command updates a Smb file share endpoint's description by pipeline
51+
This command updates an Azure Storage SMB file share endpoint's description by pipeline.
5252

src/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverSmbFileShareEndpoint.ps1 src/StorageMover/StorageMover.Autorest/exports/New-AzStorageMoverAzSmbFileShareEndpoint.ps1

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou
2020
.Description
2121
Creates a Smb file share endpoint resource, which represents a data transfer source or destination.
2222
.Example
23-
New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint"
23+
New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint"
2424
2525
.Inputs
2626
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint
@@ -29,9 +29,10 @@ Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
2929
.Outputs
3030
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint
3131
.Link
32-
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint
32+
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint
3333
#>
34-
function New-AzStorageMoverSmbFileShareEndpoint {
34+
function New-AzStorageMoverAzSmbFileShareEndpoint {
35+
[Alias('New-AzStorageMoverSmbFileShareEndpoint')]
3536
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])]
3637
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3738
param(
@@ -154,7 +155,7 @@ begin {
154155
}
155156

156157
$mapping = @{
157-
CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbFileShareEndpoint';
158+
CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverAzSmbFileShareEndpoint';
158159
}
159160
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
160161
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id

0 commit comments

Comments
 (0)