通过powershell导入Azure自动化模块

通过powershell导入Azure自动化模块,powershell,azure,msbuild,azure-automation,Powershell,Azure,Msbuild,Azure Automation,我能够通过ARM和门户上传和使用自动化模块。我想通过powershell上传模块。这可能吗 我的目标是通过我们的构建服务器将自定义模块上传到azure automation。使用ARM或powershell将模块从构建服务器上载到azure是否更好?只需使用powershell,它非常简单: New-AzureRmAutomationModule -ResourceGroupName $rgName -AutomationAccountName $name -Name $moduleName

我能够通过ARM和门户上传和使用自动化模块。我想通过powershell上传模块。这可能吗


我的目标是通过我们的构建服务器将自定义模块上传到azure automation。使用ARM或powershell将模块从构建服务器上载到azure是否更好?

只需使用powershell,它非常简单:

New-AzureRmAutomationModule -ResourceGroupName  $rgName -AutomationAccountName $name -Name $moduleName -ContentLink $moduleUrl
从cmdlet的帮助中获取:

The New-AzureRmAutomationModule cmdlet imports a module into Azure Automation. This command accepts a compressed file that has a .zip file
name extension. The file contains a folder that includes a file that is one of the following types:

- wps_2 module, which has a .psm1 or .dll file name extension

- wps_2 module manifest, which has a .psd1 file name extension


The name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.

Specify the .zip file as a URL that the Automation service can access.

只需使用powershell,它非常简单:

New-AzureRmAutomationModule -ResourceGroupName  $rgName -AutomationAccountName $name -Name $moduleName -ContentLink $moduleUrl
从cmdlet的帮助中获取:

The New-AzureRmAutomationModule cmdlet imports a module into Azure Automation. This command accepts a compressed file that has a .zip file
name extension. The file contains a folder that includes a file that is one of the following types:

- wps_2 module, which has a .psm1 or .dll file name extension

- wps_2 module manifest, which has a .psd1 file name extension


The name of the .zip file, the name of the folder, and the name of the file in the folder must be the same.

Specify the .zip file as a URL that the Automation service can access.