Microsoft Azure · Windows Powershell

Azure – Storing all cmdlets in a file using Windows Azure PowerShell

Hello friends, windows Azure Powershell has a big library for Azure cmdlets which is very helpful in doing things without logging to Azure portal.

In this blog, we will learn how to get all azure cmdlets from PowerShell window and how to import all cmdlets to a text file for future reference purpose.

Once we store all cmdlets to a text file, we can easily go through that file and search the command that we require for our purpose.

  1. Open the Windows Azure PowerShell window.
  2. Type the below command to get the list of all cmdlets with synopsis.

Get-Command –Module Azure| Get-Help| Format –TableName, Synopsis

Press Enter.

12

So as you can see the list of all of azure cmdlets with descriptions.

3. If you want to see the detail about a specific cmdlet then you can use the command –

Help cmdletname

4. Now, store all the cmdlets to a text file to local system folder which is already present.

Get-Command –Module Azure| Get-Help| Format –TableName, Synopsis –Wrap|Out-File C:/temp/filename.txt

Press Enter

13

5. Navigate to the folder and we will find a new text file.

14

 

6. Open the text file and you can see all azure cmdlets in a single place.

15

So it’s an easy way to store the cmdlets in a file and search any cmdlets whenever you need instead of moving through all cmdlets in PowerShell window.

Have a nice day!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s