From ec619552acf0e7faaa48b0bf9f4158731bf95270 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Thu, 6 Jun 2024 19:37:14 +1000 Subject: [PATCH] update tls versions --- infra/app/servicebus.bicep | 6 ++++-- ps-rule.yaml | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 ps-rule.yaml diff --git a/infra/app/servicebus.bicep b/infra/app/servicebus.bicep index eaae81b..6fae14b 100644 --- a/infra/app/servicebus.bicep +++ b/infra/app/servicebus.bicep @@ -5,7 +5,7 @@ param topicName string = 'orders' param tags object -resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2021-11-01' = { +resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2022-10-01-preview' = { name: 'sb-${resourceToken}' location: location tags: tags @@ -13,7 +13,9 @@ resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2021-11-01' = { name: skuName tier: skuName } - + properties: { + minimumTlsVersion: '1.2' + } resource topic 'topics' = { name: topicName properties: { diff --git a/ps-rule.yaml b/ps-rule.yaml new file mode 100644 index 0000000..a1ac136 --- /dev/null +++ b/ps-rule.yaml @@ -0,0 +1,5 @@ +# YAML: Set the AZURE_BICEP_FILE_EXPANSION configuration option to enable expansion +configuration: + AZURE_BICEP_FILE_EXPANSION: true + AZURE_DEPLOYMENT_NONSENSITIVE_PARAMETER_NAMES: + - resourceToken \ No newline at end of file