A regular Azure API Management service update was started on July 5, 2021, and included the following new features, bug fixes, and other improvements. It may take several weeks for your API Management service to receive the update.
Featured
- Native support for WebSocket APIs is now in preview.
- The cost of additional units in the Premium tier services has been reduced.
New
- You can now emit custom metrics to Azure Application Insights with the new
emit-metric
policy. Documentation will soon be available under this link. - Policy expressions now support
System.Net.IPAddress
. - The policy expressions'
context
object now includes thecontext.Deployment.GatewayId
property. For managed gateways, its value ismanaged
. - You can now export your APIs for consumption in the Power Platform through the dedicated Power Platform page in the Azure portal.
Fixed
- We fixed an issue, which caused Developer tier services in a virtual network to not emit resource health events.
- The validation policies now correctly return:
- Responses with the status code
400 Bad Request
and a precise error description in case of the schema mismatch for errors detected in the incoming requests. - Responses with the status code
502 Bad Gateway
and a generic message in the body for errors detected in the outgoing responses, to not leak API implementation details.
- Responses with the status code
- We fixed an issue, where the validation policies ignored the
nullable
property of JSON schemas. - We fixed an issue, where the validate content policy didn't fail the validation for empty bodies.
- We fixed an issue, where the validation policies modified the format of the JSON payload's properties resembling datetime strings.
- We fixed an issue, where a character sequence
@*
prevented the policy XML document from being saved. - We fixed an issue, where responses with an empty payload and the
Transfer-Encoding: chunked
header were incorrectly classified as completed and the response latency was miscalculated. - We fixed an issue, where successful API requests were marked as non-successful in the Azure Monitor and Azure Application Insights logs if the client disconnected right after receiving the response.
- We fixed an issue, which caused the API gateway endpoint of Consumption services to remain unavailable for a few seconds after the service activation.
Changed
- Validation policies'
error-variable-name
attribute is now optional. - The
firstName
andlastName
properties of theUser
entity no longer accept special characters (for example,<
,>
,:
,;
,(
,)
,\
,/
,@
,!
, and more).