Skip to content

Commit

Permalink
Merge pull request #2039 from SEKOIA-IO/update/eventhub-template
Browse files Browse the repository at this point in the history
update(eventhub-template): add minimum tls version
  • Loading branch information
goudyj authored Oct 2, 2024
2 parents 9304855 + 618bd6c commit de37123
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"[resourceId('Microsoft.EventHub/namespaces', variables('eventHubNamespaceName'))]"
]
},
// shared access policy for the eventhub
{
"type": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules",
"apiVersion": "2021-11-01",
Expand All @@ -122,7 +121,6 @@
"[resourceId('Microsoft.EventHub/namespaces/eventhubs', variables('eventHubNamespaceName'), variables('eventHubName'))]"
]
},
// Create a consumer group for the EventHub
{
"type": "Microsoft.EventHub/namespaces/eventhubs/consumergroups",
"apiVersion": "2021-11-01",
Expand All @@ -134,8 +132,6 @@
"[resourceId('Microsoft.EventHub/namespaces/eventhubs', variables('eventHubNamespaceName'), variables('eventHubName'))]"
]
},
// Create a Storage Account with GRS redundancy and container and standard performance
// Name must be the project name in lowerCase with sa suffix
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
Expand All @@ -147,10 +143,10 @@
},
"kind": "StorageV2",
"properties": {
"accessTier": "Hot"
"accessTier": "Hot",
"minimumTlsVersion": "TLS1_2"
}
},
// Create a container in the Storage Account
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2021-04-01",
Expand All @@ -161,27 +157,22 @@
}
],
"outputs": {
// return the connection string-primary key of the shared access policy
"HubConnectionString": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.EventHub/namespaces/eventhubs/authorizationRules', variables('eventHubNamespaceName'), variables('eventHubName'), variables('sharedAccessPolicyName')), '2017-04-01').primaryConnectionString]"
},
// return the name consumer group
"HubConsumerGroup": {
"type": "string",
"value": "[variables('consumerGroupName')]"
},
// return the name of the eventhub
"eventHubName": {
"type": "string",
"value": "[variables('eventHubName')]"
},
// return the connection string-primary key storage account
"StorageConnectionString": {
"type": "string",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=', format('{0}sa', parameters('projectName')), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2019-06-01').keys[0].value)]"
},
// return the name of the storage container name
"storageContainerName": {
"type": "string",
"value": "sekoiaio"
Expand Down

0 comments on commit de37123

Please sign in to comment.