Managing your Azure subscription using PowerShell

 Jun 28, 2016

Microsoft Azure offers both graphical and command line interfaces for managing your online subscriptions. If you want to automate certain actions, then using PowerShell you can create reusable scripts.

Windows PowerShell is the scripting platform used in Windows Operating Systems. Azure PowerShell offers a set of commands to manage your Azure subscription using Windows PowerShell. You can download Azure PowerShell from here. Azure PowerShell offers a core set of commands for managing the services, resource groups and for managing authentication.

In order to use Azure PowerShell commands, you need to start the Windows PowerShell as administrator. Then you need to connect your account and subscription to the local PowerShell environment.

Once you have done that, you can execute a series of commands to manage Microsoft Azure.

You can also download the Azure cross platform command line interface to work with your Azure subscription. You can run Azure cross platform commands to manage websites, virtual machines, mobile services, SQL database and other services. You can download Azure cross platform commands line interface from here.

After you have installed, you must sign in to your subscription by using azure account download command. A web browser opens and prompts you to download the publish settings file. This file has a .publishsettings extension. Then run the azure account import [path to the publish settings file] to be able to run azure commands from the Windows PowerShell CLI.

If you are a developer, you can also download the Azure SDK. Azure SDK for .NET offers a set of tools, command line tools, binaries to deploy apps for Microsoft Azure.

How do your Excel skills stack up?   

Test Now  

How do
your Excel skills
stack up?

Grade your skills now

About the Author:

San Roy  

San is a highly skilled IT Infrastructure professional with over 15 years experience in a technical training capacity. Throughout his career as a technical training consultant San Has been responsible for the development of numerous IT professionals, providing knowledge and expertise in the areas of Server Operating Systems, Database Management Systems, Messaging and Collaboration. San primarily specialises in delivering training in Microsoft products including Windows Server OS, Windows Client OS, SQL Server, SharePoint Server and Exchange Server. Through his years of practical experience as a technical trainer he is able to provide added insight and value to students that reach beyond the scope of a standard course outline. San has established himself as one of New Horizons' preferred trainers by continually bringing a combination of technical expertise and personality to the classroom each day.

Read full bio
top
Back to top