Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 使用Azure SDK的Azure Web作业_Powershell_Azure - Fatal编程技术网

Powershell 使用Azure SDK的Azure Web作业

Powershell 使用Azure SDK的Azure Web作业,powershell,azure,Powershell,Azure,我可以使用Azure Web作业来针对我的Azure环境运行一些计划脚本吗?我已安装Azure Powershell,并且能够在本地连接到我的Azure订阅并运行这些命令 但是,我希望在特定时间运行脚本,以便放大/缩小数据库。当我上传PS1文件的zip时,它会运行吗,还是我需要以某种方式包含Azure powershell位作为依赖项?还有什么我需要考虑的吗?< /P> 如果要使用特定的PowerShell模块,如Azure PowerShell,则必须将bits部署到Web应用程序环境中。你

我可以使用Azure Web作业来针对我的Azure环境运行一些计划脚本吗?我已安装Azure Powershell,并且能够在本地连接到我的Azure订阅并运行这些命令

但是,我希望在特定时间运行脚本,以便放大/缩小数据库。当我上传PS1文件的zip时,它会运行吗,还是我需要以某种方式包含Azure powershell位作为依赖项?还有什么我需要考虑的吗?< /P>

如果要使用特定的PowerShell模块,如Azure PowerShell,则必须将bits部署到Web应用程序环境中。你可以很容易地使用FTP或Kudu将数据拷贝到上面


作为另一种选择,您可能需要考虑使用自动化RunBook替代此任务。您可以为作业创建计划,就像为Web作业创建计划一样,但对于PowerShell脚本,我认为您可能会发现这比尝试从Web作业创建计划更自然。关于此路径的入门信息可用。

感谢Rick不知道自动化Runbook。看起来正是我想要做的