go-azure-sdk icon indicating copy to clipboard operation
go-azure-sdk copied to clipboard

Issue with cosmosdb / API Version 2021-10-15

Open catriona-m opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Service Used

cosmosdb

API Versions Used

2021-10-15

Description

The BackupPolicy property in DatabaseAccountCreateUpdateProperties should be a pointer and should have omitempty in the JSON tags. When it is included in the request as a null block it is causing an error:

Failure sending request: StatusCode=0 -- Original Error: Code="Internal Server Error" Message="Object reference not set to an instance of an object."

References

https://github.com/hashicorp/go-azure-sdk/blob/main/resource-manager/cosmosdb/2021-10-15/cosmosdb/model_databaseaccountcreateupdateproperties.go#L14

catriona-m avatar Mar 22 '23 14:03 catriona-m