azure - 如何通过调用命令(REST API)获取 Azure 资源部署的配置状态
问题描述
在 Web 应用程序中部署 Web 作业
$t=Invoke-RestMethod -Uri $Url -Headers $Headers -UserAgent $userAgent -Method PUT -InFile $f
解决方案
您可以使用以下 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/
让我知道这是否有帮助!
推荐阅读
- javascript - 在选择框中选择选项时填充使用 jquery 动态生成的输入
- r - 堆叠条形图,x 轴上的样本根据“早期”和“晚期”组排列
- apache-spark - Databricks 和 Spark 中的公用表表达式 (CTE)
- angular - Angular:如何对 HostBinding 属性的更改进行单元测试
- memory-leaks - 使用 LitElement 泄漏的 eventContext
- html - 字体不适用于 React 应用程序
- airflow - 我无法通过 CLI 在清晰的气流中使用开始日期和结束日期
- r - 与多个类别的定性数据比较
- java - 如何添加字符串列表视图 ArrayAdapter
- python - IG 指标:每个国家/地区所有关注者的总和与总体关注者数量不匹配