EPISODE · Aug 17, 2025 · 21 MIN
Dev Tunnels in Visual Studio for Microsoft 365 App Testing: How to Expose Local Apps Securely for Teams and SharePoint
from M365.FM - Modern work, security, and productivity with Microsoft 365 · host Mirko Peters - Founder of m365.fm, m365.show and m365con.net
Dev Tunnels in Visual Studio for Microsoft 365 App TestingEver built the perfect Teams or Microsoft 365 app locally—only to realize your customer can’t test it without a painful deployment loop? In this episode, I walk through how Dev Tunnels in Visual Studio let you expose your local services as secure, internet‑reachable endpoints in minutes, so Teams, SharePoint and Power Platform can talk to your dev box without publishing to Azure first. You’ll learn how to configure tunnels correctly, avoid accidental over‑exposure, and keep your OAuth redirect URIs stable so your iteration speed goes up without your security posture going down.We start with what Dev Tunnels really are and why that matters for Microsoft 365 apps. A tunnel is more than a temporary URL—it’s a controlled entry point into whatever is running on your machine right now. I break down why that’s so powerful for Teams tabs, SharePoint Framework solutions and webhooks, and why treating tunnels as disposable shortcuts can accidentally expose more of your dev environment than you intended. You’ll hear real scenarios where developers cut their feedback loop from 15‑minute deployments to instant reloads in Teams by routing traffic through a tunnel instead of a staging environment.Then we go step by step through enabling Dev Tunnels in Visual Studio without breaking your existing setup. We look at where to turn tunnels on in project properties, how to choose the right visibility (Public, Public authenticated, Private authenticated), and how to pick a persistent tunnel name so your Entra ID (Azure AD) app registration redirect URIs don’t need constant edits. I also cover practical pitfalls—like IIS Express restarts killing your debug session, or multi‑port projects where you need to plan which service gets tunneled—so tunnels become a transparent layer on top of your workflow instead of a new source of friction.Finally, we dig into the security trade‑offs between public anonymous and private authenticated tunnels. You’ll learn when anonymous access is acceptable (hackathons, quick demos) and when you absolutely want authentication in front of your tunnel, especially if you’re exposing APIs or tenant‑specific apps. By the end, you’ll have a clear mental model: Dev Tunnels as an on‑demand extension of your dev environment into the outside world—with the guardrails set by you, not by accident.WHAT YOU’LL LEARNWhy Dev Tunnels are more than “just a temporary URL” for Microsoft 365 app testing.How to enable and configure Dev Tunnels in Visual Studio without breaking your existing debug setup.How to keep OAuth redirect URIs stable by reusing tunnel names and domains.When to choose public anonymous vs. authenticated tunnels, and what each option means for security.THE CORE INSIGHTThe core insight of this episode is that Dev Tunnels are infrastructure, not a gimmick. Once you treat them as a controlled, identity‑aware extension of your dev environment, you get the best of both worlds: rapid, local iteration for Microsoft 365 apps and safe, predictable external access for teammates, testers and customers.WHO THIS EPISODE IS FORMicrosoft 365 and Teams developers who want faster feedback without constant Azure deployments.Developers and architects responsible for secure dev/test setups in Microsoft 365 environments.Product owners and PMs who need to see and test features live in Teams or SharePoint while they’re still being built.ABOUT THE AUTHOR / HOSTMirko Peters is a Microsoft 365 and app development consultant and host of the M365.FM podcast, helping teams design secure, high‑velocity development workflows for Teams, SharePoint and Power Platform solutions. He works with developers and IT to combine tools like Visual Studio Dev Tunnels, Entra ID and Azure so app testing becomes faster and more collaborative—without weakening the guardrails around dev and test environments.Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-fm-modern-work-security-and-productivity-with-microsoft-365--6704921/support.
What this episode covers
Dev Tunnels in Visual Studio for Microsoft 365 App TestingEver built the perfect Teams or Microsoft 365 app locally—only to realize your customer can’t test it without a painful deployment loop? In this episode, I walk through how Dev Tunnels in Visual Studio let you expose your local services as secure, internet‑reachable endpoints in minutes, so Teams, SharePoint and Power Platform can talk to your dev box without publishing to Azure first. You’ll learn how to configure tunnels correctly, avoid accidental over‑exposure, and keep your OAuth redirect URIs stable so your iteration speed goes up without your security posture going down.We start with what Dev Tunnels really are and why that matters for Microsoft 365 apps. A tunnel is more than a temporary URL—it’s a controlled entry point into whatever is running on your machine right now. I break down why that’s so powerful for Teams tabs, SharePoint Framework solutions and webhooks, and why treating tunnels as disposable shortcuts can accidentally expose more of your dev environment than you intended. You’ll hear real scenarios where developers cut their feedback loop from 15‑minute deployments to instant reloads in Teams by routing traffic through a tunnel instead of a staging environment.Then we go step by step through enabling Dev Tunnels in Visual Studio without breaking your existing setup. We look at where to turn tunnels on in project properties, how to choose the right visibility (Public, Public authenticated, Private authenticated), and how to pick a persistent tunnel name so your Entra ID (Azure AD) app registration redirect URIs don’t need constant edits. I also cover practical pitfalls—like IIS Express restarts killing your debug session, or multi‑port projects where you need to plan which service gets tunneled—so tunnels become a transparent layer on top of your workflow instead of a new source of friction.Finally, we dig into the security trade‑offs between public anonymous and private authenticated tunnels. You’ll learn when anonymous access is acceptable (hackathons, quick demos) and when you absolutely want authentication in front of your tunnel, especially if you’re exposing APIs or tenant‑specific apps. By the end, you’ll have a clear mental model: Dev Tunnels as an on‑demand extension of your dev environment into the outside world—with the guardrails set by you, not by accident.WHAT YOU’LL LEARNWhy Dev Tunnels are more than “just a temporary URL” for Microsoft 365 app testing.How to enable and configure Dev Tunnels in Visual Studio without breaking your existing debug setup.How to keep OAuth redirect URIs stable by reusing tunnel names and domains.When to choose public anonymous vs. authenticated tunnels, and what each option means for security.THE CORE INSIGHTThe core insight of this episode is that Dev Tunnels are...
NOW PLAYING
Dev Tunnels in Visual Studio for Microsoft 365 App Testing: How to Expose Local Apps Securely for Teams and SharePoint
No transcript for this episode yet
Similar Episodes
Mar 26, 2026 ·1m
Mar 19, 2026 ·34m
Feb 18, 2026 ·11m
Feb 11, 2026 ·45m