This file contains 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
Get-ChildItem -Directory | ForEach { | |
Write-Host "PULLING" $_.name | |
Push-Location | |
Set-Location $_.name | |
git pull |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
using System.Net.Http; | |
using System.Net.Http.Headers; |
This file contains 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
#r "Microsoft.ServiceBus" | |
using System; | |
using System.Text; | |
using System.Net; | |
using System.Net.Http; | |
using Microsoft.ServiceBus; | |
public static HttpResponseMessage Run(HttpRequestMessage req, TraceWriter log) | |
{ |
This file contains 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
$links = ( | |
"https://aka.ms/apimdocs", | |
"https://aka.ms/apimroadmap", | |
"https://aka.ms/apimpolicies", | |
"https://aka.ms/apimwish", | |
"https://functions-next.azure.com", | |
"https://github.com/Azure/Azure-Functions", |
This file contains 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
<ItemGroup> | |
<Content Include="..\..\azure-webjobs-sdk-script\src\WebJobs.Script.Host\bin\Release\**\*.*"> | |
<Link>ApplicationPackageRoot\FunctionHostPkg\Code\%(RecursiveDir)%(Filename)%(Extension)</Link> | |
</Content> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Code\___SetupDataFolder.bat" /> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Config\Settings.xml" /> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\host.json" /> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\ServiceBusQueueTrigger\function.json" /> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\ServiceBusQueueTrigger\index.js" /> | |
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\TimerTrigger\function.json" /> |
This file contains 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": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"location": { | |
"type": "string" | |
}, | |
"networkInterfaceName": { | |
"type": "string" | |
}, |
This file contains 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 datetime | |
filename = os.environ.get('TEMP') + '\\results_' + datetime.datetime.utcnow().replace(microsecond=0).isoformat().replace(':','') + '.xlsx' | |
operationResults.to_excel(filename) | |
print('created file',filename) |
This file contains 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
# random character combination generator for the certificate password | |
function Get-RandomCharacters($length, $characters) { | |
$random = 1..$length | ForEach-Object { Get-Random -Maximum $characters.length } | |
$private:ofs = "" # set ouput field separator | |
return [String]$characters[$random] | |
} | |
# creates a new APIM to SF client certificate | |
function New-ClientCertificate() { | |
param( |
This file contains 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
param( | |
[string]$DownloadBuildNumber | |
) | |
$url = "https://github.com/Azure/azure-functions-host/archive/" + $DownloadBuildNumber + ".zip" | |
$url2 = "https://github.com/Azure/azure-functions-host/archive/v" + $DownloadBuildNumber + ".zip" | |
$targetZip = Join-Path $PSScriptRoot "WebHost.zip" | |
if (Test-Path $targetZip) { |
This file contains 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
param( | |
[Parameter(Mandatory = $false, Position = 1)] | |
[int] | |
$Keep = 100 | |
) | |
Get-AzureRmResourceGroup | ForEach-Object { | |
$ts = (Get-AzureRmResourceGroupDeployment -ResourceGroupName $_.ResourceGroupName | | |
Sort-Object Timestamp -Descending | | |
Select-Object -First $Keep | |
OlderNewer