Skip to content

Problem with creation VNET link to the private dns zone #31176

Open

Description

I am trying to create link to VNET for private dns zone

 GET https://management.azure.com/subscriptions/678***/resourceGroups/rg-***/providers/Microsoft.Network/privateDnsZones/***.corp/virtualNetworkLinks/vnet-dns-lnk-vnet-***?api-version=2018-09-01

With azapi provider Azure/terraform-provider-azapi#649

All resources exists and I have access to them. It is possible to create corresponded link via portal. Without any issues. Or without azurerm provider.

But with azapi I have got strange error message:

{"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.Network/privateDnsZones/***.corp/virtualNetworkLinks/vnet-dns-lnk-vnet-***' under resource group 'rg-***' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}

And also

--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: BadRequest
--------------------------------------------------------------------------------
{
  "code": "BadRequest",
  "message": "The specified virtual network link registration setting is invalid."
}
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Network - Virtual NetworkService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions