Robertjam954/multimodal_rag_application / .claude/skills/azure-cloud-migrate
azure-cloud-migrate
VerifiedAssess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud Run migration, Fargate to ACA, ECS/Kubernetes/GKE/EKS to Container Apps, Spring Boot to Container Apps, cross-cloud migration.
references/services/functions/runtimes/csharp.md
View on GitHub# C# — Azure Functions Isolated Worker Model Triggers & Bindings
> **Model**: .NET isolated worker model (recommended). Uses attributes on methods/parameters.
> Import: `using Microsoft.Azure.Functions.Worker;`
## HTTP Trigger
```csharp
[Function("HttpFunction")]
public static HttpResponseData Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req,
FunctionContext context)
{
var response = req.CreateResponse(HttpStatusCode.OK);
response.WriteString("Hello!");
return response;
}
```
## Blob Storage
```csharp
// Trigger (EventGrid source)
[Function("BlobTrigger")]
public static void Run(
[BlobTrigger("samples-workitems/{name}", Source = BlobTriggerSource.EventGrid,
Connection = "AzureWebJobsStorage")] string blobContent,
string name, FunctionContext context)
{
context.GetLogger("BlobTrigger").LogInformation($"Blob: {name}");
}
// Input
[BlobInput("input/{name}", Connection = "AzureWebJobsStorage")] string inputBlob
// Output
[BlobOutput("output/{name}", Connection = "AzureWebJobsStorage")] out string outputBlob
```
## Queue Storage
```csharp
// Trigger
[Function("QueueTrigger")]
public static void Run(
[QueueTrigger("myqueue-items", Connection = "AzureWebJobsStorage")] string message,
FunctionContext context)
{
context.GetLogger("Queue").LogInformation($"Message: {message}");
}
// Output (via return type)
[Function("QueueOutput")]
[QueueOutput("outqueue", Connection = "AzureWebJobsStorage")]
public static string Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequestData req)
{
return "queue message";
}
```
## Timer
```csharp
[Function("TimerFunction")]
public static void Run(
[TimerTrigger("0 */5 * * * *")] TimerInfo timer,
FunctionContext context)
{
context.GetLogger("Timer").LogInformation($"Last: {timer.ScheduleStatus?.Last}");
}
```
## Event Grid
```csharp
// Trigger
[Function("EventGridTrigger")]
public static void Run(
[EventGridTrigger] EventGridEvent eventGridEvent,
FunctionContext context)
{
context.GetLogger("EG").LogInformation($"Event: {eventGridEvent.Subject}");
}
// Output
[EventGridOutput(TopicEndpointUri = "MyTopicUri", TopicKeySetting = "MyTopicKey")]
```
## Cosmos DB
```csharp
// Trigger (Change Feed)
[Function("CosmosDBTrigger")]
public static void Run(
[CosmosDBTrigger("mydb", "mycontainer",
Connection = "CosmosDBConnection",
CreateLeaseContainerIfNotExists = true)] IReadOnlyList<MyDocument> documents,
FunctionContext context)
{
foreach (var doc in documents)
context.GetLogger("Cosmos").LogInformation($"Doc: {doc.Id}");
}
// Input
[CosmosDBInput("mydb", "mycontainer", Connection = "CosmosDBConnection",
Id = "{id}", PartitionKey = "{partitionKey}")] MyDocument doc
// Output
[CosmosDBOutput("mydb", "mycontainer", Connection = "CosmosDBConnection")]
```
## Service Bus
```csharp
// Queue Trigger
[Function("SBQueueTrigger")]
public static void Run(
[ServiceBusTrigger("myqueue", Connection = "ServiceBusConnection")] string message,
FunctionContext context)
{
context.GetLogger("SB").LogInformation($"Message: {message}");
}
// Topic Trigger
[Function("SBTopicTrigger")]
public static void Run(
[ServiceBusTrigger("mytopic", "mysubscription",
Connection = "ServiceBusConnection")] string message,
FunctionContext context)
{
context.GetLogger("SB").LogInformation($"Topic: {message}");
}
// Output
[ServiceBusOutput("outqueue", Connection = "ServiceBusConnection")]
```
## Event Hubs
```csharp
// Trigger
[Function("EventHubTrigger")]
public static void Run(
[EventHubTrigger("myeventhub", Connection = "EventHubConnection")] EventData[] events,
FunctionContext context)
{
foreach (var e in events)
context.GetLogger("EH").LogInformation($"Event: {e.EventBody}");
}
// Output
[EventHubOutput("outeventhub", Connection = "EventHubConnection")]
```
## Table Storage
```csharp
// Input
[TableInput("mytable", "{partitionKey}", "{rowKey}",
Connection = "AzureWebJobsStorage")] TableEntity entity
// Output
[TableOutput("mytable", Connection = "AzureWebJobsStorage")]
```
## SQL
```csharp
// Trigger
[Function("SqlTrigger")]
public static void Run(
[SqlTrigger("dbo.MyTable", "SqlConnection")] IReadOnlyList<SqlChange<MyItem>> changes,
FunctionContext context)
{
foreach (var change in changes)
context.GetLogger("SQL").LogInformation($"Change: {change.Item.Id}");
}
// Input
[SqlInput("SELECT * FROM dbo.MyTable WHERE Id = @Id",
"SqlConnection", parameters: "@Id={id}")] IEnumerable<MyItem> items
// Output
[SqlOutput("dbo.MyTable", "SqlConnection")]
```
## SignalR
```csharp
// Output
[SignalROutput(HubName = "myhub", ConnectionStringSetting = "AzureSignalRConnectionString")]
```
## SendGrid
```csharp
[SendGridOutput(ApiKey = "SendGridApiKey", From = "noreply@example.com")]
```
## Multiple Outputs
```csharp
// Use a custom return type for multiple outputs
public class MultiOutput
{
[QueueOutput("outqueue", Connection = "AzureWebJobsStorage")]
public string QueueMessage { get; set; }
public HttpResponseData HttpResponse { get; set; }
}
[Function("MultiOutput")]
public static MultiOutput Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequestData req)
{
return new MultiOutput
{
QueueMessage = "new item",
HttpResponse = req.CreateResponse(HttpStatusCode.OK)
};
}
```
> Full reference: [Azure Functions C# isolated worker guide](https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |