Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageMover")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]



Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ function New-AzStorageMoverAzStorageContainerEndpoint {
$Properties.EndpointType = "AzureStorageBlobContainer"
$PSBoundParameters.Add("Property", $Properties)

$Identity = "SystemAssigned"
$PSBoundParameters.Add("IdentityType", $Identity)

Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ function New-AzStorageMoverMultiCloudConnectorEndpoint {
$Properties.EndpointType = "AzureMultiCloudConnector"
$PSBoundParameters.Add("Property", $Properties)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default value returned from server "SystemAssigned"? If not this could be a possible breaking chang

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the original PR for this new api version is not released yet, this is just a fix PR in succession to that.:
#28488

So should not cause any issue.

$Identity = "SystemAssigned"
$PSBoundParameters.Add("IdentityType", $Identity)

Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ function Update-AzStorageMoverAzStorageContainerEndpoint {
$null = $PSBoundParameters.Remove('Description')
}

$Identity = "SystemAssigned"
$PSBoundParameters.Add("IdentityType", $Identity)

Az.StorageMover.internal\Update-AzStorageMoverEndpoint @PSBoundParameters
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Property : {
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myContainer"
}
IdentityPrincipalId : 4a8804ea-a688-4577-89f1-e74cbe3d7c3a
IdentityTenantId : 72f988bf-86f1-41af-91ab-2d7cd011db47
IdentityType : SystemAssigned
IdentityUserAssignedIdentity : {
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Property : {
"awsS3BucketId": "my-s3-bucket",
"multiCloudConnectorId": "samplearmid"
}
Identity : "SystemAssigned"
SystemDataCreatedAt : 6/27/2023 4:30:13 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ Property : {
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myContainer"
}
IdentityPrincipalId : 4a8804ea-a688-4577-89f1-e74cbe3d7c3a
IdentityTenantId : 72f988bf-86f1-41af-91ab-2d7cd011db47
IdentityType : SystemAssigned
IdentityUserAssignedIdentity : {
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Property : {
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myContainer"
}
IdentityPrincipalId : 4a8804ea-a688-4577-89f1-e74cbe3d7c3a
IdentityTenantId : 72f988bf-86f1-41af-91ab-2d7cd011db47
IdentityType : SystemAssigned
IdentityUserAssignedIdentity : {
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Property : {
"awsS3BucketId": "my-s3-bucket",
"multiCloudConnectorId": "samplearmid"
}
Identity : "SystemAssigned"
SystemDataCreatedAt : 6/27/2023 4:30:13 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Property : {
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myContainer"
}
IdentityPrincipalId : 4a8804ea-a688-4577-89f1-e74cbe3d7c3a
IdentityTenantId : 72f988bf-86f1-41af-91ab-2d7cd011db47
IdentityType : SystemAssigned
IdentityUserAssignedIdentity : {
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
Expand Down
2 changes: 1 addition & 1 deletion src/StorageMover/StorageMover.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "8fa6c583-0955-4747-b7c5-4c49c39651c2"
"generate_Id": "ac688c3d-c559-46b1-b104-1c05b303230c"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Get-AzStorageMoverAgent+[NoContext]+List+$GET+https://management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2025-07-01+1": {
"Get-AzStorageMoverAgent+[NoContext]+List+$GET+https://management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2025-07-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://eastus2euap.management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2025-07-01",
"RequestUri": "https://centraluseuap.management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2025-07-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "10" ],
"x-ms-client-request-id": [ "21b29715-e097-4cfb-b2cd-845089589196" ],
"x-ms-client-request-id": [ "c614f1d8-465e-492b-8c80-ceea3057f76b" ],
"CommandName": [ "Get-AzStorageMoverAgent" ],
"FullCommandName": [ "Get-AzStorageMoverAgent_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v12.2.0", "PSVersion/v7.5.2", "Az.StorageMover/1.5.0" ],
"User-Agent": [ "AzurePowershell/v12.2.0", "PSVersion/v7.5.3", "Az.StorageMover/0.1.0" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
Expand All @@ -22,42 +22,42 @@
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ade47690-3254-48fb-af97-0c4da9dd127c/eastus2euap/fcf780c5-63fe-48fa-834b-e323a0e0edc1" ],
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ade47690-3254-48fb-af97-0c4da9dd127c/centraluseuap/ad65df1a-6ef2-4582-8862-f894adb3b49b" ],
"x-ms-providerhub-traffic": [ "True" ],
"mise-correlation-id": [ "69225e93-1257-452a-86d0-f7124fb16d07" ],
"x-ms-request-id": [ "f5a677b2-f10a-4f1e-8d8e-cb39024413a2" ],
"x-ms-correlation-request-id": [ "2916aadf-8100-4cd0-bde9-7d4c88929f0b" ],
"mise-correlation-id": [ "b62f6c66-5412-4145-9917-80f284c269ec" ],
"x-ms-request-id": [ "538f3ce6-55b8-4c9c-86a2-b97e2ea56247" ],
"x-ms-correlation-request-id": [ "e6e8723b-76d3-451c-a636-1e82305f81fe" ],
"x-ms-throttling-version": [ "v2" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
"x-ms-routing-request-id": [ "EASTUS2EUAP:20250829T125049Z:2916aadf-8100-4cd0-bde9-7d4c88929f0b" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "1098" ],
"x-ms-routing-request-id": [ "CENTRALUSEUAP:20250923T054533Z:e6e8723b-76d3-451c-a636-1e82305f81fe" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 4AFBE02F572040D5985FF2F939A606EE Ref B: PNQ231110906036 Ref C: 2025-08-29T12:50:49Z" ],
"Date": [ "Fri, 29 Aug 2025 12:50:49 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 16F3254205E1415FAE9A23E1060813A8 Ref B: MAA201060514047 Ref C: 2025-09-23T05:45:33Z" ],
"Date": [ "Tue, 23 Sep 2025 05:45:32 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "1011" ],
"Content-Length": [ "1004" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"value\":[{\"id\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12\",\"name\":\"testagent12\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"choudharysu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2025-08-28T12:18:08.5902303Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2025-08-29T12:50:26.9294241Z\"},\"properties\":{\"agentVersion\":\"3.4.831_amd64:3.4.846_amd64\",\"arcResourceId\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.HybridCompute/machines/testagent12\",\"arcVmUuid\":\"3919140f-7b36-fb45-b298-95d724237da6\",\"timeZone\":\"UTC\",\"localIPAddress\":\"10.126.12.27\",\"memoryInMB\":3913,\"numberOfCores\":1,\"uptimeInSeconds\":111014,\"lastStatusUpdate\":\"2025-08-29T12:50:24.2804374Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}]}",
"Content": "{\"value\":[{\"id\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12\",\"name\":\"testagent12\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"choudharysu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2025-09-23T05:30:19.8244817Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2025-09-23T05:45:29.9669414Z\"},\"properties\":{\"agentVersion\":\"3.4.831_amd64:3.4.846_amd64\",\"arcResourceId\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.HybridCompute/machines/testagent12\",\"arcVmUuid\":\"3919140f-7b36-fb45-b298-95d724237da6\",\"timeZone\":\"UTC\",\"localIPAddress\":\"10.126.12.27\",\"memoryInMB\":3918,\"numberOfCores\":1,\"uptimeInSeconds\":1022526,\"lastStatusUpdate\":\"2025-09-23T05:45:27.4415525Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}]}",
"isContentBase64": false
}
},
"Get-AzStorageMoverAgent+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12?api-version=2025-07-01+1": {
"Get-AzStorageMoverAgent+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12?api-version=2025-07-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://eastus2euap.management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12?api-version=2025-07-01",
"RequestUri": "https://centraluseuap.management.azure.com/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12?api-version=2025-07-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "11" ],
"x-ms-client-request-id": [ "c417d304-10b5-45b2-a065-35a8f84d5a76" ],
"x-ms-client-request-id": [ "ef7c872a-56d7-4b02-bad9-2b3ceaadae42" ],
"CommandName": [ "Get-AzStorageMoverAgent" ],
"FullCommandName": [ "Get-AzStorageMoverAgent_Get" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v12.2.0", "PSVersion/v7.5.2", "Az.StorageMover/1.5.0" ],
"User-Agent": [ "AzurePowershell/v12.2.0", "PSVersion/v7.5.3", "Az.StorageMover/0.1.0" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
Expand All @@ -68,27 +68,27 @@
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"ETag": [ "\"00005889-0000-3300-0000-68b1a2130000\"" ],
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ade47690-3254-48fb-af97-0c4da9dd127c/eastus2euap/a93ae6b0-198c-4e51-a747-4994b2c525bb" ],
"ETag": [ "\"570078e9-0000-3300-0000-68d233fa0000\"" ],
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ade47690-3254-48fb-af97-0c4da9dd127c/centraluseuap/5933068f-5999-49fa-b5fd-b401a42fb652" ],
"x-ms-providerhub-traffic": [ "True" ],
"mise-correlation-id": [ "b0d73992-49cd-4423-bb78-378cf6a85f5e" ],
"x-ms-request-id": [ "c9b2de6d-8612-4307-90a8-0e6394ba8e46" ],
"x-ms-correlation-request-id": [ "092cf365-e940-4046-a94f-9d7b56b362c6" ],
"mise-correlation-id": [ "2c67cdb9-fa1b-45c4-aa6f-dfcc50b2568b" ],
"x-ms-request-id": [ "05236463-169f-4483-a269-0f1677198e41" ],
"x-ms-correlation-request-id": [ "1079eb1a-6a08-448e-add5-8b3517cb9da3" ],
"x-ms-throttling-version": [ "v2" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "1098" ],
"x-ms-routing-request-id": [ "EASTUS2EUAP:20250829T125050Z:092cf365-e940-4046-a94f-9d7b56b362c6" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
"x-ms-routing-request-id": [ "CENTRALUSEUAP:20250923T054534Z:1079eb1a-6a08-448e-add5-8b3517cb9da3" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: 8EE4F109854941808F37EAADA48B5661 Ref B: PNQ231110906036 Ref C: 2025-08-29T12:50:49Z" ],
"Date": [ "Fri, 29 Aug 2025 12:50:49 GMT" ]
"X-MSEdge-Ref": [ "Ref A: 22FED42BA1844E509F60AE0D99FEFA0C Ref B: MAA201060514047 Ref C: 2025-09-23T05:45:33Z" ],
"Date": [ "Tue, 23 Sep 2025 05:45:33 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "999" ],
"Content-Length": [ "992" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"id\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12\",\"name\":\"testagent12\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"choudharysu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2025-08-28T12:18:08.5902303Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2025-08-29T12:50:26.9294241Z\"},\"properties\":{\"agentVersion\":\"3.4.831_amd64:3.4.846_amd64\",\"arcResourceId\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysumovetest/providers/Microsoft.HybridCompute/machines/testagent12\",\"arcVmUuid\":\"3919140f-7b36-fb45-b298-95d724237da6\",\"timeZone\":\"UTC\",\"localIPAddress\":\"10.126.12.27\",\"memoryInMB\":3913,\"numberOfCores\":1,\"uptimeInSeconds\":111014,\"lastStatusUpdate\":\"2025-08-29T12:50:24.2804374Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}",
"Content": "{\"id\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent12\",\"name\":\"testagent12\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"choudharysu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2025-09-23T05:30:19.8244817Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2025-09-23T05:45:29.9669414Z\"},\"properties\":{\"agentVersion\":\"3.4.831_amd64:3.4.846_amd64\",\"arcResourceId\":\"/subscriptions/b6b34ad8-ca89-4f85-beb7-c2ec13702dac/resourceGroups/choudharysutest/providers/Microsoft.HybridCompute/machines/testagent12\",\"arcVmUuid\":\"3919140f-7b36-fb45-b298-95d724237da6\",\"timeZone\":\"UTC\",\"localIPAddress\":\"10.126.12.27\",\"memoryInMB\":3918,\"numberOfCores\":1,\"uptimeInSeconds\":1022526,\"lastStatusUpdate\":\"2025-09-23T05:45:27.4415525Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}",
"isContentBase64": false
}
}
Expand Down
Loading