azure-patternslisted
Install: claude install-skill Mattakushi432/Claude-Code-Skills-Custom-DevTools-Pack
# Azure Patterns
## AKS Cluster (Bicep)
```bicep
resource aks 'Microsoft.ContainerService/managedClusters@2023-10-01' = {
name: 'myapp-aks'
location: resourceGroup().location
identity: { type: 'SystemAssigned' }
properties: {
dnsPrefix: 'myapp'
enableRBAC: true
aadProfile: {
managed: true
enableAzureRBAC: true
}
agentPoolProfiles: [
{
name: 'system'
count: 2
vmSize: 'Standard_D4s_v3'
osType: 'Linux'
mode: 'System'
enableAutoScaling: true
minCount: 2
maxCount: 5
}
]
networkProfile: {
networkPlugin: 'azure'
networkPolicy: 'azure'
}
addonProfiles: {
azureKeyvaultSecretsProvider: { enabled: true }
omsagent: {
enabled: true
config: { logAnalyticsWorkspaceResourceID: workspace.id }
}
}
}
}
```
## Azure Functions (Python)
```python
import azure.functions as func
import logging
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
@app.route(route="orders/{order_id}", methods=["GET"])
@app.cosmos_db_input(
arg_name="order",
database_name="mydb",
container_name="orders",
id="{order_id}",
partition_key="{order_id}",
connection="CosmosDbConnectionSetting",
)
def get_order(req: func.HttpRequest, order: func.DocumentList) -> func.HttpResponse:
if not order:
return func.HttpResponse("Not found", status_code=404)
return func.HttpResponse(order[0].to_json(