Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to set the default TLS policy when creating an Application Gateway
AppGwSslPolicy20220101 using CLI.
Please note you cannot use Azure CLI to set a "default" TLS policy at subscription level.
- Specifying a SSL Policy during App gateway creation itself is currently not feasible and is coming soon.
-
- Refer : Default TLS policy
At the case, where a policy is blocking creation of App gateway with certain SSL Policy,
- You can consider using Azure Powershell to create an App gateway with the SSL policy defined.
- See : Create an application gateway with a pre-defined TLS policy.
- A similar CLI Parameter is currently available, I have informed our Product Team about this.
The entire script is available above.
- New-AzApplicationGatewaySslPolicy creates a SSL Policy object.
- You can use the above object while creating a new Application gateway
-
Hope this helps.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.