Fixing Availability Zones Bug & Synapse PL Hub Bug (#276)

* Fixing Availability Zones Bug

* updated arm

* fixed region issue for synapse pl hub

* updated arm
This commit is contained in:
Marvin Buss 2022-01-24 17:04:12 +01:00 коммит произвёл GitHub
Родитель 7e72fd322c
Коммит 0f905964f2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 124 добавлений и 14 удалений

Просмотреть файл

@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1124.51302",
"templateHash": "2556241326646259361"
"templateHash": "12904071157118301552"
}
},
"parameters": {
@ -288,7 +288,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1124.51302",
"templateHash": "6889799885640347788"
"templateHash": "7004950783398778434"
}
},
"parameters": {
@ -393,6 +393,30 @@
"westus2",
"westus3"
],
"availabilityZoneRegions": [
"australiaeast",
"brazilsouth",
"canadacentral",
"centralus",
"centralindia",
"eastasia",
"eastus",
"eastus2",
"francecentral",
"germanywestcentral",
"japaneast",
"koreacentral",
"northeurope",
"norwayeast",
"uksouth",
"southeastasia",
"southcentralus",
"swedencentral",
"usgovvirginia",
"westeurope",
"westus2",
"westus3"
],
"firewallPolicyPremiumProperties": {
"intrusionDetection": {
"mode": "Deny",
@ -567,11 +591,7 @@
"name": "[format('{0}-firewall', parameters('prefix'))]",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
"zones": [
"1",
"2",
"3"
],
"zones": "[if(contains(variables('availabilityZoneRegions'), parameters('location')), createArray('1', '2', '3'), createArray())]",
"properties": {
"sku": {
"name": "AZFW_VNet",
@ -3171,7 +3191,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1124.51302",
"templateHash": "16711233143432259596"
"templateHash": "14201920356500171973"
}
},
"parameters": {
@ -3242,7 +3262,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1124.51302",
"templateHash": "6413563287087229385"
"templateHash": "16240531194403531210"
}
},
"parameters": {
@ -3264,14 +3284,47 @@
},
"variables": {
"synapsePrivatelinkHubNameCleaned": "[replace(parameters('synapsePrivatelinkHubName'), '-', '')]",
"synapsePrivatelinkHubPrivateEndpointName": "[format('{0}-private-endpoint', variables('synapsePrivatelinkHubNameCleaned'))]"
"synapsePrivatelinkHubPrivateEndpointName": "[format('{0}-private-endpoint', variables('synapsePrivatelinkHubNameCleaned'))]",
"synapsePrivatelinkHubRegions": [
"westus2",
"eastus",
"northeurope",
"westeurope",
"southeastasia",
"australiaeast",
"westcentralus",
"southcentralus",
"eastus2",
"uksouth",
"westus",
"australiasoutheast",
"eastasia",
"brazilsouth",
"centralus",
"centralindia",
"japaneast",
"northcentralus",
"canadacentral",
"canadaeast",
"koreacentral",
"southafricanorth",
"ukwest",
"japanwest",
"francecentral",
"switzerlandnorth",
"germanywestcentral",
"norwayeast",
"uaenorth",
"westus3",
"jioindiawest"
]
},
"resources": [
{
"type": "Microsoft.Synapse/privateLinkHubs",
"apiVersion": "2021-03-01",
"name": "[variables('synapsePrivatelinkHubNameCleaned')]",
"location": "[parameters('location')]",
"location": "[if(contains(variables('synapsePrivatelinkHubRegions'), parameters('location')), parameters('location'), 'northeurope')]",
"tags": "[parameters('tags')]",
"properties": {}
},

Просмотреть файл

@ -77,6 +77,30 @@ var firewallPremiumRegions = [
'westus2'
'westus3'
]
var availabilityZoneRegions = [
'australiaeast'
'brazilsouth'
'canadacentral'
'centralus'
'centralindia'
'eastasia'
'eastus'
'eastus2'
'francecentral'
'germanywestcentral'
'japaneast'
'koreacentral'
'northeurope'
'norwayeast'
'uksouth'
'southeastasia'
'southcentralus'
'swedencentral'
'usgovvirginia'
'westeurope'
'westus2'
'westus3'
]
// Firewall Policy Variables
var firewallPolicyPremiumProperties = {
@ -264,11 +288,11 @@ resource firewall 'Microsoft.Network/azureFirewalls@2020-11-01' = if(enableDnsAn
]
location: location
tags: tags
zones: [
zones: contains(availabilityZoneRegions, location) ? [
'1'
'2'
'3'
]
] : []
properties: {
sku: {
name: 'AZFW_VNet'

Просмотреть файл

@ -14,11 +14,44 @@ param privateDnsZoneIdSynapseprivatelinkhub string
// Variables
var synapsePrivatelinkHubNameCleaned = replace(synapsePrivatelinkHubName, '-', '')
var synapsePrivatelinkHubPrivateEndpointName = '${synapsePrivatelinkHub.name}-private-endpoint'
var synapsePrivatelinkHubRegions = [
'westus2'
'eastus'
'northeurope'
'westeurope'
'southeastasia'
'australiaeast'
'westcentralus'
'southcentralus'
'eastus2'
'uksouth'
'westus'
'australiasoutheast'
'eastasia'
'brazilsouth'
'centralus'
'centralindia'
'japaneast'
'northcentralus'
'canadacentral'
'canadaeast'
'koreacentral'
'southafricanorth'
'ukwest'
'japanwest'
'francecentral'
'switzerlandnorth'
'germanywestcentral'
'norwayeast'
'uaenorth'
'westus3'
'jioindiawest'
]
// Resources
resource synapsePrivatelinkHub 'Microsoft.Synapse/privateLinkHubs@2021-03-01' = {
name: synapsePrivatelinkHubNameCleaned
location: location
location: contains(synapsePrivatelinkHubRegions, location) ? location : 'northeurope'
tags: tags
properties: {}
}