[BUG] kusto resource deployment failed on CI
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 624
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 220
Description
### 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_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.