Skip to content
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

Migrate StorageMover from generation to main #22009

Merged
merged 2 commits into from
Jun 7, 2023
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
5 changes: 2 additions & 3 deletions src/StorageMover/Az.StorageMover.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 3/6/2023
# Generated on: 6/7/2023
#

@{
Expand Down Expand Up @@ -122,8 +122,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* General availability for module Az.StorageMover
* Updated StorageMover API version to 2023-03-01'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
1 change: 1 addition & 0 deletions src/StorageMover/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fix the issue of $Host conflicting with system parameter $Host

## Version 1.0.0
* General availability for module Az.StorageMover
Expand Down
70 changes: 35 additions & 35 deletions src/StorageMover/StorageMover.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{57230BF4-4D35-4075-96D1-7746C6435727}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{3716E4F5-4879-4541-B02A-FC91A9DD456A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{55E30484-DAC7-4E1A-8001-21DA331427CF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{106A5185-D14B-44C7-A24C-C8AEE1EA345C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{1F20359A-BE1B-4308-ACEF-885509B260AA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{1C111710-6E36-4C6F-931E-9DB9F07D20BC}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{87C9D60A-A01B-4257-8DE9-6D3A251E77CE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{267B0F8F-8D51-45F9-A904-38BB45D3416E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C52134F8-882C-4EC9-BCF2-786AC03C9123}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageMover", "Az.StorageMover.csproj", "{19FA5433-2347-479D-A3ED-DB1B0EA2D851}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageMover", "Az.StorageMover.csproj", "{D01B6C61-8B9F-447A-9893-64CFB6999C7D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -26,33 +26,33 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{57230BF4-4D35-4075-96D1-7746C6435727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{57230BF4-4D35-4075-96D1-7746C6435727}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57230BF4-4D35-4075-96D1-7746C6435727}.Release|Any CPU.ActiveCfg = Release|Any CPU
{57230BF4-4D35-4075-96D1-7746C6435727}.Release|Any CPU.Build.0 = Release|Any CPU
{55E30484-DAC7-4E1A-8001-21DA331427CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55E30484-DAC7-4E1A-8001-21DA331427CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55E30484-DAC7-4E1A-8001-21DA331427CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55E30484-DAC7-4E1A-8001-21DA331427CF}.Release|Any CPU.Build.0 = Release|Any CPU
{106A5185-D14B-44C7-A24C-C8AEE1EA345C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{106A5185-D14B-44C7-A24C-C8AEE1EA345C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{106A5185-D14B-44C7-A24C-C8AEE1EA345C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{106A5185-D14B-44C7-A24C-C8AEE1EA345C}.Release|Any CPU.Build.0 = Release|Any CPU
{1C111710-6E36-4C6F-931E-9DB9F07D20BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C111710-6E36-4C6F-931E-9DB9F07D20BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C111710-6E36-4C6F-931E-9DB9F07D20BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C111710-6E36-4C6F-931E-9DB9F07D20BC}.Release|Any CPU.Build.0 = Release|Any CPU
{87C9D60A-A01B-4257-8DE9-6D3A251E77CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{87C9D60A-A01B-4257-8DE9-6D3A251E77CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{87C9D60A-A01B-4257-8DE9-6D3A251E77CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{87C9D60A-A01B-4257-8DE9-6D3A251E77CE}.Release|Any CPU.Build.0 = Release|Any CPU
{C52134F8-882C-4EC9-BCF2-786AC03C9123}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C52134F8-882C-4EC9-BCF2-786AC03C9123}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C52134F8-882C-4EC9-BCF2-786AC03C9123}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C52134F8-882C-4EC9-BCF2-786AC03C9123}.Release|Any CPU.Build.0 = Release|Any CPU
{19FA5433-2347-479D-A3ED-DB1B0EA2D851}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19FA5433-2347-479D-A3ED-DB1B0EA2D851}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19FA5433-2347-479D-A3ED-DB1B0EA2D851}.Release|Any CPU.ActiveCfg = Release|Any CPU
{19FA5433-2347-479D-A3ED-DB1B0EA2D851}.Release|Any CPU.Build.0 = Release|Any CPU
{3716E4F5-4879-4541-B02A-FC91A9DD456A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3716E4F5-4879-4541-B02A-FC91A9DD456A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3716E4F5-4879-4541-B02A-FC91A9DD456A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3716E4F5-4879-4541-B02A-FC91A9DD456A}.Release|Any CPU.Build.0 = Release|Any CPU
{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Release|Any CPU.Build.0 = Release|Any CPU
{1F20359A-BE1B-4308-ACEF-885509B260AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F20359A-BE1B-4308-ACEF-885509B260AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F20359A-BE1B-4308-ACEF-885509B260AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F20359A-BE1B-4308-ACEF-885509B260AA}.Release|Any CPU.Build.0 = Release|Any CPU
{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Release|Any CPU.Build.0 = Release|Any CPU
{267B0F8F-8D51-45F9-A904-38BB45D3416E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{267B0F8F-8D51-45F9-A904-38BB45D3416E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{267B0F8F-8D51-45F9-A904-38BB45D3416E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{267B0F8F-8D51-45F9-A904-38BB45D3416E}.Release|Any CPU.Build.0 = Release|Any CPU
{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Release|Any CPU.Build.0 = Release|Any CPU
{D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
4 changes: 4 additions & 0 deletions src/StorageMover/build-module.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder

Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
$modelCmdlets = @()
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
if (Test-Path $modelCmdletFolder) {
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
}
if ($modelCmdlets.Count -gt 0) {
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
CreateModelCmdlet($modelCmdlets)
Expand Down
12 changes: 8 additions & 4 deletions src/StorageMover/create-model-cmdlets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ function CreateModelCmdlet {
}

$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
$ModuleName = 'StorageMover'
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
$null = New-Item -ItemType Directory -Force -Path $OutputDir
if (''.length -gt 0) {
$ModuleName = ''
} else {
$ModuleName = 'Az.StorageMover'
}

$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
$Content = ''
Expand Down Expand Up @@ -64,10 +68,10 @@ function CreateModelCmdlet {
$ObjectType = $Model
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
# remove duplicated module name
if ($ObjectType.StartsWith($ModuleName)) {
if ($ObjectType.StartsWith('StorageMover')) {
$ModulePrefix = ''
} else {
$ModulePrefix = $ModuleName
$ModulePrefix = 'StorageMover'
}
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir

Expand Down Expand Up @@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}.
.Outputs
${ObjectTypeWithNamespace}
.Link
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
#>
function New-Az${ModulePrefix}${ObjectType}Object {
[OutputType('${ObjectTypeWithNamespace}')]
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMover.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -140,7 +141,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMoverAgent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -144,7 +145,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMoverEndpoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -144,7 +145,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMoverJobDefinition.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -151,7 +152,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMoverJobRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -158,7 +159,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/Get-AzStorageMoverProject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -144,7 +145,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/New-AzStorageMover.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -153,7 +154,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
5 changes: 3 additions & 2 deletions src/StorageMover/exports/New-AzStorageMoverJobDefinition.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down Expand Up @@ -192,7 +193,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
2 changes: 1 addition & 1 deletion src/StorageMover/exports/New-AzStorageMoverNfsEndpoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ begin {
$parameterSet = $PSCmdlet.ParameterSetName

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
Expand Down
Loading