Skip to content

Add alias to New-AzureRmAutomationModule #5466

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

Merged
merged 2 commits into from
Feb 12, 2018
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
2 changes: 1 addition & 1 deletion src/ResourceManager/Automation/AzureRM.Automation.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ CmdletsToExport = 'Get-AzureRMAutomationHybridWorkerGroup',
# VariablesToExport = @()

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

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down
1 change: 1 addition & 0 deletions src/ResourceManager/Automation/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Current Release
* Added alias from New-AzureRmAutomationModule to Import-AzureRmAutomationModule

## Version 4.2.0
* Added Location Completer to -Location parameters allowing tab completion through valid Locations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Microsoft.Azure.Commands.Automation.Cmdlet
/// </summary>
[Cmdlet(VerbsCommon.New, "AzureRmAutomationModule")]
[OutputType(typeof(Module))]
[Alias("Import-AzureRmAutomationModule")]
public class NewAzureAutomationModule : AzureAutomationBaseCmdlet
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<SubType>Designer</SubType>
</None>
<None Include="StartupScripts\*.ps1">
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# 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.
# ----------------------------------------------------------------------------------

@{
"Import-AzureRmAutomationModule" = "New-AzureRmAutomationModule";
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | Set-Alias -Description "AzureAlias" -Scope Global | Out-Null

This file was deleted.