-
|
While building modules for our standardised deployments, I ran into the following which I hope you can answer for me.
I.e. the following (highlighted) properties for an EventHub namespace are available in ARM templates. {
"type": "Microsoft.EventHub/namespaces",
"apiVersion": "2022-01-01-preview",
"name": "[parameters('eventhubName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard",
"tier": "Standard",
"capacity": 1
},
"properties": {
**"minimumTlsVersion": "1.2",**
**"publicNetworkAccess": "Enabled",**
"disableLocalAuth": false,
"zoneRedundant": false,
"isAutoInflateEnabled": false,
"maximumThroughputUnits": 0,
"kafkaEnabled": true
}
},but not in bicep... resource eventHubNamespace 'Microsoft.EventHub/namespaces@2021-11-01' = {
name: '${eventhubName}-evhns'
location: location
sku: {
name: eventHubSku
tier: eventHubSku
capacity: eventHubCapacity
}
properties: {
isAutoInflateEnabled: false
maximumThroughputUnits: 0
// minimumTlsVersion: '1.2' <--- this property is not available
// publicNetworkAccess: 'Enabled' <--- this property is not available
}
}Why can't I explicitly set the Tls version for this service? Should I set this properties somewhere else? Reference: Configure the minimum TLS version for an Event Hubs namespace using ARM (Preview)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Your Bicep code is using an older API version. The 2022-01-01-preview version doesn't appear in the API list yet. you can manually set the API verion to be the 2022 preview, but you won't get type support. |
Beta Was this translation helpful? Give feedback.
Your Bicep code is using an older API version. The 2022-01-01-preview version doesn't appear in the API list yet. you can manually set the API verion to be the 2022 preview, but you won't get type support.