Get-AzQuotaUsage
This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.
Get the current usage of a resource.
Syntax
List (Default)
Get-AzQuotaUsage
-Scope <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzQuotaUsage
-Scope <String>
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Get the current usage of a resource.
Examples
Example 1: List the currents usage of a resource
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
Name NameLocalizedValue UsageUsagesType UsageValue ETag
---- ------------------ --------------- ---------- ----
VirtualNetworks Virtual Networks Individual 2
CustomIpPrefixes Custom Ip Prefixes Individual 0
PublicIpPrefixes Public Ip Prefixes Individual 0
PublicIPAddresses Public IP Addresses Individual 4
......
This command lists the currents usage of a resource
Example 2: Get the current usage of a resource
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Name "MinPublicIpInterNetworkPrefixLength"
Name NameLocalizedValue UsageUsagesType UsageValue ETag
---- ------------------ --------------- ---------- ----
MinPublicIpInterNetworkPrefixLength Public IPv4 Prefix Length Individual 0
This command lists the currents usage of a resource.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
| Type: | PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzureRMContext, AzureCredential |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Name
Resource name for a given resource provider. For example:
- SKU name for Microsoft.Compute
- SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Get
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Scope
The fully qualified Azure Resource manager identifier of the resource.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
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.