Azure Function App with Continuous Deployment

Tom Whiteley 1 Reputation point
2023-05-29T18:01:40.2133333+00:00

I am trying to setup a connection to my Function App to connect to my Azure DevOps repo for continous deployment.

I have given my AzDO a Service Connector to the whole subscription (for testing) but whenever I submit the connection on the Function App side I get the following error.

There is an app registration in Azure for the Service Connector, and the resource group has the correct rights on as far as I can see.

The error attached doesn't seem to make any sense. I don't have that email address (100320019D0A355E@live.com) anywhere linked to me.

I have tried creating a new function app + application service plan but neither fix this issue.

Failed to set up deployment: Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: Vso GetConnectionData: TF14045: The identity with type 'Microsoft.IdentityModel.Claims.ClaimsIdentity' and identifier '100320019D0A355E@live.com' could not be found.
   at Microsoft.Web.Hosting.SourceControls.VsoProxy.<ProcessResponse>d__38`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetConnectionData>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetAccountGitEndpoint>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.<GetAccountGitEndpoint>d__24.MoveNext() in C:\__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\VsoSiteRepositoryProvider.cs:line 293
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.<UpdateSiteSourceControl>d__16.MoveNext() in C:\__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\VsoSiteRepositoryProvider.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.Administration.WebCloudController.<>c__DisplayClass366_1.<<UpdateSiteSourceControl>b__1>d.MoveNext() in C:\__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Controllers\WebCloudController.cs:line 11462
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.Hosting.AsyncHelper.RunSync[TResult](Func`1 func)
   at Microsoft.Web.Hosting.Administration.WebCloudController.UpdateSiteSourceControl(String subscriptionName, String webspaceName, String name, SiteSourceControl siteSourceControl) in C:\__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Controllers\WebCloudController.cs:line 11457.
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,331 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasimTamboli 5,100 Reputation points
    2023-06-04T14:32:00.8033333+00:00

    To resolve this issue, you can try the following steps:

    Verify the Azure DevOps service connection: Double-check that the Azure DevOps service connection you created has the correct permissions and is properly configured. Ensure that the service connection has the necessary access to your Azure subscription, Function App, and repository.

    Check the associated identity: Review the service principal or user account associated with the Azure DevOps service connection. Make sure it has the required permissions and is correctly linked to the DevOps organization and repository.

    Validate permissions: Ensure that the associated identity has sufficient permissions to access and deploy to the Function App. Verify that it has the necessary Contributor or Owner role at the Function App level or appropriate access control at the resource group or subscription level.

    Retry the setup: After confirming the above steps, try setting up the continuous deployment again. Make sure to select the correct repository and Azure DevOps service connection during the configuration process.

    If the issue persists after following these steps, it would be helpful to review the detailed logs and diagnostics provided by Azure to gather more specific information about the error.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.