次の方法で共有


Azure Developer CLI リファレンス

この記事では、さまざまな Azure Developer CLI コマンドの構文とパラメーターについて説明します。

azd

Azure Developer CLI (azd) は、Azure でのプロジェクトのオンボードと管理に役立つオープンソース ツールです

オプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --docs         Opens the documentation for azd in your web browser.
  -h, --help         Gets help for azd.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

  • azd add: プロジェクトにコンポーネントを追加します。
  • azd auth: Azure を使用して認証します。
  • azd completion: シェル補完スクリプトを生成します。
  • azd config: azd 構成を管理する (例: 既定の Azure サブスクリプション、場所)。
  • azd deploy: プロジェクト コードを Azure にデプロイします。
  • azd down: プロジェクトの Azure リソースを削除します。
  • azd env: 環境を管理します (例: 既定の環境、環境変数)。
  • azd extension: azd extensions を管理します。
  • azd hooks: プロジェクトのフックを開発、テスト、実行します。
  • azd infra: コードとしてのインフラストラクチャ (IaC) を管理します。
  • azd init: 新しいアプリケーションを初期化します。
  • azd mcp: モデル コンテキスト プロトコル (MCP) サーバーを管理します。 (アルファ)
  • azd monitor: デプロイされたプロジェクトを監視します。
  • azd package: Azure にデプロイするプロジェクトのコードをパッケージ化します。
  • azd pipeline: デプロイ パイプラインを管理し構成します。
  • azd provision: プロジェクト用に Azure リソースをプロビジョニングします。
  • azd publish: コンテナー レジストリにサービスを発行します。
  • azd restore: プロジェクトの依存関係を復元します。
  • azd show: プロジェクトとそのリソースに関する情報を表示します。
  • azd template: テンプレートの詳細を検索して表示します。
  • azd up: 1 つのコマンドを使用して、プロジェクトをプロビジョニングして Azure にデプロイします。
  • azd version: Azure Developer CLI のバージョン番号を印刷します。

azd 追加

プロジェクトにコンポーネントを追加します。

azd add [flags]

オプション

      --docs   Opens the documentation for azd add in your web browser.
  -h, --help   Gets help for add.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 認証

Azure で認証します。

オプション

      --docs   Opens the documentation for azd auth in your web browser.
  -h, --help   Gets help for auth.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd auth login(認証ログイン)

Azure にログインします。

構文

Azure にログインします。

引数を指定せずに実行する場合は、ブラウザーを使用して対話形式でログインします。 デバイス コードを使用してログインするには、--use-device-code を渡します。

サービス プリンシパルとしてログインするには、--client-id と --tenant-id に加えて、--client-secret、--client-certificate、または --federated-credential-provider のいずれかを渡します。

マネージド ID を使用してログインするには、 --managed-identity を渡します。これにより、システムに割り当てられたマネージド ID が使用されます。 ユーザー割り当てのマネージド ID を使用するには、使用するユーザー割り当てマネージド ID のクライアント ID を指定した --managed-identity に加えて --client-id を渡します。

azd auth login [flags]

オプション

      --check-status                           Checks the log-in status instead of logging in.
      --client-certificate string              The path to the client certificate for the service principal to authenticate with.
      --client-id string                       The client id for the service principal to authenticate with.
      --client-secret string                   The client secret for the service principal to authenticate with. Set to the empty string to read the value from the console.
      --docs                                   Opens the documentation for azd auth login in your web browser.
      --federated-credential-provider string   The provider to use to acquire a federated token to authenticate with. Supported values: github, azure-pipelines, oidc
  -h, --help                                   Gets help for login.
      --managed-identity                       Use a managed identity to authenticate.
      --redirect-port int                      Choose the port to be used as part of the redirect URI during interactive login.
      --tenant-id string                       The tenant id or ___domain name to authenticate with.
      --use-device-code[=true]                 When true, log in by using a device code instead of a browser.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 認証 ログアウト

Azure からログアウトします。

構文

Azure からログアウトする

azd auth logout [flags]

オプション

      --docs   Opens the documentation for azd auth logout in your web browser.
  -h, --help   Gets help for logout.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd completion

シェル補完スクリプトを生成します。

構文

azd のシェル補完スクリプトを生成します。

completion コマンドを使用すると、シェルのオートコンプリート スクリプトを生成できます。現在、bash、zsh、fish、PowerShell がサポートされています。

生成されたスクリプトの使用方法の詳細については、各サブコマンドのヘルプを参照してください。

オプション

      --docs   Opens the documentation for azd completion in your web browser.
  -h, --help   Gets help for completion.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd completion bash

bash 完了スクリプトを生成します。

azd completion bash

オプション

      --docs   Opens the documentation for azd completion bash in your web browser.
  -h, --help   Gets help for bash.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 完成フィッシュ

魚完了スクリプトを生成します。

azd completion fish

オプション

      --docs   Opens the documentation for azd completion fish in your web browser.
  -h, --help   Gets help for fish.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 補完機能 PowerShell

PowerShell 完了スクリプトを生成します。

azd completion powershell

オプション

      --docs   Opens the documentation for azd completion powershell in your web browser.
  -h, --help   Gets help for powershell.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 補完 zsh

zsh 完了スクリプトを生成します。

azd completion zsh

オプション

      --docs   Opens the documentation for azd completion zsh in your web browser.
  -h, --help   Gets help for zsh.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd config

azd 構成を管理します (例: 既定の Azure サブスクリプション、場所)。

構文

Azure Developer CLI ユーザー構成を管理します。これには既定の Azure サブスクリプションと場所が含まれます。

azure-dev-cli_0.4.0-beta.1 以降で使用できます。

azd を初めて構成する最も簡単な方法は、azd init を実行することです。 選択されたサブスクリプションと場所は、config ディレクトリにある config.json ファイルに格納されます。 azd を後からいつでも構成するには、azd config set を使用します。

config ディレクトリの既定値は次のとおりです。

  • Linux および macOS 上では $HOME/.azd
  • Windows 上では %USERPROFILE%.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数にパスを指定してオーバーライドできます。

オプション

      --docs   Opens the documentation for azd config in your web browser.
  -h, --help   Gets help for config.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd設定を取得

構成を取得します。

構文

構成パス内の構成を取得します。

config ディレクトリの既定値は次のとおりです。

  • Linux と macOS の場合: $HOME/.azd
  • Windows の場合: %USERPROFILE%\.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数にパスを指定してオーバーライドできます。

azd config get <path> [flags]

オプション

      --docs   Opens the documentation for azd config get in your web browser.
  -h, --help   Gets help for get.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd config list-alpha

アルファ版段階で使用可能な機能を一覧表示します。

azd config list-alpha [flags]

オプション

      --docs   Opens the documentation for azd config list-alpha in your web browser.
  -h, --help   Gets help for list-alpha.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd config reset (設定リセット)

構成を既定値にリセットします。

構文

構成パス内の全構成をリセットします。

config ディレクトリの既定値は次のとおりです。

  • Linux と macOS の場合: $HOME/.azd
  • Windows の場合: %USERPROFILE%\.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数を既定値に指定してオーバーライドできます。

azd config reset [flags]

オプション

      --docs    Opens the documentation for azd config reset in your web browser.
  -f, --force   Force reset without confirmation.
  -h, --help    Gets help for reset.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd config set

構成を設定します。

構文

構成パス内の構成を設定します。

config ディレクトリの既定値は次のとおりです。

  • Linux と macOS の場合: $HOME/.azd
  • Windows の場合: %USERPROFILE%\.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数にパスを指定してオーバーライドできます。

azd config set <path> <value> [flags]

azd config set defaults.subscription <yourSubscriptionID>
azd config set defaults.___location eastus

オプション

      --docs   Opens the documentation for azd config set in your web browser.
  -h, --help   Gets help for set.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 構成ショー

すべての設定値を表示します。

構文

構成パス内のすべての構成値を表示します。

config ディレクトリの既定値は次のとおりです。

  • Linux と macOS の場合: $HOME/.azd
  • Windows の場合: %USERPROFILE%\.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数にパスを指定してオーバーライドできます。

azd config show [flags]

オプション

      --docs   Opens the documentation for azd config show in your web browser.
  -h, --help   Gets help for show.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd config unset(設定を解除)

構成の設定を解除します。

構文

構成パス内の構成を削除します。

config ディレクトリの既定値は次のとおりです。

  • Linux と macOS の場合: $HOME/.azd
  • Windows の場合: %USERPROFILE%\.azd

構成ディレクトリは、AZD_CONFIG_DIR 環境変数にパスを指定してオーバーライドできます。

azd config unset <path> [flags]

azd config unset defaults.___location

オプション

      --docs   Opens the documentation for azd config unset in your web browser.
  -h, --help   Gets help for unset.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd deploy

プロジェクト コードを Azure にデプロイします。

azd deploy <service> [flags]

オプション

      --all                   Deploys all services that are listed in azure.yaml
      --docs                  Opens the documentation for azd deploy in your web browser.
  -e, --environment string    The name of the environment to use.
      --from-package string   Deploys the packaged service located at the provided path. Supports zipped file packages (file path) or container images (image tag).
  -h, --help                  Gets help for deploy.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd システム停止状況

プロジェクトの Azure リソースを削除します。

azd down [flags]

オプション

      --docs                 Opens the documentation for azd down in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Does not require confirmation before it deletes resources.
  -h, --help                 Gets help for down.
      --purge                Does not require confirmation before it permanently deletes resources that are soft-deleted by default (for example, key vaults).

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env

環境を管理する (例: 既定の環境、環境変数)。

オプション

      --docs   Opens the documentation for azd env in your web browser.
  -h, --help   Gets help for env.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env get-value

特定の環境値を取得します。

azd env get-value <keyName> [flags]

オプション

      --docs                 Opens the documentation for azd env get-value in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-value.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 環境値を取得

すべての環境値を取得します。

azd env get-values [flags]

オプション

      --docs                 Opens the documentation for azd env get-values in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-values.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env list (このコマンドは環境の一覧を表示します)

環境を一覧表示します。

azd env list [flags]

オプション

      --docs   Opens the documentation for azd env list in your web browser.
  -h, --help   Gets help for list.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env new

新しい環境を作成し、既定値として設定します。

azd env new <environment> [flags]

オプション

      --docs                  Opens the documentation for azd env new in your web browser.
  -h, --help                  Gets help for new.
  -l, --___location string       Azure ___location for the new environment
      --subscription string   Name or ID of an Azure subscription to use for the new environment

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env refresh

以前のインフラストラクチャ プロビジョニングの情報を使用して、環境の値を更新します。

azd env refresh <environment> [flags]

オプション

      --docs                 Opens the documentation for azd env refresh in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for refresh.
      --hint string          Hint to help identify the environment to refresh

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd環境を選択する

デフォルト環境を設定します。

azd env select <environment> [flags]

オプション

      --docs   Opens the documentation for azd env select in your web browser.
  -h, --help   Gets help for select.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env set

1 つ以上の環境値を設定します。

構文

キーと値のペアを使用するか、.env 形式のファイルから読み込んで、1 つ以上の環境値を設定します。

azd env set [<key> <value>] | [<key>=<value> ...] | [--file <filepath>] [flags]

オプション

      --docs                 Opens the documentation for azd env set in your web browser.
  -e, --environment string   The name of the environment to use.
      --file string          Path to .env formatted file to load environment values from.
  -h, --help                 Gets help for set.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd env set-secret コマンドでシークレットを設定する

環境内の Key Vault シークレットへの参照として名前を設定します。

構文

新しい Key Vault シークレットを作成するか、既存の Key Vault シークレットを選択できます。 指定された名前は、Key Vault シークレットへのシークレット参照を保持する .env ファイルのキーです。

azd env set-secret <name> [flags]

オプション

      --docs                 Opens the documentation for azd env set-secret in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for set-secret.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 拡張子

azd 拡張機能を管理します。

オプション

      --docs   Opens the documentation for azd extension in your web browser.
  -h, --help   Gets help for extension.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd extension install

指定した拡張機能をインストールします。

azd extension install <extension-name> [flags]

オプション

      --docs             Opens the documentation for azd extension install in your web browser.
  -f, --force            Force installation even if it would downgrade the current version
  -h, --help             Gets help for install.
  -s, --source string    The extension source to use for installs
  -v, --version string   The version of the extension to install

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd エクステンション リスト

使用可能な拡張機能を一覧表示します。

azd extension list [--installed] [flags]

オプション

      --docs            Opens the documentation for azd extension list in your web browser.
  -h, --help            Gets help for list.
      --installed       List installed extensions
      --source string   Filter extensions by source
      --tags strings    Filter extensions by tags

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 拡張機能を表示

特定の拡張機能の詳細を表示します。

azd extension show <extension-name> [flags]

オプション

      --docs            Opens the documentation for azd extension show in your web browser.
  -h, --help            Gets help for show.
  -s, --source string   The extension source to use.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 拡張ソース

拡張機能ソースの表示と管理

オプション

      --docs   Opens the documentation for azd extension source in your web browser.
  -h, --help   Gets help for source.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 拡張機能 source add

指定した名前の拡張ソースを追加する

azd extension source add [flags]

オプション

      --docs              Opens the documentation for azd extension source add in your web browser.
  -h, --help              Gets help for add.
  -l, --___location string   The ___location of the extension source
  -n, --name string       The name of the extension source
  -t, --type string       The type of the extension source. Supported types are 'file' and 'url'

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 拡張機能のソースリスト

拡張機能のソースを一覧表示する

azd extension source list [flags]

オプション

      --docs   Opens the documentation for azd extension source list in your web browser.
  -h, --help   Gets help for list.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd拡張ソースを削除する

指定した名前の拡張ソースを削除する

azd extension source remove <name> [flags]

オプション

      --docs   Opens the documentation for azd extension source remove in your web browser.
  -h, --help   Gets help for remove.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd extension のアンインストール

指定した拡張機能をアンインストールします。

azd extension uninstall <extension-name> [flags]

オプション

      --all    Uninstall all installed extensions
      --docs   Opens the documentation for azd extension uninstall in your web browser.
  -h, --help   Gets help for uninstall.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd エクステンションアップグレード

指定された拡張機能をアップグレードします。

azd extension upgrade <extension-name> [flags]

オプション

      --all              Upgrade all installed extensions
      --docs             Opens the documentation for azd extension upgrade in your web browser.
  -h, --help             Gets help for upgrade.
  -s, --source string    The extension source to use for upgrades
  -v, --version string   The version of the extension to upgrade to

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdフック

プロジェクトのフックを開発、テスト、実行します。

オプション

      --docs   Opens the documentation for azd hooks in your web browser.
  -h, --help   Gets help for hooks.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdフックが実行される

プロジェクトとサービスに対して指定されたフックを実行します。

azd hooks run <name> [flags]

オプション

      --docs                 Opens the documentation for azd hooks run in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for run.
      --platform string      Forces hooks to run for the specified platform.
      --service string       Only runs hooks for the specified service.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd infra

コードとしてのインフラストラクチャ (IaC) を管理します。

オプション

      --docs   Opens the documentation for azd infra in your web browser.
  -h, --help   Gets help for infra.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd infra generate

プロジェクトの IaC をディスクに書き込み、手動で管理できるようにします。

azd infra generate [flags]

オプション

      --docs                 Opens the documentation for azd infra generate in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Overwrite any existing files without prompting
  -h, --help                 Gets help for generate.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd init

新しいアプリケーションを初期化します。

azd init [flags]

オプション

  -b, --branch string         The template branch to initialize from. Must be used with a template argument (--template or -t).
      --docs                  Opens the documentation for azd init in your web browser.
  -e, --environment string    The name of the environment to use.
  -f, --filter strings        The tag(s) used to filter template results. Supports comma-separated values.
      --from-code             Initializes a new application from your existing code.
  -h, --help                  Gets help for init.
  -l, --___location string       Azure ___location for the new environment
  -m, --minimal               Initializes a minimal project.
  -s, --subscription string   Name or ID of an Azure subscription to use for the new environment
  -t, --template string       Initializes a new application from a template. You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.
      --up                    Provision and deploy to Azure after initializing the project from a template.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd mcp

モデル コンテキスト プロトコル (MCP) サーバーを管理します。 (アルファ)

オプション

      --docs   Opens the documentation for azd mcp in your web browser.
  -h, --help   Gets help for mcp.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

MCP ツールの同意を管理します。

構文

MCP ツールの実行に関する同意規則を管理します。

オプション

      --docs   Opens the documentation for azd mcp consent in your web browser.
  -h, --help   Gets help for consent.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

同意信頼規則を付与します。

構文

MCP ツールとサーバーの信頼規則を付与します。

このコマンドは、MCP ツールがアクセス許可を求めずに実行できるようにする同意規則を作成します。 ルールには、さまざまなアクセス許可レベルとスコープを指定できます。

azd mcp consent grant [flags]

例 :

すべてのツールに常にアクセス許可をグローバルに付与します。

azd mcp consent grant --global --permission always

読み取り専用スコープを持つ特定のツールにプロジェクトのアクセス許可を付与します。

azd mcp consent grant --server my-server --tool my-tool --permission project --scope read-only

オプション

      --action string       Action type: 'all' or 'readonly' (default "all")
      --docs                Opens the documentation for azd mcp consent grant in your web browser.
      --global              Apply globally to all servers
  -h, --help                Gets help for grant.
      --operation string    Operation type: 'tool' or 'sampling' (default "tool")
      --permission string   Permission: 'allow', 'deny', or 'prompt' (default "allow")
      --scope string        Rule scope: 'global', or 'project' (default "global")
      --server string       Server name
      --tool string         Specific tool name (requires --server)

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

同意規則を一覧表示します。

構文

MCP ツールのすべての同意規則を一覧表示します。

azd mcp consent list [flags]

オプション

      --action string       Action type to filter by (readonly, any)
      --docs                Opens the documentation for azd mcp consent list in your web browser.
  -h, --help                Gets help for list.
      --operation string    Operation to filter by (tool, sampling)
      --permission string   Permission to filter by (allow, deny, prompt)
      --scope string        Consent scope to filter by (global, project). If not specified, lists rules from all scopes.
      --target string       Specific target to operate on (server/tool format)

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

同意規則を取り消します。

構文

MCP ツールの同意規則を取り消します。

azd mcp consent revoke [flags]

オプション

      --action string       Action type to filter by (readonly, any)
      --docs                Opens the documentation for azd mcp consent revoke in your web browser.
  -h, --help                Gets help for revoke.
      --operation string    Operation to filter by (tool, sampling)
      --permission string   Permission to filter by (allow, deny, prompt)
      --scope string        Consent scope to filter by (global, project). If not specified, revokes rules from all scopes.
      --target string       Specific target to operate on (server/tool format)

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd mcp start

MCP サーバーを起動します。

構文

モデル コンテキスト プロトコル (MCP) サーバーを起動します。

このコマンドは、MCP クライアントがモデル コンテキスト プロトコル インターフェイスを介して azd 機能にアクセスするために使用できる MCP サーバーを起動します。

azd mcp start [flags]

オプション

      --docs   Opens the documentation for azd mcp start in your web browser.
  -h, --help   Gets help for start.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdモニター

デプロイされたプロジェクトを監視します。

azd monitor [flags]

オプション

      --docs                 Opens the documentation for azd monitor in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for monitor.
      --live                 Open a browser to Application Insights Live Metrics. Live Metrics is currently not supported for Python apps.
      --logs                 Open a browser to Application Insights Logs.
      --overview             Open a browser to Application Insights Overview Dashboard.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdパッケージ

Azure にデプロイするプロジェクトのコードをパッケージ化します。

azd package <service> [flags]

オプション

      --all                  Packages all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd package in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for package.
      --output-path string   File or folder path where the generated packages will be saved.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd パイプライン

デプロイ パイプラインを管理し構成します。

オプション

      --docs   Opens the documentation for azd pipeline in your web browser.
  -h, --help   Gets help for pipeline.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd パイプライン設定

Azure に安全に接続できるようにデプロイ パイプラインを構成します。 (ベータ)

azd pipeline config [flags]

オプション

  -m, --applicationServiceManagementReference string   Service Management Reference. References application or service contact information from a Service or Asset Management database. This value must be a Universally Unique Identifier (UUID). You can set this value globally by running azd config set pipeline.config.applicationServiceManagementReference <UUID>.
      --auth-type string                               The authentication type used between the pipeline provider and Azure for deployment (Only valid for GitHub provider). Valid values: federated, client-credentials.
      --docs                                           Opens the documentation for azd pipeline config in your web browser.
  -e, --environment string                             The name of the environment to use.
  -h, --help                                           Gets help for config.
      --principal-id string                            The client id of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-name string                          The name of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-role stringArray                     The roles to assign to the service principal. By default the service principal will be granted the Contributor and User Access Administrator roles. (default [Contributor,User Access Administrator])
      --provider string                                The pipeline provider to use (github for Github Actions and azdo for Azure Pipelines).
      --remote-name string                             The name of the git remote to configure the pipeline to run on. (default "origin")

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd プロビジョン

プロジェクト用に Azure リソースをプロビジョニングします。

azd provision [flags]

オプション

      --docs                 Opens the documentation for azd provision in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for provision.
      --no-state             (Bicep only) Forces a fresh deployment based on current Bicep template files, ignoring any stored deployment state.
      --preview              Preview changes to Azure resources.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd publish

コンテナー レジストリにサービスを発行します。

azd publish <service> [flags]

オプション

      --all                   Publishes all services that are listed in azure.yaml
      --docs                  Opens the documentation for azd publish in your web browser.
  -e, --environment string    The name of the environment to use.
      --from-package string   Publishes the service from a container image (image tag).
  -h, --help                  Gets help for publish.
      --to string             The target container image in the form '[registry/]repository[:tag]' to publish to.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd 復元

プロジェクトの依存関係を復元します。

azd restore <service> [flags]

オプション

      --all                  Restores all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd restore in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for restore.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

アズドショー

プロジェクトとそのリソースに関する情報を表示します。

azd show [resource name or ID] [flags]

オプション

      --docs                 Opens the documentation for azd show in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for show.
      --show-secrets         Unmask secrets in output.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdテンプレート

テンプレートの詳細を検索して表示します。

オプション

      --docs   Opens the documentation for azd template in your web browser.
  -h, --help   Gets help for template.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd template list

サンプルの azd テンプレートの一覧を表示します。 (ベータ)

azd template list [flags]

オプション

      --docs             Opens the documentation for azd template list in your web browser.
  -f, --filter strings   The tag(s) used to filter template results. Supports comma-separated values.
  -h, --help             Gets help for list.
  -s, --source string    Filters templates by source.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd テンプレートを表示

特定のテンプレートの詳細を表示します。 (ベータ)

azd template show <template> [flags]

オプション

      --docs   Opens the documentation for azd template show in your web browser.
  -h, --help   Gets help for show.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd テンプレート ソース

テンプレートのソースを表示および管理します。 (ベータ)

オプション

      --docs   Opens the documentation for azd template source in your web browser.
  -h, --help   Gets help for source.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd テンプレート ソースの追加

指定したキーを持つ azd テンプレート ソースを追加します。 (ベータ)

構文

キーには、テンプレート ソースを一意に識別する任意の値を指定できます。既知の値は次のとおりです。.default: 既定のテンプレート 、awesome-azd: Templates from https://aka.ms/awesome-azd

azd template source add <key> [flags]

オプション

      --docs              Opens the documentation for azd template source add in your web browser.
  -h, --help              Gets help for add.
  -l, --___location string   Location of the template source. Required when using type flag.
  -n, --name string       Display name of the template source.
  -t, --type string       Kind of the template source. Supported types are 'file', 'url' and 'gh'.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd テンプレートのソース リスト

構成された azd テンプレート ソースを一覧表示します。 (ベータ)

azd template source list [flags]

オプション

      --docs   Opens the documentation for azd template source list in your web browser.
  -h, --help   Gets help for list.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azd テンプレート ソースの削除

指定された azd テンプレート ソースを削除します (ベータ版)

azd template source remove <key> [flags]

オプション

      --docs   Opens the documentation for azd template source remove in your web browser.
  -h, --help   Gets help for remove.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

アズドアップ

1 つのコマンドを使用して、プロジェクトをプロビジョニングして Azure にデプロイします。

azd up [flags]

オプション

      --docs                 Opens the documentation for azd up in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for up.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目

azdバージョン

Azure Developer CLI のバージョン番号を印刷します。

azd version [flags]

オプション

      --docs   Opens the documentation for azd version in your web browser.
  -h, --help   Gets help for version.

親コマンドから継承されるオプション

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

関連項目