-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prefer local backends for terraform * add a Bicep Azure Sentinel module (#385) * Remove Client/Client Secret/Tenant Vars from Terraform Templates Co-authored-by: Bree Stryker <[email protected]> * add workflows to lint and build .bicep modules (#400) * disable verbose lint output (#402) * optionally deploy built-in Policy Initiatives for NIST 800-53, CMMC Level 3, or DOD IL5 (#397) * log activities from subscriptions used in a deployment into the Operations log analytics workspace (#412) * optionally deploy Azure Bastion Host from the base deployment (#406) Co-authored-by: Vidya Bala <[email protected]> Co-authored-by: Bree Stryker <[email protected]> Co-authored-by: Glenn Musa <[email protected]> Co-authored-by: Shawn Gibbs <[email protected]>
- Loading branch information
1 parent
276cdae
commit 279d1b5
Showing
32 changed files
with
3,868 additions
and
855 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,18 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
name: validate-bicep | ||
on: | ||
pull_request: | ||
paths: | ||
- '**.bicep' | ||
workflow_dispatch: | ||
paths: | ||
- '**.bicep' | ||
jobs: | ||
validate-bicep: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
az bicep build --file src/bicep/mlz.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,22 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
name: validate-build-bicep | ||
on: | ||
push: | ||
paths: | ||
- '**.bicep' | ||
branches: | ||
- bicep | ||
jobs: | ||
validate-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
az bicep build --file src/bicep/mlz.bicep --outfile src/bicep/mlz.json | ||
git add src/bicep/mlz.json | ||
git commit -m "GitHub Action: Build Bicep to JSON" | ||
git push |
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
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 @@ | ||
{ | ||
"analyzers": { | ||
"core": { | ||
"verbose": false, | ||
"enabled": true, | ||
"rules": { | ||
"no-hardcoded-env-urls": { | ||
"level": "error" | ||
}, | ||
"no-unused-params": { | ||
"level": "error" | ||
}, | ||
"no-unused-vars": { | ||
"level": "error" | ||
}, | ||
"prefer-interpolation": { | ||
"level": "error" | ||
}, | ||
"secure-parameter-default": { | ||
"level": "error" | ||
}, | ||
"simplify-interpolation": { | ||
"level": "error" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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,73 @@ | ||
param location string = resourceGroup().location | ||
|
||
param hubVirtualNetworkName string | ||
param hubSubnetResourceId string | ||
param hubNetworkSecurityGroupResourceId string | ||
|
||
param bastionHostName string = 'bastionHost' | ||
param bastionHostSubnetAddressPrefix string = '10.0.100.160/27' | ||
param bastionHostPublicIPAddressName string = 'bastionHostPublicIPAddress' | ||
param bastionHostPublicIPAddressSkuName string = 'Standard' | ||
param bastionHostPublicIPAddressAllocationMethod string = 'Static' | ||
param bastionHostPublicIPAddressAvailabilityZones array = [] | ||
param bastionHostIPConfigurationName string = 'bastionHostIPConfiguration' | ||
|
||
param linuxVmName string = 'linuxVirtualMachine' | ||
param linuxVmSize string = 'Standard_B2s' | ||
param linuxVmOsDiskCreateOption string = 'FromImage' | ||
param linuxVmOsDiskType string = 'Standard_LRS' | ||
param linuxVmImagePublisher string = 'Canonical' | ||
param linuxVmImageOffer string = 'UbuntuServer' | ||
param linuxVmImageSku string = '18.04-LTS' | ||
param linuxVmImageVersion string = 'latest' | ||
param linuxVmAdminUsername string = 'azureuser' | ||
|
||
@allowed([ | ||
'sshPublicKey' | ||
'password' | ||
]) | ||
param linuxVmAuthenticationType string = 'password' | ||
@secure() | ||
@minLength(14) | ||
param linuxVmAdminPasswordOrKey string | ||
|
||
param linuxVmNetworkInterfaceName string = 'linuxVmNetworkInterface' | ||
param linuxVmNetworkInterfaceIpConfigurationName string = 'linuxVmIpConfiguration' | ||
param linuxVmNetworkInterfacePrivateIPAddressAllocationMethod string = 'Dynamic' | ||
|
||
param nowUtc string = utcNow() | ||
|
||
module remoteAccess '../../modules/remoteAccess.bicep' = { | ||
name: 'deploy-remoteAccess-Example-${nowUtc}' | ||
params: { | ||
location: location | ||
|
||
hubVirtualNetworkName: hubVirtualNetworkName | ||
hubSubnetResourceId: hubSubnetResourceId | ||
hubNetworkSecurityGroupResourceId: hubNetworkSecurityGroupResourceId | ||
|
||
bastionHostName: bastionHostName | ||
bastionHostSubnetAddressPrefix: bastionHostSubnetAddressPrefix | ||
bastionHostPublicIPAddressName: bastionHostPublicIPAddressName | ||
bastionHostPublicIPAddressSkuName: bastionHostPublicIPAddressSkuName | ||
bastionHostPublicIPAddressAllocationMethod: bastionHostPublicIPAddressAllocationMethod | ||
bastionHostPublicIPAddressAvailabilityZones: bastionHostPublicIPAddressAvailabilityZones | ||
bastionHostIPConfigurationName: bastionHostIPConfigurationName | ||
|
||
linuxNetworkInterfaceIpConfigurationName: linuxVmNetworkInterfaceIpConfigurationName | ||
linuxNetworkInterfacePrivateIPAddressAllocationMethod: linuxVmNetworkInterfacePrivateIPAddressAllocationMethod | ||
|
||
linuxVmName: linuxVmName | ||
linuxVmSize: linuxVmSize | ||
linuxVmOsDiskCreateOption: linuxVmOsDiskCreateOption | ||
linuxVmOsDiskType: linuxVmOsDiskType | ||
linuxVmImagePublisher: linuxVmImagePublisher | ||
linuxVmImageOffer: linuxVmImageOffer | ||
linuxVmImageSku: linuxVmImageSku | ||
linuxVmImageVersion: linuxVmImageVersion | ||
linuxVmAdminUsername: linuxVmAdminUsername | ||
linuxVmAuthenticationType: linuxVmAuthenticationType | ||
linuxVmAdminPasswordOrKey: linuxVmAdminPasswordOrKey | ||
linuxVmNetworkInterfaceName: linuxVmNetworkInterfaceName | ||
} | ||
} |
Oops, something went wrong.