Condividi tramite


Informazioni di riferimento su Azure Developer CLI

Questo articolo illustra la sintassi e i parametri per i vari comandi dell'interfaccia della riga di comando per sviluppatori di Azure.

azd

L'interfaccia della riga di comando per sviluppatori di Azure (azd) è uno strumento open source che consente di caricare e gestire il progetto in Azure

Opzioni

  -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.

Vedi anche

  • azd add: aggiungere un componente al progetto.
  • azd auth: eseguire l'autenticazione con Azure.
  • azd completion: generare script di completamento della shell.
  • azd config: gestire azd configurations (ad esempio: sottoscrizione di Azure predefinita, località).
  • azd deploy: distribuire il codice del progetto in Azure.
  • azd down: eliminare le risorse di Azure del progetto.
  • azd env: gestire gli ambienti (ad esempio, ambiente predefinito, variabili di ambiente).
  • azd extension: Gestisci le estensioni azd.
  • azd hooks: sviluppare, testare ed eseguire hook per un progetto.
  • azd infra: gestire l'infrastruttura come codice (IaC).
  • azd init: inizializzare una nuova applicazione.
  • azd mcp: Gestire il server MCP (Model Context Protocol). (Alfa)
  • azd monitor: monitorare un progetto distribuito.
  • azd package: crea un pacchetto del codice del progetto da distribuire in Azure.
  • azd pipeline: gestire e configurare le pipeline di distribuzione.
  • azd provision: effettuare il provisioning delle risorse di Azure per il progetto.
  • azd publish: pubblicare un servizio in un registro di container.
  • azd restore: ripristina le dipendenze del progetto.
  • azd show: visualizzare informazioni sul progetto e sulle relative risorse.
  • azd template: trovare e visualizzare i dettagli del modello.
  • azd up: effettuare il provisioning e distribuire il progetto in Azure con un singolo comando.
  • azd version: stampare il numero di versione dell'interfaccia della riga di comando per sviluppatori di Azure.

azd aggiungi

Aggiungere un componente al progetto.

azd add [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd auth

Eseguire l'autenticazione con Azure.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd auth login (accedi all'autenticazione azd)

Consente di accedere ad Azure.

Riepilogo

Consente di accedere ad Azure.

Quando viene eseguito senza argomenti, accedere in modo interattivo usando un browser. Per accedere usando un codice del dispositivo, passare --use-device-code.

Per accedere come entità servizio, passare --client-id e --tenant-id e uno di: --client-secret, --client-certificate o --federated-credential-provider.

Per accedere usando un'identità gestita, passare --managed-identity, che userà l'identità gestita assegnata dal sistema. Per usare un'identità gestita assegnata dall'utente, passare --client-id oltre a --managed-identity con l'ID client dell'identità gestita assegnata dall'utente da usare.

azd auth login [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd auth logout (comando per disconnettersi dall'autenticazione)

Disconnettersi da Azure.

Riepilogo

Disconnettersi da Azure

azd auth logout [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd completamento

Generare script di completamento della shell.

Riepilogo

Generare script di completamento della shell per azd.

Il comando di completamento consente di generare script di completamento automatico per la shell, attualmente supporta bash, zsh, fish e PowerShell.

Per vedere i dettagli su come usare lo script generato, vedere l'aiuto di ogni sottocomando.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd completion bash

Generare lo script di completamento bash.

azd completion bash

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd completion fish

Generare uno script di completamento del pesce.

azd completion fish

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Completamento azd in PowerShell

Generare lo script di completamento di PowerShell.

azd completion powershell

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd completamento zsh

Generare lo script di completamento zsh.

azd completion zsh

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd configurazione

Gestire le configurazioni azd (ad esempio: sottoscrizione di Azure predefinita, località).

Riepilogo

Gestire la configurazione utente dell'interfaccia della riga di comando per sviluppatori di Azure, che include la sottoscrizione e il percorso predefiniti di Azure.

Disponibile a partire da azure-dev-cli_0.4.0-beta.1.

Il modo più semplice per configurare azd per la prima volta consiste nell'eseguire azd init. La sottoscrizione e il config.json percorso selezionati verranno archiviati nel file che si trova nella directory config. Per configurare azd in qualsiasi momento in seguito, si userà azd config set.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config get (recupera la configurazione)

Ottiene una configurazione.

Riepilogo

Ottiene una configurazione nel percorso di configurazione.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%\.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR.

azd config get <path> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config list-alpha

Visualizzare l'elenco delle funzionalità disponibili nella fase alfa.

azd config list-alpha [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config reset

Reimposta la configurazione predefinita.

Riepilogo

Reimposta tutte le configurazioni nel percorso di configurazione.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%\.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR per impostazione predefinita.

azd config reset [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config set

Imposta una configurazione.

Riepilogo

Imposta una configurazione nel percorso di configurazione.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%\.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR.

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

Esempi

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

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config mostra (comando per visualizzare la configurazione)

Mostra tutti i valori di configurazione.

Riepilogo

Mostra tutti i valori di configurazione nel percorso di configurazione.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%\.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR.

azd config show [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd config unset (rimuovi configurazione)

Annulla l'impostazione di una configurazione.

Riepilogo

Rimuove una configurazione nel percorso di configurazione.

Il valore predefinito della directory config è:

  • $HOME/.azd in Linux e macOS
  • %USERPROFILE%\.azd in Windows

È possibile eseguire l'override della directory di configurazione specificando un percorso nella variabile di ambiente AZD_CONFIG_DIR.

azd config unset <path> [flags]

Esempi

azd config unset defaults.location

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd deploy (comando di distribuzione)

Distribuire il codice del progetto in Azure.

azd deploy <service> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd non funzionante

Eliminare le risorse di Azure del progetto.

azd down [flags]

Opzioni

      --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).

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env

Gestire gli ambienti (ad esempio, ambiente predefinito, variabili di ambiente).

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env get-value

Ottenere un valore di ambiente specifico.

azd env get-value <keyName> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env ottenere-valori

Ottenere tutti i valori di ambiente.

azd env get-values [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

comando "azd env list"

Elencare gli ambienti.

azd env list [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env new

Creare un nuovo ambiente e impostarlo come predefinito.

azd env new <environment> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd aggiorna ambiente

Aggiornare i valori dell'ambiente utilizzando le informazioni da un provisioning precedente dell'infrastruttura.

azd env refresh <environment> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd seleziona ambiente

Impostare l'ambiente predefinito.

azd env select <environment> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env set

Impostare uno o più valori di ambiente.

Riepilogo

Impostare uno o più valori di ambiente usando coppie chiave-valore o caricando da un file formattato con estensione env.

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

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd env set-secret

Impostare un nome come riferimento a un segreto di Key Vault nell'ambiente.

Riepilogo

È possibile creare un nuovo segreto di Key Vault o selezionare uno esistente. Il nome fornito è la chiave per il file .env che contiene il riferimento segreto al segreto nel Key Vault.

azd env set-secret <name> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd extension

Gestire le estensioni azd.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Comando di installazione dell'estensione azd

Installa le estensioni specificate.

azd extension install <extension-name> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd estensione elenco

Elencare le estensioni disponibili.

azd extension list [--installed] [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd extension mostra

Mostra i dettagli per un'estensione specifica.

azd extension show <extension-name> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd sorgente dell'estensione

Visualizzare e gestire le origini delle estensioni

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd aggiungi origine estensione

Aggiungere un'origine di estensione con il nome specificato

azd extension source add [flags]

Opzioni

      --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'

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

elenco delle sorgenti dell'estensione azd

Elencare le origini dell'estensione

azd extension source list [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd rimuovere origine estensione

Rimuovere un'origine dell'estensione con il nome specificato

azd extension source remove <name> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd extension uninstall

Disinstallare le estensioni specificate.

azd extension uninstall <extension-name> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd aggiornamento estensione

Aggiornare le estensioni specificate.

azd extension upgrade <extension-name> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd hooks

Sviluppare, testare ed eseguire collegamenti per un progetto.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd hooks run

Esegue l'hook specificato per il progetto e i servizi

azd hooks run <name> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd infra

Gestire l'infrastruttura come codice (IaC).

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd infra generate

Scrivere IaC per il progetto su disco, consentendo di gestirlo manualmente.

azd infra generate [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd init

Inizializzare una nuova applicazione.

azd init [flags]

Opzioni

  -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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd mcp

Gestire il server MCP (Model Context Protocol). (Alfa)

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Gestire il consenso dello strumento MCP.

Riepilogo

Gestire le regole di consenso per l'esecuzione dello strumento MCP.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Concedere le regole di attendibilità del consenso.

Riepilogo

Concedere regole di attendibilità per strumenti e server MCP.

Questo comando crea regole di consenso che consentono l'esecuzione degli strumenti MCP senza richiedere l'autorizzazione. È possibile specificare diversi livelli di autorizzazione e ambiti per le regole.

Esempi: concedere sempre l'autorizzazione a tutti gli strumenti a livello globale:

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]

Opzioni

      --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)

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Elencare le regole di consenso.

Riepilogo

Elencare tutte le regole di consenso per gli strumenti MCP.

azd mcp consent list [flags]

Opzioni

      --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)

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

Revocare le regole di consenso.

Riepilogo

Revocare le regole di consenso per gli strumenti MCP.

azd mcp consent revoke [flags]

Opzioni

      --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)

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd mcp start

Avvia il server MCP.

Riepilogo

Avvia il server MCP (Model Context Protocol).

Questo comando avvia un server MCP che può essere usato dai client MCP per accedere alle funzionalità azd tramite l'interfaccia Model Context Protocol.

azd mcp start [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd monitor

Monitorare un progetto distribuito.

azd monitor [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

pacchetto azd

Crea un pacchetto del codice del progetto da distribuire in Azure.

azd package <service> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd pipeline

Gestire e configurare le pipeline di distribuzione.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd pipeline config (configurazione della pipeline azd)

Configurare la pipeline di distribuzione per connettersi in modo sicuro ad Azure. (Beta)

azd pipeline config [flags]

Opzioni

  -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")

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

disposizione azd

Effettuare il provisioning delle risorse di Azure per il progetto.

azd provision [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd publish

Pubblicare un servizio su un registro di container.

azd publish <service> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd ripristina

Ripristina le dipendenze del progetto.

azd restore <service> [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd show

Visualizzare informazioni sul progetto e sulle relative risorse.

azd show [resource name or ID] [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

modello azd

Trovare e visualizzare i dettagli del modello.

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd elenco modelli

Mostra l'elenco dei modelli azd di esempio. (Beta)

azd template list [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

comando azd template show

Mostra i dettagli per un determinato modello. (Beta)

azd template show <template> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd origine del modello

Visualizzare e gestire le origini dei modelli. (Beta)

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

aggiungi sorgente modello azd

Aggiunge un'origine modello azd con la chiave specificata. (Beta)

Riepilogo

La chiave può essere qualsiasi valore che identifichi in modo univoco l'origine del modello, con valori noti, ad esempio: :default: modelli predefiniti .awesome-azd: Templates from https://aka.ms/awesome-azd

azd template source add <key> [flags]

Opzioni

      --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'.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

elenco delle sorgenti dei modelli azd

Elenca le origini del modello azd configurate. (Beta)

azd template source list [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd rimuovi sorgente modello

Rimuove l'origine del modello azd specificata (Beta)

azd template source remove <key> [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd up

Effettuare il provisioning e distribuire il progetto in Azure con un singolo comando.

azd up [flags]

Opzioni

      --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.

Opzioni ereditate dai comandi padre

  -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.

Vedi anche

azd versione

Stampare il numero di versione dell'interfaccia della riga di comando per sviluppatori di Azure.

azd version [flags]

Opzioni

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

Opzioni ereditate dai comandi padre

  -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.

Vedi anche