http://www.windowsazure.com/en-us/manage/services/networking/cross-premises-connectivity/
http://forum.pfsense.org/index.php?topic=50885.0
NAT-T
| namespace Sample | |
| { | |
| using System; | |
| using System.Runtime.Serialization; | |
| using System.Xml.Linq; | |
| using Windows.Data.Json; | |
| using Microsoft.WindowsAzure.MobileServices; | |
| /// <summary> |
| public override bool OnStart() | |
| { | |
| Trace.TraceInformation("OnStart() called"); | |
| MicrosoftCorpnetAuthenticationFixer.TweakIdentityWhenRunningInCorpnet(); | |
| TimeSpan scheduledTransferPeriod = TimeSpan.FromMinutes(1); | |
| ServicePointManager.DefaultConnectionLimit = 12; | |
| DiagnosticMonitorConfiguration diagConfig = DiagnosticMonitor.GetDefaultInitialConfiguration(); | |
| diagConfig.DiagnosticInfrastructureLogs.ScheduledTransferLogLevelFilter = LogLevel.Information; | |
| diagConfig.DiagnosticInfrastructureLogs.ScheduledTransferPeriod = scheduledTransferPeriod; |
| $vmname = "ptvlinux1" | |
| $linuxUser = "ptvadmin" | |
| $adminPassword = "!!test123" | |
| $imagename = "ptv-itb-test1-linux-galleryimage" | |
| $subnet = "azure2b" | |
| $affinitygroup = "ptvtest" | |
| $vnetname = "azure253" | |
| $media = "https://portalvhdszxpyfbp32jw28.blob.core.windows.net/vhds/ptv-itb-1.vhd" | |
| $cloudSvcName = "ptvlinux1" |
| function Rename-ItemsPrepend { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Mandatory=$True, | |
| ValueFromPipeline=$False, | |
| ValueFromPipelineByPropertyName=$True, | |
| HelpMessage='Which number should be first prefixed')] | |
| [int]$start | |
| ) |
| private async void showPotentialException(Func<System.Threading.Tasks.Task> a) | |
| { | |
| string message = null; | |
| try | |
| { | |
| await a(); | |
| } | |
| catch (Exception ex) | |
| { | |
| message = ex.Message; |
| using Elmah; | |
| using Microsoft.WindowsAzure.ServiceRuntime; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Table; | |
| using Microsoft.WindowsAzure.Storage.Table.DataServices; | |
| using System; | |
| using System.Collections; | |
| using System.Data.Services.Client; | |
| using System.Linq; | |
| using System.Threading.Tasks; |
Configure NuGet
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HMac | |
| { | |
| class Program | |
| { |
| [Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq") | |
| $roleroot = Get-Content Env:\RoleRoot | |
| $pathToPhp = "$roleroot\approot\php\php-cgi.exe"; | |
| $content = [System.IO.File]::ReadAllText("C:\PHP\web.config"); | |
| $doc = [System.Xml.Linq.XDocument]::Parse($content); | |
| $elements = $doc.Element("configuration").Element("system.webServer").Element("handlers").Elements("add"); |