JumpStart # 37– Get the list of all AzureWebsites Cmdlets

In this short jumpstart, I am going to show how to get list of all AzureWebsites Cmdlets from latest Microsoft Azure PowerShell – May 2015 release. This jumpstart is the starting point of series of blog posts which will narrate different automation techniques involved around AzureWebsites. As the first step, we get list of AzureWebsites cmdlets and keep them as a reference.

To get started, download and install last Microsoft Azure PowerShell – May 2015 release.

Open Windows Azure PowerShell console (All Programs –> Azure PowerShell). Execute below command –

Get-Command -Noun *website* -Module "Azure" | Where-Object {$_.CommandType -eq 'cmdlet'} | Select-Object Name 

image

To export the results to a text file, use following command.

Get-Command -Noun *website* -Module "Azure" | Where-Object {$_.CommandType -eq 'cmdlet'} | Select-Object Name | Out-File C:\azurewebsites-cmdlets.txt 

Now when we open azurewebsite-cmdlets.txt file, we find all the cmdlets name –

Disable-AzureWebsiteApplicationDiagnostic
Disable-AzureWebsiteDebug
Enable-AzureWebsiteApplicationDiagnostic
Enable-AzureWebsiteDebug
Get-AzureWebsite
Get-AzureWebsiteDeployment
Get-AzureWebsiteJob
Get-AzureWebsiteJobHistory
Get-AzureWebsiteLocation
Get-AzureWebsiteLog
Get-AzureWebsiteMetric
New-AzureWebsite
New-AzureWebsiteJob
Publish-AzureWebsiteProject
Remove-AzureWebsite
Remove-AzureWebsiteJob
Restart-AzureWebsite
Restore-AzureWebsiteDeployment
Save-AzureWebsiteLog
Set-AzureWebsite
Show-AzureWebsite
Start-AzureWebsite
Start-AzureWebsiteJob
Stop-AzureWebsite
Stop-AzureWebsiteJob
Switch-AzureWebsiteSlot
Update-AzureWebsiteRepository 

NOTE:

Do not get confused with other ALIAS which are present in the Azure PowerShell. They are just the aliases for some actual cmdlets which are shown above.

Disable-WAPackWebsiteApplicationDiagnostic
Enable-WAPackWebsiteApplicationDiagnositc
Get-WAPackWebsite
Get-WAPackWebsiteDeployment
Get-WAPackWebsiteLocation
Get-WAPackWebsiteLog
New-WAPackWebsite
Remove-WAPackWebsite
Restart-WAPackWebsite
Restore-WAPackWebsiteDeployment
Save-WAPackWebsiteLog
Set-WAPackWebsite
Show-WAPackWebsite
Start-WAPackWebsite
Stop-WAPackWebsite 

In the next series of blog posts, we will see on how to use above cmdlets for AzureWebsites and automate some typical Dev/IT Pro tasks. Stay tuned and Happy Coding!!!

You may also like...