Get-AzCognitiveServicesAccountUsage
Dapatkan penggunaan saat ini untuk akun Cognitive Services.
Sintaks
Get-AzCognitiveServicesAccountUsage
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzCognitiveServicesAccountUsage
[-InputObject] <PSCognitiveServicesAccount>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzCognitiveServicesAccountUsage
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzCognitiveServicesAccountUsage mendapatkan penggunaan saat ini untuk akun Cognitive Services.
Contoh
Contoh 1
Get-AzCognitiveServicesAccountUsage -ResourceGroupName TestUsages -Name TestCVUsages_Prediction
CurrentValue : 0
Name : CustomVision.Prediction.Transactions
Limit : 10000
Status : Included
Unit : Count
QuotaPeriod : 30.00:00:00
NextResetTime : 0001-01-01T00:00:00Z
Contoh 2
$acc = Get-AzCognitiveServicesAccount -ResourceGroupName TestUsages -Name TestCVUsages_Prediction
Get-AzCognitiveServicesAccountUsage -InputObject $acc
CurrentValue : 0
Name : CustomVision.Prediction.Transactions
Limit : 10000
Status : Included
Unit : Count
QuotaPeriod : 30.00:00:00
NextResetTime : 0001-01-01T00:00:00Z
Contoh 3
$acc = Get-AzCognitiveServicesAccount -ResourceGroupName TestUsages -Name TestCVUsages_Prediction
Get-AzCognitiveServicesAccountUsage -ResourceId $acc.Id
CurrentValue : 0
Name : CustomVision.Prediction.Transactions
Limit : 10000
Status : Included
Unit : Count
QuotaPeriod : 30.00:00:00
NextResetTime : 0001-01-01T00:00:00Z
Parameter
-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 |
-InputObject
Objek Akun Cognitive Services.
Jenis: | PSCognitiveServicesAccount |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-Name
Nama Akun Cognitive Services.
Jenis: | String |
Alias: | CognitiveServicesAccountName, AccountName |
Position: | 1 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroupName
Nama Grup Sumber Daya.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceId
ID Sumber Daya Akun Cognitive Services.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |