Skip to content

Commit 1b82bc5

Browse files
author
Ashraf Farok (PALASH)
committed
Updating alias mapping
1 parent 65d1eba commit 1b82bc5

File tree

4 files changed

+14
-46
lines changed

4 files changed

+14
-46
lines changed

src/ResourceManager/Profile/Commands.Profile/AzureRmAlias/Mappings.cs

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,4 @@
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-
using Newtonsoft.Json;
16-
using System;
17-
using System.Collections.Generic;
18-
19-
namespace Microsoft.Azure.Commands.Profile.AzureRmAlias
20-
{
21-
public class Mappings
22-
{
23-
public static Dictionary<string, object> GetCaseInsensitiveMapping()
24-
{
25-
string jsonmapping = jsonMappings;
26-
Dictionary<string, object> caseSensitiveMapping = (Dictionary<string, object>)JsonConvert.DeserializeObject(jsonmapping, typeof(Dictionary<string, object>));
27-
var mapping = new Dictionary<string, object>(StringComparer.CurrentCultureIgnoreCase);
28-
foreach (var key in caseSensitiveMapping.Keys)
29-
{
30-
mapping.Add(key, caseSensitiveMapping[key]);
31-
}
32-
33-
return mapping;
34-
}
35-
36-
public static string jsonMappings = @"
37-
{
1+
{
382
'Az.ApiManagement': {
393
'Add-AzApiManagementProductToGroup': 'Add-AzureRmApiManagementProductToGroup',
404
'Get-AzApiManagementOperation': 'Get-AzureRmApiManagementOperation',
@@ -1210,7 +1174,6 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
12101174
'Remove-AzStorageFile': 'Remove-AzureStorageFile',
12111175
'Set-AzCurrentStorageAccount': 'Set-AzureRmCurrentStorageAccount',
12121176
'Get-AzStorageUsage': 'Get-AzureRmStorageUsage',
1213-
'Enable-AzStorageStaticWebsite': 'Enable-AzureStorageStaticWebsite',
12141177
'Get-AzStorageQueue': 'Get-AzureStorageQueue',
12151178
'Enable-AzStorageDeleteRetentionPolicy': 'Enable-AzureStorageDeleteRetentionPolicy',
12161179
'Update-AzStorageServiceProperty': 'Update-AzureStorageServiceProperty',
@@ -1266,7 +1229,6 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
12661229
'Remove-AzStorageAccount': 'Remove-AzureRmStorageAccount',
12671230
'Get-AzStorageServiceMetricsProperty': 'Get-AzureStorageServiceMetricsProperty',
12681231
'New-AzStorageContainerStoredAccessPolicy': 'New-AzureStorageContainerStoredAccessPolicy',
1269-
'Disable-AzStorageStaticWebsite': 'Disable-AzureStorageStaticWebsite',
12701232
'Lock-AzRmStorageContainerImmutabilityPolicy': 'Lock-AzureRmStorageContainerImmutabilityPolicy',
12711233
'Add-AzRmStorageContainerLegalHold': 'Add-AzureRmStorageContainerLegalHold',
12721234
'Remove-AzStorageBlob': 'Remove-AzureStorageBlob',
@@ -1464,6 +1426,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
14641426
'Switch-AzWebAppSlot': 'Switch-AzureRmWebAppSlot',
14651427
'Get-AzAppServicePlanMetrics': 'Get-AzureRmAppServicePlanMetrics',
14661428
'Get-AzAppServicePlan': 'Get-AzureRmAppServicePlan',
1429+
'Enter-AzWebAppContainerPSSession': 'Enter-AzureRmWebAppContainerPSSession',
14671430
'New-AzAppServicePlan': 'New-AzureRmAppServicePlan',
14681431
'Get-AzWebAppSlot': 'Get-AzureRmWebAppSlot',
14691432
'Reset-AzWebAppSlotPublishingProfile': 'Reset-AzureRmWebAppSlotPublishingProfile',
@@ -1473,6 +1436,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
14731436
'Restore-AzWebAppBackup': 'Restore-AzureRmWebAppBackup',
14741437
'New-AzWebAppDatabaseBackupSetting': 'New-AzureRmWebAppDatabaseBackupSetting',
14751438
'New-AzWebApp': 'New-AzureRmWebApp',
1439+
'Get-AzWebAppContainerContinuousDeploymentUrl': 'Get-AzureRMWebAppContainerContinuousDeploymentUrl',
14761440
'Remove-AzWebApp': 'Remove-AzureRmWebApp',
14771441
'Get-AzWebAppMetrics': 'Get-AzureRmWebAppMetrics',
14781442
'Get-AzWebAppSSLBinding': 'Get-AzureRmWebAppSSLBinding',
@@ -1485,6 +1449,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
14851449
'Edit-AzWebAppBackupConfiguration': 'Edit-AzureRmWebAppBackupConfiguration',
14861450
'Restart-AzWebApp': 'Restart-AzureRmWebApp',
14871451
'Stop-AzWebApp': 'Stop-AzureRmWebApp',
1452+
'New-AzWebAppContainerPSSession': 'New-AzureRmWebAppContainerPSSession',
14881453
'Stop-AzWebAppSlot': 'Stop-AzureRmWebAppSlot'
14891454
},
14901455
'Az.StorageSync': {
@@ -1829,14 +1794,18 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
18291794
},
18301795
'Az.IotHub': {
18311796
'Get-AzIotHubValidSku': 'Get-AzureRmIotHubValidSku',
1797+
'Test-AzIotHubRoute': 'Test-AzureRmIotHubRoute',
18321798
'Get-AzIotHub': 'Get-AzureRmIotHub',
18331799
'Get-AzIotHubKey': 'Get-AzureRmIotHubKey',
1800+
'Add-AzIotHubRoutingEndpoint': 'Add-AzureRmIotHubRoutingEndpoint',
18341801
'Add-AzIotHubKey': 'Add-AzureRmIotHubKey',
18351802
'Set-AzIotHubVC': 'Set-AzureRmIotHubVC',
18361803
'Remove-AzIotHubCertificate': 'Remove-AzureRmIotHubCertificate',
18371804
'Set-AzIotHub': 'Set-AzureRmIotHub',
1805+
'Get-AzIotHubRoutingEndpoint': 'Get-AzureRmIotHubRoutingEndpoint',
18381806
'Remove-AzIotHubEventHubConsumerGroup': 'Remove-AzureRmIotHubEventHubConsumerGroup',
18391807
'Get-AzIotHubEventHubConsumerGroup': 'Get-AzureRmIotHubEventHubConsumerGroup',
1808+
'Remove-AzIotHubRoutingEndpoint': 'Remove-AzureRmIotHubRoutingEndpoint',
18401809
'Get-AzIotHubCertificate': 'Get-AzureRmIotHubCertificate',
18411810
'Get-AzIotHubQuotaMetric': 'Get-AzureRmIotHubQuotaMetric',
18421811
'Add-AzIotHubCertificate': 'Add-AzureRmIotHubCertificate',
@@ -1851,11 +1820,15 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
18511820
'New-AzIotHubImportDevices': 'New-AzureRmIotHubImportDevices',
18521821
'New-AzIotHubExportDevices': 'New-AzureRmIotHubExportDevices',
18531822
'Remove-AzIotHubEHCG': 'Remove-AzureRmIotHubEHCG',
1823+
'Remove-AzIotHubRoute': 'Remove-AzureRmIotHubRoute',
1824+
'Add-AzIotHubRoute': 'Add-AzureRmIotHubRoute',
1825+
'Get-AzIotHubRoute': 'Get-AzureRmIotHubRoute',
18541826
'Get-AzIotHubCVC': 'Get-AzureRmIotHubCVC',
18551827
'Get-AzIotHubRegistryStatistic': 'Get-AzureRmIotHubRegistryStatistic',
18561828
'Get-AzIotHubConnectionString': 'Get-AzureRmIotHubConnectionString',
18571829
'Get-AzIotHubEHCG': 'Get-AzureRmIotHubEHCG',
1858-
'Remove-AzIotHub': 'Remove-AzureRmIotHub'
1830+
'Remove-AzIotHub': 'Remove-AzureRmIotHub',
1831+
'Set-AzIotHubRoute': 'Set-AzureRmIotHubRoute'
18591832
},
18601833
'Az.Resources': {
18611834
'Remove-AzPolicySetDefinition': 'Remove-AzureRmPolicySetDefinition',
@@ -2349,7 +2322,3 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
23492322
'Remove-AzApplicationInsightsContinuousExport': 'Remove-AzureRmApplicationInsightsContinuousExport'
23502323
}
23512324
}
2352-
2353-
";
2354-
}
2355-
}

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebApps/EnterAzureRmWebAppContainerPSSession.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2323
/// this commandlet will create remote ps session with site
2424
/// </summary>
2525
[Cmdlet("Enter", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebAppContainerPSSession")]
26-
[OutputType(typeof(string))]
2726
public class EnterAzureRmWebAppContainerPSSession : WebAppBaseCmdlet
2827
{
2928
[Parameter(ParameterSetName = ParameterSet1Name, Position = 1, Mandatory = false, HelpMessage = "The name of the web app slot.", ValueFromPipelineByPropertyName = true)]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebApps/NewAzureRmWebAppContainerPSSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2323
/// this commandlet will create remote ps session with site
2424
/// </summary>
2525
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebAppContainerPSSession")]
26-
[OutputType(typeof(string))]
26+
[OutputType(typeof(System.Management.Automation.Runspaces.PSSession))]
2727
public class NewAzureRmWebAppContainerPSSession : WebAppBaseCmdlet
2828
{
2929
[Parameter(ParameterSetName = ParameterSet1Name, Position = 1, Mandatory = false, HelpMessage = "The name of the web app slot.", ValueFromPipelineByPropertyName = true)]

tools/AliasMapping.json

1.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)