Skip to content

Commit eeaac2d

Browse files
committed
Add alias support for Get- AzsInfrastructureVolume cmdlet
1 parent d273b81 commit eeaac2d

File tree

4 files changed

+14
-255
lines changed

4 files changed

+14
-255
lines changed

src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ Licensed under the MIT License. See License.txt in the project root for license
9898
# VariablesToExport = @()
9999

100100
# 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.
101-
AliasesToExport = @()
101+
AliasesToExport = @(
102+
'Get-AzsInfrastructureVolume'
103+
)
102104

103105
# DSC resources to export from this module
104106
# DscResourcesToExport = @()
@@ -128,12 +130,12 @@ Licensed under the MIT License. See License.txt in the project root for license
128130

129131
# ReleaseNotes of this module
130132
ReleaseNotes = '## 2018.11.5
131-
* New cmdlet
133+
* New cmdlet (The features are supported by Azure Stack 1811+)
132134
* Get-AzsDrive
133135
* Get-AzsVolume
134136
* Get-AzsStorageSubSystem
135-
* Removed cmdlet
136-
* Get-AzsInfrastructureVolume
137+
* Deprecation
138+
* Get-AzsInfrastructureVolume is an alias now to the cmdlet Get-AzsVolume
137139
'
138140

139141
} # End of PSData hashtable

src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/ChangeLog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
## Current Release
2121

2222
## Version 0.3.0
23-
* New cmdlet
23+
* New cmdlet (The features are supported by Azure Stack 1811+)
2424
* Get-AzsDrive
2525
* Get-AzsVolume
2626
* Get-AzsStorageSubSystem
27-
* Removed cmdlet
28-
* Get-AzsInfrastructureVolume
27+
* Deprecation
28+
* Get-AzsInfrastructureVolume is an alias now to the cmdlet Get-AzsVolume
2929

3030
## Version 0.2.1
3131
* Bug fixes

src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsInfrastructureVolume.ps1

Lines changed: 0 additions & 248 deletions
This file was deleted.

src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsVolume.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Licensed under the MIT License. See License.txt in the project root for license
5151
5252
#>
5353
function Get-AzsVolume {
54+
[Alias('Get-AzsInfrastructureVolume')]
5455
[OutputType([Microsoft.AzureStack.Management.Fabric.Admin.Models.Volume])]
5556
[CmdletBinding(DefaultParameterSetName = 'List')]
5657
param(
@@ -114,6 +115,10 @@ function Get-AzsVolume {
114115

115116
Process {
116117

118+
if ($MyInvocation.InvocationName -eq 'Get-AzsInfrastructureVolume') {
119+
Write-Warning "Get-AzsInfrastructureVolume has been deprecated, please use Get-AzsVolume"
120+
}
121+
117122
$StorageSubSystem = Get-ResourceNameSuffix -ResourceName $StorageSubSystem
118123
$ScaleUnit = Get-ResourceNameSuffix -ResourceName $ScaleUnit
119124

0 commit comments

Comments
 (0)