Comments (3)
@ranjeetkpGit By "function deployed as Web App", did you mean using the aspnet core integration model on a .NET 8 isolated model? If not, please elaborate what you meant by that.
I could not reproduce the error you are mentioning, when using the code snippet you mentioned locally and when deploying to Azure Linux (consumption) platform. See https://shkr-net8-gh2363-lin-c-20240322.azurewebsites.net/api/timezone (Note: This test app link will expire on 3/29/2024). The method (TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time")
) is returning a non null TimeZoneInfo
object.
Below is the source code I used for my function. You can see the source code of the full app here
[Function("TimeZone")]
public IActionResult GetTimeZone([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequest req)
{
return new OkObjectResult(new
{
RuntimeInformation.FrameworkDescription,
RuntimeInformation.OSDescription,
TimeZone1 = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"),
TimeZone2 = TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time")
});
}
from azure-functions-dotnet-worker.
@kshyju extremely sorry for mistake.
This is not for Azure function but .Net 8 Web API. Editing and moving to app-service-announcements
Azure/app-service-announcements#465
from azure-functions-dotnet-worker.
The app-service-announcements is for team announcements only.
from azure-functions-dotnet-worker.
Related Issues (20)
- Isolated blob trigger function with Identity based connection throws exception
- Document deployment zip structure HOT 1
- The registration for method 'ConfigureFunctionsWebApplication' is expected for ASP.NET Core Integration.AZFW0014 HOT 6
- Update generators to fix the namespace conflict with customer code
- Modifying serializer causes hang HOT 1
- Host logs `System.Net.Sockets.SocketException` to ApplicationInsights when a HTTP request is canceled by the client HOT 3
- `NullReferenceException` in `FunctionMetadataProviderGenerator` after upgrading `Microsoft.Azure.Functions.Worker.Sdk` to `1.17.3` HOT 7
- Update FNH to enable prejitting in placeholder mode.
- Docker images for .NET 9 - Core tools
- Improve testing/validation on E2E and sample apps but treating build warnings as errors
- System.Text.Json Vulnerability in WorkerExtensions.csproj HOT 6
- How to turn off Asp.Net Core Integration on Isolated runtime on v4 with .NET 8 HOT 3
- Release Process Enhancement
- Automate release notes process
- How to access ServiceBus session state in isolated process azure functions? HOT 1
- ServiceBusMessageActions not wrapped into Transaction HOT 1
- Failed to start a new language worker for runtime: dotnet-isolated Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.7"
- Regression in `Microsoft.Azure.Functions.Worker.Sdk` version `1.17.4`/`1.17.3` of solution builds using no-incremental HOT 1
- Migrating from .NET 6 in-proc function to .NET 8 isolated produces error in Azure "Error configuring services in an external startup class." HOT 2
- Generated WorkerExtensions.csproj under obj folder causes Component Governance issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-dotnet-worker.