-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
24 changes: 24 additions & 0 deletions
24
AzureCloud/MS-Demo/MS-Platform/CoreServices/ResourceDeployments/ase.bicep
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
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' | ||
} | ||
} | ||
} |