How to change default AppGwSslPolicyXXXXXXXX from Azure CLI

Lyncheese 105 Reputation points
2023-12-20T07:54:19.1633333+00:00

My subscription currently used "AppGwSslPolicy20150501" as the default policy when creating an Application Gateway
I need to change it to AppGwSslPolicy**20220101
**
This is needed because we have a custom policy which prevent App Gateway creation with TLS version lower or same as v1.1
Because of this policy, I cannot create the App Gateway at all

How to change the default AppGwSslPolicy from Azure CLI ?
So far, I see we can update it, but it is only for already created App Gateway

I want to avoid using REST API if possible and only use Azure CLI

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
{count} votes

Answer accepted by question author
  1. KapilAnanth 49,851 Reputation points Moderator
    2023-12-23T07:06:24.8133333+00:00

    @Lyncheese

    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.
    • User's image
    • Refer : Default TLS policy

    At the case, where a policy is blocking creation of App gateway with certain SSL Policy,

    The entire script is available above.

    Hope this helps.

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.