Managing Azure Components
Using Azure PowerShell
Nitesh Luharuka
Entrepreneur | 4-times C# Corner MVP | Kolkata Chapter Lead | Startup Buff
Agenda
 About Azure PowerShell
 Features
 Installing Azure PowerShell
 Getting Started With Azure on PowerShell
 Cmdlets
Azure PowerShell
 Azure PowerShell is a set of modules that provide cmdlets to manage
Azure with Windows PowerShell.
 Used to create, test, deploy, and manage solutions and services delivered
through the Azure platform.
Features
 Account Management
 Environment
 Management
 Websites
 VMs
 Networks
 Databases
 DNS
 IPs
Prerequisites
Installation – Approach I
 Microsoft Web PI – http://aka.ms/webpi-azps
Installation – Approach II
 PowerShell Gallery
Azure Resource Manager
 Application is made up of many components – VMs, Network, Web Apps,
Databases, Database servers and others
 Azure Resource Manager enables you to work with the resources in your
solution as a group.
 You can deploy, update or delete all of the resources for your solution in a
single, coordinated operation.
Getting Started
 Add-AzureAccount
 Get-AzureAccount
 Remove-AzureAccount
 Remove-AzureAccount xyz@example.com
 Get-AzureSubscription
 Get-Help
Working With Websites
 Get-AzureWebsite
 New-AzureWebsite
 New-AzureWebsite –Location “East Asia” –Name kolchap
 New-AzureWebsite –Location “East Asia” –Name kolchap -Git
 Stop-AzureWebsite
 Stop-AzureWebsite –kolchap
 Start-AzureWebsite
 Start-AzureWebsite –kolchap
 Remove-AzureWebsite
Let’s
DEMO!!!
Working With VMs
 New-AzureVM
 New-AzureVMConfig -Name "VirtualMachine07" -InstanceSize
ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add-
AzureProvisioningConfig -Windows -Password “MyPassword01” -
AdminUsername PsTestAdmin | New-AzureVM -ServiceName
"KolChapService" –WaitForBoot
 New-AzureVMConfig -Name "SUSEVM02" -InstanceSize ExtraSmall -
ImageName (Get-AzureVMImage)[7].ImageName | Add-
AzureProvisioningConfig -Linux -LinuxUser "RootMain" -Password
"password" -AdminUsername PsTestAdmin | New-AzureVM
Working with VMs (contd…)
 Remove-AzureVM
 Save-AzureVMImage
 Start-AzureVM
 Stop-AzureVM
 Restart-AzureVM
Reserved IPs
 New-AzureReservedIP
New-AzureReservedIP -ReservedIPName ChapName -Location
"West US"
 Get-AzureReservedIP
 Remove-AzureReservedIP
Links & Resources
 https://github.com/Azure/azure-powershell
 https://azure.microsoft.com/en-us/documentation/templates/
 https://github.com/Azure/azure-quickstart-templates
 https://gallery.technet.microsoft.com/scriptcenter/
 https://gallery.technet.microsoft.com/scriptcenter/site/search?
f[0].Type=RootCategory&f[0].Value=WindowsAzure&f[0].Text
=Windows%20Azure
 https://blogs.msdn.microsoft.com/scw/2016/04/01/azure-
powershell-cmdlets-list/
Connect With Me
http://twitter.com/niteshluharuka
https://www.facebook.com/web.nitesh
http://www.niteshluharuka.com
 https://www.facebook.com/Rebin.Infotech
 https://www.techfugen.com
 https://www.facebook.com/groups/csckolkatachapter/
Thank YOU!!!!
Let’s Q&A

Managing Azure Components Using Azure PowerShell

  • 1.
    Managing Azure Components UsingAzure PowerShell Nitesh Luharuka Entrepreneur | 4-times C# Corner MVP | Kolkata Chapter Lead | Startup Buff
  • 2.
    Agenda  About AzurePowerShell  Features  Installing Azure PowerShell  Getting Started With Azure on PowerShell  Cmdlets
  • 3.
    Azure PowerShell  AzurePowerShell is a set of modules that provide cmdlets to manage Azure with Windows PowerShell.  Used to create, test, deploy, and manage solutions and services delivered through the Azure platform.
  • 4.
    Features  Account Management Environment  Management  Websites  VMs  Networks  Databases  DNS  IPs
  • 5.
  • 6.
    Installation – ApproachI  Microsoft Web PI – http://aka.ms/webpi-azps
  • 7.
    Installation – ApproachII  PowerShell Gallery
  • 8.
    Azure Resource Manager Application is made up of many components – VMs, Network, Web Apps, Databases, Database servers and others  Azure Resource Manager enables you to work with the resources in your solution as a group.  You can deploy, update or delete all of the resources for your solution in a single, coordinated operation.
  • 9.
    Getting Started  Add-AzureAccount Get-AzureAccount  Remove-AzureAccount  Remove-AzureAccount xyz@example.com  Get-AzureSubscription  Get-Help
  • 10.
    Working With Websites Get-AzureWebsite  New-AzureWebsite  New-AzureWebsite –Location “East Asia” –Name kolchap  New-AzureWebsite –Location “East Asia” –Name kolchap -Git  Stop-AzureWebsite  Stop-AzureWebsite –kolchap  Start-AzureWebsite  Start-AzureWebsite –kolchap  Remove-AzureWebsite
  • 11.
  • 12.
    Working With VMs New-AzureVM  New-AzureVMConfig -Name "VirtualMachine07" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add- AzureProvisioningConfig -Windows -Password “MyPassword01” - AdminUsername PsTestAdmin | New-AzureVM -ServiceName "KolChapService" –WaitForBoot  New-AzureVMConfig -Name "SUSEVM02" -InstanceSize ExtraSmall - ImageName (Get-AzureVMImage)[7].ImageName | Add- AzureProvisioningConfig -Linux -LinuxUser "RootMain" -Password "password" -AdminUsername PsTestAdmin | New-AzureVM
  • 13.
    Working with VMs(contd…)  Remove-AzureVM  Save-AzureVMImage  Start-AzureVM  Stop-AzureVM  Restart-AzureVM
  • 14.
    Reserved IPs  New-AzureReservedIP New-AzureReservedIP-ReservedIPName ChapName -Location "West US"  Get-AzureReservedIP  Remove-AzureReservedIP
  • 15.
    Links & Resources https://github.com/Azure/azure-powershell  https://azure.microsoft.com/en-us/documentation/templates/  https://github.com/Azure/azure-quickstart-templates  https://gallery.technet.microsoft.com/scriptcenter/  https://gallery.technet.microsoft.com/scriptcenter/site/search? f[0].Type=RootCategory&f[0].Value=WindowsAzure&f[0].Text =Windows%20Azure  https://blogs.msdn.microsoft.com/scw/2016/04/01/azure- powershell-cmdlets-list/
  • 16.
    Connect With Me http://twitter.com/niteshluharuka https://www.facebook.com/web.nitesh http://www.niteshluharuka.com https://www.facebook.com/Rebin.Infotech  https://www.techfugen.com  https://www.facebook.com/groups/csckolkatachapter/
  • 17.