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
# Input bindings are passed in via param block. | |
Param($Timer) | |
# Stop on error | |
$ErrorActionPreference = 'stop' | |
# Write an information log with the current time. | |
$currentUTCtime = (Get-Date).ToUniversalTime() | |
Write-Host "asaRobotPause - PowerShell timer trigger function is starting at time: $currentUTCtime" |
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
# Step 1: map arguments | |
write-host "101 - Mapping arguments" | |
$sourceProjectName = "ASATest1" | |
$targetResourceGroup = ${ENV:VG-RESOURCEGROUP} | |
$stagingDirectory = "$ENV:SYSTEM_ARTIFACTSDIRECTORY\$ENV:RELEASE_PRIMARYARTIFACTSOURCEALIAS\drop" | |
$templatePath = "$stagingDirectory\$sourceProjectName.JobTemplate.json" | |
$validationParametersPath = "$stagingDirectory\$sourceProjectName.JobTemplate.parameters.json" |
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
trigger: | |
- master | |
pool: | |
vmImage: 'windows-latest' | |
variables: | |
- group: StagingVariableGroup | |
steps: |
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
# Step 0: map arguments and variables | |
$sourceProjectName = "ASATest1" | |
$targetResourceGroup = ${ENV:VG-RESOURCEGROUP} | |
$sourceDirectory = $ENV:BUILD_SOURCESDIRECTORY | |
$stagingDirectory = $ENV:BUILD_ARTIFACTSTAGINGDIRECTORY | |
$scriptPath = "$sourceDirectory\$sourceProjectName.asaql" | |
$templatePath = "$stagingDirectory\$sourceProjectName.JobTemplate.json" |
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
# Login to Azure | |
Connect-AzAccount | |
# If necessary (multiple subscriptions available), select the appropriate one | |
Get-AzSubscription | |
Get-AzSubscription -SubscriptionName "mySubscriptionNameGoesHere" | Select-AzSubscription | |
# Create a Stream Analytics job | |
$suffix = "staging" |
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
# Using Bash (WSL if Windows) | |
bash | |
# Login to Azure | |
az login | |
# If necessary (multiple subscriptions available), select the appropriate one | |
az account list --output table | |
az account set --subscription "mySubscriptionNameGoesHere" |
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": "http://json-schema.org/draft-04/schema#", | |
"definitions": {}, | |
"id": "http://example.com/example.json", | |
"properties": { | |
"events": { | |
"items": { | |
"properties": { | |
"+ivr_message": { | |
"type": [ |