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
| { | |
| "scriptFile": "__init__.py", | |
| "bindings": [ | |
| { | |
| "name": "msg", | |
| "type": "queueTrigger", | |
| "direction": "in", | |
| "queueName": "images", | |
| "connection": "customserverless01_STORAGE" | |
| }, |
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
| using System; | |
| using System.IO; | |
| using Microsoft.Azure.WebJobs; | |
| using Microsoft.Azure.WebJobs.Host; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.WindowsAzure.Storage.Blob; | |
| namespace Siliconvalve.Demo | |
| { | |
| public static class JpegUploadRouter |
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
| $fileDate = Get-Date -Format "yyyy-MM-dd-HH-mm" | |
| $urlDownload = (Invoke-WebRequest https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519 -UseBasicParsing).Links | Where-Object {$_.href -Match "ServiceTags"} | Select-Object -Property href -First 1 | |
| Invoke-WebRequest $urlDownload.href -OutFile "$fileDate.json" |
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
| data: | |
| AzureWebJobsStorage: XXXXX | |
| FUNCTIONS_WORKER_RUNTIME: XXXX | |
| kedademo01_STORAGE: XXXXX | |
| VIDEOCONTAINER: XXXXX | |
| THUMBNAILCONTAINER: XXXX | |
| VIDEOFILESTORAGE: XXXXX | |
| STORAGE_ACCOUNT_NAME: XXXX | |
| ACCOUNT_ACCESS_KEY: XXXXX | |
| apiVersion: v1 |
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
| workflow "Publish to App Service" { | |
| on = "push" | |
| resolves = ["Deploy to Web App"] | |
| } | |
| action "Azure Login" { | |
| uses = "Azure/github-actions/login@master" | |
| env = { | |
| AZURE_SUBSCRIPTION = "YOUR_AZURE_SUBSCRIPTION_NAME" | |
| } |
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
| #!/bin/bash | |
| # Based on: https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-linux-docker-aspnetcore#sample-script | |
| # Variables | |
| appName=$1 | |
| appPlanName="${appName}plan" | |
| resGroupName=$2 | |
| location="WestUS2" |
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
| resources: | |
| - repo: self | |
| queue: | |
| name: Hosted Ubuntu 1604 | |
| variables: | |
| FunctionFolder: '**yourfoldername**' | |
| FunctionAppName: '**yourfunctionname**' | |
| steps: | |
| - task: DotNetCoreInstaller@0 | |
| displayName: 'Use .NET Core sdk 2.1.502' |
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
| # | |
| # Build and deploy Python Azure Function v2 (preview) on Azure DevOps | |
| # | |
| # Paste this as an inline script into an "Azure CLI" Build Task running on an Ubuntu 16.04 managed host. | |
| # | |
| # Set Build Variables: | |
| # | |
| # FunctionFolder = name of folder containing your Function | |
| # FunctionAppName = name of the target Azure Function that will receive the deployment. |
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
| #!/bin/bash | |
| resourcegroup=$1 | |
| demolocation=$2 | |
| storageacctname=$3 | |
| ##### | |
| # Setup AWS | |
| ##### |
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 uuid | |
| import os | |
| # v3 Python SDK - note that v4 changed the API and stored procedures now live in the azure.cosmos.scripts module. | |
| import azure.cosmos.documents as documents | |
| import azure.cosmos.cosmos_client as cosmos_client | |
| import azure.cosmos.errors as errors | |
| COSMOS_HOST = os.environ['COSMOS_HOST'] | |
| MASTER_KEY = os.environ['MASTER_KEY'] |