Get-AzConsumptionMarketplace
Dapatkan marketplace langganan.
Sintaks
Get-AzConsumptionMarketplace
[-BillingPeriodName <String>]
[-EndDate <DateTime>]
[-InstanceId <String>]
[-InstanceName <String>]
[-ResourceGroup <String>]
[-StartDate <DateTime>]
[-Top <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzConsumptionMarketplace mendapatkan marketplace langganan.
Contoh
Contoh 1: Mendapatkan penggunaan marketplace
Get-AzConsumptionMarketplace -Top 10
BillingPeriodId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201807-1
ConsumedQuantity: 24
Currency: USD
Id: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201807-1/providers/Microsoft.Consumption/marketplaces/018b7291-57a5-e194-65ea-28c3f1db76aa
InstanceId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/resourceGroups/TESTRG1/providers/Microsoft.Compute/virtualMachines/TestVM
InstanceName: TestVM
IsEstimated: false
Name: 018b7291-57a5-e194-65ea-28c3f1db76aa
OfferName: 2b380487-dc18-4e5d-981f-1ee2cc59e776
PretaxCost: 0
ResourceRate: 0
SubscriptionGuid: 6b74c45b-9597-4939-a202-36b2ee8fbb3d
Type: Microsoft.Consumption/usageDetails
UsageEnd: 2018-04-29T00:00:00Z
UsageStart: 2018-04-28T00:00:00Z
Contoh 2: Dapatkan penggunaan marketplace dengan rentang tanggal
Get-AzConsumptionMarketplace -StartDate 2018-01-03 -EndDate 2018-01-20 -Top 10
BillingPeriodId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201803-1
ConsumedQuantity: 24
Currency: USD
Id: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201803-1/providers/Microsoft.Consumption/marketplaces/0ec2bd1e-1cd6-0c75-3661-eaf3f635df33
InstanceId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/resourceGroups/TESTRG1/providers/Microsoft.Compute/virtualMachines/TestVM
InstanceName: TestVM
IsEstimated: false
Name: 0ec2bd1e-1cd6-0c75-3661-eaf3f635df33
OfferName: 2b380487-dc18-4e5d-981f-1ee2cc59e776
PretaxCost: 0
ResourceRate: 0
SubscriptionGuid: 6b74c45b-9597-4939-a202-36b2ee8fbb3d
Type: Microsoft.Consumption/usageDetails
UsageEnd: 2018-01-04T00:00:00Z
UsageStart: 2018-01-03T00:00:00Z
Contoh 3: Dapatkan penggunaan marketplace BillingPeriodName
Get-AzConsumptionMarketplace -BillingPeriodName 201801-1 -Top 10
BillingPeriodId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201801-1
ConsumedQuantity: 24
Currency: USD
Id: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201801-1/providers/Microsoft.Consumption/marketplaces/ea82233a-9f76-7eaa-4478-42bd61cf6287
InstanceId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/resourceGroups/TESTRG1/providers/Microsoft.Compute/virtualMachines/TestVM
InstanceName: TestVM
IsEstimated: false
Name: ea82233a-9f76-7eaa-4478-42bd61cf6287
OfferName: 2b380487-dc18-4e5d-981f-1ee2cc59e776
PretaxCost: 0
ResourceRate: 0
SubscriptionGuid: 6b74c45b-9597-4939-a202-36b2ee8fbb3d
Type: Microsoft.Consumption/usageDetails
UsageEnd: 2017-10-29T00:00:00Z
UsageStart: 2017-10-28T00:00:00Z
Contoh 4: Mendapatkan penggunaan marketplace dengan filter InstanceName
Get-AzConsumptionMarketplace -InstanceName TestVM -Top 10
BillingPeriodId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201807-1
ConsumedQuantity: 24
Currency: USD
Id: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/providers/Microsoft.Billing/billingPeriods/201807-1/providers/Microsoft.Consumption/marketplaces/018b7291-57a5-e194-65ea-28c3f1db76aa
InstanceId: subscriptions/6b74c45b-9597-4939-a202-36b2ee8fbb3d/resourceGroups/TESTRG1/providers/Microsoft.Compute/virtualMachines/TestVM
InstanceName: TestVM
IsEstimated: false
Name: 018b7291-57a5-e194-65ea-28c3f1db76aa
OfferName: 2b380487-dc18-4e5d-981f-1ee2cc59e776
PretaxCost: 0
ResourceRate: 0
SubscriptionGuid: 6b74c45b-9597-4939-a202-36b2ee8fbb3d
Type: Microsoft.Consumption/usageDetails
UsageEnd: 2018-04-29T00:00:00Z
UsageStart: 2018-04-28T00:00:00Z
Parameter
-BillingPeriodName
Nama periode penagihan tertentu untuk mendapatkan marketplace yang terkait.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-EndDate
Tanggal akhir (dalam UTC) marketplace untuk difilter.
Jenis: | Nullable<T>[DateTime] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-InstanceId
Id instans marketplace untuk difilter.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-InstanceName
Nama instans marketplace yang akan difilter.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroup
Grup sumber daya marketplace untuk difilter.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-StartDate
Tanggal mulai (dalam UTC) marketplace untuk difilter.
Jenis: | Nullable<T>[DateTime] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Top
Tentukan jumlah maksimum rekaman yang akan dikembalikan.
Jenis: | Nullable<T>[Int32] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
None