public async Task SqlDatabaseMigrateToAutoscale() { var database = await CreateSqlDatabase(null); DatabaseAccountSqlDatabaseThroughputSetting throughput = await database.GetDatabaseAccountSqlDatabaseThroughputSetting().GetAsync(); AssertManualThroughput(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateSqlDatabaseToAutoscaleAsync(WaitUntil.Completed)).Value.Data; AssertAutoscale(throughputData); }
public async Task SqlDatabaseThroughput() { var database = await CreateSqlDatabase(null); DatabaseAccountSqlDatabaseThroughputSetting throughput = await database.GetDatabaseAccountSqlDatabaseThroughputSetting().GetAsync(); Assert.AreEqual(TestThroughput1, throughput.Data.Resource.Throughput); DatabaseAccountSqlDatabaseThroughputSetting throughput2 = (await throughput.CreateOrUpdateAsync(WaitUntil.Completed, new ThroughputSettingsUpdateData(AzureLocation.WestUS, new ThroughputSettingsResource(TestThroughput2, null, null, null)))).Value; Assert.AreEqual(TestThroughput2, throughput2.Data.Resource.Throughput); }