Skip to content

Commit c27348f

Browse files
committed
Add alias to New-AzureRmAutomationModule
1 parent 6d78a52 commit c27348f

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

src/ResourceManager/Automation/AzureRM.Automation.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ CmdletsToExport = 'Get-AzureRMAutomationHybridWorkerGroup',
135135
# VariablesToExport = @()
136136

137137
# 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.
138-
AliasesToExport = @()
138+
AliasesToExport = 'Import-AzureRmAutomationModule'
139139

140140
# DSC resources to export from this module
141141
# DscResourcesToExport = @()

src/ResourceManager/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Added alias from New-AzureRmAutomationModule to Import-AzureRmAutomationModule
2122

2223
## Version 4.2.0
2324
* Added Location Completer to -Location parameters allowing tab completion through valid Locations

src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationModule.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
2424
/// </summary>
2525
[Cmdlet(VerbsCommon.New, "AzureRmAutomationModule")]
2626
[OutputType(typeof(Module))]
27+
[Alias("Import-AzureRmAutomationModule")]
2728
public class NewAzureAutomationModule : AzureAutomationBaseCmdlet
2829
{
2930
/// <summary>

src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
<SubType>Designer</SubType>
204204
</None>
205205
<None Include="StartupScripts\*.ps1">
206-
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
206+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
207207
</None>
208208
</ItemGroup>
209209
<ItemGroup>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ----------------------------------------------------------------------------------
2+
#
3+
# Copyright Microsoft Corporation
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# ----------------------------------------------------------------------------------
14+
15+
@{
16+
"Import-AzureRmAutomationModule" = "New-AzureRmAutomationModule";
17+
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | Set-Alias -Description "AzureAlias" | Out-Null

src/ResourceManager/Automation/Commands.Automation/StartupScripts/sample.ps1

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)