有没有办法使用PowerShell获取经典机器的结算信息。我知道我们可以将Res-UsageAggregates用于Resoruce Manager。但我想知道经典设置
答案 0 :(得分:2)
很遗憾,Azure ASM模式中没有与Get-UsageAggregates
相同的cmdlet,因为Get-UsageAggregates会在reportstarttime和reportendtime之间检索报告的订阅使用情况数据,该报告包含结算信息ASM和ARM。
这是我的结果,存储1qportalvhdsxxyczk0sy961是一个经典的存储帐户:
PS > Get-UsageAggregates -ReportedStartTime 1/10/2017 -ReportedEndTime 1/13/2017
Usage :
Usage Start Usage End Name Meter Category Meter Name Quantity
----------- --------- ---- -------------- ---------- --------
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM 1qportalvhdsxxyczk0sy961 Storage Standard IO - Page Blob/Disk (GB) 0.26997 GB
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Identity S1 Domain Services (Hours) 23.9997222222222 Hours
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Networking IP Address Hours 4 Hours
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM 1qportalvhdsxxyczk0sy961 Data Management Standard IO - Table Write Operation Units (in 10,000s) 0.003 10,000s
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM 1qportalvhdsxxyczk0sy961 Storage Standard IO - Table (GB) 0.00001 GB
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/9/2017 12:00:00 AM 1/10/2017 12:00:00 AM Azure App Service Free App Service 0.004032 Apps
1/10/2017 12:00:00 AM 1/11/2017 12:00:00 AM Data Management Standard IO - Block Blob Write Operation Units (in 10,000s) 0.0049 10,000s
1/10/2017 12:00:00 AM 1/11/2017 12:00:00 AM Data Management Standard IO - File Read Operation Units (in 10,000s) 0.0003 10,000s
1/10/2017 12:00:00 AM 1/11/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps
1/10/2017 12:00:00 AM 1/11/2017 12:00:00 AM 1qportalvhdsxxyczk0sy961 Storage Standard IO - Page Blob/Disk (GB) 1.295856 GB
1/10/2017 12:00:00 AM 1/11/2017 12:00:00 AM Visual Studio Free Apps 0.032258064516129 Apps