MicrosoftDocs / mslearn-advocates.azure-functions-and-signalr

Sample code repo for Microsoft Learn module: Enable automatic updates in a web application using Azure Functions and SignalR
MIT License
38 stars 255 forks source link

Enable real-time updates in a web application using Azure Functions and SignalR Service Exercise Deployment Fails #90

Closed sirajahmadzai closed 1 month ago

sirajahmadzai commented 3 months ago

I am running into the following error when trying to deploy the application. Not sure what I am missing.

Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
 issuer - https://token.actions.githubusercontent.com
 subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production
Attempting Azure CLI login by using OIDC...
Error: AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production'. Please check your federated identity credential Subject, Audience and Issuer against the presented assertion. https://docs.microsoft.com/en-us/azure/active-directory/develop/workload-identity-federation Trace ID: 9[15](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:16)d52ba-4181-49ad-b614-c8321c3a4400 Correlation ID: e42f5e57-bac2-4c33-86e3-c330510e0d18 Timestamp: 2024-06-20 00:[16](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:17):43Z

Error: Interactive authentication is needed. Please run:
az login

Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.

I following the exercise instructions found here:

https://learn.microsoft.com/en-us/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr

sirajahmadzai commented 3 months ago

@dfberry @craigshoemaker @johnpapa @phkelley can someone please look into this?

diberry commented 2 months ago

@sirajahmadzai Did you run az login before retrying?

diberry commented 2 months ago

@sirajahmadzai I can reproduce this issue on a simple Azure Function with a deployment with Azure Functions. Nothing to do with this specific training module but I will be tracking this issue to figure out how to update the training module so it can be successfully deployed.

sirajahmadzai commented 2 months ago

@diberry thank you very much. I appreciate you putting in the time to look into this. Yes this looks like an issue beyond the training module as I have noticed that most of the people that have forked the exercise repo have faced similar deployment issues.

diberry commented 1 month ago

@sirajahmadzai The training module has now been updated with the correct information for the managed identity.