How to disable specific response header when calling Azure Blog Storage - azure

when I called the azure blob storage with REST API, I found inside the response header, it discloses the Server and its version.
Are there any ways to disable the Server key? I don't want the response header showing the Server information.

AFAIK it is not possible to suppress response headers or programmatically control whic response headers to send back.

Related

How to use a Trapper Item without Zabbix S

How do I send a JSON payload to a Zabbix Trapper Item without using Zabbix Sender?
I see the documentation on how to format the sender request and I see the documentation related to the header, but I haven't found how to use the header with a JSON payload.
My goal is to send Azure Activity Logs to Zabbix a Trapper Item using Azure Alerts.
I don't want to setup a Script Item or equivalent that would pull the information from the Azure API, as I would then have to worry about hitting the query limit for the Azure Management APIs and being throttled by the Azure platform.
How is the header incorporated into the request payload?
You need to use an implementation of the same protocol, for example:
in go: https://github.com/adubkov/go-zabbix
in python: https://github.com/adubkov/py-zabbix
and put that in a cloud function to send the payload to Zabbix.

App detailed-Http Logs in Azure App Service for Linux

I hosted a web API on azure app service using a docker image (linux)
And for production purpose I need all http requests to be logged.
I tried " Diagnostic settings (preview)" and I selected "Archive to a storage account"
, But when I checked my logs I found all http request data except request & response body and header.
So, is there a way to log this details for debugging purpose.
Thanks in advance.
You won't get the response body and header values in the AppServiceHTTPLogs. You can find the description of the log over at https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/appservicehttplogs.
The feature; however, is still in preview though so that means you can submit feedback asking to include the body and header values.

Azure Logic app - Send the whole email to a rest call as a .eml attachment

I am trying to create a logic app with email received trigger.
When email has multiple attachments, I am able to loop and make a http call per attachment
However we have to send the whole email as http call by creating .eml file of the email with attachments.
Pls advise
While the built-in actions do not seem to support this out of the box, you can make a Microsoft Graph API call to get the MIME content of a message.
There is no official connector for all available Microsoft Graph APIs, so you would need to use the HTTP with Azure AD Connector instead.
The response body content could then be written to a file in blob storage using the Create Blob Action.

Where can I find my custom HTTP headers in Azure logs?

I have a REST API running on an Azure server. I turned on Application Logging to "verbose". I can now see all my request coming in, but I can't see the HTTP headers sent by the client. I know they're there, because my code receives them. I tried looking at both the the Application and Web server logs under "Log stream" - not there.
Am I looking at the wrong place? Missing a setting? Is this an authorization issue?
Where can I find my custom HTTP headers in Azure logs?
It seems that this feature is still on the backlog but with no concrete ETA. You may upvote the feature request and keep a watch on for the update.

Azure QNA Maker HTTP POST

How do I send a request in the form of json format and get back an answer?
I tried sending a post request but I keep getting "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Is there a format?
Thanks.
See here for sample code to post requests: https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/quickstarts/csharp
QnA Maker is now GA (until recently it was in preview)
PREVIEW Version
POST request to your end-point and you need to set two header parameters in the request
endpoint looks like
https://westus.api.cognitive.microsoft.com/qnamaker/v2.0/knowledgebases/SOME_ID_STRING/generateAnswer
Content-Type=application/json
Ocp-Apim-Subscription-Key=YOUR_SUBSCRIPTION_KEY
GA Version
You will first spin the resource in regular portal and go to qnamaker.ai site to create a KB)
endpoint looks like https://YOUR_END_POINT.azurewebsites.net/qnamaker/knowledgebases/SOME_ID_AFTER_PUBLISHING_KB/generateAnswer
header parameters changed
Content-Type=application/json
Authorization=EndpointKey <YOUR_AUTH_KEY>

Resources