-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Storage mover api version 2025-12-01 #29446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DrNykterstein10
wants to merge
20
commits into
Azure:main
Choose a base branch
from
DrNykterstein10:feature/storagemover-api-2025-12-01
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c732a01
Regenerate Az.StorageMover for API version 2025-12-01
4ca57cc
Hide Update-AzStorageMoverConnection cmdlet
e2c6f13
Add Connection cmdlet tests with recordings
831d3b0
Clean up psd1 and help files: remove cosmetic autorest noise, add onl…
cd892e4
Add S3WithHmac endpoint custom cmdlets and tests
abfd337
Add S3WithHmac endpoint docs and examples
a7629b6
Add generate-info.json for StorageMover
02f0619
Sync generated directory with Connection and S3WithHmac exports, cust…
a663154
comment resolution
7b6a9ea
Address PR review: fix module-version, .sln path, literal \n in docs,…
7d8f55b
Apply suggestion from @Copilot
DrNykterstein10 6d3ada7
Fix PR review: restore module GUID, null JobDefinitionName on setup f…
f931f96
Revert generated/StorageMover/ to origin/main
ff85347
Restore original Module Guid in Az.StorageMover.md docs
0dff865
Fix Microsoft.AwsConnector -> Microsoft.AWSConnector casing in exampl…
6a76948
Revert job definition creation to original (no try/catch)
7c01215
Update generate_Id to trigger autorest regeneration, fix duplicate Sc…
3614f9d
Add help files for S3WithHmac endpoint cmdlets
d7e9dc4
Fix Connection test property paths: use flattened properties
42baa57
Remove Description assertion and revert PrivateLinkServiceId to Prope…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-agents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
...orageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-connections.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| { | ||
| "resourceType": "storageMovers/connections", | ||
| "apiVersion": "2025-12-01", | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.storagemover" | ||
| }, | ||
| "commands": [ | ||
| { | ||
| "name": "Get-AzStorageMoverConnection", | ||
| "description": "Gets a Connection resource.", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverconnection" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-ResourceGroupName <String>", | ||
| "-StorageMoverName <String>", | ||
| "[-SubscriptionId <String[]>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Gets a Connection resource.", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.connectionName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-StorageMoverName", | ||
| "value": "[Path.storageMoverName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Remove-AzStorageMoverConnection", | ||
| "description": "Deletes a Connection resource.\\nReturns 409 if there are active jobs using this connection.", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.storagemover/remove-azstoragemoverconnection" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-ResourceGroupName <String>", | ||
| "-StorageMoverName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Deletes a Connection resource.\\nReturns 409 if there are active jobs using this connection.", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.connectionName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-StorageMoverName", | ||
| "value": "[Path.storageMoverName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
2 changes: 1 addition & 1 deletion
2
...StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-endpoints.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ver.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...torageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 180 additions & 0 deletions
180
src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverS3WithHmacEndpoint.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,180 @@ | ||
|
|
||
| # ---------------------------------------------------------------------------------- | ||
| # 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. | ||
| # ---------------------------------------------------------------------------------- | ||
|
|
||
| <# | ||
| .Synopsis | ||
| Creates an S3 with HMAC endpoint resource, which represents a data transfer source or destination. | ||
| .Description | ||
| Creates an S3 with HMAC endpoint resource, which represents a data transfer source or destination. | ||
| .Example | ||
| New-AzStorageMoverS3WithHmacEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -SourceUri "https://s3.example.com/bucket" -SourceType "MINIO" -CredentialsAccessKeyUri "https://examples-azureKeyVault.vault.azure.net/secrets/access-key" -CredentialsSecretKeyUri "https://examples-azureKeyVault.vault.azure.net/secrets/secret-key" -Description "Description" | ||
|
|
||
| .Inputs | ||
| Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint | ||
| .Inputs | ||
| Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity | ||
| .Outputs | ||
| Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint | ||
| .Notes | ||
| COMPLEX PARAMETER PROPERTIES | ||
|
|
||
| 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. | ||
|
|
||
| .Link | ||
| https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovers3withhmacendpoint | ||
| #> | ||
| function New-AzStorageMoverS3WithHmacEndpoint { | ||
| [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])] | ||
| [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] | ||
| param( | ||
| [Parameter(ParameterSetName='CreateExpanded', Mandatory)] | ||
| [Alias('EndpointName')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] | ||
| [System.String] | ||
| # The name of the endpoint resource. | ||
| ${Name}, | ||
|
|
||
| [Parameter(ParameterSetName='CreateExpanded', Mandatory)] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] | ||
| [System.String] | ||
| # The name of the resource group. | ||
| # The name is case insensitive. | ||
| ${ResourceGroupName}, | ||
|
|
||
| [Parameter(ParameterSetName='CreateExpanded', Mandatory)] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] | ||
| [System.String] | ||
| # The name of the Storage Mover resource. | ||
| ${StorageMoverName}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded', Mandatory, HelpMessage="The URI which points to the S3 compatible source.")] | ||
| [string] | ||
| ${SourceUri}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded', Mandatory, HelpMessage="The source type of the S3 compatible endpoint. Valid values: MINIO, IBM, GCS, ALIBABA, DELL_EMC, OTHER.")] | ||
| [string] | ||
| ${SourceType}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded')] | ||
| [Parameter(HelpMessage="The Azure Key Vault secret URI which stores the access key.")] | ||
| [string] | ||
| ${CredentialsAccessKeyUri}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded')] | ||
| [Parameter(HelpMessage="The Azure Key Vault secret URI which stores the secret key.")] | ||
| [string] | ||
| ${CredentialsSecretKeyUri}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded')] | ||
| [Parameter(HelpMessage="The description for other source type. Required when SourceType is OTHER.")] | ||
| [string] | ||
| ${OtherSourceTypeDescription}, | ||
|
|
||
| [Parameter(ParameterSetName = 'CreateExpanded')] | ||
| [Parameter(HelpMessage="A description for the endpoint.")] | ||
| [string] | ||
| ${Description}, | ||
|
|
||
| [Parameter(ParameterSetName='CreateExpanded')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] | ||
| [System.String] | ||
| # The ID of the target subscription. | ||
| ${SubscriptionId}, | ||
|
|
||
| [Parameter()] | ||
| [Alias('AzureRMContext', 'AzureCredential')] | ||
| [ValidateNotNull()] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] | ||
| [System.Management.Automation.PSObject] | ||
| # The credentials, account, tenant, and subscription used for communication with Azure. | ||
| ${DefaultProfile}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [System.Management.Automation.SwitchParameter] | ||
| # Wait for .NET debugger to attach | ||
| ${Break}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [ValidateNotNull()] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] | ||
| # SendAsync Pipeline Steps to be appended to the front of the pipeline | ||
| ${HttpPipelineAppend}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [ValidateNotNull()] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] | ||
| # SendAsync Pipeline Steps to be prepended to the front of the pipeline | ||
| ${HttpPipelinePrepend}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [System.Uri] | ||
| # The URI for the proxy server to use | ||
| ${Proxy}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [ValidateNotNull()] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [System.Management.Automation.PSCredential] | ||
| # Credentials for a proxy server to use for the remote call | ||
| ${ProxyCredential}, | ||
|
|
||
| [Parameter(DontShow)] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] | ||
| [System.Management.Automation.SwitchParameter] | ||
| # Use the default credentials for the proxy | ||
| ${ProxyUseDefaultCredentials} | ||
| ) | ||
|
|
||
| process { | ||
| $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.S3WithHmacEndpointProperties]::New() | ||
|
|
||
| if ($PSBoundParameters.ContainsKey('SourceUri')) { | ||
| $Properties.SourceUri = $SourceUri | ||
| $null = $PSBoundParameters.Remove("SourceUri") | ||
| } | ||
| if ($PSBoundParameters.ContainsKey('SourceType')) { | ||
| $Properties.SourceType = $SourceType | ||
| $null = $PSBoundParameters.Remove("SourceType") | ||
| } | ||
| if ($PSBoundParameters.ContainsKey('CredentialsAccessKeyUri')) { | ||
| $Properties.CredentialsAccessKeyUri = $CredentialsAccessKeyUri | ||
| $null = $PSBoundParameters.Remove("CredentialsAccessKeyUri") | ||
| } | ||
| if ($PSBoundParameters.ContainsKey('CredentialsSecretKeyUri')) { | ||
| $Properties.CredentialsSecretKeyUri = $CredentialsSecretKeyUri | ||
| $null = $PSBoundParameters.Remove("CredentialsSecretKeyUri") | ||
| } | ||
| if ($PSBoundParameters.ContainsKey('OtherSourceTypeDescription')) { | ||
| $Properties.OtherSourceTypeDescription = $OtherSourceTypeDescription | ||
| $null = $PSBoundParameters.Remove("OtherSourceTypeDescription") | ||
| } | ||
| if ($PSBoundParameters.ContainsKey('Description')) { | ||
| $Properties.Description = $Description | ||
| $null = $PSBoundParameters.Remove("Description") | ||
| } | ||
|
|
||
| $PSBoundParameters.Add("Property", $Properties) | ||
| $Identity = "SystemAssigned" | ||
| $PSBoundParameters.Add("IdentityType", $Identity) | ||
|
|
||
| Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.