0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flex 従量課金プラン使う際の GithubAction での Azure Functions デプロイの注意点2

Posted at

前回、Flex 従量課金プランでのGithubAction のymlファイルでの注意点について記事にしましたが、
あれからもう一点詰まる場所がありました。そこの共有です。

基本認証を最初のリソース立ち上げでONにする

こちらデフォルトでは、「無効にする」になっており、読み飛ばすと無効となり、自動デプロイ時に認証関連でエラーになります。

image.png

実際にGitHubActionで出るエラー

Error: Execution Exception (state: ValidateAzureResource) (step: Invocation)
Error:   When request Azure resource at ValidateAzureResource, Get Function App Settings : Failed to acquire app settings from https://<scmsite>/api/settings with publish-profile
Error:     Failed to fetch Kudu App Settings.
Unauthorized (CODE: 401)
Error:       Error: Failed to fetch Kudu App Settings.
Unauthorized (CODE: 401)
    at Kudu.<anonymous> (/home/runner/work/_actions/Azure/functions-action/v1/lib/appservice-rest/Kudu/azure-app-kudu-service.js:72:23)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/Azure/functions-action/v1/lib/appservice-rest/Kudu/azure-app-kudu-service.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Deployment Failed!

リソース作成時しか変更できないっぽい

たちの悪いことにこちら最初に設定してしまうと2024年11月現在それっぽい場所は合っても、変更できないです。(僕は変更する方法がわかりませんでした。)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?