Created
March 14, 2021 10:45
-
-
Save ajinkya101/7f296ee52a34391e6ad68665de29052f to your computer and use it in GitHub Desktop.
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
// All Parameters required for Azure Deployment is given here. | |
param rgName1 string | |
param rgName2 string | |
param adminUserName string | |
@secure() | |
param adminPassword string | |
param dnsLabelPrefix string | |
// ------------------------------ | |
// Network Module is called here. | |
// ------------------------------ | |
module network './network.bicep' = { | |
name: 'VNET_DEPLOY1' | |
scope: resourceGroup(rgName1) | |
params:{} | |
} | |
// -------------------------------------- | |
// Virtual Machine Module is called here. | |
// -------------------------------------- | |
module vm './vm.bicep' = { | |
name: 'VM_DEPLOY1' | |
scope: resourceGroup(rgName2) | |
params:{ | |
adminPassword: adminPassword | |
adminUserName: adminUserName | |
dnsLabelPrefix: dnsLabelPrefix | |
vnet: network.outputs.results.vnet | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment