Get-AzConsumptionPriceSheet
Obtenha as folhas de preços da subscrição.
Sintaxe
Get-AzConsumptionPriceSheet
[-BillingPeriodName <String>]
[-ExpandMeterDetail]
[-Top <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
O cmdlet Get-AzConsumptionPriceSheet obtém planilhas de preços da assinatura.
Exemplos
Exemplo 1: Obter folhas de preços
Get-AzConsumptionPriceSheet
Id: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601/providers/Microsoft.Consumption/pricesheets/default
Name: default
Type: Microsoft.Consumption/pricesheets
Pricesheets: BillingPeriodId: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601
CurrencyCode: USD
IncludedQuantity: 0
MeterId: BACDDD36-2C2C-46BB-8CFA-D13C15EE4A7E
PartNumber: AAA-49135
UnitOfMeasure: 10 Hours
UnitPrice: 1.33
Exemplo 2: Obter planilhas de preços com a expansão de MeterDetails
Get-AzConsumptionPriceSheet -ExpandMeterDetail
Id: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601/providers/Microsoft.Consumption/pricesheets/default
Name: default
Type: Microsoft.Consumption/pricesheets
Pricesheets: BillingPeriodId: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601
CurrencyCode: USD
IncludedQuantity: 0
MeterDetails: MeterCategory: Virtual Machines
MeterLocation: US North Central
MeterName: Compute Hours
MeterSubCategory: Standard_D11_v2 VM_Promo (Windows)
Unit: Hours
MeterId: BACDDD36-2C2C-46BB-8CFA-D13C15EE4A7E
PartNumber: AAA-49135
UnitOfMeasure: 10 Hours
UnitPrice: 1.33
Exemplo 3: Obter planilhas de preços de BillingPeriodName
Get-AzConsumptionPriceSheet -BillingPeriodName 201712
Id: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601/providers/Microsoft.Consumption/pricesheets/default
Name: default
Type: Microsoft.Consumption/pricesheets
Pricesheets: BillingPeriodId: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601
CurrencyCode: USD
IncludedQuantity: 0
MeterId: 46367D67-1E4C-4ED4-8267-4477083F581C
PartNumber: AAA-53590
UnitOfMeasure: 10 Hours
UnitPrice: 1.37
Exemplo 4: Obter os 5 melhores registos das folhas de preços
Get-AzConsumptionPriceSheet -Top 5
Id: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601/providers/Microsoft.Consumption/pricesheets/default
Name: default
Type: Microsoft.Consumption/pricesheets
Pricesheets: BillingPeriodId: subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d/providers/Microsoft.Billing/billingPeriods/20180601
CurrencyCode: USD
IncludedQuantity: 0
MeterId: BACDDD36-2C2C-46BB-8CFA-D13C15EE4A7E
PartNumber: AAA-49135
UnitOfMeasure: 10 Hours
UnitPrice: 1.33
Parâmetros
-BillingPeriodName
Nome de um período de faturamento específico para obter as planilhas de preços que se associam.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.
Tipo: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-ExpandMeterDetail
Expanda as planilhas de preços com base em MeterDetails.
Tipo: | SwitchParameter |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-Top
Determine o número máximo de registros a serem retornados.
Tipo: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
Entradas
None
Saídas
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure PowerShell