I'm trying to connect Azure data for my company but i meet some issues.
First, with 386 Azure accounts, I can't set correctly my "/packages/api/.env", requests are too long and i get this error :
" Azure ConsumptionManagementClient.usageDetails.list failed. Reason Too many requests"
So i choose to set only my Azure account into "/packages/cli/.env" and start the command : yarn seed-cache-file and export 1 month for example and it works but i've got incorrect data. See results below.
"cloudProvider": "AZURE",
"co2e": 423.6645111507954,
"usesAverageCPUConstant": false,
"serviceName": "Logic Apps",
"accountId": "xxx",
"accountName": "xxx",
"region": "northeurope",
"cost": 1973.4540393325624
And now, let's compare with data provided by Microsoft Azure PowerBI app, "Emission Impact Dashboard"
You can see that Microsoft estimates CO2 consumption for 1 month to 0.09 Tons of CO2, and "Cloud Carbon Footprint" app estimates for 423 Tons of CO2 ! See also for kilowatthours consumption, above 1 million kWh for 1 month for only 1 account !
There is definitively a problem of units...
I also add this issue :
" [ConsumptionManagement] warn: Unexpected usage type for storage service: B DTUs " and so many others... I add as mentionned in "/packages/azure/src/lib/ConsumptionTypes.ts"
export const STORAGE_USAGE_TYPES: string[] = [
'Data Stored',
'Metadata',
'Registry Unit',
'ZRS',
'LRS',
'GRS',
'GZRS',
'Data Retention',
'Pay-as-you-go Data at Rest',
'Standard Instances',
'Node',
'10 DTUs',
'S0 DTUs',
'B DTUs',
'eDTUs',
'On Premises Server Protected Instances',
'Standard Trial Nodes',
'Standard Nodes',
'Azure VM Protected Instances',
'Standard User',
'Microsoft-hosted CI',
'Basic User',
'Multi-step Web Test',
'S0 Secondary Active DTUs',
'Resource Monitored at 5 Minute Frequency',
'VM Replicated to Azure',
]
I also tried to add 'Logic Apps' into
STORAGE_USAGE_TYPES but it changed nothing for the co2e results.
If someone had also problem to estimates CO2 consumption for Azure Logic apps, can you help me to have same results as Microsoft estimations displayed in PowerBI ?
Thanks in advance,
Clement