Upgrade to 1.40 From 1.39.0 on .NET 8
This guide moves an App Store for Intune installation from version 1.39.0 on .NET 8 to a build that runs on .NET 10. You make the change yourself, in your own Azure subscription, in a maintenance window.
Who This Is For
Section titled “Who This Is For”Use this guide if your App Store runs version 1.39.0 on an Azure App Service for Linux whose stack is .NET 8 (LTS), which is DOTNETCORE|8.0. Every 1.39.0 installation is like this.
Check the stack first. It decides which of two paths you take:
| Your installation | Its stack | Path |
|---|---|---|
| 1.39.0, which includes every deployment on the Latest channel until 1.40.0 is published there | .NET 8 (LTS) | Runtime migration. Follow this guide |
| Created on 1.40.0-preview.1 | .NET 8 (LTS) | Runtime migration. Follow this guide. Install Update alone leaves a site that doesn’t start |
| Created on 1.40.0-preview.2 or a later preview | .NET 10 (LTS) | Direct preview update. You don’t need this guide. Select Install Update to take a newer preview in place |
The direct preview update is only for lab and non-production installations on the Preview channel. A production installation runs 1.39.0 on .NET 8 and moves by the runtime migration in this guide, when PowerStacks tells you the build is ready for it.
Why the Move Is Needed
Section titled “Why the Move Is Needed”Version 1.40 runs on .NET 10, and no 1.39 update runs on .NET 10.
.NET 8 reaches end of support on November 10, 2026. .NET 10 is supported until November 14, 2028. End of support stops patches and support. It doesn’t stop the app. Microsoft says that after a runtime’s end of support, apps that use it continue to run unchanged, but App Service can’t provide security patches or related customer support for that runtime, and an app must move to a supported version before it can get App Service support.
So your 1.39.0 site keeps working after November 10, 2026. What you lose is runtime security patches and platform support, so plan to move.
Why Install Update Isn’t the Path From 1.39
Section titled “Why Install Update Isn’t the Path From 1.39”Don’t select Install Update on a 1.39.0 installation to reach 1.40. The reasons:
- A .NET 10 package doesn’t start on a .NET 8 stack. The stack is a setting on the App Service, not part of the package. Install Update replaces the package and leaves the stack alone, so the site wouldn’t start.
- The 1.39 updater doesn’t check the runtime. It reads the version, notes, and files from the release manifest. It would install a .NET 10 package without warning.
- A package can’t fix the stack before it starts. The change has to come from outside the app, so you change the stack and the package address yourself, in one window.
If PowerStacks asked you to set Application__ReleasesBaseUrl to protect your site, Check for Updates reports that you’re on the latest version and doesn’t offer Install Update. That’s the protection working. If you set Release Channel to Staging (Preview Features) on a protected site, the page shows “Unable to check for updates”. That’s the expected state, not a fault.
After you migrate, Install Update is the normal path again. See After the Upgrade.
What Changes and What Doesn’t
Section titled “What Changes and What Doesn’t”The database isn’t moved or recreated. Apart from the one change described next, the migrations that run at first start are additive. In the rehearsals, every existing table’s row count matched before and after, and only the settings this guide changes were different. Application__Version is added if your site didn’t have it. A stack change doesn’t touch the managed identity, its Microsoft Graph permissions, Key Vault references, your custom domain, or your certificates.
One database change rewrites stored values: Install Behavior User becomes System. At first start, every app whose Install Behavior is saved as User is changed to System. Intune never received User: version 1.39.0 saved the choice but installed every Win32 app as System, so this change records what Intune already had, and nothing changes in Intune. In 1.40, you choose System or User when you publish an app, and App settings can’t change it on a published app. The change stays after a rollback. Only restoring the database export you take in step 3 brings back the User values.
Two pages look different right after the upgrade. You check both in Confirm the Upgrade:
- Store Health has a Requests card that shows Accepting or Unavailable, from the license check. The operational status beside it is labeled Infrastructure. When Requests isn’t Accepting, a notice under the cards says why. A new Update check interval row shows the interval set on App Updates.
- Home shows the Welcome Message saved on Branding, which 1.39.0 saved but never showed. It appears at the top of the page when it isn’t empty. If your site still holds a welcome message that App Store shipped with, Home shows the current default message instead. To show none, clear the field on Branding.
The license banner names the cause. Version 1.39.0 showed “This organization is not authorized to use the App Store for Intune” on every page whenever the license wasn’t confirmed. In 1.40, the banner says why requests are unavailable. People who aren’t administrators see, for example, “App Store for Intune isn’t activated yet, so app requests are unavailable.” Administrators see “App requests are unavailable.” followed by the specific reason, for example “No license key is saved. Enter your PowerStacks license key on the License page to activate App Store.”, with an Open License link to the License page. For everyone, request buttons aren’t available while requests are unavailable. A store with a valid license doesn’t show the banner.
AI Assisted Package Validation is off after the upgrade. The new tables for it are empty, nothing is granted, and nothing is created in Azure. App Store creates no virtual machine and calls no AI model until an administrator sets the feature up and turns it on. See AI Assisted Package Validation.
Before You Start
Section titled “Before You Start”| What | Why |
|---|---|
| A maintenance window | The site is stopped while you work. In the best-measured rehearsal pass, the site was down about 7.5 minutes from Stop to its first answer, with evidence capture included. In the run that waited for the export to report completed, it was down about 17 minutes. Book at least 45 minutes, because the export can take up to 30 and you’ll pause to check values |
| The build to move to | PowerStacks gives you its version and its package address before the window. See Which Build You Move To |
| Access to the App Service | The Owner, Contributor, or Website Contributor role. The Reader role can’t open the Environment variables page |
| The SQL server admin login | The database export needs it, even if you’re an Azure administrator. Microsoft states that being an Azure admin doesn’t give admin permissions in Azure SQL Database |
| A storage account and container for the export | The export goes to blob storage. Microsoft states that the Import/Export service doesn’t support storage behind a firewall, immutable storage, or Microsoft Entra authentication when multifactor authentication is required, so use SQL authentication and a container without those |
| A secure place for two files | The environment variables file holds your license key and other sensitive values. Keep it as a secret in Azure Key Vault. The .bacpac holds your data and is several megabytes or more, far larger than a Key Vault secret can hold. Keep it in restricted storage your organization approves for database backups, such as a private container that only administrators can read. Keep the SQL admin password, and any key or connection string for that storage, in Key Vault, not beside the file |
| No publish in progress | In 1.39.0, a restart during publishing can leave the job marked Failed. Check the Activity Log for jobs in progress and let them finish. If a job ends Failed anyway, select Retry on it |
| Both .NET stacks selectable | Open Settings > Configuration > Stack settings and confirm that .NET 10 (LTS) is listed. For a rollback you need .NET 8 (LTS) too. The Azure portal states that .NET 8 (LTS) retires on November 10, 2026. Whether it stays selectable after that date is unknown, so confirm it before your window |
| A notice to your users | The store is unavailable while the site is stopped |
Which Build You Move To
Section titled “Which Build You Move To”PowerStacks names the build for your window.
- Before 1.40.0 is published to Latest, you move to the .NET 10 build that PowerStacks has validated, which is a preview build. Preview builds are labeled for lab and non-production evaluation, and PowerStacks’ preview notices say they aren’t supported in production. Move only when PowerStacks tells you the build is ready for your installation. PowerStacks’ recommended build is the last validated preview, which is the one the Preview channel’s manifest names on the day, because the first-boot check can then confirm the package.
- After 1.40.0 is published to Latest, you move to that release. Its package isn’t at its address on the Latest channel until PowerStacks publishes the release.
Use a versioned package address, which has this shape:
https://bi.powerstacks.com/appstoreforintune/bin/<channel>/AppRequestPortal-<version>.zip
PowerStacks gives you the exact channel folder and version. Don’t use the unversioned AppRequestPortal.zip address.
1. Record the Current State
Section titled “1. Record the Current State”- In the Azure portal, open your App Service.
- Under Settings > Environment variables, select Advanced edit, and copy the JSON to a file you keep. This file holds sensitive values, so store it as a secret in Azure Key Vault.
- Under Settings > Configuration > Stack settings, note the Version. It reads .NET 8 (LTS).
- From the JSON, note the values of three settings:
WEBSITE_RUN_FROM_PACKAGEApplication__Version. If it isn’t there, your site has never taken an in-app update. Note that it’s missing.Application__ReleasesBaseUrl. If PowerStacks had you change it to protect your site, note the changed value, because a rollback restores it.
- Sign in to App Store as an administrator, and note what you’ll compare against later in Confirm the Upgrade: the version that
/api/versionreports now, one app page, one request page, and the last rows of Reports > Analytics > Audit Trail.
If App Store shows the PowerStacks App Store for Intune License Agreement when you sign in, an administrator must select I Accept on Behalf of My Organization before any page opens. If you were added to the Admin Group in the last few minutes, App Store can refuse with “Admin access required to accept the license agreement”, and the Audit Trail records the refusal. Wait 5 minutes, sign out, sign in again, and then accept. Version 1.40 uses the same agreement, version 1.0, so the agreement isn’t shown again after the upgrade.
2. Stop the App Service
Section titled “2. Stop the App Service”On the App Service Overview page, select Stop.
The site can still answer for a short time after Stop. Wait until https://<your site>/api/version no longer reports the version before you start the export. If it still reports it after 2 minutes, check that Stop took effect.
3. Back Up the Database
Section titled “3. Back Up the Database”- Open your database in the Azure portal, and select Export on the toolbar.
- Enter a name for the
.bacpacfile, choose the storage account and container, and enter the SQL server admin login and password. - Select OK. To follow the export, open the SQL server, and then select Import/Export history under Data management.
The site is stopped first because Microsoft states that an export is transactionally consistent only when no write activity is occurring during it. Exports took 80 to 395 seconds in the rehearsals, so allow 10 minutes. The export’s status can lag behind the file: in one rehearsal, the file was written 395 seconds after OK, but the export operation’s status, read through Azure Resource Manager, still said in progress at 13 minutes. That rehearsal didn’t watch Import/Export history. Most of the file is App Store’s WinGet catalog cache, so even a small store’s file is several megabytes. In the rehearsals it was 3.2 to 18.2 MB. Point-in-time restore also stays available.
4. Change the Stack
Section titled “4. Change the Stack”- Under Settings > Configuration > Stack settings, set Version to .NET 10 (LTS), which is
DOTNETCORE|10.0. - Select Apply.
The portal can show the old version after other changes until you reload the page. Reload it and confirm that it reads .NET 10 (LTS) before you go on.
5. Point the Site at the New Build
Section titled “5. Point the Site at the New Build”- Under Settings > Environment variables, change these settings, and then select Apply, select Apply again on the Environment variables page, and select Confirm:
- Set
WEBSITE_RUN_FROM_PACKAGEto the versioned package address PowerStacks gave you. - Set
Application__Versionto that build’s version. If the setting was missing, add it. - Set
Application__ReleasesBaseUrlback to the value it had before any protection, so the site reads the live release channel again. On a site deployed from the template, that value ishttps://bi.powerstacks.com/appstoreforintune/bin/. If your site had no such setting before the protection, remove it.
- Set
Don’t change Release Channel in App Store. It stays on Latest.
The stack in step 4 is a separate Apply. The site stays stopped through both. Don’t redeploy the App Service from the template while your site is protected: the template rewrites both the package address and Application__ReleasesBaseUrl.
6. Start the App Service
Section titled “6. Start the App Service”- On the App Service Overview page, select Start.
- Open
https://<your site>/api/versionand wait until it reports the version you set.
The address can answer 403 or 503 or time out until the site is ready. In the rehearsals the first correct answer came 82 to 218 seconds after Start. Allow 5 minutes before you treat it as a failure. The additive database migrations run at first start, as they do in every upgrade.
Confirm the Upgrade
Section titled “Confirm the Upgrade”Check each of these against the notes you took in step 1:
- The sign-in page loads, and you can sign in.
/api/versionreports the new version.- Store Health shows no new problem. It can stay Degraded for Rollback package protection, as it can before the upgrade. It can also show Apps deleted in Intune if someone removed apps from Intune around your window. Its Requests card shows Accepting when your license lets people request apps. If it doesn’t, the notice under the cards says why. The new Update check interval row reads Healthy with the interval set on App Updates.
- One app page and one request page open and show the data you expect.
- Home shows your Welcome Message, if one is saved on Branding.
- The last rows of Reports > Analytics > Audit Trail are the ones you saw before. The migration adds no audit rows. The Activity Log lists packaging and deployments, not these rows.
In Application Insights, the traces table shows “Recorded the package this instance runs” for the new version when the first-boot check confirmed the package, followed within a minute by “The active package still matches”.
What you might see in the logs. If a newer build was published to the same folder after the one you chose, the first-boot check can log a Warning that it couldn’t confirm the package, and every start can log a Critical entry saying the active package “no longer matches”, until the next in-app update records the new package. Neither appears in Store Health, and neither changes the site. Choosing the build the folder’s manifest names avoids it.
If Something Goes Wrong
Section titled “If Something Goes Wrong”If the site doesn’t answer correctly after 5 minutes, or a check in the previous section fails, check that you applied the stack and all three settings exactly as written, and compare them with your notes. If that doesn’t fix it, roll back.
Recover From a Stopped Window
Section titled “Recover From a Stopped Window”| Where you stopped | What you see | What to do |
|---|---|---|
| The export failed, or it’s still running after 10 minutes | The site is stopped on 1.39.0 and .NET 8, and nothing else has changed | Open Import/Export history. If it shows Completed, go on to step 4. If it shows Failed, read the reason, and then fix it and export again, or select Start to bring 1.39.0 back and plan another window. If it still shows the export running, open the storage container you chose in step 3. If the .bacpac file is there, its size is more than zero, and it was last modified after you selected OK, the export has probably written its file and its status is behind. Keep waiting, up to 30 minutes after you selected OK. You can also check in Azure Cloud Shell with az sql db op list --resource-group <resource group> --server <server> --database <database> --query "[?operation=='ExportDatabase']", which read Succeeded in a rehearsal while the export’s own status still read in progress. If neither shows the export completed 30 minutes after OK, select Start to bring 1.39.0 back, keep the file, and contact PowerStacks. Don’t change the stack without a completed export |
| You changed the stack to .NET 10 in step 4, but not the settings in step 5, and then started the site | The site doesn’t start. The address shows “503 Service Unavailable”, 403, or times out | Select Stop, finish step 5, and then select Start. In the rehearsal, this recovered the site in 112 seconds with nothing lost |
| You changed the settings in step 5, but the stack still reads .NET 8 | The site doesn’t start, because a .NET 10 package doesn’t start on .NET 8 | Select Stop, set the stack to .NET 10 (LTS) as in step 4, reload the page to confirm it, and then select Start. This case wasn’t rehearsed |
| Both changes are in place and match your notes, and the site still doesn’t start after 5 minutes | App Store doesn’t start if a database change fails at first start, and the database can be partly changed | Don’t keep restarting. Contact PowerStacks, and roll back as described next. If 1.39.0 doesn’t start either, the database export from step 3 is the fallback. A restore hasn’t been tested |
| During a rollback, the stack can’t be set back to .NET 8 | .NET 8 (LTS) isn’t in the portal’s list, or the change is refused | See the caution in Roll Back |
Roll Back
Section titled “Roll Back”- Select Stop on the App Service.
- Set the stack back to .NET 8:
-
If .NET 8 (LTS) is listed under Stack settings, set Version to it, and select Apply.
-
If it isn’t listed, open Azure Cloud Shell, set the stack, and read it back. The second command should print
DOTNETCORE|8.0.Terminal window az webapp config set --resource-group <resource group> --name <App Service name> --linux-fx-version "DOTNETCORE|8.0"az webapp config show --resource-group <resource group> --name <App Service name> --query linuxFxVersion
-
- Under Environment variables, set
WEBSITE_RUN_FROM_PACKAGE,Application__Version, andApplication__ReleasesBaseUrlback to the values you recorded in step 1. IfApplication__Versionwasn’t there, delete it. Select Apply, select Apply again on the Environment variables page, and select Confirm. - Select Start, and wait until
/api/versionreports 1.39.0. This took 85 to 268 seconds in the rehearsals, and the address can show the newer version for more than a minute first. - Check the sign-in page, Store Health, one app page, and one request page.
- Select Check for Updates, and confirm that it reports your current version as the latest. If you didn’t set
Application__ReleasesBaseUrlback to its protection value, the rolled-back site is offered the .NET 10 package again, and installing it would fail.
The database keeps the additive changes that the newer build made, and 1.39.0 runs on them. Apps that were changed from User to System stay System. Version 1.40.0-preview.27 adds 21 database changes, for 125 in all, of which 1.39.0 knows 104. An earlier rehearsal ran 1.39.0 on 114 of them. A rollback onto all 125 hasn’t been rehearsed. Every start of the rolled-back site can log a Critical entry saying the active package “no longer matches”, because the record still names the .NET 10 package. It changes nothing and doesn’t show in Store Health.
The rehearsals rolled back without restoring the database. Restoring the .bacpac and a point-in-time restore weren’t tested. Keep the export until you’re sure of the upgrade.
If you need to roll back and .NET 8 (LTS) is no longer selectable after November 10, 2026, contact PowerStacks before you change anything.
After the Upgrade
Section titled “After the Upgrade”Your site now runs on .NET 10, and nothing custom remains on it. The in-app updater reads the Latest channel exactly as before, and every later package on it is .NET 10, so your update path is the same as everyone’s.
- Release Channel stays on Latest. Check for Updates finds nothing newer until PowerStacks publishes 1.40.0 to Latest.
- When it does, Check for Updates offers it as an ordinary update, and you select Install Update. The updater ranks a release above its own pre-releases. In the rehearsal, a lab manifest shaped like the 1.40.0 release made the site offer “Version 1.40.0 is available”. No real 1.40.0 package existed, so nobody installed that offer.
- Install Update refuses a version that’s the same as or older than the one you run, and says so without changing anything.
- To use AI Assisted Package Validation, which is under Automations, first read Check Whether Your Environment Qualifies. It lists the Azure, Windows, Microsoft Entra, Intune, and licensing requirements before you provision anything. The stack change in this guide doesn’t affect it either way.
- If you move to Staging (Preview Features) and back to Latest, Check for Updates reads each channel’s manifest. On a Latest manifest that names an older build, it says “You are running the latest version”.
What the Rehearsal Covered and Didn’t
Section titled “What the Rehearsal Covered and Didn’t”PowerStacks rehearsed this procedure twice in a disposable lab: a Linux App Service on a B2 plan with a Basic-tier SQL database, deployed from the template of the 1.39.0 build. It moved the site to a .NET 10 preview build, took the next preview build through the in-app updater, rolled back to 1.39.0 and moved forward again, and recovered a site that didn’t start after an interrupted migration, with nothing lost.
PowerStacks then ran the guide once more, as written and including the export, on a fresh 1.39.0 installation deployed from the Azure Marketplace package. It moved that site to 1.40.0-preview.27 and compared the stored data before and after. That run’s sample data was smaller: two apps, two requests, two audit rows, and the store and branding settings. Its actions also ran as Azure Resource Manager calls, not portal buttons. The export time, file size, migration count, and log messages in this guide come from it and from the earlier rehearsals.
What the rehearsals didn’t cover:
- Your data. The lab held sample data: an Admin Group, two store settings, a branding title, five published apps, one request each, one pending request, and 16 audit rows. It wasn’t a copy of your installation.
- The portal forms. The stack and settings changes ran with the Azure CLI in Cloud Shell, not by selecting Apply in the portal, because the browser tooling couldn’t reach the portal’s forms. The times for those portal steps are unproven.
- Stop, Start, and the export as portal actions. Stop, Start, and the database export ran as Azure Resource Manager actions, not by selecting the buttons in the portal. A portal page was captured after each step, so the pages show the result of a step and not the step being performed. The export password wasn’t typed into a form.
- Advanced edit. Nobody selected Advanced edit in the portal. The environment variable changes ran with the Azure CLI.
- A site that reached 1.39.0 through the updater. The lab site was deployed fresh on 1.39.0, so no site that arrived at 1.39.0 through Install Update was tested.
- A restore. Neither a
.bacpacrestore nor a point-in-time restore was tried. - A sign-in through your organization’s own MFA. The rehearsal signed in as an administrator with a password, in a lab tenant that asks for no second factor.
- A template redeployment. That a redeployment would restore the older settings comes from reading the template, not from running it.
- The real release host’s answer for a missing manifest. The lab host answers 404. The code takes the same path for any non-success answer, but only 404 ran.
Sources
Section titled “Sources”- Language runtime support policy for Azure App Service: apps continue to run after end of support, with no patches or support.
- Supported languages in Azure Functions and Install .NET SDK with Snap: .NET 8 ends support on November 10, 2026, and .NET 10 on November 14, 2028.
- Configure an App Service app: the Environment variables page, Advanced edit, the Stack settings tab, the roles that can open the page, and that editing app settings restarts the app.
- Export to a BACPAC file: the portal export, the SQL server admin login, Import/Export history, transactional consistency, and the storage and authentication limits.