The issue arose due to the soft delete policy applied to the Log Analytics workspace, which temporarily prevents its deletion to allow for recovery Once this grace period concluded, the associated automation account was successfully deleted, resolving the problem. It's important to note that during the soft delete phase, the workspace and its linked resources remain in a non-functional state, which can impact operations.
Please let me know if you face any challenge here, I can help you to resolve this issue further
Provide your valuable Comments.
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.