Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Microsoft.ApiManagement/service@2023-05-01-preview - Error #29387

Open
ms-henglu opened this issue Jun 11, 2024 · 1 comment
Open

[BUG] Microsoft.ApiManagement/service@2023-05-01-preview - Error #29387

ms-henglu opened this issue Jun 11, 2024 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.

Comments

@ms-henglu
Copy link
Member

API Spec link

TODO

API Spec version

2023-05-01-preview

Describe the bug

In the LRO of delete method, the GET response of the polling requests have an empty response body.

Here're the request traces:

GET /subscriptions/0000/resourceGroups/acctesthenglu611/providers/Microsoft.ApiManagement/service/test?api-version=2023-05-01-preview
Status Code: 200
------------ Request ------------
User-Agent: HashiCorp Terraform/1.8.1 (+https://www.terraform.io) terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
X-Ms-Correlation-Request-Id: 9e38927f-6b11-e55c-fca1-00bed492a15c
Accept: application/json
Authorization: REDACTED

---


------------ Response ------------
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20240611T030132Z:02022ea0-b353-4575-8b6a-e5fd55dbeae6
X-Msedge-Ref: Ref A: 0B6EB9CE0D89427FAD758EA4772E03A7 Ref B: MAA201060513029 Ref C: 2024-06-11T03:01:31Z
Content-Length: 2279
Date: Tue, 11 Jun 2024 03:01:31 GMT
X-Content-Type-Options: nosniff
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Etag: "AAAAAACPWsk="
X-Cache: CONFIG_NOCACHE
X-Ms-Correlation-Request-Id: 9e38927f-6b11-e55c-fca1-00bed492a15c
X-Ms-Ratelimit-Remaining-Subscription-Global-Reads: 3749
Expires: -1
X-Ms-Ratelimit-Remaining-Subscription-Reads: 249
X-Ms-Request-Id: 9e38927f-6b11-e55c-fca1-00bed492a15c
------
{
  "etag": "AAAAAACPWsk=",
  "id": "/subscriptions/0000/resourceGroups/acctesthenglu611/providers/Microsoft.ApiManagement/service/test",
  "identity": {
    "principalId": "7037f88d-4780-40d6-96f3-ab7a9f175098",
    "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a",
    "type": "SystemAssigned"
  },
  "location": "West US",
  "name": "test",
  "properties": {
    "additionalLocations": null,
    "apiVersionConstraint": {
      "minApiVersion": null
    },
    "certificates": null,
    "configurationApi": null,
    "createdAtUtc": "2024-06-11T00:42:33.1964957Z",
    "customProperties": {
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False"
    },
    "dataApiUrl": null,
    "developerPortalStatus": "Disabled",
    "developerPortalUrl": null,
    "gatewayRegionalUrl": null,
    "gatewayUrl": "https://test.azure-api.net",
    "hostnameConfigurations": [
      {
        "certificate": null,
        "certificatePassword": null,
        "certificateSource": "BuiltIn",
        "certificateStatus": null,
        "defaultSslBinding": true,
        "encodedCertificate": null,
        "hostName": "test.azure-api.net",
        "identityClientId": null,
        "keyVaultId": null,
        "negotiateClientCertificate": false,
        "type": "Proxy"
      }
    ],
    "legacyPortalStatus": "Disabled",
    "managementApiUrl": "https://smapi.api-bay-prod-scaleunit-001.p.azurewebsites.net/",
    "natGatewayState": "Enabled",
    "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
    "outboundPublicIPAddresses": [],
    "platformVersion": "undetermined",
    "portalUrl": null,
    "privateEndpointConnections": null,
    "privateIPAddresses": null,
    "provisioningState": "Succeeded",
    "publicIPAddresses": null,
    "publicIpAddressId": null,
    "publicNetworkAccess": "Enabled",
    "publisherEmail": "henglu@microsoft.com",
    "publisherName": "henglu",
    "scmUrl": null,
    "targetProvisioningState": "",
    "virtualNetworkConfiguration": null,
    "virtualNetworkType": "None"
  },
  "sku": {
    "capacity": 1,
    "name": "StandardV2"
  },
  "systemData": null,
  "tags": {},
  "type": "Microsoft.ApiManagement/service",
  "zones": null
}




DELETE /subscriptions/0000/resourceGroups/acctesthenglu611/providers/Microsoft.ApiManagement/service/test?api-version=2023-05-01-preview
Status Code: 202
------------ Request ------------
Accept: application/json
Authorization: REDACTED
User-Agent: HashiCorp Terraform/1.8.1 (+https://www.terraform.io) terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
X-Ms-Correlation-Request-Id: 932c8b26-f596-248a-b311-0d783197daae

---


------------ Response ------------
Cache-Control: no-cache
X-Ms-Ratelimit-Remaining-Subscription-Global-Deletes: 2999
Location: https://management.azure.com/subscriptions/0000//providers/Microsoft.ApiManagement/locations/westus/operationResults/d2VzdHVzOmFjY3Rlc3Q2MTFsaF9UZXJtXzVhMzE4ZGE2?api-version=2023-05-01-preview
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: 932c8b26-f596-248a-b311-0d783197daae
X-Ms-Ratelimit-Remaining-Subscription-Deletes: 199
Content-Length: 2286
Content-Type: application/json; charset=utf-8
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20240611T030137Z:859fe67c-8f74-4ed9-8e42-805923b71e25
X-Cache: CONFIG_NOCACHE
X-Ms-Request-Id: 932c8b26-f596-248a-b311-0d783197daae
X-Msedge-Ref: Ref A: 7BA33209CF674B7783E5E7C0D4ED8DFB Ref B: MAA201060515025 Ref C: 2024-06-11T03:01:35Z
Expires: -1
Retry-After: 20
Azure-Asyncoperation: https://management.azure.com/subscriptions/0000//providers/Microsoft.ApiManagement/locations/westus/operationResults/d2VzdHVzOmFjY3Rlc3Q2MTFsaF9UZXJtXzVhMzE4ZGE2?api-version=2023-05-01-preview
Date: Tue, 11 Jun 2024 03:01:37 GMT
------
{
  "etag": "AAAAAACPW/s=",
  "id": "/subscriptions/0000/resourceGroups/acctesthenglu611/providers/Microsoft.ApiManagement/service/test",
  "identity": {
    "principalId": "7037f88d-4780-40d6-96f3-ab7a9f175098",
    "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a",
    "type": "SystemAssigned"
  },
  "location": "West US",
  "name": "test",
  "properties": {
    "additionalLocations": null,
    "apiVersionConstraint": {
      "minApiVersion": null
    },
    "certificates": null,
    "configurationApi": null,
    "createdAtUtc": "2024-06-11T00:42:33.1964957Z",
    "customProperties": {
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False",
      "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False"
    },
    "dataApiUrl": null,
    "developerPortalStatus": "Disabled",
    "developerPortalUrl": null,
    "gatewayRegionalUrl": null,
    "gatewayUrl": "https://test.azure-api.net",
    "hostnameConfigurations": [
      {
        "certificate": null,
        "certificatePassword": null,
        "certificateSource": "BuiltIn",
        "certificateStatus": null,
        "defaultSslBinding": true,
        "encodedCertificate": null,
        "hostName": "test.azure-api.net",
        "identityClientId": null,
        "keyVaultId": null,
        "negotiateClientCertificate": false,
        "type": "Proxy"
      }
    ],
    "legacyPortalStatus": "Disabled",
    "managementApiUrl": "https://smapi.api-bay-prod-scaleunit-001.p.azurewebsites.net/",
    "natGatewayState": "Enabled",
    "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com",
    "outboundPublicIPAddresses": [],
    "platformVersion": "undetermined",
    "portalUrl": null,
    "privateEndpointConnections": null,
    "privateIPAddresses": null,
    "provisioningState": "Deleting",
    "publicIPAddresses": null,
    "publicIpAddressId": null,
    "publicNetworkAccess": "Enabled",
    "publisherEmail": "henglu@microsoft.com",
    "publisherName": "henglu",
    "scmUrl": null,
    "targetProvisioningState": "Deleting",
    "virtualNetworkConfiguration": null,
    "virtualNetworkType": "None"
  },
  "sku": {
    "capacity": 1,
    "name": "StandardV2"
  },
  "systemData": null,
  "tags": {},
  "type": "Microsoft.ApiManagement/service",
  "zones": null
}








{
  "request": {
    "headers": {
      "Authorization": "REDACTED",
      "User-Agent": "HashiCorp Terraform/1.8.1 (+https://www.terraform.io) terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820",
      "X-Ms-Correlation-Request-Id": "932c8b26-f596-248a-b311-0d783197daae"
    },
    "method": "GET",
    "url": "https://management.azure.com/subscriptions/0000//providers/Microsoft.ApiManagement/locations/westus/operationResults/d2VzdHVzOmFjY3Rlc3Q2MTFsaF9UZXJtXzVhMzE4ZGE2?api-version=2023-05-01-preview",
    "body": ""
  },
  "response": {
    "statusCode": 202,
    "headers": {
      "Cache-Control": "no-cache",
      "Content-Length": "0",
      "Date": "Tue, 11 Jun 2024 03:01:58 GMT",
      "Expires": "-1",
      "Location": "https://management.azure.com/subscriptions/0000/providers/Microsoft.ApiManagement/locations/westus/operationResults/d2VzdHVzOmFjY3Rlc3Q2MTFsaF9UZXJtXzVhMzE4ZGE2?api-version=2023-05-01-preview&t=638536717192226642&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwF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Qp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=GI3KNP1E0zUakC5tcuso5icU_ewmzi2RtsPLMZx1qfXuBYvp3V08Gzi2Eyiw0aZTUWCA69gH1OnqcL69RcvYY6TmQLu521P3esNYpfx3OZ220ubk-EnBgRt7wNOxkgrMmurE5jKEep32buuLcElrN6x3-sI6jWpU-VNyaAkoBK0m-h4Kmlpk8YZt3To4CYJg1Ka-hyLO_8rWDuAQS4uq7Z91fbjRh_4EZNGpQe7UFauNIZXa3gOB-Zf_6drhb7n7iCHKnGkD5lAu6XplIRu1635-iWDo_B00Wxi1X4XCJS7l9AhY3F19ZoMbXTDClUfukkuUtnTosltjA7wb5vAdfQ&h=d405Q2HuxBqlFx6Y30iKqJo_xWynMrYa074Gm1VR_Bw",
      "Pragma": "no-cache",
      "Retry-After": "20",
      "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
      "X-Cache": "CONFIG_NOCACHE",
      "X-Content-Type-Options": "nosniff",
      "X-Ms-Correlation-Request-Id": "932c8b26-f596-248a-b311-0d783197daae",
      "X-Ms-Ratelimit-Remaining-Subscription-Global-Reads": "3749",
      "X-Ms-Ratelimit-Remaining-Subscription-Reads": "249",
      "X-Ms-Request-Id": "932c8b26-f596-248a-b311-0d783197daae",
      "X-Ms-Routing-Request-Id": "SOUTHEASTASIA:20240611T030159Z:a848ab82-ad83-4e5e-86db-b4e572cb10ac",
      "X-Msedge-Ref": "Ref A: 00E03C920616414FB65F4F3D2EBD0649 Ref B: MAA201060515025 Ref C: 2024-06-11T03:01:58Z"
    },
    "body": ""
  }
}


Expected behavior

In previous preview api-version, the response body has a content like the following:

{
      "status": "InProgress"
    }

Actual behavior

The GET response of the polling requests returns empty body.

Reproduction Steps

  1. Create the api management service
  2. Delete the api management service
  3. Call GET API on the request url from the location header of the Delete response.

Environment

No response

@ms-henglu ms-henglu added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 11, 2024
@v-jiaodi v-jiaodi added the Mgmt This issue is related to a management-plane library. label Jun 11, 2024
@v-jiaodi
Copy link
Member

@solankisamir Please help take a look, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

3 participants