Web Appsで、デプロイセンターからデプロイのセットアップができなくなった

Nagao 0 Reputation points
2024-07-08T07:05:00.2166667+00:00

Web Appsにおいて、デプロイセンターからGithub Actionsを用いたデプロイのセットアップの設定をしておりましたが、何度か切断と再設定を繰り返していると、下記のようなエラーが発生し、構成できなくなりました。

Web Appsの設定を変更した等といったことを特にしていないので、今までできていたことが急にできなくなったといった状況です。

エラー内容はMicrosoft.Web.Hosting.SourceControls.OAuthExceptionというエラーが発生し、GitHub CreateOrUpdateRepositorySecret操作がBadRequest(不正なリクエスト)で失敗した、というものであり、Github側ではなく、Azure側に問題があるようです。

WebAppsを新しく作り直してもう一度デプロイセンターからデプロイのセットアップを試してみたところ、事象は変化しませんでした。このことからWeb Appの裏側で問題が発生している可能性があります。

これはAzureの不具合によるものでしょうか?何が原因と考えられるか教えて頂けると幸いです。

以下に発生したエラー全文を記載します。

デプロイをセットアップできませんでした: <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: GitHub CreateOrUpdateRepositorySecret: Bad Request at Microsoft.Web.Hosting.SourceControls.GitHubProxy.<ProcessEmptyResponse>d__35.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.GitHubProxy.<CreateOrUpdateRepositorySecret>d__24.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.GitHubActionRepositoryProvider.<SetGitHubActionSecret>d__21.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 411 --- 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.GitHubActionRepositoryProvider.<CreateOrUpdateGitHubActionOidcSecret>d__20.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 396 --- 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.GitHubActionRepositoryProvider.<UpdateSiteSourceControl>d__16.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 209 --- 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__DisplayClass379_1.<<UpdateSiteSourceControl>b__1>d.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Controllers\WebCloudController.cs:line 11551 --- 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.RunSyncTResult 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 11546.</Message><ExtendedCode>05007</ExtendedCode><MessageTemplate>Repository '{0}' operation failed with {1}.</MessageTemplate><Parameters xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>UpdateSiteSourceControl</a:string><a:string>Microsoft.Web.Hosting.SourceControls.OAuthException: GitHub CreateOrUpdateRepositorySecret: Bad Request at Microsoft.Web.Hosting.SourceControls.GitHubProxy.<ProcessEmptyResponse>d__35.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.GitHubProxy.<CreateOrUpdateRepositorySecret>d__24.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.GitHubActionRepositoryProvider.<SetGitHubActionSecret>d__21.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 411 --- 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.GitHubActionRepositoryProvider.<CreateOrUpdateGitHubActionOidcSecret>d__20.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 396 --- 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.GitHubActionRepositoryProvider.<UpdateSiteSourceControl>d__16.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Providers\GitHubActionRepositoryProvider.cs:line 209 --- 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__DisplayClass379_1.<<UpdateSiteSourceControl>b__1>d.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Controllers\WebCloudController.cs:line 11551 --- 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.RunSyncTResult 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 11546</a:string></Parameters><InnerErrors i:nil="true"/><Details i:nil="true"/><Target i:nil="true"/></Error>

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,429 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinud 2,125 Reputation points Microsoft Vendor
    2024-07-09T13:13:26.9733333+00:00

    Hi Nagao,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    Please refer to the following documentation to set up deployments from the Deployment Center using GitHub Actions:

    If the information is helpful, please consider clicking the "Accept Answer and Upvote" on the post.

    If you are still facing issues, please let us know in the comments. We are happy to help you.