Winvision / vsts-tasks

Winvision Build and Release Tasks for Azure DevOps and DevOps Server
MIT License
3 stars 4 forks source link

Setting offer throughput or autopilot on container is not supported for serverless accounts #17

Open tomgron opened 3 years ago

tomgron commented 3 years ago

When trying to create a collection in a serverless CosmosDb I get this error :

2021-03-10T04:32:56.3140412Z ##[error]Setting offer throughput or autopilot on container is not supported for serverless accounts.

I believe the "Throughput" setting in the task should be optional if one uses serverless version of CosmosDb to be used.

tomgron commented 3 years ago

Maybe this line should be changed from default 400 (as throughput) to something else: https://github.com/Winvision/vsts-tasks/blob/fb39155b1f8bb6b48a1039b63a93467fe0ee8007/cosmosdb-tasks/Tasks/CosmosDBCollectionManagement/cosmosdb.ts#L52