Skip to content

[BUG] kusto resource deployment failed on CI #1143

@fanyang-mono

Description

@fanyang-mono

Describe the bug

Link to build: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5558527&view=logs&j=aed090f5-6a6c-586f-e63c-45ae930e494b&t=3d8b78fa-0308-50e4-791b-384a51d9dc96

Error message:

CorrelationId: 5371dc3c-f6e5-43cd-a260-273888c0645c". Trying again in 80 seconds...
VERBOSE: 16:47:41 - Template is valid.
VERBOSE: 16:47:42 - Create template deployment 't0890922c8a804e0f'
VERBOSE: 16:47:42 - Checking deployment status in 5 seconds
VERBOSE: Running registered exit actions
VERBOSE: Restoring initial context: ***
ParentContainsErrorRecordException: /mnt/vss/_work/1/s/eng/common/TestResources/TestResources-Helpers.ps1:22
Line |
  22 |              return $Action.Invoke()
     |                     ~~~~~~~~~~~~~~~~
     | Exception calling "Invoke" with "0" argument(s): "The running command
     | stopped because the preference variable "ErrorActionPreference" or
     | common parameter is set to Stop: 16:47:47 - The deployment
     | 't0890922c8a804e0f' failed with error(s). Showing 1 out of 1 error(s).
     | Status Message: Cannot modify resource with id
     | '/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/SSS3PT_rg-t0890922c8a804e0f/providers/Microsoft.Kusto/Clusters/t0890922c8a804e0f' because the resource entity provisioning state is not terminal. Please wait for the provisioning state to become terminal and then retry the request. (Code:RequestConflict)  CorrelationId: 4052340b-bc81-4d10-85e4-cf04b93cdf92"

##[error]PowerShell exited with code '1'.
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/mnt/vss/_work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/5.261.0/RemoveAzContext.ps1'
Disconnect-AzAccount -Scope CurrentUser -ErrorAction Stop
Disconnect-AzAccount -Scope Process -ErrorAction Stop
Clear-AzContext -Scope Process -ErrorAction Stop

Expected behavior

Kusto resource failed to deploy

Actual behavior

Resource deployment should be successful.

Reproduction Steps

It seems to be flaky.

Environment

No response

Metadata

Metadata

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions