Skip to content

Commit 83b43a3

Browse files
author
maddieclayton
authored
Merge pull request Azure#5346 from stevestein/SqlDbAddOnStorage
Update Set-AzureRmSqlDatabase and Set AzureRmSqlElasticPool description and example
2 parents 2a4ab91 + de73129 commit 83b43a3

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

src/ResourceManager/Sql/Commands.Sql/help/Set-AzureRmSqlDatabase.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ Set-AzureRmSqlDatabase [-DatabaseName] <String> -NewName <String> [-AsJob] [-Ser
2929
```
3030

3131
## DESCRIPTION
32-
The **Set-AzureRmSqlDatabase** cmdlet sets properties for an Azure SQL database.
33-
In addition, you can specify the *ElasticPoolName* parameter to move a database into an elastic pool.
34-
If a database is already in an elastic pool, you can use the *RequestedServiceObjectiveName* parameter to assign a performance level.
32+
The **Set-AzureRmSqlDatabase** cmdlet sets properties for a database in Azure SQL Database. This cmdlet can modify the service tier (*Edition*), performance level (*RequestedServiceObjectiveName*), and storage max size (*MaxSizeBytes*) for the database. In addition, you can specify the *ElasticPoolName* parameter to move a database into an elastic pool. If a database is already in an elastic pool, you can use the *RequestedServiceObjectiveName* parameter to move the database out of an elastic pool and into a performance level for single databases.
3533

3634
## EXAMPLES
3735

@@ -85,6 +83,31 @@ Tags :
8583

8684
This command adds a database named Database01 to the elastic pool named ElasticPool01 hosted on the server named Server01.
8785

86+
### Example 3: Modify the storage max size of a database
87+
```
88+
PS C:\>Set-AzureRmSqlDatabase -ResourceGroupName "ResourceGroup01" -DatabaseName "Database01" -ServerName "Server01" -MaxSizeBytes 1099511627776
89+
ResourceGroupName : ResourceGroup01
90+
ServerName : Server01
91+
DatabaseName : Database01
92+
Location : Central US
93+
DatabaseId : a1e6bd1a-735a-4d48-8b98-afead5ef1218
94+
Edition : Standard
95+
CollationName : SQL_Latin1_General_CP1_CI_AS
96+
CatalogCollation :
97+
MaxSizeBytes : 1099511627776
98+
Status : Online
99+
CreationDate : 8/24/2017 9:00:37 AM
100+
CurrentServiceObjectiveId : 789681b8-ca10-4eb0-bdf2-e0b050601b40
101+
CurrentServiceObjectiveName : S3
102+
RequestedServiceObjectiveId : 789681b8-ca10-4eb0-bdf2-e0b050601b40
103+
RequestedServiceObjectiveName :
104+
ElasticPoolName :
105+
EarliestRestoreDate :
106+
Tags :
107+
```
108+
109+
This command updates a database named Database01 to set its max size to 1 TB.
110+
88111
## PARAMETERS
89112

90113
### -AsJob

src/ResourceManager/Sql/Commands.Sql/help/Set-AzureRmSqlElasticPool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Set-AzureRmSqlElasticPool [-ElasticPoolName] <String> [-Edition <DatabaseEdition
2121
```
2222

2323
## DESCRIPTION
24-
The **Set-AzureRmSqlElasticPool** cmdlet modifies properties for an elastic database pool in an Azure SQL Database. This cmdlet can modify the minimum Database Throughput Units (DTUs) per database in addition to the maximum DTUs per database, the number of DTUs for the pool, and the storage limit for the pool.
24+
The **Set-AzureRmSqlElasticPool** cmdlet sets properties for an elastic pool in Azure SQL Database. This cmdlet can modify the eDTUs per pool (*Dtu*), storage max size per pool (*StorageMB*), maximum eDTUs per database (*DatabaseDtuMax*), and minimum eDTUs per database (*DatqabaseDtuMin*).
2525

2626
Several parameters (*-Dtu, -DatabaseDtuMin, and -DatabaseDtuMax*) require the value being set is from the list of valid values for that parameter. For example, -DatabaseDtuMax for a Standard 100 eDTU pool can only be set to 10, 20, 50, or 100. For details about which values are valid, see the table for your specific size pool in [elastic pools](https://docs.microsoft.com/azure/sql-database/sql-database-elastic-pool).
2727

@@ -48,7 +48,7 @@ Tags :
4848
This command modifies properties for an elastic pool named elasticpool01. The command sets the
4949
number of DTUs for the elastic pool to 1000 and sets the minimum and maximum DTUs.
5050

51-
### Example 2: Modify the max storage of an elastic pool
51+
### Example 2: Modify the storage max size of an elastic pool
5252
```
5353
PS C:\>Set-AzureRmSqlDatabaseElasticPool -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -ElasticPoolName "ElasticPool01" -StorageMB 2097152
5454
ResourceId : /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/resourcegroup01/providers/Microsoft.Sql/servers/Server01/elasticPools/ElasticPool01

0 commit comments

Comments
 (0)