powershell Azure Data Factory的有用powershell cmdlet

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell Azure Data Factory的有用powershell cmdlet相关的知识,希望对你有一定的参考价值。

#
# ManipulateADF.ps1
#

# automate log-in
$resourceGroupName = "{your_resource_group}"
$azureAccountName = '{your_email}'
$azurePassword = ConvertTo-SecureString '{your_password}' -AsPlainText -Force
$azureRMCredential = New-Object System.Management.Automation.PSCredential($azureAccountName, $azurePassword)
$account = Login-AzureRmAccount -Credential $azureRMCredential

# Remove pipeline
Remove-AzureRmDataFactoryPipeline -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name} {your_pipeline_name}  -Force
#Remove-AzureRmDataFactoryPipeline -ResourceGroupName $resourceGroupName -DataFactoryName ADFBI Pipeline_Copy_Blix  -Force

# Suspend pipeline
Suspend-AzureRmDataFactoryPipeline -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name} {your_pipeline_name}  -Force

# Resume pipeline
Resume-AzureRmDataFactoryPipeline -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name} {your_pipeline_name}  -Force

# Get all datasets
Get-AzureRmDataFactoryDataset -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name}

# Remove dataset individually
Remove-AzureRmDataFactoryDataset -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name} -Name {your_table_name}  -Force

# Remove all datasets
# This is particularly useful to recursively remove all datasets
Get-AzureRmDataFactoryDataset -ResourceGroupName $resourceGroupName -DataFactoryName {your_datafactory_name} | Remove-AzureRmDataFactoryDataset -Force

# Get status of data factory Gateway
# if status is Online, it means your gateway is ready to use
Get-AzureRmDataFactoryGateway -DataFactoryName {your_datafactory_name} -ResourceGroupName $resourceGroupName

以上是关于powershell Azure Data Factory的有用powershell cmdlet的主要内容,如果未能解决你的问题,请参考以下文章

Windows 上安装 Azure PowerShell及Azure PowerShell部署虚拟机

在 Azure Data Lake Gen1 中复制文件/文件夹

Microsoft Azure系列之四 Micorosft Azure Powershell 管理

使用 PowerShell 自动登录Azure

使用 PowerShell 自动登录 Azure

Azure PowerShell批量创建Azure虚拟机