Azure数据工厂-如何批量删除数据集? [英] Azure Data Factory - How to remove data sets in bulk?
问题描述
如何批量删除数据集?我有很多数据集,但是在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屋!