Skip to content

Add GitHub Actions workflow for Managed Identity WebAPI - Publish to WebApp#5751

Merged
gladjohn merged 6 commits intomainfrom
gladjohn-deploy-managed-identity-webapi
Feb 13, 2026
Merged

Add GitHub Actions workflow for Managed Identity WebAPI - Publish to WebApp#5751
gladjohn merged 6 commits intomainfrom
gladjohn-deploy-managed-identity-webapi

Conversation

@gladjohn
Copy link
Copy Markdown
Contributor

@gladjohn gladjohn commented Feb 11, 2026

This workflow automates the build and deployment of the Managed Identity WebAPI to Azure, including steps for restoring dependencies, building the project, publishing the output, and testing the deployed endpoint.

This pull request introduces a new GitHub Actions workflow for automated build and deployment of the Managed Identity WebAPI application. The workflow streamlines the CI/CD process by building, publishing, deploying to Azure, and validating the deployed endpoint.

CI/CD workflow addition:

  • Added .github/workflows/deploy-managed-identity-webapi.yml to automate build and deployment of the ManagedIdentityWebApi app when changes are pushed to main.
  • Configured steps for code checkout, .NET setup, dependency restore, build, publish, and deployment to Azure Web App using the publish profile secret.

Deployment validation:

Here is a successful run - https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/actions/runs/21925738077

Resource - Web App is in the new IDLABS1 lab.

This workflow automates the build and deployment of the Managed Identity WebAPI to Azure, including steps for restoring dependencies, building the project, publishing the output, and testing the deployed endpoint.
@gladjohn gladjohn requested a review from a team as a code owner February 11, 2026 21:42
@gladjohn gladjohn changed the title Add GitHub Actions workflow for Managed Identity WebAPI Add GitHub Actions workflow for Managed Identity WebAPI - Publish to WebApp Feb 11, 2026
@neha-bhargava
Copy link
Copy Markdown
Contributor

Why are we adding this as a workflow?

@gladjohn
Copy link
Copy Markdown
Contributor Author

gladjohn commented Feb 12, 2026

Why are we adding this as a workflow?

Rationale for adding this as a GitHub Actions workflow:

Key Benefits:

- Automated Deployment for Test App: The ManagedIdentityWebApi is a test/dev application used to validate managed identity functionality in MSAL.NET. Automating its deployment ensures it's always up-to-date for testing purposes. We can also remove the sample app testing from release matrix.

- Continuous Validation: The workflow includes a validation step that tests the deployed endpoint, ensuring the managed identity integration works correctly after each change. This catches deployment issues immediately.

Ensured this gets triggered only for changes to main so every PR build does not run this

@gladjohn gladjohn merged commit 99b0bc4 into main Feb 13, 2026
11 checks passed
@gladjohn gladjohn deleted the gladjohn-deploy-managed-identity-webapi branch February 13, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants