Skip to content

Instantly share code, notes, and snippets.

View KacperMucha's full-sized avatar

Kacper Mucha KacperMucha

View GitHub Profile
@KacperMucha
KacperMucha / ifArm.json
Created August 2, 2017 17:53
ARM template if example
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"changeVariable": {
"type": "string",
"defaultValue": "yes",
"allowedValues": [
"yes",
"no"
@KacperMucha
KacperMucha / gist:ac55521d994d34ffc22361c464bc3199
Created April 14, 2017 12:50
Recreate VM in availability set
# Sign-in to Azure via Azure Resource Manager
#Login-AzureRmAccount
# Select Azure Subscription
$subscriptionId =
( Get-AzureRmSubscription |
Out-GridView `
-Title "Select an Azure Subscription ..." `