From 8938131929d443c8d6a532d40bcc1220c14aca2a Mon Sep 17 00:00:00 2001 From: "david.vashdi" Date: Sun, 21 May 2023 10:56:41 +0300 Subject: [PATCH] Add maximumThroughputUnits option to template --- azure/deploy-to-azure/event_hub.json | 19 ++++++++++++++++++- azure/deploy-to-azure/parent_template.json | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/azure/deploy-to-azure/event_hub.json b/azure/deploy-to-azure/event_hub.json index 552694d3e..313ce4adf 100644 --- a/azure/deploy-to-azure/event_hub.json +++ b/azure/deploy-to-azure/event_hub.json @@ -28,6 +28,20 @@ "metadata": { "description": "Location for all resources." } + }, + "isAutoInflateEnabled": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Whether or not to use Auto Inflate" + } + }, + "maximumThroughputUnits": { + "type": "int", + "defaultValue": 0, + "metadata": { + "description": "The maximum number of throughput units" + } } }, "resources": [ @@ -42,7 +56,10 @@ "capacity": 1 }, "tags": {}, - "properties": {}, + "properties": { + "isAutoInflateEnabled": "[parameters('isAutoInflateEnabled')]", + "maximumThroughputUnits": "[parameters('maximumThroughputUnits')]" + }, "resources": [ { "apiVersion": "2017-04-01", diff --git a/azure/deploy-to-azure/parent_template.json b/azure/deploy-to-azure/parent_template.json index 19e7ffc0f..a30299304 100644 --- a/azure/deploy-to-azure/parent_template.json +++ b/azure/deploy-to-azure/parent_template.json @@ -77,6 +77,20 @@ "metadata": { "description": "The name of the diagnostic setting if sending Activity Logs" } + }, + "isAutoInflateEnabled": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Whether or not to use Auto Inflate" + } + }, + "maximumThroughputUnits": { + "type": "int", + "defaultValue": 0, + "metadata": { + "description": "The maximum number of throughput units" + } } }, "variables": { @@ -107,6 +121,12 @@ }, "location": { "value": "[parameters('resourcesLocation')]" + }, + "isAutoInflateEnabled": { + "value": "[parameters('isAutoInflateEnabled')]" + }, + "maximumThroughputUnits": { + "value": "[parameters('maximumThroughputUnits')]" } } }