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)
- Graceful shutdown of a QueueTrigger function via observing the CancellationToken HOT 2
- HTTP body conversion will throw an InvalidOperationException when the request have an empty body
- [1ES] Investigate dotnet-host.public pipeline windows artifact build issue
- [1ES] Remove `_manifest` folder from FunctionsNetHost nuget payload
- CORS error in Azure Func with Linux Flex Consumption HOT 6
- Inheriting FunctionAttribute not supported? HOT 4
- Error: 'Having multiple overloads of method 'Configure' is not supported.' after upgrading .NET 6.0 to .NET 8.0 using Upgrade Assistant HOT 1
- HttpTrigger GET parameters not mapped to custom class in .NET 8 and isolated HOT 1
- .NET 8 Isolated Logging to Application Insights I can't change LogLevel from Azure Environment Variables
- .NET 8 Isolated function do not startup on Azure environment HOT 2
- Is it possible to disable automatic abandoning of service bus messages? HOT 4
- Kafka Trigger Avro Deserialization for isolated model
- Replacement for ILifeCycleNotificationHelper in Isolated Worker Process
- IFunctionBindingsFeature is internal and pevent unit testing in middleware
- ExtensionStartupRunnerGenerator generating code which conflicts with customer code (namespace)
- Update to Microsoft.Azure.Functions.Worker.Core version 1.18 breaks Open Telemetry Tracing for .net8 isolated function
- Azure function with QueueTrigger fails to pass whitesource scan (Azure Identity Libraries and Microsoft Authentication Library Elevation of Privilege Vulnerability)) HOT 2
- CosmosDBInput returning 500 instead of 404 when item does not exist
- ServiceBusOutput does not support byte[] as claimed HOT 1
- Add support to clear Service Bus session state
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.