Unable to Create Private Endpoint Without DNS Configuration Using Azure CLI
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Type of issue
Missing information
### Reference command name
az network private-endpoint create
### Feedback
I am trying to create a Private Endpoint using the Azure CLI without DNS configuration (i.e., without customDnsConfigs). However, when I run the az network private-endpoint create command, Azure automatically assigns a DNS configuration.
I have checked documentation: https://learn.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-cli-latest#az-network-private-endpoint-create.
But I cannot find any argument that allows me to disable or prevent the automatic DNS configuration.
In the Azure Portal, there's a "Disable" button for DNS configuration when creating a Private Endpoint, but I can't find a similar option in Azure CLI. Is there a way to disable it during creation, or do I need to remove it separately?
### Page URL
https://learn.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-cli-latest#az-network-private-endpoint-create.
### Content source URL
https://learn.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-cli-latest#az-network-private-endpoint-create.
### Author
@noorjahans
### Document Id
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.