Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container Fluent creation - Support Autoscale #1677

Closed
wahyuen opened this issue Jul 1, 2020 · 2 comments · Fixed by #1678
Closed

Container Fluent creation - Support Autoscale #1677

wahyuen opened this issue Jul 1, 2020 · 2 comments · Fixed by #1678
Assignees

Comments

@wahyuen
Copy link
Contributor

wahyuen commented Jul 1, 2020

Is your feature request related to a problem? Please describe.
Current documentation recommends that containers are created using the Fluent API, however, there doesn't currently seem to be a way to create a container with Autoscale throughput. It would be great if this was supported.

It appears that ContainerBuilder currently only supports the following contract CreateIfNotExistsAsync(int? throughput)

Describe the solution you'd like
Method overload that supports creating a container with ThroughputProperties
eg.

database.DefineContainer("test", "somekey").Attach()
    .CreaterIfNotExistsAsync(ThroughputProperties.CreateAutoscaleThroughput(10000))

Describe alternatives you've considered

Create a container manually without the fluent API calling Create against the database or do something like the following

var properties = database.DefineContainer("test", "somekey").Attach().Build();
database.CreateContainerIfNotExistsAsync(properties, ThroughputProperties.CreateAutoscaleThroughput(10000));
@j82w j82w self-assigned this Jul 1, 2020
@j82w j82w closed this as completed in #1678 Jul 1, 2020
@j82w
Copy link
Contributor

j82w commented Jul 7, 2020

@wahyuen 3.11.0 is out with the support.

@ghost
Copy link

ghost commented Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants