英文:
Notebooks can't be deleted from Synapse Live
问题
我的项目正在使用连接到 ADO GIT 的 Azure Synapse 实例。一个 Spark 池的问题需要删除该 Spark 池,但必须先删除所有引用才能执行此操作。我断开了 GIT 连接,尝试从实时会话中删除所有笔记本:
- 选择笔记本并删除 -> Synapse 通知删除并创建发布提示
- 使用 "Publish All" 发布删除操作 -> Synapse 生成 "Publish all - pending changes",显示笔记本将被删除
- 确认发布 -> Synapse 生成 "Publish completed" 通知
这个过程似乎删除了笔记本,但__当浏览器刷新后,"已删除" 笔记本又出现了__。
我尝试了两种解决方法,但都没有成功:
- 通过上下文菜单删除(过程相同;结果相同)
- 连接到空的存储库并将其推送到 "Publish branch"(导致其他对象的丢失,如配置文件,但笔记本仍然存在)
有人知道如何强制从实时工作区中删除笔记本吗?
英文:
My project is using Azure Synapse instance connected to ADO GIT. A spark pool issue requires deleting the spark pool, which can't be done without removing all references. I disconnected the GIT and tried to delete all notebooks from the live session:
- Notebook is selected and deleted -> Synapse notifies about deletion and creates a publish prompt
- The deletion is published using "Publish All" -> Synapse generates "Publish all - pending changes" showing the notebook will be deleted
- Publish is confirmed -> Synapse generates "Publish completed" notification
The process seems to remove the notebook, but when the browser is refreshed, the "deleted" notebook is present again.
I've tried two work-arounds w/o success:
- Delete from thru context menu (process is identical; same results)
- Connected and empty repo and push it into "Publish branch" (resulted in loss of other objects like configuration files, but notebooks are remaining in place)
Does anyone has an idea how to force notebook deletion from the live workspace?
答案1
得分: 1
以下是您要翻译的内容:
"看起来笔记本删除过程未成功完成。
可能是笔记本仍在另一个浏览器标签页或窗口中打开。
请检查此情况。
重新启动 Synapse 工作区,然后尝试再次删除笔记本。
您可以按照以下步骤进行操作:
打开 Azure Synapse Studio 并转到笔记本所在的工作区。
单击笔记本选项卡,找到您要删除的笔记本(Your Notebook)。
右键单击笔记本,从上下文菜单中选择“删除”。
在提示时确认删除。
刷新浏览器页面以确保笔记本已成功删除。
如果上述步骤无法解决问题,您可以通过 PowerShell 命令进行第二种方式。
'Get-Module Az' -ListAvailable
在 PowerShell 中运行此命令,您可以通过运行以下命令检查是否有最新版本:
运行此命令以 Import-Module Az.Synapse
并
运行以下命令以 Get-Command -Module Az.Synapse
列出 Azure Synapse 工作区的所有可用命令。
并在 PowerShell 中导入 Azure Synapse 工作区模块。
运行Get-Command -Module Az.Synapse
命令后,查找
从列表中选择 Remove-AzSynapseNotebook
命令。
运行命令 Remove-AzSynapseNotebook
后,
它将要求您确认 Azure Synapse 工作区名称和要删除的笔记本名称。
再次确认按 Y 或 N
在按下 Y 后,我刷新了 Synapse 工作区并检查了我创建的笔记本,它不再存在于工作区中。"
英文:
It seems like the notebook deletion process is not being completed successfully.
May be the notebook is still open in another browser tab or window
Please check foor this.
Restart the synapse woerkspace and then try to delete the notebook again.
You can follow these stpes
Open the Azure Synapse Studio and go to the workspace where the notebook is located.
Click on the Notebooks tab and locate the notebook(Your Notebook) you want to delete.
Right-click on the notebook and select "Delete" from the context menu.
Confirm the deletion when prompted.
Refresh the browser page to ensure that the notebook has been successfully deleted.
If the above steps do not help resolve the issue the second way you do is Via Power shell command.
Get-Module Az
-ListAvailable
Run this Command in the power shell you can check if you have the latest version by running the following command:
Next Run the below commands to Import-Module Az.Synapse
and Get-Command -Module Az.Synapse
to list all commands availble for the azure synapse workspace.
and import the Azure synapse workspace module on the power shell.
After you run the Get-Command -Module Az.Synapse
command look for the
Remove-AzSynapseNotebook
command from the list.
Once you run the Command the Remove-AzSynapseNotebook
It will ask you to confirm you Azure synapse workspace name and the Notebook name that you want to Delete.
It re confirms to Press Y or N
After I press Y I refershed the Synapse workspace and checked the Notebook I created I no longer there in the workspace.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论