Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ApiVersion to the latest #90

Merged
merged 2 commits into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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