Get-​Azure​Sql​Database​Usages

Gets the size and size limit of a SQL Database.

Syntax

Get-AzureSqlDatabaseUsages
   -DatabaseName <String>
   [-Profile <AzureSMProfile>]
   -ServerName <String>
   [<CommonParameters>]

Description

The Get-AzureSqlDatabaseUsages cmdlet gets the current size and size limit of an Azure SQL Database.

Examples

Example 1: Get usage information for a SQL Database

PS C:\> Get-AzureSqlDatabaseUsages -ServerName "Server01" -DatabaseName "Database01"

This command gets the size and size limit information for the SQL Database named Database01 on Server01.

Required Parameters

-DatabaseName

Specifies the name of the Azure SQL Database.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServerName

Specifies the name of the server that hosts the Azure SQL Database.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False