Wednesday, June 10, 2020

Powershell - Azure - Create VM using templates

During my recent studies on the cloud realm, I've been experimenting with Azure PowerShell module that allows you to manage your Azure subscription remotely via an encrypted remote session. It's pretty handy when you want to automate tasks and don't want to have to go to Azure portal and click through a dozen of screens to get it done.

I've put up the following PowerShell script as my first prototype for Azure Powershell automation that would create a VM on Azure using a JSON Template.

It will validate if there's an active Azure Subscription connection for the current profile, perform it if not. Also validate if a valid URI was provided for the template.


There's a some room for improvement on logging and additional features, but I just wanted to make it quick and simple to exemplify it's usage.

Feel free to take a look and to comment it if you like!

Cheers!

Github source:
https://github.com/diogocatossi/Powershell/blob/master/AzurePowershell-CreateSimpleVMUsingTemplate.ps1



3 comments:

  1. For occasion, for Jacks or Better, the minimal paying hand is a pair of Jacks. This means, if players don’t get a pair of Jacks, received't} be eligible for a win. Several online video poker video games function progressive jackpots—which want to} go for again and 우리카지노 again.

    ReplyDelete
  2. Slot Points could be turned back into Free Slot Play OR used for purchases at OX Pub, Oxford Express, and the lodge present shop. Mychoice® is a world-class rewards program that provides you extra methods to earn, redeem and get rewarded at over 35 Penn National Gaming locations nationwide. You'll find a range of denominations and recreation types, together with such favorites as, Lightning Cash, Jin Long and Wheel of Fortune inside our High Limit Rooms. "Everything that engages us, all pieces of content material are engineered to be fascinating."Eyal advised me he invited Schüll to offer a less self-congratulatory, "rah-rah" voice to the convention. Although the convention focused on method to|tips on how to} construct habit-forming tech products, "These methods — they've a darkish side," he said. "If not used appropriately, or if used for nefarious functions, then 1Xbet they don’t always profit the person."

    ReplyDelete
  3. Every slot game has its unique symbols and options and the paytable explains how they all work. To address these social issues, a new new} regulation (Version 5.0) was adopted in 2006 which caps the utmost quantity of "inventory" a machine can hold to round 2,000–3,000 coins' value of bonus video games. Moreover, all pachisuro machines must be re-evaluated for regulation compliance each three years. Version 4.0 came out in 2004, so that means all those machines with the as much as} 10,000 coin payouts shall be removed from service by 2007. In 2006, the Nevada Gaming Commission started working with Las Vegas casinos on expertise that might permit the on line casino's administration to change the game, the chances, 1xbet and the payouts remotely. The change cannot be carried out instantaneously, however only after the selected machine has been idle for minimal of|no much less than} 4 minutes.

    ReplyDelete

Powershell - Azure - Create VM using templates

During my recent studies on the cloud realm, I've been experimenting with Azure PowerShell module that allows you to manage your Azure s...