3 questions on Data Factory and the .NET SDK:
1) Is it possible to programmatically delete datasets from a Data Factory via the .NET SDK? I would ideally like to be able to pass the name of a dataset to delete and have it handle that. I've looked through the docs and can't seem to find any clear method.
2) When creating a dataset or pipeline, how can I test the response to see if it was successful.
3) When creating a dataset, is it possible to check the provisioning state and wait until it's been provisioned before creating a pipeline, since datasets must be created before the associated pipeline?
答案 0 :(得分:1)
1)使用Delete和DeleteAsync方法显然可以实现。它们将资源组名称,数据工厂名称和数据集名称作为参数。
遵循此https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-dot-net#create-a-data-factory-client并使用客户端对象来调用该方法。它看起来像client.datasets.Delete(“ResourceGroupName”,“DataFactoryName”,“DatasetName”)
2)如果它没有返回错误,则表示已成功创建。
3)根据我的经验,使用.net sdk时几乎可以立即创建数据集。管道也是如此,你有任何麻烦吗?我甚至不打算检查。