Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Get-AzCognitiveServicesAccountUsage
- Module:
- Az.CognitiveServices Module
Get current usages for a Cognitive Services account.
Syntax
ResourceNameParameterSet (Default)
Get-AzCognitiveServicesAccountUsage
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
InputObjectParameterSet
Get-AzCognitiveServicesAccountUsage
[-InputObject] <PSCognitiveServicesAccount>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameterSet
Get-AzCognitiveServicesAccountUsage
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzCognitiveServicesAccountUsage cmdlet gets current usages for a Cognitive Services account.
Examples
Example 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
Example 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
Example 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
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
| Type: | IAzureContextContainer |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
-InputObject
Cognitive Services Account Object.
Parameter properties
| Type: | PSCognitiveServicesAccount |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Name
Cognitive Services Account Name.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | CognitiveServicesAccountName, AccountName |
Parameter sets
-ResourceGroupName
Resource Group Name.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ResourceId
Cognitive Services Account Resource ID.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
PSCognitiveServicesAccount
String
Outputs
PSCognitiveServicesUsage
Azure PowerShell
Feedback
Was this page helpful?
