Naslaginformatie over Azure Developer CLI

In dit artikel worden de syntaxis en parameters voor de verschillende Azure Developer CLI-opdrachten uitgelegd.

azd

De Azure Developer CLI (azd) is een opensource-hulpprogramma waarmee u uw toepassing in Azure kunt onboarden en beheren

Opties

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

Zie ook

azd auth

Verifiëren met Azure.

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd auth login

Aanmelden bij Azure.

Samenvatting

Aanmelden bij Azure.

Wanneer u zonder argumenten wordt uitgevoerd, meldt u zich interactief aan met behulp van een browser. Als u zich wilt aanmelden met behulp van een apparaatcode, geeft u --use-device-code door.

Als u zich wilt aanmelden als een service-principal, geeft u --client-id en --tenant-id door, evenals een van: --client-secret, --client-certificate of --federated-credential-provider.

azd auth login [flags]

Opties

      --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.
  -h, --help                                   Gets help for login.
      --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.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd auth logout

Meld u af bij Azure.

Samenvatting

Afmelden bij Azure

azd auth logout [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config

Azd-configuraties beheren (bijvoorbeeld: standaard Azure-abonnement, locatie).

Samenvatting

Beheer de azure Developer CLI-gebruikersconfiguratie, die uw standaardAbonnement en -locatie bevat.

Beschikbaar sinds azure-dev-cli_0.4.0-beta.1.

De eenvoudigste manier om voor de eerste keer te configureren azd , is door te worden uitgevoerd azd init. Het abonnement en de locatie die u selecteert, worden opgeslagen in het config.json bestand in de configuratiemap. Als u later op elk gewenst moment wilt configureren azd , gebruikt azd config setu .

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de omgevingsvariabele AZD_CONFIG_DIR.

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config get

Hiermee haalt u een configuratie op.

Samenvatting

Hiermee haalt u een configuratie op in het configuratiepad.

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de omgevingsvariabele AZD_CONFIG_DIR.

azd config get <path> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config list-alpha

De lijst met beschikbare functies weergeven in de alfafase.

azd config list-alpha [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config reset

Hiermee stelt u de standaardconfiguratie opnieuw in.

Samenvatting

Hiermee stelt u alle configuratie in het configuratiepad opnieuw in.

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de AZD_CONFIG_DIR omgevingsvariabele naar de standaardwaarde.

azd config reset [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config set

Hiermee stelt u een configuratie in.

Samenvatting

Hiermee stelt u een configuratie in het configuratiepad in.

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de omgevingsvariabele AZD_CONFIG_DIR.

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

Voorbeelden

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

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config show

Alle configuratiewaarden weergeven.

Samenvatting

Alle configuratiewaarden weergeven in het configuratiepad.

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de omgevingsvariabele AZD_CONFIG_DIR.

azd config show [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd config unset

Het instellen van een configuratie ongedaan maken.

Samenvatting

Hiermee verwijdert u een configuratie in het configuratiepad.

De standaardwaarde van de configuratiemap is:

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

De configuratiemap kan worden overschreven door een pad op te geven in de omgevingsvariabele AZD_CONFIG_DIR.

azd config unset <path> [flags]

Voorbeelden

azd config unset defaults.location

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd deploy

Implementeer de code van de toepassing in Azure.

azd deploy <service> [flags]

Opties

      --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 application from an existing package.
  -h, --help                  Gets help for deploy.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd down

Azure-resources voor een toepassing verwijderen.

azd down [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env

Omgevingen beheren.

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env get-values

Haal alle omgevingswaarden op.

azd env get-values [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env list

Omgevingen weergeven.

azd env list [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env new

Maak een nieuwe omgeving en stel deze in als de standaardomgeving.

azd env new <environment> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env refresh

Omgevingsinstellingen vernieuwen met behulp van gegevens uit een eerdere infrastructuurinrichting.

azd env refresh <environment> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env select

Stel de standaardomgeving in.

azd env select <environment> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd env set

Uw omgevingsinstellingen beheren.

azd env set <key> <value> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd hooks

Ontwikkel, test en voer hooks uit voor een toepassing. (Bèta)

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd hooks run

Hiermee wordt de opgegeven hook voor het project en de services uitgevoerd

azd hooks run <name> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd init

Initialiseer een nieuwe toepassing.

azd init [flags]

Opties

  -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.
  -h, --help                  Gets help for init.
  -l, --location string       Azure location for the new environment
  -s, --subscription string   Name or ID of an Azure subscription to use for the new environment
  -t, --template string       The template to use when you initialize the project. You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd monitor

Een geïmplementeerde toepassing bewaken. (Bèta)

azd monitor [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd package

Verpakt de code van de toepassing die moet worden geïmplementeerd in Azure. (Bèta)

azd package <service> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd pipeline

Beheer en configureer uw implementatiepijplijnen. (Bèta)

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd pipeline config

Configureer uw implementatiepijplijn om veilig verbinding te maken met Azure. (Bèta)

azd pipeline config [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd provision

Richt de Azure-resources in voor een toepassing.

azd provision [flags]

Opties

      --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             Do not use latest Deployment State (bicep only).
      --preview              Preview changes to Azure resources.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd restore

Hiermee worden de afhankelijkheden van de toepassing hersteld. (Bèta)

azd restore <service> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd show

Geef informatie weer over uw app en de bijbehorende resources.

azd show [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template

Sjabloondetails zoeken en weergeven. (Bèta)

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template list

Lijst met azd-voorbeeldsjablonen weergeven. (Bèta)

azd template list [flags]

Opties

      --docs            Opens the documentation for azd template list in your web browser.
  -h, --help            Gets help for list.
  -s, --source string   Filters templates by source.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template show

Details weergeven voor een bepaalde sjabloon. (Bèta)

azd template show <template> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template source

Sjabloonbronnen weergeven en beheren. (Bèta)

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template source add

Voegt een azd-sjabloonbron toe op de opgegeven sleutel (bèta)

azd template source add <key> [flags]

Opties

      --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.
  -n, --name string       Display name of the template source.
  -t, --type string       Kind of the template source.

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template source list

Hier worden de geconfigureerde azd-sjabloonbronnen weergegeven. (Bèta)

azd template source list [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd template source remove

Hiermee verwijdert u de opgegeven azd-sjabloonbron (bèta)

azd template source remove <key> [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd up

Richt Azure-resources in en implementeer uw project met één opdracht.

azd up [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook

azd version

Druk het versienummer van Azure Developer CLI af.

azd version [flags]

Opties

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

Opties overgenomen van bovenliggende opdrachten

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

Zie ook