Skip to content

Commit

Permalink
Nuget update, SQL Bicep API version update
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckechney committed Dec 13, 2023
1 parent 1cf5c87 commit 610086f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions scripts/templates/Modules/database.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module identityResource 'identity.bicep' = {


// SQL Server 'A' resources
resource sqlserverAResource 'Microsoft.Sql/servers@2021-02-01-preview' = {
resource sqlserverAResource 'Microsoft.Sql/servers@2021-11-01' = {
name: '${sqlserverNameVar}-a'
location: location

Expand All @@ -67,7 +67,7 @@ resource sqlserverAResource 'Microsoft.Sql/servers@2021-02-01-preview' = {
}
}

resource sqlserverAFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-02-01-preview' = if(currentIpAddress != '') {
resource sqlserverAFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-11-01' = if(currentIpAddress != '') {
parent: sqlserverAResource
name: '${sqlserverNameVar}A_AllowIp'
properties: {
Expand All @@ -76,7 +76,7 @@ resource sqlserverAFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-02-01-
}
}

resource sqlserverA_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2022-11-01-preview' = [for subnet in subnetNamesArray:{
resource sqlserverA_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2021-11-01' = [for subnet in subnetNamesArray:{
parent: sqlserverAResource
name: '${sqlserverNameVar}A_${subnet}'
properties: {
Expand All @@ -86,7 +86,7 @@ resource sqlserverA_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2022-11-
}
}]

resource sqlserverAResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-02-01-preview' = {
resource sqlserverAResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-11-01' = {
parent: sqlserverAResource
name: '${sqlpoolNameVar}-a'
location: location
Expand All @@ -105,7 +105,7 @@ resource sqlserverAResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-02-01-
}
}

resource sqlserverAResourceDatabase 'Microsoft.Sql/servers/databases@2021-02-01-preview' = [for i in range(1,testDbCountPerServer):{
resource sqlserverAResourceDatabase 'Microsoft.Sql/servers/databases@2021-11-01' = [for i in range(1,testDbCountPerServer):{
parent: sqlserverAResource
name: 'SqlBuildTest${i}'
location: location
Expand All @@ -128,7 +128,7 @@ resource sqlserverAResourceDatabase 'Microsoft.Sql/servers/databases@2021-02-01-


// SQL Server 'B' resources
resource sqlserverBResource 'Microsoft.Sql/servers@2021-02-01-preview' = {
resource sqlserverBResource 'Microsoft.Sql/servers@2021-11-01' = {
name: '${sqlserverNameVar}-b'
location: location
properties: {
Expand All @@ -145,7 +145,7 @@ resource sqlserverBResource 'Microsoft.Sql/servers@2021-02-01-preview' = {
}
}
}
resource sqlserverBFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-02-01-preview' = if(currentIpAddress != '') {
resource sqlserverBFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-11-01' = if(currentIpAddress != '') {
parent: sqlserverBResource
name: '${sqlserverNameVar}B_AllowIp'
properties: {
Expand All @@ -154,7 +154,7 @@ resource sqlserverBFirewallRule 'Microsoft.Sql/servers/firewallRules@2021-02-01-
}
}

resource sqlserverB_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2022-11-01-preview' = [for subnet in subnetNamesArray:{
resource sqlserverB_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2021-11-01' = [for subnet in subnetNamesArray:{
parent: sqlserverBResource
name: '${sqlserverNameVar}B_${subnet}'
properties: {
Expand All @@ -164,7 +164,7 @@ resource sqlserverB_VnetRule 'Microsoft.Sql/servers/virtualNetworkRules@2022-11-
}
}]

resource sqlserverBResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-02-01-preview' = {
resource sqlserverBResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-11-01' = {
parent: sqlserverBResource
name: '${sqlpoolNameVar}-b'
location: location
Expand All @@ -183,7 +183,7 @@ resource sqlserverBResource_Pool 'Microsoft.Sql/servers/elasticPools@2021-02-01-
}
}

resource sqlserverBResource_Database 'Microsoft.Sql/servers/databases@2021-02-01-preview' = [for i in range(1,testDbCountPerServer):{
resource sqlserverBResource_Database 'Microsoft.Sql/servers/databases@2021-11-01' = [for i in range(1,testDbCountPerServer):{
parent: sqlserverBResource
name: 'SqlBuildTest${i}'
location: location
Expand Down
2 changes: 1 addition & 1 deletion src/SqlBuildManager.Console/sbm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="Azure.Identity" Version="1.10.4" />
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.10.0" />
<PackageReference Include="Azure.Messaging.EventHubs.Processor" Version="5.10.0" />
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.0" />
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.1" />
<PackageReference Include="Azure.ResourceManager" Version="1.9.0" />
<PackageReference Include="Azure.ResourceManager.AppContainers" Version="1.1.1" />
<PackageReference Include="Azure.ResourceManager.Batch" Version="1.2.1" />
Expand Down

0 comments on commit 610086f

Please sign in to comment.