Sql/ServiceManagementStartup.ps1
# ---------------------------------------------------------------------------------- # # 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. # ---------------------------------------------------------------------------------- $script:aliases = @{ # Profile aliases "Get-WAPackPublishSettingsFile" = "Get-AzurePublishSettingsFile"; "Get-WAPackSubscription" = "Get-AzureSubscription"; "Import-WAPackPublishSettingsFile" = "Import-AzurePublishSettingsFile"; "Remove-WAPackSubscription" = "Remove-AzureSubscription"; "Select-WAPackSubscription" = "Select-AzureSubscription"; "Set-WAPackSubscription" = "Set-AzureSubscription"; "Show-WAPackPortal" = "Show-AzurePortal"; "Test-WAPackName" = "Test-AzureName"; "Get-WAPackEnvironment" = "Get-AzureEnvironment"; "Add-WAPackEnvironment" = "Add-AzureEnvironment"; "Set-WAPackEnvironment" = "Set-AzureEnvironment"; "Remove-WAPackEnvironment" = "Remove-AzureEnvironment"; # Websites aliases "New-WAPackWebsite" = "New-AzureWebsite"; "Get-WAPackWebsite" = "Get-AzureWebsite"; "Set-WAPackWebsite" = "Set-AzureWebsite"; "Remove-WAPackWebsite" = "Remove-AzureWebsite"; "Start-WAPackWebsite" = "Start-AzureWebsite"; "Stop-WAPackWebsite" = "Stop-AzureWebsite"; "Restart-WAPackWebsite" = "Restart-AzureWebsite"; "Show-WAPackWebsite" = "Show-AzureWebsite"; "Get-WAPackWebsiteLog" = "Get-AzureWebsiteLog"; "Save-WAPackWebsiteLog" = "Save-AzureWebsiteLog"; "Get-WAPackWebsiteLocation" = "Get-AzureWebsiteLocation"; "Get-WAPackWebsiteDeployment" = "Get-AzureWebsiteDeployment"; "Restore-WAPackWebsiteDeployment" = "Restore-AzureWebsiteDeployment"; "Enable-WAPackWebsiteApplicationDiagnositc" = "Enable-AzureWebsiteApplicationDiagnostic"; "Disable-WAPackWebsiteApplicationDiagnostic" = "Disable-AzureWebsiteApplicationDiagnostic"; # Service Bus aliases "Get-WAPackSBLocation" = "Get-AzureSBLocation"; "Get-WAPackSBNamespace" = "Get-AzureSBNamespace"; "New-WAPackSBNamespace" = "New-AzureSBNamespace"; "Remove-WAPackSBNamespace" = "Remove-AzureSBNamespace"; # Storage aliases "Get-AzureStorageContainerAcl" = "Get-AzureStorageContainer"; "Start-CopyAzureStorageBlob" = "Start-AzureStorageBlobCopy"; "Stop-CopyAzureStorageBlob" = "Stop-AzureStorageBlobCopy"; # Compute aliases "New-AzureDns" = "New-AzureDnsConfig"; # HDInsight aliases "Invoke-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"; "Confirm-SSLegacyVolumeContainerStatus" = "Confirm-AzureStorSimpleLegacyVolumeContainerStatus"; "Get-SSLegacyVolumeContainerConfirmStatus" = "Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus"; "Get-SSLegacyVolumeContainerMigrationPlan" = "Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan"; "Get-SSLegacyVolumeContainerStatus" = "Get-AzureStorSimpleLegacyVolumeContainerStatus"; "Import-SSLegacyApplianceConfig" = "Import-AzureStorSimpleLegacyApplianceConfig"; "Import-SSLegacyVolumeContainer" = "Import-AzureStorSimpleLegacyVolumeContainer"; "Start-SSLegacyVolumeContainerMigrationPlan" = "Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan"; } $aliases.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | New-Alias -Description "AzureAlias" |