<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


Automate Azure tasks with Windows Azure PowerShell Cmdlets


The ability to run Windows Azure tasks from the command-line and thus also automate such tasks was introduced with Windows Azure SDK 1.3.

Starting with Windows Azure SDK 1.8,  it is possible to manage Windows Azure Websites with the following cmdlets:

  • New-AzureWebSite
  • Get-AzureWebsite
  • Remove-AzureWebsite
  • Set-AzureWebsite
  • Show-AzureWebSite
  • Start-AzureWebSite
  • Stop-AzureWebSite

Here is the complete list of currently supported Windows Azure PowerShell cmdlets (via the PowerShell command get-command -module azure | format-table -property name ):

  1. Add-AzureCacheWorkerRole
  2. Add-AzureCertificate
  3. Add-AzureDataDisk
  4. Add-AzureDisk
  5. Add-AzureDjangoWebRole
  6. Add-AzureEndpoint
  7. Add-AzureNodeWebRole
  8. Add-AzureNodeWorkerRole
  9. Add-AzurePHPWebRole
  10. Add-AzurePHPWorkerRole
  11. Add-AzureProvisioningConfig
  12. Add-AzureVhd
  13. Add-AzureVMImage
  14. Disable-AzureServiceProjectRemoteDesktop
  15. Enable-AzureMemcacheRole
  16. Enable-AzureServiceProjectRemoteDesktop
  17. Export-AzureVM
  18. Get-AzureAffinityGroup
  19. Get-AzureCertificate
  20. Get-AzureDataDisk
  21. Get-AzureDeployment
  22. Get-AzureDisk
  23. Get-AzureDns
  24. Get-AzureEndpoint
  25. Get-AzureLocation
  26. Get-AzureOSDisk
  27. Get-AzureOSVersion
  28. Get-AzurePublishSettingsFile
  29. Get-AzureRemoteDesktopFile
  30. Get-AzureRole
  31. Get-AzureSBLocation
  32. Get-AzureSBNamespace
  33. Get-AzureService
  34. Get-AzureServiceProjectRoleRuntime
  35. Get-AzureSqlDatabase
  36. Get-AzureSqlDatabaseServer
  37. Get-AzureSqlDatabaseServerFirewallRule
  38. Get-AzureStorageAccount
  39. Get-AzureStorageKey
  40. Get-AzureSubnet
  41. Get-AzureSubscription
  42. Get-AzureVM
  43. Get-AzureVMImage
  44. Get-AzureVNetConfig
  45. Get-AzureVNetConnection
  46. Get-AzureVNetGateway
  47. Get-AzureVNetGatewayKey
  48. Get-AzureVNetSite
  49. Get-AzureWebsite
  50. Get-AzureWebsiteDeployment
  51. Get-AzureWebsiteLocation
  52. Import-AzurePublishSettingsFile
  53. Import-AzureVM
  54. Move-AzureDeployment
  55. New-AzureAffinityGroup
  56. New-AzureCertificateSetting
  57. New-AzureDeployment
  58. New-AzureDns
  59. New-AzureQuickVM
  60. New-AzureSBNamespace
  61. New-AzureService
  62. New-AzureServiceProject
  63. New-AzureSqlDatabase
  64. New-AzureSqlDatabaseServer
  65. New-AzureSqlDatabaseServerContext
  66. New-AzureSqlDatabaseServerFirewallRule
  67. New-AzureSSHKey
  68. New-AzureStorageAccount
  69. New-AzureStorageKey
  70. New-AzureVM
  71. New-AzureVMConfig
  72. New-AzureVNetGateway
  73. New-AzureWebsite
  74. Publish-AzureServiceProject
  75. Remove-AzureAffinityGroup
  76. Remove-AzureCertificate
  77. Remove-AzureDataDisk
  78. Remove-AzureDeployment
  79. Remove-AzureDisk
  80. Remove-AzureEndpoint
  81. Remove-AzureSBNamespace
  82. Remove-AzureService
  83. Remove-AzureSqlDatabase
  84. Remove-AzureSqlDatabaseServer
  85. Remove-AzureSqlDatabaseServerFirewallRule
  86. Remove-AzureStorageAccount
  87. Remove-AzureSubscription
  88. Remove-AzureVM
  89. Remove-AzureVMImage
  90. Remove-AzureVNetConfig
  91. Remove-AzureVNetGateway
  92. Remove-AzureWebsite
  93. Reset-AzureRoleInstance
  94. Restart-AzureVM
  95. Restart-AzureWebsite
  96. Restore-AzureWebsiteDeployment
  97. Save-AzureVMImage
  98. Save-AzureWebsiteLog
  99. Select-AzureSubscription
  100. Set-AzureAffinityGroup
  101. Set-AzureDataDisk
  102. Set-AzureDeployment
  103. Set-AzureEndpoint
  104. Set-AzureOSDisk
  105. Set-AzureRole
  106. Set-AzureService
  107. Set-AzureServiceProject
  108. Set-AzureServiceProjectRole
  109. Set-AzureSqlDatabase
  110. Set-AzureSqlDatabaseServer
  111. Set-AzureSqlDatabaseServerFirewallRule
  112. Set-AzureStorageAccount
  113. Set-AzureSubnet
  114. Set-AzureSubscription
  115. Set-AzureVMSize
  116. Set-AzureVNetConfig
  117. Set-AzureVNetGateway
  118. Set-AzureWalkUpgradeDomain
  119. Set-AzureWebsite
  120. Show-AzurePortal
  121. Show-AzureWebsite
  122. Start-AzureEmulator
  123. Start-AzureService
  124. Start-AzureVM
  125. Start-AzureWebsite
  126. Stop-AzureEmulator
  127. Stop-AzureService
  128. Stop-AzureVM
  129. Stop-AzureWebsite
  130. Test-AzureName
  131. Update-AzureDisk
  132. Update-AzureVM
  133. Update-AzureVMImage
Not all of these cmdlets are covered currently in the Windows Azure Cmdlet Reference.

Related: Pluralsight Introduction to PowerShell Course - Notes


Labels: ,

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment