Large blobs to Azure Storage

Recently I had an issue whereby I couldn’t add a document with a size > 3MB to Azure blob storage. I store blobs to Azure storage via a custom API App named StorageConnector. To the web.config of this custom API App I had to add two settings to make it work: Node <System.Web> Add: <httpRuntime…

Swagger documentation for Java REST service

If you want the Swagger definition of a .Net WebAPI (or REST service), you can go to: http://host/courseresults/swagger for tyhe Swagger page. http://host/courseresults/swagger/docs/v1 for the Swagger document I didn’t know how to get the same Swagger documentation for a Java REST service. I don’t know if there’s a standard way, but this is how I…

API Management Gateway IP adres

I had a problem connecting to a backend service via API Management. I wanted to check whether the IP address from where the connection was made, i.e. the IP address of the API Management Gateway, wasn’t blocked by the firewall. I found this excellent Azure API Management FAQ with the answer to my question. How can…

Example policy implementation

I have an example policy implementation which can be used as a reference for future implementations. No rocket science, but just an example: <policies> <inbound> <set-variable name=”message-id” value=”@(Guid.NewGuid())” /> <set-variable name=”operation” value=”@(context.Operation.Name)” /> <log-to-eventhub logger-id=”loghuapimtest” partition-id=”0″> @(string.Join(“;”, “MessageId”, “Req_” + context.Variables[“message-id”], DateTime.UtcNow.ToString(“dd-MM-yyyy hh:mm:ss.FFF”), “ApimUrl”, context.Request.OriginalUrl, “BackendUrl”, context.Request.Url, “User”, context.User.Email, “CallerIP”, context.Request.IpAddress)) </log-to-eventhub> <rate-limit-by-key calls=”10″ renewal-period=”60″…

Passwords in app settings

It’s bad practice to store passwords in Azure. Instead I want to include passwords in a secure format (a notation with dots). I found a post which gives me a clue. I will have to try it out. Post: Best practices for deploying passwords and other sensitive data to ASP.NET and Azure App Service. The following…

Retry in Logic Apps

For easy reference this information is taken from the Microsoft Azure site. Note: I added the retry policy to an http action, but I still saw the default retry behavior. The http action is contained in a child workflow. Maybe the child workflow get’s called multiple times because of the failure. Hard to trouleshoot why the…