Skip to content

Commit

Permalink
Merge pull request #90 from WASdev/apiVersion-update
Browse files Browse the repository at this point in the history
Update ApiVersion to the latest
  • Loading branch information
git4rk authored Sep 29, 2023
2 parents e278c6f + 3f9ec48 commit cd15832
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/bicep/mainTemplate.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module singleServerStartPid './modules/_pids/_empty.bicep' = {
params: {}
}

resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2021-08-01' = if (const_newVNet) {
resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2023-06-01' = if (const_newVNet) {
name: name_networkSecurityGroup
location: location
properties: {
Expand All @@ -176,7 +176,7 @@ resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2021-08-0
}
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2021-08-01' = if (const_newVNet) {
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-06-01' = if (const_newVNet) {
name: vnetForSingleServer.name
location: location
properties: {
Expand All @@ -197,17 +197,17 @@ resource virtualNetwork 'Microsoft.Network/virtualNetworks@2021-08-01' = if (con
}
}

resource existingVNet 'Microsoft.Network/virtualNetworks@2021-08-01' existing = if (!const_newVNet) {
resource existingVNet 'Microsoft.Network/virtualNetworks@2023-06-01' existing = if (!const_newVNet) {
name: vnetForSingleServer.name
scope: resourceGroup(vnetRGNameForSingleServer)
}

resource existingSubnet 'Microsoft.Network/virtualNetworks/subnets@2021-08-01' existing = if (!const_newVNet) {
resource existingSubnet 'Microsoft.Network/virtualNetworks/subnets@2023-06-01' existing = if (!const_newVNet) {
parent: existingVNet
name: vnetForSingleServer.subnets.subnet1.name
}

resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2021-08-01' = if (const_newVNet) {
resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2023-06-01' = if (const_newVNet) {
name: name_publicIPAddress
location: location
properties: {
Expand All @@ -218,7 +218,7 @@ resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2021-08-01' = if (
}
}

resource networkInterface 'Microsoft.Network/networkInterfaces@2021-08-01' = if (const_newVNet) {
resource networkInterface 'Microsoft.Network/networkInterfaces@2023-06-01' = if (const_newVNet) {
name: name_networkInterface
location: location
properties: {
Expand All @@ -245,7 +245,7 @@ resource networkInterface 'Microsoft.Network/networkInterfaces@2021-08-01' = if
]
}

resource networkInterfaceNoPubIp 'Microsoft.Network/networkInterfaces@2021-08-01' = if (!const_newVNet) {
resource networkInterfaceNoPubIp 'Microsoft.Network/networkInterfaces@2023-06-01' = if (!const_newVNet) {
name: name_networkInterfaceNoPubIp
location: location
properties: {
Expand All @@ -263,7 +263,7 @@ resource networkInterfaceNoPubIp 'Microsoft.Network/networkInterfaces@2021-08-01
}
}

resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-03-01' = {
resource virtualMachine 'Microsoft.Compute/virtualMachines@2023-07-01' = {
name: name_virtualMachine
location: location
properties: {
Expand Down Expand Up @@ -323,7 +323,7 @@ module dbConnectionStartPid './modules/_pids/_empty.bicep' = if (enableDB) {
]
}

resource vmExtension 'Microsoft.Compute/virtualMachines/extensions@2022-03-01' = {
resource vmExtension 'Microsoft.Compute/virtualMachines/extensions@2023-07-01' = {
parent: virtualMachine
name: 'install'
location: location
Expand Down

0 comments on commit cd15832

Please sign in to comment.