You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/transport-layer-security-configure-minimum-version.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,56 @@ To configure the minimum TLS version for an Event Hubs namespace with a template
59
59
60
60
Configuring the minimum TLS version requires api-version 2022-01-01-preview or later of the Azure Event Hubs resource provider.
61
61
62
+
## Check the minimum required TLS version for a namespace
63
+
64
+
To check the minimum required TLS version for your Event Hubs namespace, you can query the Azure Resource Manager API. You will need a Bearer token to query against the API, which you can retrieve using [ARMClient](https://github.com/projectkudu/ARMClient) by executing the following commands.
65
+
66
+
```powershell
67
+
.\ARMClient.exe login
68
+
.\ARMClient.exe token <your-subscription-id>
69
+
```
70
+
71
+
Once you have your bearer token, you can use the script below in combination with something like [Rest Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) to query the API.
72
+
73
+
```http
74
+
@token = Bearer <Token received from ARMClient>
75
+
@subscription = <your-subscription-id>
76
+
@resourceGroup = <your-resource-group-name>
77
+
@namespaceName = <your-namespace-name>
78
+
79
+
###
80
+
GET https://management.azure.com/subscriptions/{{subscription}}/resourceGroups/{{resourceGroup}}/providers/Microsoft.EventHub/namespaces/{{namespaceName}}?api-version=2022-01-01-preview
81
+
content-type: application/json
82
+
Authorization: {{token}}
83
+
```
84
+
85
+
The response should look something like the below, with the minimumTlsVersion set under the properties.
To test that the minimum required TLS version for an Event Hubs namespace forbids calls made with an older version, you can configure a client to use an older version of TLS. For more information about configuring a client to use a specific version of TLS, see [Configure Transport Layer Security (TLS) for a client application](transport-layer-security-configure-client-version.md).
0 commit comments