Поделиться через


Справочные материалы по Azure Developer CLI

В этой статье описаны синтаксис и параметры для различных команд Командной строки разработчика Azure.

azd

Интерфейс командной строки разработчика Azure (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: manage azd configurations (ex: default subscription, location).
  • azd deploy: развертывание кода проекта в Azure.
  • azd down: Удалите ресурсы Azure вашего проекта.
  • azd env: Управление средами (например: среда по умолчанию, переменные окружения).
  • azd extension: Manage 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: Find and view template details.
  • azd up: подготовка и развертывание проекта в 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 или --федеративный-credential-provider.

Чтобы войти с помощью управляемого удостоверения, передайте управляемое удостоверение, которое будет использовать управляемое удостоверение, назначенное системой. Чтобы использовать управляемое удостоверение, назначаемое пользователем, передайте идентификатор --client-id в дополнение к --managed-identity с идентификатором клиента, назначаемого пользователем управляемого удостоверения, который вы хотите использовать.

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 завершение

Создайте скрипты завершения оболочки.

Краткие сведения

Создайте скрипты завершения оболочки для azd.

Команда завершения позволяет создавать скрипты автозаполнения для оболочки, в настоящее время поддерживает 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)

Создайте скрипт завершения 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 fish

Создайте скрипт завершения рыбы.

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 completion для 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

Управление конфигурациями azd (например, подписка Azure по умолчанию, расположение).

Краткие сведения

Управление конфигурацией пользователя Интерфейса командной строки разработчика Azure, которая включает в себя подписку и расположение Azure по умолчанию.

Доступно с момента azure-dev-cli_0.4.0-beta.1.

Самый простой способ настройки azd в первый раз — запуск azd init. Выбранная подписка и расположение будут храниться в config.json файле, расположенном в каталоге конфигурации. Чтобы настроить azd любое время после этого, вы будете использовать azd config set.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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 get

Возвращает конфигурацию.

Краткие сведения

Возвращает конфигурацию в пути конфигурации.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%\.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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 (сброс конфигурации)

Сбрасывает конфигурацию по умолчанию.

Краткие сведения

Сбрасывает всю конфигурацию в пути конфигурации.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%\.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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

Задает конфигурацию.

Краткие сведения

Задает конфигурацию в пути конфигурации.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%\.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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 show (показать конфигурацию)

Отображение всех значений конфигурации.

Краткие сведения

Отображение всех значений конфигурации в пути конфигурации.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%\.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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 (отменить конфигурацию)

Отменяет настройку.

Краткие сведения

Удаляет конфигурацию в пути конфигурации.

Значением по умолчанию каталога конфигурации является:

  • $HOME/.azd в Linux и macOS
  • %USERPROFILE%\.azd в Windows

Каталог конфигурации можно переопределить, указав путь в переменной среды 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-values: получение всех значений среды.
  • azd env list: Перечислить окружения.
  • azd env new: создайте новую среду и задайте ее в качестве значения по умолчанию.
  • azd env refresh: обновление параметров среды, используя информацию от предыдущего обеспечения инфраструктуры.
  • azd env select: задайте среду по умолчанию.
  • azd env set: задайте одно или несколько значений среды.
  • azd env set-secret: задайте имя в качестве ссылки на секрет Key Vault в среде.
  • К началу страницы

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 env get-values

Получение всех значений среды.

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 обновление окружения

Обновите значения среды, используя информацию из предыдущего развертывания инфраструктуры.

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 env select

Задайте среду по умолчанию.

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" для настройки среды.

Задайте одно или несколько значений среды.

Краткие сведения

Задайте одно или несколько значений среды с помощью пар "ключ-значение" или загрузки из файла в формате ENV.

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 или выбрать существующий. Указанное имя является ключом для env-файла, который содержит ссылку на секрет Key Vault.

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 extension

Управление расширениями 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

Устанавливает указанные расширения.

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 extension show – отображение расширения 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 extension source добавить источник

Добавление источника расширения с указанным именем

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

Удалите указанные расширения.

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 hooks

Разработка, тестирование и запуск хуков для проекта.

Параметры

      --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 hooks run

Запускает указанный перехватчик для проекта и служб

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 --global --permission always

Grant project permission to a specific tool with read-only scope:
  
```azdeveloper
azd mcp consent grant --server my-server --tool my-tool --permission project --scope read-only

```azdeveloper
azd mcp consent grant [flags]

Параметры

      --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, который может использоваться клиентами MCP для доступа к функциям azd через интерфейс протокола контекста модели.

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 restore (восстановление)

Восстанавливает зависимости проекта.

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

Отображение сведений о проекте и его ресурсах.

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 список шаблонов

Показать список примеров шаблонов 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 с указанным ключом. (бета-версия)

Краткие сведения

Ключ может быть любым значением, уникальным образом идентифицирующее источник шаблона, с известными значениями: «по умолчанию: шаблоны по умолчанию »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.

См. также

azd наверх

Подготовка и развертывание проекта в 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.

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.

См. также