Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 2.01 KB

Get-AzureRegionWithLowestWattTime.md

File metadata and controls

73 lines (52 loc) · 2.01 KB

Get-AzureRegionWithLowestWattTime

SYNOPSIS

Get the Azure region with the lowest wattTime index

SYNTAX

Get-AzureRegionWithLowestWattTime [-Regions] <String[]> [-AuthToken] <String> [<CommonParameters>]

DESCRIPTION

Get the Azure region with the lowest wattTime index from a given set of regions

EXAMPLES

EXAMPLE 1

Get-AzureRegionWithLowestWattTime -Regions westeurope,northeurope -AuthToken $authToken

PARAMETERS

-Regions

The list of Azure Regions to get the WattTime index for

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AuthToken

The WattTime API authentication token to use for the request

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Management.Automation.PSObject containing the following properties:

- ba: The WattTime ba for the given Azure Region

- percent: The current WattTime index for the given Azure Region

- region: The Azure Region for which the WattTime index was retrieved

NOTES

This command, like the module, requires you to be connected to Azure via Connect-AzAccount

RELATED LINKS

https://github.com/cloudyspells/PSWattTime/blob/main/docs/Get-AzureRegionWithLowestWattTime.md

https://github.com/cloudyspells/PSWattTime/blob/main/docs/Get-WattTimeAuthToken.md