Azure / Azure/azure-rest-api-specs

`Microsoft.Web/sites/virtualNetworkConnections@2022-03-01` - Successfully created but failed to retrieve

Open
#20,765 1 comment 0 reactions 0 assignees View on GitHub
Service Attention Web Apps
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

## Microsoft.Web/sites/virtualNetworkConnections@2022-03-01 - Successfully created but failed to retrieve

### Description

I successfully created this resource, but when call Get to retrieve it, it returns 404

### Details

1. ARM Fully-Qualified Resource Type
```
Microsoft.Web/sites/virtualNetworkConnections
```

2. API Version
```
2022-03-01
```

3. Swagger issue type
```
Swagger Correctness
```

4. OperationId
```
TODO
e.g., VirtualMachines_Get
```

5. Swagger GitHub permalink
```
TODO,
e.g., https://github.com/Azure/azure-rest-api-specs/blob/60723d13309c8f8060d020a7f3dd9d6e380f0bbd
/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json#L9065-L9101
```

6. Error code
```
Others
```

7. Request traces
```
PUT https://management.azure.com/subscriptions/85b3dbca-5974-4067-9669-67a141095a76/resourceGroups/henglu919/providers/Microsoft.Web/sites/henglu919/virtualNetworkConnections/henglu919?api-version=2022-03-01 HTTP/2.0
user-agent: HashiCorp Terraform/1.2.8 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: bf3ae69e-b7d1-873e-3c2e-c5ded418b675
authorization: Bearer XXXX
accept: application/json
content-type: application/json
content-length: 181
accept-encoding: gzip

{"properties":{"isSwift":true,"vnetResourceId":"/subscriptions/85b3dbca-5974-4067-9669-67a141095a76/resourceGroups/henglu919/providers/Microsoft.Network/virtualNetworks/henglu919"}}

HTTP/2.0 200
cache-control: no-cache
pragma: no-cache
content-type: application/json
expires: -1
vary: Accept-Encoding
strict-transport-security: max-age=31536000; includeSubDomains
x-ms-request-id: b8982d6b-daf6-4721-a135-1d0781810aca
x-ms-ratelimit-remaining-subscription-writes: 1198
server: Microsoft-IIS/10.0
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
x-ms-correlation-request-id: bf3ae69e-b7d1-873e-3c2e-c5ded418b675
x-ms-routing-request-id: JAPANEAST:20220919T075723Z:691604c5-9050-4354-9d6a-90cdfe9ed590
x-content-type-options: nosniff
date: Mon, 19 Sep 2022 07:57:23 GMT
content-length: 260

{"id":"/subscriptions/85b3dbca-5974-4067-9669-67a141095a76/resourceGroups/henglu919/providers/Microsoft.Web/sites/henglu919/virtualNetworkConnections/henglu919","name":"henglu919","type":"Microsoft.Web/sites/virtualNetworkConnections","location":"West Europe"}
--------------------------------------------------------------------------------

GET https://management.azure.com/subscriptions/85b3dbca-5974-4067-9669-67a141095a76/resourceGroups/henglu919/providers/Microsoft.Web/sites/henglu919/virtualNetworkConnections/henglu919?api-version=2022-03-01 HTTP/2.0
accept: application/json
user-agent: HashiCorp Terraform/1.2.8 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: bf3ae69e-b7d1-873e-3c2e-c5ded418b675
authorization: Bearer XXXXX
accept-encoding: gzip
content-length: 0

HTTP/2.0 404
cache-control: no-cache
pragma: no-cache
content-length: 379
content-type: application/json; charset=utf-8
expires: -1
strict-transport-security: max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11977
server: Microsoft-IIS/10.0
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
x-ms-request-id: 0e454ba7-068c-4ddb-9859-941c52638bae
x-ms-correlation-request-id: bf3ae69e-b7d1-873e-3c2e-c5ded418b675
x-ms-routing-request-id: JAPANEAST:20220919T075725Z:0e454ba7-068c-4ddb-9859-941c52638bae
x-content-type-options: nosniff
date: Mon, 19 Sep 2022 07:57:25 GMT

{"Code":"NotFound","Message":"Cannot find VNET with name henglu919.","Target":null,"Details":[{"Message":"Cannot find VNET with name henglu919."},{"Code":"NotFound"},{"ErrorEntity":{"ExtendedCode":"51004","MessageTemplate":"Cannot find {0} with name {1}.","Parameters":["VNET","henglu919"],"Code":"NotFound","Message":"Cannot find VNET with name henglu919."}}],"Innererror":null}
```

### Links
1. [Semantic and Model Violations Reference](https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/Semantic-and-Model-Violations-Reference.md)
2. [S360 action item generator for Swagger issues](https://aka.ms/swaggers360)

Contributor guide

Open the contributing guide

Research direction

Start with the PUT and GET request traces for Microsoft.Web/sites/virtualNetworkConnections at API version 2022-03-01, then locate the corresponding Azure REST specification. Fill in the missing operation ID and Swagger permalink while determining why creation returns 200 but retrieval returns 404; use the Semantic and Model Violations Reference to assess the specification issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.