Skip to content

Instantly share code, notes, and snippets.

View reallydontask's full-sized avatar
🏠
Working from home

Agoney Garcia-Deniz reallydontask

🏠
Working from home
  • EO Charging
  • UK
View GitHub Profile
@reallydontask
reallydontask / pre-commit
Created July 8, 2022 09:48
Validate Azure Pipelines
#!/usr/bin/env pwsh
$pipelines = @{}
Import-CSV .githooks/pipelines.csv | ForEach-Object { $pipelines.Add($_.file, $_.url)}
#No point in trying to invoke an api without a token
if ($null -ne $env:AZDO_PAT) {
$token = [convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes([string]::Format("{0}:{1}", "", $env:AZDO_PAT)))
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"type": "string"
},
"AppInsightsKey": {
"type": "string"
},
$rg="myresourcegroup"
@("B1", "B2", "B3", "P1V2", "P2V2", "P3V2", "S1", "S2", "S3") | %{ az appservice plan create --name $_--resource-group $rg --sku $_}
SKU Memory (%) Memory (GB)
B1 48 0.84
B2 28 0.98
B3 16 1.12
S1 50 0.875
S2 28 0.98
S3 17 1.17
P1V2 30 1.05
P2V2 18 1.26
P3V2 12 1.68
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"type": "string"
},
"AppInsightsKey": {
"type": "string"
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"type": "string"
},
"appServicePlanName": {
"type": "string"
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"type": "string"
},
"appServicePlanName": {
"type": "string"
},
Feature Time to Market Profit
MVP 2 Weeks 0.75
Full Feature 3 Weeks 0.95
MVP to Full Feature 4 Weeks 0.99