この記事は?
- 1か月ぶりにAzure Functionsにアプリをデプロイしようとしたら、Azure Portalの仕様が変わっていて、かなり戸惑ったので記事に残しておく
- いつもあったはずの、Gitデプロイに使うID/パスワードが、Azure Portal上に載らなくなってしまったようだ
Azure 仕様変化
対応方法
- az login 後に以下を実行することで取得できる
az webapp deployment list-publishing-credentials --resource-group <group-name> --name <app-name> --query scmUri
- 取得例(レスポンス)
- この例では以下となる
- ID : $your-git-id
- PW : xxxxxxxxxxxxxxxxxx
"https://$your-git-id:xxxxxxxxxxxxxxxxxx@your-app-name.scm.azurewebsites.net"
リファレンス
-
https://learn.microsoft.com/ja-jp/azure/app-service/deploy-configure-credentials?tabs=cli#appscope
- Functionsではなく、AppServiceのページなので、探す際にさまようことになる