I study software design remotely in Argentina, and I'm also a Microsoft Student Ambassador. This week I ran an online workshop on Microsoft Teams for students from my program and other computer science programs. I organized it on my own, with no moderators, and built the slides from scratch because the program's templates weren't available to me at the time.

The plan was to create a web app in Azure App Service, connect it to a GitHub repository and publish every change with a push, all live and with my screen shared. I'd rehearsed the whole thing beforehand with a second repository and a second app, and I still hit three errors, two during the rehearsal and one live in front of everyone.

None of them were hard to fix once I understood them, and they're exactly the kind of errors you'll run into the first time you publish a class project or a portfolio this way. If you're new to the cloud, a message full of policy names can look much scarier than it is, so here's what happened, why it happens and what to do about it.

Why App Service for a class project

Most of the students wanted the same thing, which is a fast way to put a project online for an assignment without configuring a server. App Service fits that need well, because Microsoft Learn describes it as a fully managed platform for hosting web apps, so you take care of the code and Azure takes care of the infrastructure that runs and scales it.

The Free F1 tier is the only one with no compute charge. According to the official App Service limits, it gives you 60 minutes of CPU per day, 1 GB of storage and 1 GB of memory per plan on a shared instance. You get HTTPS on the azurewebsites.net subdomain, but no custom domains and no deployment slots. Those limits are enough for a class assignment or a demo that only a few people will open.

The app itself was the Node.js sample from the Learn module Host a web application with Azure App Service, with two files.

{ "name": "helloworld", "version": "1.0.0", "scripts": { "start": "node index.js" } } 
const http = require('http'); const server = http.createServer(function (request, response) { response.writeHead(200, { 'Content-Type': 'text/html' }); response.end('<html><body><h1>Hello World!</h1></body></html>'); }); const port = process.env.PORT || 1337; server.listen(port); console.log(`Server running at http://localhost:${port}`); 

The process.env.PORT line matters more than it looks, because the Node.js configuration docs explain that App Service sets the PORT environment variable in the container and forwards incoming requests to that port. An app that listens on a fixed port won't receive those requests, so the site never answers.

The whole flow took four steps, starting with the web app I created in the portal with Node 24 LTS on Linux and the Free F1 plan. Next, I created a public repository with those two files and connected it from the app's Deployment Center, with GitHub as the source, GitHub Actions as the build provider and a user-assigned identity for authentication. Once everything was connected, I pushed a change and we all watched it go live.

Error 1, the region your subscription doesn't allow

This error happened live in front of all the students, when I left the region on West US instead of East US, clicked Review + create and the portal stopped me with this red banner.

Resource 'app-class-project' was disallowed by Azure: This policy maintains a set of best available regions where your subscription can deploy resources. The objective of this policy is to ensure that your subscription has full access to Azure services with optimal performance. 

A notification also popped up saying the deployment validation failed, with the line "The template deployment failed with multiple errors. Please see details for more information."

If you've never seen this, it's easy to think something is wrong with your account, but your account is fine. Microsoft documents it as the region optimization policy, which limits the regions where your subscription can create resources, and the full error message lists the regions you're allowed to use. The list changes from one subscription to another, so the region a tutorial uses might not work for you. The good news is that the portal catches it during validation, before anything gets created.

Fixing it took me less than a minute, since I only had to go back to the Basics tab, change the region to East US and create the app again. A red banner in the middle of a shared screen wasn't how I'd pictured that moment, but solving it in front of everyone let the students see what the error looks like and how little it takes to get past it.

If you want to avoid the error altogether, you can check your list before you create anything. Search for Policy in the portal, go to Authoring and then Assignments, open Allowed resource deployment regions and look at the Allowed locations parameter. I'd checked mine before the workshop, and East US was on it, which is why I knew what to change.

This policy is also why I picked App Service for the workshop in the first place. I'd planned it with Azure Static Web Apps, but the regions that service offered didn't match my allowed list. App Service is available in many more regions, so it's much more likely to overlap with yours, and that's why I'd check your regions before you plan a demo around any specific service.

Error 2, "No subscriptions found" on the first run

When you save the Deployment Center settings, Azure commits a workflow file to .github/workflows and the first run starts right away. During my rehearsal, the deploy job failed at the login step.

Attempting Azure CLI login by using OIDC... Error: No subscriptions found for ***. Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. 

I waited a few minutes, clicked Re-run failed jobs and it worked. With the user-assigned identity option, Azure creates a managed identity, gives it a role on your app and commits the workflow, all at once. The Azure RBAC troubleshooting guide says role assignments can take up to 10 minutes to take effect. If the first run starts before the role is active, the identity logs in fine but can't see any subscription yet.

So if your very first run fails with that message, don't delete anything, because waiting a couple of minutes and re-running the job is usually enough.

While you're in that log, look at the subject

The same log printed the token details, and one line looked different from older tutorials.

subject claim - repo:<owner>@<owner_id>/<repo>@<repo_id>:ref:refs/heads/main 

That's GitHub's immutable subject format, which adds the owner and repository IDs to the token. According to Microsoft's migration guide, GitHub applies it automatically to repositories created, renamed or transferred since July 15, 2026, and existing repositories keep the old name based format until they opt in, as GitHub explained when it announced the change in its changelog.

In my case the Deployment Center credential matched, so login worked once the role was active. If you set up a federated credential by hand and copy an older tutorial, though, the subject won't match a new repository. Microsoft's recommendation is to add a credential with the new subject, confirm the workflow authenticates and then delete the old one.

What Azure put in your repository

The workflow is worth reading once, because it's what runs every time you push. This is the file Azure generated, with the app name changed and the long secret suffixes shortened.

name: Build and deploy Node.js app to Azure Web App - app-class-project on: push: branches: - 'main' workflow_dispatch: jobs: build: runs-on: ubuntu-latest permissions: contents: read steps: - uses: actions/checkout@v4 - name: Set up Node.js version uses: actions/setup-node@v3 with: node-version: '24.x' - name: npm install, build, and test run: | npm install npm run build --if-present npm run test --if-present - name: Upload artifact for deployment job uses: actions/upload-artifact@v4 with: name: node-app path: . deploy: runs-on: ubuntu-latest needs: build permissions: id-token: write contents: read steps: - name: Download artifact from build job uses: actions/download-artifact@v4 with: name: node-app - name: Login to Azure uses: azure/login@v2 with: client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_<ID> }} tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_<ID> }} subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_<ID> }} - name: 'Deploy to Azure Web App' id: deploy-to-webapp uses: azure/webapps-deploy@v3 with: app-name: 'app-class-project' slot-name: 'Production' package: . 

Most of what you'll see in the Actions tab comes from a few lines in this file. The workflow runs on every push to main, and workflow_dispatch adds a Run workflow button so you can deploy by hand. The build job installs dependencies and runs the build and test scripts only if they exist, which is why a project with no build step still passes. The deploy job has id-token: write, which lets it request the token for OpenID Connect. The three secrets are identifiers for the identity, the tenant and the subscription, not passwords, so no credential that could leak ever lives in your repository, and that's the main advantage of this setup.

In my case, the whole run took 52 seconds from the moment I pushed until the green check appeared in the Actions tab.

Error 3, the Log stream that showed nothing

The Log stream is how you find out why an app won't start, so I wanted to show it in the workshop. During the rehearsal, I opened Log stream under Monitoring, reloaded the app and got nothing but a waiting message.

According to the diagnostic logs docs, Linux apps need application logging turned on before the Log stream can show anything. Go to Monitoring, then App Service logs, set Application logging to File System and save. After that, Log stream shows anything your app writes to the console.

The sample prints Server running at... only once, when the app starts, so you won't see that line until the app restarts. Restart the app from Overview or push a new change while the Log stream is open, and you'll catch it.

In the workshop I turned logging on before opening the Log stream, and it worked on the first try. It ended up being the part the students asked about most, because watching your own app's output arrive live makes the cloud feel a lot less like a black box.

In the rehearsal I was also surprised by how long the first load took after a deploy on Free F1, long enough that I thought the app was broken when it was only starting. Keeping the Log stream open while you wait gives you something useful to look at.

What the workshop taught me

Solving an error live, however simple it is, shows that you can teach through your mistakes, and that you keep learning from them yourself while you do it. The rehearsal errors gave me the explanations I used in the workshop, and the live error gave the students a concrete example to remember when it happens to them.

If you're planning your first technical session, rehearse it with a separate repository and a separate app, write down every error you hit and keep those notes next to your slides. You probably won't avoid every mistake, but you'll know what to say when one shows up.

A checklist for your next class project

If you need to put something online fast for an assignment, this is the order I'd follow now.

  1. Check your allowed regions before you create anything.
  2. Make sure your app listens on process.env.PORT and has a start script.
  3. Create the web app on Free F1 with your runtime stack and a region from your list.
  4. Turn on application logging so the Log stream works when you need it.
  5. Connect your repository from Deployment Center with a user-assigned identity.
  6. If the first run fails with "No subscriptions found", wait a few minutes and re-run it.
  7. Delete the resource group when the assignment is graded. Azure for Students gives you USD 100 in credit for 12 months, and GitHub Actions is free on public repositories with standard runners, according to GitHub's billing docs. Even so, cleaning up what you don't use is a good habit, because once your credit runs out, Azure disables your services and subscription.

What broke the first time you deployed something to the cloud, and how long did it take you to figure out why?