Cross post from http://stackoverflow.com/questions/26784762/azure-management-service-rest-api-request-content-invalid
I'm trying to turn on/off network gateway diagnostics as can be seen here: http://msdn.microsoft.com/en-us/library/azure/dn547038.aspx. However, I'm getting the following error message when executing the call:
The
specified request content was not valid and could not be deserialized.
I'm using the following url: https://management.core.windows.net/<subscription-id>/services/networking/<vnet-name>/gateway/publicdiagnostics/
<?xml version="1.0" encoding="utf-8"?><UpdateGatewayPublicDiagnostics><Operation>StopDiagnostics</Operation><CustomerStorageName>*****</CustomerStorageName><CustomerStorageKey>*****</CustomerStorageKey><CaptureDurationInSeconds>300</CaptureDurationInSeconds></UpdateGatewayPublicDiagnostics>