Azure Apache Spark pool stuck in ResourceInUnupdatableState

Yaroslav Kazakov 5 Reputation points
2024-07-30T18:50:26.5233333+00:00

At 16.09 GMT+3, first tried to delete the pool and Azure failed.

User's image

The pool then went into a state

“ResourceInUnupdatableState”

All attempts since 17.03 GMT+3 have failed because the pool is stuck in this “ResourceInUnupdatableState” stateUser's image

How can I now delete this pool or at least access logs about failed details?

Azure Synapse Analytics
Azure Synapse Analytics

An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.


1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 91,946 Reputation points
    2024-08-01T06:03:21.44+00:00

    @Yaroslav Kazakov - Thanks for the question and using MS Q&A platform.

    We are sorry to hear that you're having trouble deleting your Azure Synapse Analytics Apache Spark pool. Based on the error message you provided, it seems that the pool is stuck in “ResourceInUnupdatableState”, which means that it cannot be modified or deleted at this time.

    Why this issue occurs?

    This can happen when the spark pool was deleted unsuccessfully in the past. Possibly you had tried to delete the spark pool at a certain point in time unsuccessfully (perhaps due to some dependency) which set the status of the pool to a 'Deleted' state.

    Recommended solution:

    Unfortunately, the only known possibility is to correctly delete the spark pool and re-create it.

    How to delete the Apache spark pool correctly?

    Check if there are any triggers, pipelines, notebooks attached to the Spark pool that they are trying to delete. You can identify the issue is due to the exiting reference with the Spark pool.

    All dependencies with the Spark pool need to be deleted. Also check if there are any Spark job definitions linked to the Spark pool, those need to be deleted before retrying Spark pool deletion.

    On Azure Portal, you can use cloud shell (as it already has Azure CLI, bash, and jq installed). After opening a bash cloud shell, run “az login” to authenticate Azure CLI, your use should have permissions on the workspace level.

    To list the pool’s references in notebooks in workspace, run the following command:

    az synapse notebook list --workspace-name <workspaceName> | jq '.[] | "Notebook: " + .name + ", Pool: " + .properties.bigDataPool.referenceName' | grep <sparkPoolName>
    

    To list the pool’s references in Spark jobs definitions, run the following command:

    az synapse spark-job-definition list --workspace-name <workspaceName> | jq '.[] | "Spark Job: " + .name + ", Pool: " + .properties.targetBigDataPool.referenceName' | grep <sparkPoolName>
    

    To mitigate the issue, we suggest removing these references identified and try deletion again. The spark pool’s reference in notebooks should be removed from all branches. You may need to remove the spark pool’s reference in each branch, publish changes, and delete the spark pool again.

    If none of these solutions works for you, I would request to share more details about your workspace, region and details about the Apache spark pool created.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.