azure-devops - 在 Powershell 中启动和停止函数应用
问题描述
作为发布过程的一部分,我已停止并重新启动 Azure 函数应用。我导入了 AzurePowerShell 并使用了内联脚本。
enter code here
Stop-AzFunctionApp -Name fn-x-us-ed-HR02 -ResourceGroupName rg-t-HR02
低于错误。
术语“Stop-AzFunctionApp”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。
我尝试了“Stop-AzureRmWebApp”并得到了同样的错误。
我有 4 个功能应用程序,想在部署新应用程序之前停止,然后重新启动。
解决方案
您似乎缺少最新的 Az.Functions 模块。确保从 PowerShell 库中导入 v1.0.0:https ://www.powershellgallery.com/packages/Az.Functions/1.0.0
推荐阅读
- php - 警告:在 Opencart 2.3 的第 4503 行的 /.../Compiler.php 中遇到一个非数字值
- python - 如何从 api 调用中解释 None
- vue.js - vue 3中的属性绑定
- sql - OR 语句似乎在 oracle 中不起作用
- python-3.x - Raspbian OS 运行 Python3 64 位
- python - Flask - 405 Method not allowed with methods=['GET, POST']
- azure-web-app-service - CognitiveServices.Speech Blazor 服务器在发布到 Azure 时不工作
- amazon-web-services - 是否需要附加任何其他策略才能为 aws glue databrew 创建角色?
- python - 从文本分隔符插入数据 | 在 python 脚本中将文件写入 SQL Server 表
- javascript - 为什么momentjs给出错误的结果