Skip to content

az network application-gateway ssl-profile add adds a default ssl-policy even though none was selected #22041

@Ben424242

Description

@Ben424242

Describe the bug
When adding a new ssl-profile and not specifying anything for policy-type or policy-name the resulting profile uses one of the predefined policies like "AppGwSslPolicy20150501" instead of a null.

To Reproduce
az network application-gateway ssl-profile add --output none --gateway-name $wafName
--resource-group $wafRG --name $sslProfileName

Expected behavior
The policy should be created with the "sslPolicy" property value of "null". Otherwise, from the CLI, there is no way of creating a policy with a "null" sslPolicy property so that it uses the default one set in Listeners.

Environment summary
I get the same result from a local AZ CLI verison 2.35.0 or from an Azure hosted devops pipeline with the CLI task.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botNetworkaz network vnet/lb/nic/dns/etc...Service AttentionThis issue is responsible by Azure service team.act-quality-productivity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions