如何使用Azure ARM API获取CloudService(经典)的配置 [英] How to get the configuration of CloudService(classic) with Azure ARM API

查看:109
本文介绍了如何使用Azure ARM API获取CloudService(经典)的配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取CloudService(经典)的配置,我做了以下

I wanted to get the configuration of CloudService(classic), I did the following

1)获取资源ID:Cloudservice-> properties-> resourceID

1) Get the Resource ID: Cloudservice->properties->resourceID

Resource Id: /subscriptions/{mySubscriptionID}/resourceGroups/{myResourceGroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudServicename}/

2)我如下使用了这个resourceID

2) I used this resourceID as follows

https://management.azure.com/ subscriptions/{mySubscriptionID}/resourceGroups/{myResourceGroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudServicename} /deploymentslots/Production?api-version = 2015-06-01

https://management.azure.com/subscriptions/{mySubscriptionID}/resourceGroups/{myResourceGroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudServicename}/deploymentslots/Production?api-version=2015-06-01

它只能在第一次尝试中起作用.

It worked in the first attempt only.

这是正确的方法吗?如果否,请给我一个解决方案

Is this a correct way ? If No, then please give me a solution

注意: 我提到了此链接: https://msdn.microsoft.com/en-us/library/azure/ee460804.aspx

NOTE: I referred this link: https://msdn.microsoft.com/en-us/library/azure/ee460804.aspx

GET https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloudservice-name>/deploymentslots/<deployment-slot>

谢谢 〜HARI

推荐答案

这是正确的方法吗?如果否,请给我一个解决方案

Is this a correct way ? If No, then please give me a solution

我已经创建了一个测试经典的云服务,并使用arm api对其进行了很好的配置.

I have created a test classic cloud service and use the arm api to get the configuration it work well.

可能会获得多次.

我想您的身份验证令牌或api版本可能有问题.

I guess maybe something wrong with your auth token or api-version.

这里有一种简单的方法来获取配置.

Here has an easy way to get the configuration.

您可以访问由azure创建的资源浏览器网站.

You could access the resources explorer site created by azure.

在此站点中,我们可以直接使用arm api获取Azure资源信息(此工具将发送arm api来获取信息,您可以使用F12来检查其发送请求的方式).

In this site, we could directly use the arm api to get the azure resources information(this tool will send arm api to get the information, you could use F12 to check how it send the request).

登录该站点后,您可以搜索您的云服务名称.

After login in this site, you could search your cloud service name.

详细信息,您可以看到此图像:

Details you could see this image:

这篇关于如何使用Azure ARM API获取CloudService(经典)的配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆