This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Retry-Command | |
{ | |
param ( | |
[Parameter(Mandatory=$true)][string]$command, | |
[Parameter(Mandatory=$true)][hashtable]$args, | |
[Parameter(Mandatory=$false)][int]$retries = 5, | |
[Parameter(Mandatory=$false)][int]$secondsDelay = 2 | |
) | |
# Setting ErrorAction to Stop is important. This ensures any errors that occur in the command are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow Stop-VM | |
{ | |
Param ( | |
[parameter(Mandatory=$true)] | |
[String] | |
$VMName, | |
[parameter(Mandatory=$true)] | |
[String] | |
$ServiceName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow Start-VM | |
{ | |
Param ( | |
[parameter(Mandatory=$true)] | |
[String] | |
$VMName, | |
[parameter(Mandatory=$true)] | |
[String] | |
$ServiceName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = "your.email@domain.com" | |
$token = "abcdefg" | |
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $user,$token))) | |
$authHeader = "Basic {0}" -f $base64AuthInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "b2f6ffd1-e29f-6236-4182-1d5a4cffa9dc", | |
"name": "AzureMLDev for Runner", | |
"description": "", | |
"order": [ | |
"4fdb61b3-c4ad-7cd6-9821-f3370bf84a16", | |
"63e9c211-961f-a8c5-88a7-7391b0ed9fd3" | |
], | |
"folders": [], | |
"timestamp": 1460473869463, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "6f127602-fd77-d0a4-f94c-74f23802bc38", | |
"name": "AzureMLDev", | |
"description": "", | |
"order": [ | |
"6f090c73-b2ba-bb9c-414f-31aabf53ef38", | |
"5216df25-d102-0ef0-0cfe-d031872e4db7", | |
"1c067065-717f-3b88-34cc-30fbbad2ddc3", | |
"5c09d930-c2df-fbb5-e484-3d1f1f1dc262", | |
"2b06bcb3-247c-199b-ac2b-5669b3bbe91a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "4d00bb5c-f606-8571-0c4c-9d1d2a405212", | |
"name": "AzureMLDev", | |
"values": [ | |
{ | |
"key": "workspace", | |
"value": "[YOUR VALUE HERE e.g. GUID]", | |
"type": "text", | |
"enabled": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration FileResourceDemo | |
{ | |
Node "localhost" | |
{ | |
File CreateFile { | |
DestinationPath = 'C:\Temp\Test.txt' | |
Ensure = "Present" | |
Contents = 'Hello World!' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"newStorageAccountName": { | |
"type": "string", | |
"metadata": { | |
"description": "Unique DNS Name for the Storage Account where the Virtual Machine's disks will be placed." | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration FileResourceDemo | |
{ | |
Node "localhost" | |
{ | |
File CreateFile { | |
DestinationPath = 'C:\Temp\Test.txt' | |
Ensure = "Present" | |
Contents = 'Hello World!' | |
} |
NewerOlder