Azure Classroomnotes 16/Aug/2023

ARM Templates contd

Change – 9: Add database

  • Refer Here for manual creation
  • Refer Here for the changes done to include database
  • Now add parameters for the possible sections in database

Azure Bicep

  • Bicep is a Domain specific language that uses declarative syntax to deploy Azure resources
  • Refer Here
  • Install bicep extension into visual studio code
  • Sample network template
param vnet_name string = 'ntier'
param vnet_address string = '10.0.0.0/16'
param vnet_info object = {
  name : 'vnet'
  location: resourceGroup().location
  addressPrefix: '10.0.0.0/16'
  subnet1AddresPrefix: '10.0.0.0/24'
  subnet2AddresPrefix: '10.0.1.0/24'
}

resource vnet 'Microsoft.Network/virtualNetworks@2019-11-01' = {
  name: vnet_name
  location: resourceGroup().location
  properties: {
    addressSpace: {
      addressPrefixes: [
        vnet_address
      ]
    }
    subnets: [
      {
        name: 'Subnet-1'
        properties: {
          addressPrefix: vnet_info.subnet1AddresPrefix
        }
      }
      {
        name: 'Subnet-2'
        properties: {
          addressPrefix: vnet_info.subnet2AddresPrefix
        }
      }
    ]
  }
}


Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%