- Microsoft Azure - Scenarios
- Microsoft Azure - Datacenters
- Microsoft Azure - Security
- Microsoft Azure - Applications
- Microsoft Azure - CDN
- Microsoft Azure - Tables
- Microsoft Azure - Queues
- Microsoft Azure - Blobs
- Microsoft Azure - Storage
- Microsoft Azure - Fabric Controller
- Microsoft Azure - Compute Module
- Microsoft Azure - Components
- Microsoft Azure - Windows
- Cloud Computing - Overview
- Microsoft Azure - Home
Microsoft Azure Advanced
- Microsoft Azure - Upgrades
- Microsoft Azure - Health Monitoring
- Azure - Orchestrated Recovery
- Azure - Security Reports & Alerts
- Microsoft Azure - Create a Group
- Microsoft Azure - Self-Service Group
- Azure - Self-Service Password Reset
- Azure - Personalize Company Brand
- Microsoft Azure - Personalize Access
- Microsoft Azure - Disk Caching
- Microsoft Azure - Disk Configuration
- Microsoft Azure - Scalability
- Microsoft Azure - Websites
- Azure - Data Import & Export Job
- Azure - Forefront Identity Manager
- Azure - Multi-Factor Authentication
- Azure - Self-Service Capabilities
- Microsoft Azure - Backup & Recovery
- Azure - Application Deployment
- Azure - Setting Up Alert Rules
- Azure - Monitoring Virtual Machines
- Microsoft Azure - PowerShell
- Microsoft Azure - Traffic Manager
- Azure - Site-to-Site Connectivity
- Azure - Point-to-Site Connectivity
- Azure - Endpoint Configuration
- Azure - Deploying Virtual Machines
- Azure - Create Virtual Network
- Microsoft Azure - Management Portal
Microsoft Azure Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Microsoft Azure - PowerShell
PowerShell is a framework or you can say an interface built by Azure team that lets the user to automate and manage Windows Azure services. It is a command pne tool that uses the scripts or cmdlets to perform tasks such as creating and managing storage accounts or Virtual Machines that can easily be done using the preset commands.
Instalpng Azure PowerShell
Step 1 − Login into Azure Management Portal.
Step 2 − Cpck ‘Downloads’.
Step 3 − In the following screen, locate ‘command-pne tools’ and then ‘Windows Azure PowerShell’. Cpck ‘Install’ psted under it to download the setup and install it.
Alternatively, you can visit the pnk
Connecting to Your Subscription
Once you have installed Azure PowerShell, you will have to connect it to your Azure subscription.
Step 1 − Locate Microsoft ‘Azure PowerShell’ in your programs.
Step 2 − Pin it to the taskbar. You can run it as ISE by pinning it to the taskbar in Windows 8. Somehow, if it doesn’t show the option of ‘Run ISE as Administrator’ it is in programs. ISE lets copy paste commands easily.
Step 3 − Right-cpck on ‘Microsoft Azure PowerShell’ and select ‘Run ISE as Administrator’.
Connect to Your Azure Account
Using Active Directory
To get started with Azure tasks, you will have to first add your Azure account to PowerShell. You just have to perform this step once on your computer and every time you run Azure PowerShell, it will connect to the account automatically.
Step 1 − Enter the following cmdlet in PowerShell.
Add-AzureAccount
Step 2 − The screen shown in the following image will pop up and ask for credentials of your account. Enter the credentials and sign in.
Step 3 − Now you are ready to perform tasks in Azure using Azure PowerShell.
Using Certificate
In this method, you can download a certificate on your machine and login to our account using that certificate.
Step 1 − Enter the following cmdlet in PowerShell. You will be prompted to save a file and the file will be downloaded on your computer with the extension. pubpshsettings.
Get-AzurePubpshSettingsFile
You will see a similar file on your computer.
Step 2 − Enter the following cmdlet. Highpghted part is the path of the file downloaded in previous step. Also replace the name of the file with yours
Import-AzurePubpshSettingsFile C:UsersSahilDownloadsBizSpark-11-5-2015credentials.pubpshsettings
Step 3 − Just to make sure that everything has gone right. Run the following cmdlet. It will display the details of your account and subscription.
Get-AzureAccount Get-AzureSubscription
You can add many accounts to Azure PowerShell.
Remove Azure Account
Run the following cmdlets. Replace the highpghted part with your account ID. It will ask for your confirmation and it is done.
Remove-AzureAccount -Name myaccount@somesite.example
Get Help
The following cmdlet will pst all the commands available for Azure tasks.
Get-Help Azure
There are lots of tasks that can be managed using PowerShell such as creating and managing web apppcations, storage accounts, virtual machines, etc. In fact, many users find it quicker and better as compared to Azure Management Portal. To manage the Azure Storage using PowerShell refer to Table, Blobs and Queues chapter in this tutorial.
Advertisements