Azure / Azure/azure-rest-api-specs

Problem with creation VNET link to the private dns zone

Open
#31,176 0 comments 0 reactions 0 assignees View on GitHub
customer-reported Network - Virtual Network question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

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 https://github.com/Azure/terraform-provider-azapi/issues/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."
}
--------------------------------------------------------------------------------
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the GET request shown in the issue and compare the portal and azurerm-provider behavior with the azapi-provider case at issue 649. Trace the corresponding Azure private DNS virtualNetworkLinks specification entry and determine whether the reported ResourceNotFound or invalid registration-setting response reflects a specification problem; done means the required correction is clearly identified and the request behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.