Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.6k stars 5.01k forks source link

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

Open ms-henglu opened 1 year ago

ms-henglu commented 1 year ago

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)
ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

Issue Details
## 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)
Author: ms-henglu
Assignees: -
Labels: `Service Attention`, `Web Apps`, `needs-triage`
Milestone: -