Codolophier opened a new issue, #54127:
URL: https://github.com/apache/airflow/issues/54127
### Apache Airflow Provider(s)
microsoft-azure
### Versions of Apache Airflow Providers
12.0+
### Apache Airflow version
3.03
### Operating System
Ubuntu 22.04.3 LTS
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### What happened
When using
`airflow.providers.microsoft.azure.hooks.asb.AdminClientHook.create_subscription`
as follows:
```python
from airflow.providers.microsoft.azure.hooks.asb import AdminClientHook
...
with DAG(
dag_id='azure_service_bus',
start_date=datetime(2025, 8, 4),
catchup=False,
) as dag:
admin_hook =
AdminClientHook(azure_service_bus_conn_id='azure_service_bus_default_connection')
subscription_name = "mytest"
topic_name="testmessage_topic"
admin_hook.create_subscription(topic_name,subscription_name)
```
the following error is raised:
```python
TypeError: Session.request() got an unexpected keyword argument
'dead_lettering_on_ßmessage_expiration'
```
Looking at the code in
`providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/asb.py`,
on line 356, there is a typo in the parameter name:
```python
...
dead_lettering_on_ßmessage_expiration=dead_lettering_on_message_expiration
...
```
### What you think should happen instead
The parameter should not contain **ß**, and instead should read as :
```python
...
dead_lettering_on_message_expiration=dead_lettering_on_message_expiration
...
```
### How to reproduce
Create a DAG that creates a subscription using the AdminClientHook:
```python
from airflow import DAG
from airflow.operators.python import PythonOperator
from airflow.providers.microsoft.azure.hooks.asb import AdminClientHook
from datetime import datetime
with DAG(
dag_id='azure_service_bus',
start_date=datetime(2025, 8, 4),
catchup=False,
) as dag:
admin_hook =
AdminClientHook(azure_service_bus_conn_id='azure_service_bus_default_connection')
subscription_name = "mytest"
topic_name="testmessage_topic"
admin_hook.create_subscription(topic_name,subscription_name)
```
### Anything else
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]