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>