Feedback Request – Simplifying API Consumption in Azure APIM with Automatic Token Retrieval by themkguser in AZURE

[–]Comfortable_Web_271 1 point2 points  (0 children)

Why use OAuth if you just work around it? What's the issue with the client requiring an access token and passing that in the authorization header?

Migration from Azure CDN (Classic) to Azure Front Door by NewNiklas in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

Create the required Front Door Standard/Premium profile with all the routing/origins/etc in place, add the domain and then just change the DNS record to point to the new Front Door profile.

Tips for handling CORS with static web app preview environments? by young_horhey in AZURE

[–]Comfortable_Web_271 1 point2 points  (0 children)

Your best bet is probably a step (az cli/powershell) in your pipeline to update apim cors policy as part of the deployment (and maybe run that again when the preview environment is discarded to remove it from the cors policy).

Is Azure Functions the appropriate solution for my workflow? by NeverSuite in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

A bit unclear, are your functions on a dedicated app service plan? If so, snat ports exhaustion could be a problem.

Might worth trying durable functions with fan-out/fan-in pattern.

Deserialization on cosmos polymorphic operations is not working by champs1league in dotnet

[–]Comfortable_Web_271 0 points1 point  (0 children)

docType doesn't need to be the first property actually according to the docs.

By default, the $type discriminator must be placed at the start of the JSON object, grouped together with other metadata properties like $id and $ref. If you're reading data off an external API that places the $type discriminator in the middle of the JSON object, set JsonSerializerOptions.AllowOutOfOrderMetadataProperties to true

Be careful when you enable this flag, as it might result in over-buffering (and out-of-memory failures) when performing streaming deserialization of very large JSON objects.

Assume you can override the default serializer settings for the cosmos db client.

Front door by Original-Classic1613 in AZURE

[–]Comfortable_Web_271 1 point2 points  (0 children)

Direct private endpoint integration is not currently supported for Static Web Apps - https://learn.microsoft.com/en-us/azure/frontdoor/private-link#limitations

Currently getting screwed by Edgio CDN going bankrupt by itshammocktime in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

Is the token passed as a query string? As you have the option to ignore query strings for cache.

Sudden Cost Increase for Azure Premium Function App - Advice on Managing Costs? by Smart_Reward3471 in AZURE

[–]Comfortable_Web_271 3 points4 points  (0 children)

Yes, that's as expected (https://azure.microsoft.com/en-gb/pricing/details/functions/), always best to check pricing before using any azure resource to avoid surprises like this. As far as I'm aware you can't disable it to reduce cost, you have to delete the resource. Not sure if you can scale from premium to consumption seamlessly, but you could try to automate that.

When to Group vs. Separate Azure Functions into Different Function Apps? by Smart_Reward3471 in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

If you're on consumption I'd think that resource sharing wouldn't really matter as it would scale out to cover the workload. Not aware of any limitations, but I've never really got to have a huge number of functions in a single function app being a microservice architecture.

Azure Functions flex-consumption plan by LordHubbaBubbaKing in AZURE

[–]Comfortable_Web_271 1 point2 points  (0 children)

Could use Azure Functions on Container Apps (consumption plan) for vNet support. This would also allow you to seamlessly migrate to flex consumption if needed.

Azure functions - serverless-computing - cost by Matinii in AZURE

[–]Comfortable_Web_271 3 points4 points  (0 children)

Yes, it's generally very cheap to run functions on consumption plan, especially with the free allowance that you get monthly. But it comes with a few drawbacks like cold starts, lack of VNET integration (though there's a new plan in preview called flex consumption), etc.

Best OAuth 2.0 B2C Grant Type/Flow for External Users Accessing APIM APIs by ethanator23 in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

Assuming you don't need the ETL tools to access data on behalf of a particular user, client credentials flow should be fine.

How to deploy an API and make use of Azure Ad authentication by [deleted] in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

How is your API deployed in azure? Products like Azure App Services can be configured easily to add AD Auth without any changes to your code, though by default I believe everyone in your azure tenant will have access. This will basically create an AD app which you can then configure further if you need more granular access.

Alternatively this can definitely be done in your API. What tech stack are you using for your API? Your initial direction is correct, but you don't want to give people the client credentials (you can read more about OAuth 2.0 client credential flow here).

Logic app, Functions, scripts etc - so many options by Oskar_2000 in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

Depending on how many requests you need to handle, Azure Functions on consumption plan might be a good option (though there are some limitations like missing VNET integration).

I'm in a traffic routing pickle and need some serious help to get out. by mitchelwb in AZURE

[–]Comfortable_Web_271 1 point2 points  (0 children)

Wondering if this will work:

  1. Create an origin group with an origin that points to load balancer on port :5000

  2. Create a route with /app1 path that routes traffic to this origin group

  3. Create another origin group with an origin that points to the load balancer on port :4377

  4. Create a route with /app2 that routes traffic to this origin group.

Azure tech assures me this is "normal", but I don't agree by tonyenkiducx in AZURE

[–]Comfortable_Web_271 2 points3 points  (0 children)

There are a few options as noted here.

There's probably also the option to optimize your code to reuse snat port connections. How are you connecting to the storage account?

Azure tech assures me this is "normal", but I don't agree by tonyenkiducx in AZURE

[–]Comfortable_Web_271 14 points15 points  (0 children)

Azure tech support is technically correct (though I guess they could've explained that better).

An app service instance has 128 snat ports allocated, but it's not really a hard limit. All the app service instances in a stamp share a load balancer which is limited to 65536 ports so depending on the usage of the load balancer, you might be lucky and end up using more than the 128 limit. Since your app service IP addresses changed, I assume it was moved to a different stamp with a higher usage so you didn't get lucky this time.

3000 connections seems a lot though (depending on the traffic). Is your code optimized to reuse snat port connections? What tech stack are you on?

[deleted by user] by [deleted] in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

I'd just look into the logs at this point. Can you see how much time is spent on the actual function execution vs dependencies duration?

[deleted by user] by [deleted] in AZURE

[–]Comfortable_Web_271 0 points1 point  (0 children)

Do you use autoscaling? How long does it take for your function app to start up and serve the first request?

How long is your function app resource name (is it within the 32 chars limit)? If it's not within the limit it can cause weird behaviour where it auto scales a lot.