Skip to content

Instantly share code, notes, and snippets.

@ajinkya101
Created March 14, 2021 10:45
Show Gist options
  • Save ajinkya101/7f296ee52a34391e6ad68665de29052f to your computer and use it in GitHub Desktop.
Save ajinkya101/7f296ee52a34391e6ad68665de29052f to your computer and use it in GitHub Desktop.
// 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