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
version: '2.4' | |
networks: | |
default: | |
external: false | |
ipam: | |
driver: default | |
config: | |
- subnet: "172.16.238.0/24" |
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 com.microsoft.azure.cosmos.analytics.spark.connector.datasource.CosmosOlapCDC | |
val configuration = Map( | |
"spark.cosmos.accountEndpoint" -> "https://spark-perf.documents.azure.com:443/", | |
"spark.cosmos.accountKey" -> "xxx", | |
"spark.cosmos.database" -> "cdc", | |
"spark.cosmos.container" -> "product", | |
"spark.cosmos.cdc" -> "true", | |
"spark.cosmos.cdc.initialRun" -> "true", | |
"spark.cosmos.cdc.fullFidelity" -> "false", |
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
@description('The location to deploy the Cosmos DB account to. Default value is the location of the resource group.') | |
param location string = resourceGroup().location | |
@description('Name of our application') | |
param applicationName string = uniqueString((resourceGroup().id)) | |
@description('The secondary replica region for the Cosmos DB account') | |
param secondaryRegion string = 'australiasoutheast' | |
@description('Name of our Cosmos DB account that will be deployed') |
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
$ipath1 = New-AzCosmosDBSqlIncludedPathIndex -DataType String -Precision -1 -Kind Hash | |
$ipath2 = New-AzCosmosDBSqlIncludedPathIndex -DataType String -Precision -1 -Kind Hash | |
$IncludedPath = New-AzCosmosDBSqlIncludedPath -Path "/*" -Index $ipath1, $ipath2 | |
$SpatialSpec = New-AzCosmosDBSqlSpatialSpec -Path "/mySpatialPath/*" -Type "Point", "LineString", "Polygon", "MultiPolygon" | |
$cp1 = New-AzCosmosDBSqlCompositePath -Path "/abc" -Order Ascending |
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
FUNCTION GenerateMasterKeyAuthorizationSignature | |
{ | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$true)][String] $verb, # HTTP verb, such as GET, POST, or PUT | |
[Parameter(Mandatory=$true)][String] $resourceLink, # Case SeNsItIvE!!! (this is the parent path for the $resourceType) | |
[Parameter(Mandatory=$true)][String] $resourceType, # type of resource that the request is for, Eg. "dbs", "colls", "docs" | |
[Parameter(Mandatory=$true)][String] $dateTime, # Must exactly match x-ms-date in header (and be lower case) | |
[Parameter(Mandatory=$true)][String] $key, # |
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
locals { | |
global_resource_group = "stackover" | |
resource_group = "stackover-${var.env_prefix}" | |
cluster_name = "stackover-${var.env_prefix}-cluster" | |
ingress_address_res_name = "stackover-${var.env_prefix}-ingress-ip" | |
} | |
# --- Existing resources ----------------------------------------------------- | |
data "azurerm_container_registry" "container_registry" { |
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
dotnet tool install -g Microsoft.Tye --version "0.2.0-alpha.20258.3" |
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.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Azure.Management.Fluent; | |
namespace AciManagerFuncApp | |
{ |
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
⚡ C:\processOrder>func kubernetes deploy --name processorder --registry sajeetharan |
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
⚡ C:\processOrder>func kubernetes install --namespace kube-system --dry-run > keda.yaml | |
kubectl apply -f keda.yaml --namespace="kube-system" | |
NewerOlder