Skip to content

Commit

Permalink
ASE Demo Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lukearp committed Apr 17, 2023
1 parent aac0dba commit 74193a7
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Azure-ASE

on:
push:
branches:
- "azure-ase"

jobs:
AzureBicepDeploy:
name: 'AzureBicepDeploy'
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy template
uses: azure/CLI@v1
with:
inlineScript: |
az account show
az account set --subscription 32eb88b4-4029-4094-85e3-ec8b7ce1fc00
az deployment sub create --template-file AzureCloud/MS-Demo/MS-Platform/CoreServices/ResourceDeployments/ase.bicep --location eastus
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
targetScope = 'subscription'

resource rg 'Microsoft.Resources/resourceGroups@2022-09-01' = {
name: 'Demo-ASE'
location: 'eastus'
}

module ase '../../../../../Modules/Microsoft.Web/hostingEnvironments/hostingEnvironments.bicep' = {
name: 'ASE'
scope: resourceGroup(rg.name)
params: {
aseSubnetName: 'ASE'
location: 'eastus'
name: 'luke-demo-gihub'
virtualNetworkName: 'core-workloads-eastus-vnet'
virtualNetworkRg: 'core-workloads-networking-eastus-rg'
kind: 'ASEV3'
internalLoadBalancingMode: 'Web, Publishing'
zoneRedundant: false
tags: {
Environment: 'Demo'
}
}
}

0 comments on commit 74193a7

Please sign in to comment.