This file contains hidden or 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": { | |
| "connections_FirstAPI_name": { | |
| "defaultValue": "FirstAPI", | |
| "type": "String" | |
| }, | |
| "connections_SecondAPI_name": { | |
| "defaultValue": "SecondAPI", |
This file contains hidden or 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
| { | |
| "$connections": { | |
| "value": { | |
| "FirstAPI": { | |
| "connectionId": "/subscriptions/<subscriptionId>/resourceGroups/LogicApps_DynAPIConn/providers/Microsoft.Web/connections/FirstAPI", | |
| "connectionName": "FirstAPI", | |
| "id": "/subscriptions/<subscriptionId>/providers/Microsoft.Web/locations/northeurope/managedApis/ftp" | |
| } | |
| } | |
| }, |
This file contains hidden or 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": { | |
| "connections_FirstAPI_name": { | |
| "defaultValue": "FirstAPI", | |
| "type": "String" | |
| } | |
| }, | |
| "variables": {}, |
This file contains hidden or 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
| public class Message | |
| { | |
| public MessageStatus Status { get; private set;} | |
| } |
This file contains hidden or 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
| dbContext.Messages.Where ( m => m.StatusString == MessageStatus.Ack.ToString() ); |
This file contains hidden or 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
| dbContext.Messages.Where( m => m.Status == MessageStatus.Ack ); |
This file contains hidden or 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
| public enum MessageStatus | |
| { | |
| None, | |
| ToBeSent, | |
| Sent | |
| } | |
| public class Message | |
| { | |
| [NotMapped] |
This file contains hidden or 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 Add-LoadBalancerRulesForSSO { | |
| param( | |
| [string]$subscriptionId, | |
| [string]$clusterResourceGroupName, | |
| [string]$loadBalancerName, | |
| [string]$LoadbalancerFrontEndName, | |
| [int]$startport, | |
| [int]$endport | |
| ) | |
This file contains hidden or 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
| Import-Module FailoverClusters | |
| $ClusterNetworkName = 'Cluster Network 1' | |
| $IPResourceName = 'IP Address 10.2.1.10' | |
| $ILBIP = '10.2.1.10' | |
| [int]$ProbePort = 60005 | |
| Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ILBIP";"ProbePort"=$ProbePort;"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0} |
This file contains hidden or 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
| let pitem = pipe5 pid_pipe pdes_pipe pquantity_pipe punitPrice_pipe pnotes itemOpt | |
| let itemRE = "ITEM[0-9]{3}-[A-Z]{2}\|[A-Za-z]+\|[0-9]\|([0-9]+\.[0-9]+|[0-9])\|[A-Za-z ]+" | |
| let genItemId = gen { | |
| let! number = genString num 3 | |
| let! capitals = genString AZ 2 | |
| return sprintf "ITEM%s-%s" number capitals } | |
| let genQuantity = |