You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've noticed when provisioning a Media Services Account that if one or more Tags are provided, they're returned in the response; however if an empty Map is provided then the tags block is omitted from the API response.
Azure Media Services will omit properties that are not required if they have the default value. As Tags are not a required property, when an empty Tag block is set it is omitted in the API response. We do not plan on changing this behavior.
@akucer this is different to the behaviour of every other Azure API, which returns the value of fields in all cases (such as in this one when there's no elements) - which I believe is part of the ARM Specification - so I'd suggest this might be worth re-considering?
👋
We're using the Media Services API version v25.1.0 via the Azure SDK for Go in this package:
We've noticed when provisioning a Media Services Account that if one or more Tags are provided, they're returned in the response; however if an empty Map is provided then the
tags
block is omitted from the API response.For example, for the following API Request:
gives the following API response:
However when no tags are provided in the Request:
The
tags
block is omitted from the API response:Would it be possible to fix this API to return an empty Tags block when no tags are set?
FYI I've also raised a bug in the Azure SDK for Go where the
mediaServiceId
value isn't parsed out correctly - however this looks to be a Service issue rather than an SDK issue.Thanks!
The text was updated successfully, but these errors were encountered: