Azure数据工厂-如何批量删除数据集? [英] Azure Data Factory - How to remove data sets in bulk?

查看:59
本文介绍了Azure数据工厂-如何批量删除数据集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何批量删除数据集?我有很多数据集,但是在UI上找不到如何删除所有数据集的选项,我也找不到powershell命令.

How to remove data sets in bulk? I have many data sets but could not find an option on the UI how to delete them all, neither I could find a powershell command.

推荐答案

虽然没有此类选项可以删除门户中的所有数据集,但是您可以使用PowerShell代码段来删除它:

While there is no such option to delete all datasets in the portal, you can do so with a PowerShell snippet:

Get-AzureRmDataFactory -ResourceGroupName< rgname>-名称<工厂名称>|Get-AzureRmDataFactoryDataset |Remove-AzureRmDataFactoryDataset

您可能希望将 -Force 附加到 Remove-AzureRmDataFactoryDataset ,这将阻止cmdlet在删除每个数据集之前提示您.请记住,如果某些现有管道正在引用数据集,则无法删除它们.

You may wish to append -Force to Remove-AzureRmDataFactoryDataset, which will stop the cmdlet from prompting you before deleting each dataset. Keep in mind that datasets cannot be deleted if they are being referenced by some existing pipeline.

这篇关于Azure数据工厂-如何批量删除数据集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆