Azure / Azure/azure-cli

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

Open
#22,041 4 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign customer-reported Network Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.