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?

GitHub Actions で Azure 認証エラーのメモ(サブスクリプションが見つからない)

Posted at

手順概要

  1. Azure の EntraID でアプリを作成
  2. GitHub Actions で Azure に認証する
    - name: az Login
        uses: azure/login@v1
        with:
          client-id: ${{ secrets.AZURE_CLIENT_ID }}
          tenant-id: ${{ secrets.AZURE_TENANT_ID }}
          subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} 
    
  3. Actions のワークフローを実行
  4. エラーが発生
    Error: No subscriptions found for ***.
    
    Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
    

原因と対応

  • ログインでサブスクリプションを指定しているが、アプリの新規作成直後はサブスクリプションに紐づいていない
  • Actions で操作予定の Azure リソースに作成したアプリの権限を割り当てる
  • 新規で環境構築時に最小限の構成で試そうとすると遭遇しやすい
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?