Skip to content
github-actions edited this page Mar 29, 2023 · 4 revisions

PSElectricityMaps Wiki

PowerShell module for ElectricityMaps.com API

PowerShell Module Quality Assurance GitHub release (latest by date) PowerShell Gallery Version PowerShell Gallery

This PowerShell module is intended for retrieving emissions data from ElectricityMaps for a supplied Azure Region during resource deployments. This is a lightweight solution making use of only the limited functionality available with a free account at ElectricityMaps. This means the module is only able to get near-realtime emissions data and no prodictive values. This means this module is not a real solution for reduced carbon deployments and -software. It does however provide some nice realtime values so you can simulate the beheaviour of deployments and software based on emissions data without the cost of a paid account for such data. For example in lab- or proof of concept environments.

The intended use of this module is for setting the Location parameter on Azure IaC deployments in GitHub workflows using the included GitHub action.

For a real-world solution with a commercial data provider, check out the carbon-aware-sdk by the Green Software Foundation

NOTE: ElectricityMaps is currently migrating from co2signal.com. Until migration is finished you will have to register a new account there. The module's API calls also still point to co2signal.com and will be updated by the author as migration proceeds.