This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using Microsoft.Bot.Connector; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Verbose($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}"); | |
var msg = await req.Content.ReadAsAsync<Message>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var builder = DistributedApplication.CreateBuilder(args); | |
var database = builder.AddAzureCosmosDB("cosmos").AddDatabase("iotdb") | |
//.RunAsEmulator() | |
.WithEndpoint(name: "emulator", targetPort: 8080) | |
.WithAnnotation(new ContainerImageAnnotation | |
{ | |
Registry = "<registry name>", | |
Image = "<image name>", | |
Tag = "<tag>" |