public async Task TableMigrateToAutoscale() { var database = await CreateTable(null); DatabaseAccountTableThroughputSetting throughput = await database.GetDatabaseAccountTableThroughputSetting().GetAsync(); AssertManualThroughput(throughput.Data); ThroughputSettingsData throughputData = (await throughput.MigrateTableToAutoscaleAsync(WaitUntil.Completed)).Value.Data; AssertAutoscale(throughputData); }
public async Task TableThroughput() { var database = await CreateTable(null); DatabaseAccountTableThroughputSetting throughput = await database.GetDatabaseAccountTableThroughputSetting().GetAsync(); ; Assert.AreEqual(TestThroughput1, throughput.Data.Resource.Throughput); DatabaseAccountTableThroughputSetting throughput2 = (await throughput.CreateOrUpdateAsync(WaitUntil.Completed, new ThroughputSettingsUpdateData(AzureLocation.WestUS, new ThroughputSettingsResource(TestThroughput2, null, null, null)))).Value; Assert.AreEqual(TestThroughput2, throughput2.Data.Resource.Throughput); }