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": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"storageAccountType": { | |
"type": "string", | |
"defaultValue": "Standard_LRS", | |
"allowedValues": [ | |
"Standard_LRS", | |
"Standard_GRS", |
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
resource "azurerm_storage_account" "example" { | |
name = "storageaccountname" | |
resource_group_name = "resource_group_name" | |
location = "resource_group_location" | |
account_tier = "Standard" | |
account_replication_type = "GRS" | |
tags = { | |
environment = "dev" | |
} |
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
module "sql-server" { | |
source = "./modules/sql-server" | |
resource_group_name = var.resource_group_name | |
location = var.location | |
common_tags = local.common_tags | |
sql_server_name = var.sql_server_name | |
sql_administrator_login = var.sql_administrator_login | |
sql_administrator_password = var.sql_administrator_password | |
sql_firewall_rules = var.sql_firewall_rules | |
} |
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
terraform init | |
-backend-config="storage_account_name=${nameofyourstorageaccount}" | |
-backend-config="container_name=${blob_container_name}" | |
-backend-config="key=${blob_file_name}" | |
-backend-config="access_key=${storage_account_access_key}" | |
-input=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
terraform plan | |
-var-file="environments/${environment}/variables.tfvars" | |
-var "azure_client_secret=${azure_client_secret}" | |
-input=false | |
-detailed-exitcode | |
-out=tfplan |
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
jobs: | |
- deployment: dev | |
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/dev') | |
displayName: Deploy to dev | |
environment: dev | |
variables: | |
- name: environment | |
value: dev | |
- group: ${{ format('terraform-{0}', variables.environment) }} | |
- ${{ if ne(parameters.variable_group_name, '') }}: |
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
parameters: | |
container_name: | |
container_key: | |
variable_group_name: | |
environment: | |
tf_plan_name: | |
working_directory: | |
steps: | |
- checkout: self |
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
pool: your-agent-pool-name | |
trigger: | |
batch: true | |
branches: | |
exclude: | |
- refs/heads/feature* | |
resources: | |
repositories: |
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.Threading.Tasks; | |
using GreenPipes; | |
using MassTransit; | |
namespace Retries | |
{ | |
internal static class Program | |
{ | |
static async Task Main(string[] args) |
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.Threading.Tasks; | |
using GreenPipes; | |
using MassTransit; | |
namespace Retries | |
{ | |
internal static class Program | |
{ | |
static async Task Main(string[] args) |
OlderNewer