Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,34 @@
}
}
},
"vite-static": {
"type": "container.v1",
"build": {
"context": "../AspireJavaScript.Vite",
"dockerfile": "vite-static.Dockerfile"
},
"env": {
"NODE_ENV": "production",
"PORT": "{vite-static.bindings.http.targetPort}",
"WEATHERAPI_HTTP": "{weatherapi.bindings.http.url}",
"services__weatherapi__http__0": "{weatherapi.bindings.http.url}",
"WEATHERAPI_HTTPS": "{weatherapi.bindings.https.url}",
"services__weatherapi__https__0": "{weatherapi.bindings.https.url}",
"YARP_ENABLE_STATIC_FILES": "true",
"REVERSEPROXY__ROUTES__api__CLUSTERID": "api",
"REVERSEPROXY__ROUTES__api__MATCH__PATH": "/api/{**catch-all}",
"REVERSEPROXY__CLUSTERS__api__DESTINATIONS__destination1__ADDRESS": "https\u002Bhttp://weatherapi"
},
"bindings": {
"http": {
"scheme": "http",
"protocol": "tcp",
"transport": "http",
"targetPort": 5000,
"external": true
}
}
},
"node": {
"type": "container.v1",
"build": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
RUN npm run build

FROM mcr.microsoft.com/dotnet/nightly/yarp:2.3-preview AS runtime
WORKDIR /app
COPY --from=build /app/dist /app/wwwroot
ENTRYPOINT ["dotnet","/app/yarp.dll"]
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ resource infra_acr 'Microsoft.ContainerRegistry/registries@2025-04-01' = {

output name string = infra_acr.name

output loginServer string = infra_acr.properties.loginServer
output loginServer string = infra_acr.properties.loginServer

output id string = infra_acr.id
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource account_kv_primaryaccesskey__account 'Microsoft.KeyVault/vaults/secrets
parent: account_kv
}

resource api 'Microsoft.App/containerApps@2025-02-02-preview' = {
resource api 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'api'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ param cache_password_value string

param infra_outputs_volumes_cache_0 string

resource cache 'Microsoft.App/containerApps@2025-01-01' = {
resource cache 'Microsoft.App/containerApps@2025-07-01' = {
name: 'cache'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ resource infra_acr 'Microsoft.ContainerRegistry/registries@2025-04-01' = {

output name string = infra_acr.name

output loginServer string = infra_acr.properties.loginServer
output loginServer string = infra_acr.properties.loginServer

output id string = infra_acr.id
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource infra_law 'Microsoft.OperationalInsights/workspaces@2025-02-01' = {
tags: tags
}

resource infra 'Microsoft.App/managedEnvironments@2025-01-01' = {
resource infra 'Microsoft.App/managedEnvironments@2025-07-01' = {
name: take('infra${uniqueString(resourceGroup().id)}', 24)
location: location
properties: {
Expand All @@ -59,7 +59,7 @@ resource infra 'Microsoft.App/managedEnvironments@2025-01-01' = {
tags: tags
}

resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview' = {
resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2025-10-02-preview' = {
name: 'aspire-dashboard'
properties: {
componentType: 'AspireDashboard'
Expand Down Expand Up @@ -95,7 +95,7 @@ resource shares_volumes_cache_0 'Microsoft.Storage/storageAccounts/fileServices/
parent: storageVolumeFileService
}

resource managedStorage_volumes_cache_0 'Microsoft.App/managedEnvironments/storages@2025-01-01' = {
resource managedStorage_volumes_cache_0 'Microsoft.App/managedEnvironments/storages@2025-07-01' = {
name: take('managedstoragevolumescache${uniqueString(resourceGroup().id)}', 24)
properties: {
azureFile: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param infra_outputs_azure_container_registry_endpoint string

param infra_outputs_azure_container_registry_managed_identity_id string

resource pythonapp 'Microsoft.App/containerApps@2025-01-01' = {
resource pythonapp 'Microsoft.App/containerApps@2025-07-01' = {
name: 'pythonapp'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ param env_outputs_azure_container_registry_endpoint string

param env_outputs_azure_container_registry_managed_identity_id string

resource apiservice 'Microsoft.App/containerApps@2025-02-02-preview' = {
resource apiservice 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'apiservice'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ resource env_acr 'Microsoft.ContainerRegistry/registries@2025-04-01' = {

output name string = env_acr.name

output loginServer string = env_acr.properties.loginServer
output loginServer string = env_acr.properties.loginServer

output id string = env_acr.id
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource env_law 'Microsoft.OperationalInsights/workspaces@2025-02-01' = {
tags: tags
}

resource env 'Microsoft.App/managedEnvironments@2025-01-01' = {
resource env 'Microsoft.App/managedEnvironments@2025-07-01' = {
name: take('env${uniqueString(resourceGroup().id)}', 24)
location: location
properties: {
Expand All @@ -59,7 +59,7 @@ resource env 'Microsoft.App/managedEnvironments@2025-01-01' = {
tags: tags
}

resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview' = {
resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2025-10-02-preview' = {
name: 'aspire-dashboard'
properties: {
componentType: 'AspireDashboard'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ param env_outputs_azure_container_registry_endpoint string

param env_outputs_azure_container_registry_managed_identity_id string

resource funcapp 'Microsoft.App/containerApps@2025-02-02-preview' = {
resource funcapp 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'funcapp'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"resources": {
"storage": {
"type": "azure.bicep.v0",
"path": "storage.module.bicep"
},
"funcapp": {
"type": "project.v0",
"path": "../AzureFunctionsWithDts.Functions/AzureFunctionsWithDts.Functions.csproj"
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@description('The location for the resource(s) to be deployed.')
param location string = resourceGroup().location

resource storage 'Microsoft.Storage/storageAccounts@2024-01-01' = {
name: take('storage${uniqueString(resourceGroup().id)}', 24)
kind: 'StorageV2'
location: location
sku: {
name: 'Standard_GRS'
}
properties: {
accessTier: 'Hot'
allowSharedKeyAccess: false
isHnsEnabled: false
minimumTlsVersion: 'TLS1_2'
networkAcls: {
defaultAction: 'Allow'
}
}
tags: {
'aspire-resource-name': 'storage'
}
}

output blobEndpoint string = storage.properties.primaryEndpoints.blob

output dataLakeEndpoint string = storage.properties.primaryEndpoints.dfs

output queueEndpoint string = storage.properties.primaryEndpoints.queue

output tableEndpoint string = storage.properties.primaryEndpoints.table

output name string = storage.name

output id string = storage.id
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ resource infra_acr 'Microsoft.ContainerRegistry/registries@2025-04-01' = {

output name string = infra_acr.name

output loginServer string = infra_acr.properties.loginServer
output loginServer string = infra_acr.properties.loginServer

output id string = infra_acr.id
4 changes: 2 additions & 2 deletions playground/AzureKusto/AzureKusto.AppHost/infra.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource infra_law 'Microsoft.OperationalInsights/workspaces@2025-02-01' = {
tags: tags
}

resource infra 'Microsoft.App/managedEnvironments@2025-01-01' = {
resource infra 'Microsoft.App/managedEnvironments@2025-07-01' = {
name: take('infra${uniqueString(resourceGroup().id)}', 24)
location: location
properties: {
Expand All @@ -59,7 +59,7 @@ resource infra 'Microsoft.App/managedEnvironments@2025-01-01' = {
tags: tags
}

resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview' = {
resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2025-10-02-preview' = {
name: 'aspire-dashboard'
properties: {
componentType: 'AspireDashboard'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param infra_outputs_azure_container_registry_endpoint string

param infra_outputs_azure_container_registry_managed_identity_id string

resource worker 'Microsoft.App/containerApps@2025-02-02-preview' = {
resource worker 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'worker'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ output connectionString string = 'Endpoint=${openai.properties.endpoint}'

output endpoint string = openai.properties.endpoint

output name string = openai.name
output name string = openai.name

output id string = openai.id
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ param env_outputs_azure_container_registry_endpoint string

param env_outputs_azure_container_registry_managed_identity_id string

resource api 'Microsoft.App/containerApps@2025-02-02-preview' = {
resource api 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'api'
location: location
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ resource env_acr 'Microsoft.ContainerRegistry/registries@2025-04-01' = {

output name string = env_acr.name

output loginServer string = env_acr.properties.loginServer
output loginServer string = env_acr.properties.loginServer

output id string = env_acr.id
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource env_law 'Microsoft.OperationalInsights/workspaces@2025-02-01' = {
tags: tags
}

resource env 'Microsoft.App/managedEnvironments@2025-01-01' = {
resource env 'Microsoft.App/managedEnvironments@2025-07-01' = {
name: take('env${uniqueString(resourceGroup().id)}', 24)
location: location
properties: {
Expand All @@ -64,7 +64,7 @@ resource env 'Microsoft.App/managedEnvironments@2025-01-01' = {
tags: tags
}

resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview' = {
resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2025-10-02-preview' = {
name: 'aspire-dashboard'
properties: {
componentType: 'AspireDashboard'
Expand Down
6 changes: 3 additions & 3 deletions playground/DotnetTool/DotnetTool.AppHost/aspire-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"exec",
"dotnet-ef",
"--source",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\2623c613-5a82-4b5a-9f8a-09e9eb9a98c1",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\ad390561-d764-4041-9df8-8f9a31b0823e",
"--ignore-failed-sources",
"--yes",
"--"
Expand All @@ -199,7 +199,7 @@
"exec",
"dotnet-ef",
"--source",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\2623c613-5a82-4b5a-9f8a-09e9eb9a98c1",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\ad390561-d764-4041-9df8-8f9a31b0823e",
"--ignore-failed-sources",
"--version",
"10.0.*",
Expand All @@ -219,7 +219,7 @@
"exec",
"dotnet-ef",
"--source",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\2623c613-5a82-4b5a-9f8a-09e9eb9a98c1",
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\does-not-exist\\ad390561-d764-4041-9df8-8f9a31b0823e",
"--ignore-failed-sources",
"--prerelease",
"--yes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ output aiFoundryApiEndpoint string = foundry.properties.endpoints['AI Foundry AP

output endpoint string = foundry.properties.endpoint

output name string = foundry.name
output name string = foundry.name

output id string = foundry.id
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
@description('The location for the resource(s) to be deployed.')
param location string = resourceGroup().location

resource aif_myfoundry 'Microsoft.CognitiveServices/accounts@2025-09-01' = {
name: take('aifmyfoundry-${uniqueString(resourceGroup().id)}', 64)
location: location
identity: {
type: 'SystemAssigned'
}
kind: 'AIServices'
properties: {
customSubDomainName: toLower(take(concat('aif-myfoundry', uniqueString(resourceGroup().id)), 24))
publicNetworkAccess: 'Enabled'
disableLocalAuth: true
allowProjectManagement: true
}
sku: {
name: 'S0'
}
tags: {
'aspire-resource-name': 'aif-myfoundry'
}
}

resource aif_myfoundry_caphost 'Microsoft.CognitiveServices/accounts/capabilityHosts@2025-10-01-preview' = {
name: 'foundry-caphost'
properties: {
capabilityHostKind: 'Agents'
enablePublicHostingEnvironment: true
}
parent: aif_myfoundry
}

resource chat 'Microsoft.CognitiveServices/accounts/deployments@2025-09-01' = {
name: 'chat'
properties: {
model: {
format: 'OpenAI'
name: 'gpt-4.1'
version: '2025-04-14'
}
}
sku: {
name: 'GlobalStandard'
capacity: 1
}
parent: aif_myfoundry
}

output aiFoundryApiEndpoint string = aif_myfoundry.properties.endpoints['AI Foundry API']

output endpoint string = aif_myfoundry.properties.endpoint

output name string = aif_myfoundry.name

output id string = aif_myfoundry.id
Loading