Skip to content

Unable to Create Private Endpoint Without DNS Configuration Using Azure CLI #31027

@noorjahans

Description

@noorjahans

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions