简体   繁体   English

azure计费率卡api返回注意到

[英]azure billing rate card api returns noting

I am trying to call the Azure billing rate card api. 我正在尝试调用Azure计费率卡api。 The call is happening successfully after the authentication because the status code is OK. 验证后呼叫成功发生,因为状态代码正常。 But though I have a vm in the corresponding resource group and subscription, always getting response as: 但是,虽然我在相应的资源组和订阅中有一个vm,但总是得到响应:

{"value":[]} {“值”:[]}

Same is happening in case of azure billing usage api. 在azure计费使用api的情况下也是如此。 I had seen one question asked for billing usage api but I have tried all the options mentioned like keep the duration for 3 months, don't keep future date etc, yet there is no response”: 我已经看到一个问题要求计费使用api但我已经尝试了所有提到的选项,比如保持3个月的持续时间,不要保留未来的日期等,但没有回复“:

{"value":[], nextLink:”https://….”} {“value”:[],nextLink:“https:// ......”}

Please let me know the issue could be abd because of which both rate card and usage api are not returning right data. 请让我知道问题可能是abd,因为价目表和使用api都没有返回正确的数据。

Thanks 谢谢

You were right, I had the same problem and i resolved it on giving 'reader' persmission on my servie account in my subscription . 你是对的,我有同样的问题,我在我的订阅中给我的服务帐户上的'读者'持续时解决了它。

Thx a lot ! 多谢 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM