Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Configuration;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
using System.ServiceModel.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
{
"$content-type": "application/x-www-form-urlencoded",
"$content": "<Base64EncodedContent>",
"$formdata": [{
"key": "ToCountry",
"value": "AU"
},
{
"key": "ToState",
"value": ""
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"twilio_Connection_Name": {
"type": "string",
"defaultValue": "twilio"
},
"twilio_Connection_DisplayName": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"documentdb_Connection_Name": {
"type": "string",
"defaultValue": "documentdb"
},
"documentdb_Connection_DisplayName": {
"type": "string"
{
"subject": "/subscriptions/9ac0de1a-c292-1234-1a2b-abcd12340987/resourcegroups/eventgrid-rgrp/providers/Microsoft.Web/sites/appservicemonitored/Config/appSettings",
"eventType": "Microsoft.Resources.ResourceWriteSuccess",
"eventTime": "2017-09-04T09:08:19.4060332Z",
"id": "5aa34340-c2af-4519-a088-79d5b8225b9a",
"data": {
"authorization": "{\"scope\":\"/subscriptions/9ac0de1a-c292-1234-1a2b-abcd12340987/resourcegroups/eventgrid-rgrp/providers/Microsoft.Web/sites/appservicemonitored/Config/appSettings\",\"action\":\"Microsoft.Web/sites/Config/write\",\"evidence\":{\"role\":\"Subscription Admin\"}}",
"claims": "{\"aud\":\"https://management.core.windows.net/\",\"iss\":\"https://sts.windows.net/9ac0de1a-0000-9999-84d2-c000b4d640bc/\",\"iat\":\"1599995771\",\"nbf\":\"1599995771\",\"exp\":\"1599999969\",\"http://schemas.microsoft.com/claims/authnclassreference\":\"1\",\"aio\":\"===\",\"altsecid\":\"1:live.com:0000000087000000\",\"http://schemas.microsoft.com/claims/authnmethodsreferences\":\"pwd
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"azureblob_1_Connection_Name": {
"type": "string"
},
"azureblob_1_Connection_DisplayName": {
"type": "string"
},
{
"$connections": {
"value": {
"servicebus": {
"connectionId": "/subscriptions/94c0de1a-1234-4854-8b7e-c8ff07fc8888/resourceGroups/my-rg/providers/Microsoft.Web/connections/servicebus",
"connectionName": "servicebus",
"id": "/subscriptions/94c0de1a-1234-4854-8b7e-c8ff07fc8888/providers/Microsoft.Web/locations/australiasoutheast/managedApis/servicebus"
}
}
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"value": "{logicAppName}"
},
"servicebus_1_Connection_DisplayName": {
"value": "{displayName}"
},
{
"$connections": {
"value": {
"servicebus": {
"connectionId": "/subscriptions/94c0de1a-1234-4854-8b7e-c8ff07fc8888/resourceGroups/my-rg/providers/Microsoft.Web/connections/servicebus",
"connectionName": "servicebus",
"id": "/subscriptions/94c0de1a-1234-4854-8b7e-c8ff07fc8888/providers/Microsoft.Web/locations/australiasoutheast/managedApis/servicebus"
}
}
},
"Send_message": {
"inputs": {
"body": {
"ContentData": "@{base64(triggerBody())}"
},
"host": {
"connection": {
"name": "@parameters('$connections')['servicebus']['connectionId']"
}
},