View azuredeploy.yaml
$schema: 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#'
contentVersion: 1.0.0.0
parameters:
logicAppName1:
type: string
metadata:
description: Name of the Logic App.
logicAppName2:
type: string
metadata:
View az-group-deployment-validte.json
{
"error": null,
...
"properties": {
...
"validatedResources": [
{
"apiVersion": "2016-06-01",
"id": "...",
...
View Set-AzureRmResource.ps1
$subscriptionId = "[SUBSCRIPTION_ID]"
$resourceGroup = "[RESOURCE_GROUP]"
$resourceName = "[RESOURCE_NAME]"
$connectorName = "[CONNECTOR_NAME]"
$apiVersion = "2016-06-01"
# Read parameters.json, replace values, and convert it to PSObject
$param = (Get-Content parameters.json -Encoding UTF8 -Raw) `
-replace "{subscriptionId}", $subscriptionId `
-replace "{resourceGroup}", $resourceGroup `
View azuredeploy-full.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": { ... },
"variables": { ... },
"resources": [
{
"type": "Microsoft.Logic/workflows",
...
"properties": {
View test-arm-template.ps1
Describe "Logic App Deployment Tests" {
Context "When Logic App deployed with parameters" {
$output = Test-AzureRmResourceGroupDeployment `
-ResourceGroupName $ResourceGroupName `
-TemplateFile $TemplateFile `
-TemplateParameterObject $Parameters `
-ErrorAction Stop `
5>&1
$result = (($output[32] -split "Body:")[1] | ConvertFrom-Json).properties
View arm-template-bare-minimum.json
{
"$schema": "...",
"contentVersion": "...",
"parameters": {},
"variables": {},
"resources": [],
"outputs": {}
}
View dockerfile-original.txt
# This is the old image
FROM microsoft/azure-functions-runtime:v2.0.0-beta1
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
COPY . /home/site/wwwroot
View visudo
[YOUR_WSL_USERNAME] ALL=(root) NOPASSWD: /bin/mount
View docker-volume-mount.sh
# Put this line at the bottom of .bashrc
sudo mount --bind /mnt/c /c
View docker-nodejs.sh
docker run -it --rm --name node -d -v $(pwd):/src -w /src -p 8080:3000 node:7.7.4-alpine node app.js