Skip to content

Instantly share code, notes, and snippets.

View ryhanen's full-sized avatar

Juha Ryhänen ryhanen

View GitHub Profile
{
"Root": {
"Sticks": [
{
"Name": "BigStick",
"Type": "HARD",
"Size": 10
}
],
"Bricks": [
{
"Root": {
"Sticks": {
"Name": "BigStick",
"Type": "HARD",
"Size": 10
},
"Bricks": [
{
"Name": "BigBrick",
<ns0:Root xmlns:ns0="http://json_schemas_example.Schemas.json_arrays_schema">
<Sticks>
<Name>BigStick</Name>
<Type>HARD</Type>
<Size>10</Size>
</Sticks>
<Bricks>
<Name>BigBrick</Name>
<Type>HARD</Type>
<Size>10</Size>
<ns0:Root xmlns:ns0="http://json_schemas_example.Schemas.json_arrays_schema">
<Sticks>
<Name>BigStick</Name>
<Type>HARD</Type>
<Size>10</Size>
</Sticks>
<Bricks>
<Name>BigBrick</Name>
<Type>HARD</Type>
<Size>10</Size>
{
"Root": {
"Sticks": [
{
"Name": "BigStick",
"Type": "HARD",
"Size": 10
},
{
"Name": "SmallStick",
<ns0:Root xmlns:ns0="http://json_schemas_example.Schemas.json_arrays_schema">
<Sticks>
<Name>BigStick</Name>
<Type>HARD</Type>
<Size>10</Size>
</Sticks>
<Sticks>
<Name>SmallStick</Name>
<Type>SOFT</Type>
<Size>1</Size>
param (
[string]$env = "",
[switch]$latest = $false
)
#####################################################################
######################## SET DEPL PARAMETERS ########################
#####################################################################
$integrationname = "Friendly name for your integration here. Shows in UI"
#####################################################################
##### Helper-functions for BizTalk deployments using Powershell #####
##### Author: Juha Ryhänen #####
#####################################################################
#####################################################################
###################### SET INITIAL PARAMETERS #######################
#####################################################################
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
namespace EventHubTester
{
class MonitoringEventsTest
SELECT MonitoringInput.InstanceId as Id, MonitoringInput.EventId as EventReference, meta.arrayValue.[Key], meta.arrayValue.Type, meta.arrayValue.Value
INTO Monitoringmeta
FROM MonitoringInput
CROSS APPLY GetElements(MonitoringInput.Metadatas) AS meta