Skip to content

Commit

Permalink
Merge pull request #37 from AzCiS/parvezah
Browse files Browse the repository at this point in the history
Adding Aliases
  • Loading branch information
avirupch committed Apr 2, 2015
2 parents d939ea4 + 37a7787 commit b756358
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 2 deletions.
43 changes: 42 additions & 1 deletion src/ServiceManagement/Services/Commands.Utilities/Azure.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,48 @@ AliasesToExport = @(
'Wait-AzureHDInsightJob',
'Get-AzureStorageContainerAcl',
'Start-CopyAzureStorageBlob',
'Stop-CopyAzureStorageBlob'
'Stop-CopyAzureStorageBlob',
'Get-SSAccessControlRecord',
'Get-SSDevice',
'Get-SSDeviceBackup',
'Get-SSDeviceBackupPolicy',
'Get-SSDeviceConnectedInitiator',
'Get-SSDeviceVolume',
'Get-SSDeviceVolumeContainer',
'Get-SSFailoverVolumeContainers',
'Get-SSJob',
'Get-SSResource',
'Get-SSResourceContext',
'Get-SSStorageAccountCredential',
'Get-SSTask',
'New-SSAccessControlRecord',
'New-SSDeviceBackupPolicy',
'New-SSDeviceBackupScheduleAddConfig',
'New-SSDeviceBackupScheduleUpdateConfig',
'New-SSDeviceVolume',
'New-SSDeviceVolumeContainer',
'New-SSInlineStorageAccountCredential',
'New-SSNetworkConfig',
'New-SSStorageAccountCredential',
'New-SSVirtualDevice',
'Remove-SSAccessControlRecord',
'Remove-SSDeviceBackup',
'Remove-SSDeviceBackupPolicy',
'Remove-SSDeviceVolume',
'Remove-SSDeviceVolumeContainer',
'Remove-SSStorageAccountCredential',
'Select-SSResource',
'Set-SSAccessControlRecord',
'Set-SSDevice',
'Set-SSDeviceBackupPolicy',
'Set-SSDeviceVolume',
'Set-SSStorageAccountCredential',
'Set-SSVirtualDevice',
'Start-SSBackupCloneJob',
'Start-SSDeviceBackupJob',
'Start-SSDeviceBackupRestoreJob',
'Start-SSDeviceFailoverJob',
'Stop-SSJob'
)

# List of all modules packaged with this module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,50 @@ $aliases = @{

# HDInsight aliases
"Invoke-Hive" = "Invoke-AzureHDInsightHiveJob";
"hive" = "Invoke-AzureHDInsightHiveJob"
"hive" = "Invoke-AzureHDInsightHiveJob";

#StorSimple aliases
"Get-SSAccessControlRecord" = "Get-AzureStorSimpleAccessControlRecord" ;
"Get-SSDevice"= "Get-AzureStorSimpleDevice" ;
"Get-SSDeviceBackup" = "Get-AzureStorSimpleDeviceBackup" ;
"Get-SSDeviceBackupPolicy" = "Get-AzureStorSimpleDeviceBackupPolicy" ;
"Get-SSDeviceConnectedInitiator" = "Get-AzureStorSimpleDeviceConnectedInitiator" ;
"Get-SSDeviceVolume" = "Get-AzureStorSimpleDeviceVolume" ;
"Get-SSDeviceVolumeContainer" = "Get-AzureStorSimpleDeviceVolumeContainer" ;
"Get-SSFailoverVolumeContainers" = "Get-AzureStorSimpleFailoverVolumeContainers" ;
"Get-SSJob" = "Get-AzureStorSimpleJob" ;
"Get-SSResource" = "Get-AzureStorSimpleResource" ;
"Get-SSResourceContext" = "Get-AzureStorSimpleResourceContext" ;
"Get-SSStorageAccountCredential" = "Get-AzureStorSimpleStorageAccountCredential" ;
"Get-SSTask" = "Get-AzureStorSimpleTask" ;
"New-SSAccessControlRecord" = "New-AzureStorSimpleAccessControlRecord" ;
"New-SSDeviceBackupPolicy" = "New-AzureStorSimpleDeviceBackupPolicy" ;
"New-SSDeviceBackupScheduleAddConfig" = "New-AzureStorSimpleDeviceBackupScheduleAddConfig" ;
"New-SSDeviceBackupScheduleUpdateConfig" = "New-AzureStorSimpleDeviceBackupScheduleUpdateConfig" ;
"New-SSDeviceVolume" = "New-AzureStorSimpleDeviceVolume";
"New-SSDeviceVolumeContainer" = "New-AzureStorSimpleDeviceVolumeContainer" ;
"New-SSInlineStorageAccountCredential" = "New-AzureStorSimpleInlineStorageAccountCredential" ;
"New-SSNetworkConfig" = "New-AzureStorSimpleNetworkConfig";
"New-SSStorageAccountCredential" = "New-AzureStorSimpleStorageAccountCredential";
"New-SSVirtualDevice" = "New-AzureStorSimpleVirtualDevice";
"Remove-SSAccessControlRecord" = "Remove-AzureStorSimpleAccessControlRecord";
"Remove-SSDeviceBackup" = "Remove-AzureStorSimpleDeviceBackup";
"Remove-SSDeviceBackupPolicy" = "Remove-AzureStorSimpleDeviceBackupPolicy";
"Remove-SSDeviceVolume" = "Remove-AzureStorSimpleDeviceVolume";
"Remove-SSDeviceVolumeContainer" = "Remove-AzureStorSimpleDeviceVolumeContainer";
"Remove-SSStorageAccountCredential" = "Remove-AzureStorSimpleStorageAccountCredential";
"Select-SSResource" = "Select-AzureStorSimpleResource";
"Set-SSAccessControlRecord" = "Set-AzureStorSimpleAccessControlRecord";
"Set-SSDevice" = "Set-AzureStorSimpleDevice";
"Set-SSDeviceBackupPolicy" = "Set-AzureStorSimpleDeviceBackupPolicy";
"Set-SSDeviceVolume" = "Set-AzureStorSimpleDeviceVolume";
"Set-SSStorageAccountCredential" = "Set-AzureStorSimpleStorageAccountCredential";
"Set-SSVirtualDevice" = "Set-AzureStorSimpleVirtualDevice";
"Start-SSBackupCloneJob" = "Start-AzureStorSimpleBackupCloneJob";
"Start-SSDeviceBackupJob" = "Start-AzureStorSimpleDeviceBackupJob";
"Start-SSDeviceBackupRestoreJob" = "Start-AzureStorSimpleDeviceBackupRestoreJob";
"Start-SSDeviceFailoverJob" = "Start-AzureStorSimpleDeviceFailoverJob";
"Stop-SSJob" = "Stop-AzureStorSimpleJob";
}

$aliases.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | New-Alias -Description "AzureAlias"

0 comments on commit b756358

Please sign in to comment.