-
Notifications
You must be signed in to change notification settings - Fork 0
Get ElectricityMapsForAzureRegion
Get ElectricityMaps value for Azure Region
Get-ElectricityMapsForAzureRegion [-Region] <String> [-AuthToken] <String> [<CommonParameters>]
Retrieves the ElectricityMaps value for the specified Azure Region.
Get-ElectricityMapsForAzureRegion -Region "westeurope" -AuthToken $token
"westeurope" | Get-ElectricityMapsForAzureRegion -AuthToken $token
The Azure Region to get the ElectricityMaps value for.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe ElectricityMaps API token to use for authentication.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You will need to register an account for an API token from https://www.co2signal.com/ to use this function. You will also need a connected Azure PowerShell session.
https://github.com/cloudyspells/PSElectricityMaps/wiki/Get-ElectricityMapsForAzureRegion
https://docs.co2signal.com/#get-latest-by-geographic-coordinate
https://docs.microsoft.com/en-us/powershell/module/az.resources/get-azlocation?view=azps-6.4.0