deanmorin opened a new issue, #55974:
URL: https://github.com/apache/airflow/issues/55974

   ### Apache Airflow version
   
   3.0.6
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   [According to the 
docs](https://github.com/apache/airflow/blob/main/providers/microsoft/psrp/src/airflow/providers/microsoft/psrp/operators/psrp.py#L62-L68),
 `parameters` and `arguments` can be used if you use `powershell` or `cmdlet`.
   
   However, if you try to use either with `powershell`, [it will raise an 
exception](https://github.com/apache/airflow/blob/main/providers/microsoft/psrp/src/airflow/providers/microsoft/psrp/operators/psrp.py#L114-L116).
   
   ### What you think should happen instead?
   
   You should be able to provide these to a powershell script.
   
   ### How to reproduce
   
   Sample DAG that shows the issue:
   
   ```
   from airflow import DAG
   from airflow.providers.microsoft.psrp.operators.psrp import PsrpOperator
   
   with DAG(
       dag_id="test_psrp",
       start_date=None,
       schedule=None,
   ):
       write_output = PsrpOperator(
           task_id="write_output",
           psrp_conn_id="asc_1",
           powershell="""
               param(
                   [string]$word
               )
               Write-Output $word"
           """,
           parameters={"word": "test"},
       )
   ```
   
   ### Operating System
   
   Sequoia 15.6.1
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-microsoft-psrp==3.1.1
   
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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]

Reply via email to