首页 > 解决方案 > 如何通过调用命令(REST API)获取 Azure 资源部署的配置状态

问题描述

在 Web 应用程序中部署 Web 作业

$t=Invoke-RestMethod -Uri $Url -Headers $Headers -UserAgent $userAgent -Method PUT -InFile $f

标签: azurepowershellprovisioninginvoke-command

解决方案


您可以使用以下 Azure Rest API 来获取 Azure Web App 资源的部署状态。

https://docs.microsoft.com/en-us/rest/api/appservice/webapps/getdeployment

有一个不错的“试用”部分,您可以在其中播放此 API,并与您的订阅一起使用。

在此处输入图像描述

编辑 1 请按照此处了解如何通过 Powershell 调用 Azure Rest API:

https://blog.tekspace.io/access-azure-rest-api-using-powershell https://blog.tekspace.io/access-azure-rest-api-using-powershell/

让我知道这是否有帮助!


推荐阅读