【问题标题】:How to get the provisioning state of the azure resource deployment through invoke command (REST API)如何通过调用命令(REST API)获取 Azure 资源部署的配置状态
【发布时间】:2018-08-31 06:55:04
【问题描述】:

在网络应用中部署网络作业

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

【问题讨论】:

    标签: azure powershell provisioning invoke-command


    【解决方案1】:

    您可以使用以下 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-powershellhttps://blog.tekspace.io/access-azure-rest-api-using-powershell/

    如果有帮助,请告诉我!

    【讨论】:

    • 您好,我怎样才能在请求参数中获取id 表示Deployment ID
    • @SunnySharma 我想在 power shell 中执行此操作
    • @JoyWang:您将获得一个部署 ID 以响应 Azure 资源部署请求。
    • @twinklehema:查看我在答案中添加的链接。
    • @SunnySharma 我说的是我们在 arm 部署中看到的配置状态,我们如何获得它?调用命令返回什么我发现它是内容的哈希表
    猜你喜欢
    • 2020-09-23
    • 2017-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-15
    • 1970-01-01
    • 1970-01-01
    • 2021-08-27
    相关资源
    最近更新 更多