diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a668dd9..d822810 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Azure Developer CLI", - "image": "mcr.microsoft.com/devcontainers/dotnet:8.0-bookworm", + "image": "mcr.microsoft.com/devcontainers/dotnet:10.0-noble", "features": { // See https://containers.dev/features for list of features diff --git a/README.md b/README.md index c35873b..b4b867f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # quickstart-deploy-aspnet-core-app-service -Quickstart-deploy-aspnet-core-app-service is a demo project showcasing what you can get your application up on Azure using [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/overview)(azd). +Quickstart-deploy-aspnet-core-app-service is a demo project showcasing what you can get your application up on Azure using [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview)(azd). ## Prerequisites @@ -19,7 +19,7 @@ The following prerequisites are required to use this application. Please ensure curl -fsSL https://aka.ms/install-azd.sh | bash ``` -- [.Net SDK 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) +- [.Net SDK 10.0](https://dotnet.microsoft.com/download/dotnet/10.0) - [Git (2.36.1+)](https://git-scm.com/) diff --git a/infra/core/host/appservice-appsettings.bicep b/infra/core/host/appservice-appsettings.bicep index f4b22f8..e29e65c 100644 --- a/infra/core/host/appservice-appsettings.bicep +++ b/infra/core/host/appservice-appsettings.bicep @@ -6,11 +6,11 @@ param name string @secure() param appSettings object -resource appService 'Microsoft.Web/sites@2022-03-01' existing = { +resource appService 'Microsoft.Web/sites@2025-03-01' existing = { name: name } -resource settings 'Microsoft.Web/sites/config@2022-03-01' = { +resource settings 'Microsoft.Web/sites/config@2025-03-01' = { name: 'appsettings' parent: appService properties: appSettings diff --git a/infra/core/host/appservice.bicep b/infra/core/host/appservice.bicep index bef4d2b..70d9d86 100644 --- a/infra/core/host/appservice.bicep +++ b/infra/core/host/appservice.bicep @@ -37,7 +37,7 @@ param use32BitWorkerProcess bool = false param ftpsState string = 'FtpsOnly' param healthCheckPath string = '' -resource appService 'Microsoft.Web/sites@2022-03-01' = { +resource appService 'Microsoft.Web/sites@2025-03-01' = { name: name location: location tags: tags @@ -98,7 +98,7 @@ module configAppSettings 'appservice-appsettings.bicep' = { } // sites/web/config 'logs' -resource configLogs 'Microsoft.Web/sites/config@2022-03-01' = { +resource configLogs 'Microsoft.Web/sites/config@2025-03-01' = { name: 'logs' parent: appService properties: { @@ -110,7 +110,7 @@ resource configLogs 'Microsoft.Web/sites/config@2022-03-01' = { dependsOn: [configAppSettings] } -resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = if (!(empty(keyVaultName))) { +resource keyVault 'Microsoft.KeyVault/vaults@2025-05-01' existing = if (!(empty(keyVaultName))) { name: keyVaultName } diff --git a/infra/core/host/appserviceplan.bicep b/infra/core/host/appserviceplan.bicep index 2e37e04..a91829a 100644 --- a/infra/core/host/appserviceplan.bicep +++ b/infra/core/host/appserviceplan.bicep @@ -7,7 +7,7 @@ param kind string = '' param reserved bool = true param sku object -resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = { +resource appServicePlan 'Microsoft.Web/serverfarms@2025-03-01' = { name: name location: location tags: tags diff --git a/infra/main.bicep b/infra/main.bicep index 6a2b69c..8f3db18 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -42,7 +42,7 @@ var resourceToken = toLower(uniqueString(subscription().id, environmentName, loc // tags: union(tags, { 'azd-service-name': apiServiceName }) // Organize resources in a resource group -resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = { +resource rg 'Microsoft.Resources/resourceGroups@2025-04-01' = { name: !empty(resourceGroupName) ? resourceGroupName : '${abbrs.resourcesResourceGroups}${environmentName}' location: location tags: tags @@ -59,7 +59,7 @@ module web './core/host/appservice.bicep' = { location: location appServicePlanId: appServicePlan.outputs.id runtimeName: 'dotnetcore' - runtimeVersion: '8.0' + runtimeVersion: '10.0' tags: union(tags, { 'azd-service-name': 'web' }) } } diff --git a/src/MyAzureWebApp.csproj b/src/MyAzureWebApp.csproj index 5916bc3..66315f0 100644 --- a/src/MyAzureWebApp.csproj +++ b/src/MyAzureWebApp.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable enable <_EnableMacOSCodeSign>false