broad-zoo-34077
08/27/2021, 6:02 AMbulky-florist-87783
08/27/2021, 6:22 AMbulky-florist-87783
08/27/2021, 6:24 AMflaky-architect-33900
08/27/2021, 6:30 AM{
"query": "{ products(filter: {vendorName: \"azure\",region: \"westus\", service: \"Virtual Machines\", attributeFilters: [{key :\"armSkuName\" , value : \"Standard_M128m\"}]}) { attributes { key, value } prices { USD } } } "
}
bulky-florist-87783
08/27/2021, 6:35 AMthese seems to 3 different compute sizes
your query is matching three computes sizes
M128m Spot
M128m Low Priority
M128m (Standard)
you can change your query to look for specific skuName or preferably meterName
armSkuName are same for all three
flaky-architect-33900
08/27/2021, 7:43 AMbulky-florist-87783
08/27/2021, 8:31 AM# Write your query or mutation here
query {
products(
filter: {
vendorName: "azure",
service: "Virtual Machines",
region: "westus",
attributeFilters: [
{key: "meterName", value: "M128m"},
{key: "armSkuName", value: "Standard_M128m"},
]
},
) {
prices(
filter: {
purchaseOption: "Consumption",
},
) { USD,
purchaseOption
startUsageAmount
unit}
}
}
bulky-florist-87783
08/27/2021, 8:31 AMbulky-florist-87783
08/27/2021, 8:32 AMbulky-florist-87783
08/27/2021, 8:34 AM{
"data": {
"products": [
{
"prices": [
{
"USD": "34.694",
"purchaseOption": "Consumption",
"startUsageAmount": "0",
"unit": "1 Hour"
}
]
},
{
"prices": [
{
"USD": "40.582",
"purchaseOption": "Consumption",
"startUsageAmount": "0",
"unit": "1 Hour"
}
]
}
]
}
}