Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.63k stars 5.08k forks source link

[Azure Kusto] : Parallel Create Kusto database script error #18845

Open sinbai opened 2 years ago

sinbai commented 2 years ago

When creating multiple Kusto database scripts programmatically in parallel by Create Kusto Script API, and calling azure-asyncoperation API to get provisioningState, the following error occurs.

"error":{"code":"ServiceIsInMaintenance","message":"[Conflict] Cluster 'acctestkc' is in process of maintenance for a short period. You may retry to invoke the operation in a few minutes."}

Repro Steps:

  1. Create a Kusto database script "test01" by Create Kusto Script API.
  2. Create a Kusto database script "test02" by Create Kusto Script API.
  3. Call azure-asyncoperation API to obtain the provisioningState of script "test01".
  4. Call azure-asyncoperation API to obtain the provisioningState of script "test02". => got above error

Expected: Scripts "test001" and "test002" could be created successfully. Actual: Script "test001" was created successfully, script "test002" failed to be created.

mojanas commented 2 years ago

Hey all - author of the terraform issue above here - I believe this issue is now resolved in terraform but is still present for those using Bicep. Any update on fixing the bug at the service level? This is blocking the creation of tables (via the scripts) for multiple databases on the same cluster.

sonphnt commented 1 year ago

This has been 1 year since the ticket was created. I have the same with multiple databases and table deployments now with bicep. Have we fixed this for bicep or is there any way to make it work? Thanks.

apalich commented 1 year ago

Is it fixed yet, getting same error when trying add multiple managed private endpoints.

HassanBadir commented 10 months ago

same, this is really an essential simple task, need this to loop through tables instead of duplicating code, can this be fixed in Bicep like in terraform please?