CLI Reference

Preview

Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in

CLI Reference

Every command the locally CLI ships, in one place. This page is generated from the CLI's own help output, so it matches what locally <command> --help prints. Flags that apply to locally run itself must come before the command being run.

Commands

Command Does
locally accountShow the signed-in account.
locally analyticsShow the analytics this installation has collected.
locally auditView audit events.
locally buildLaunch the Locally environment on this machine.
locally certificateManage the TLS certificate Locally uses.
locally chaosSimulate transient failures in Locally.
locally ciLaunch the Locally environment in CI mode.
locally completionGenerate the autocompletion script for the specified shell
locally configureConfigure this machine for Locally, one change at a time.
locally connectConnect to a Virtual Machine or a Virtual Machine Scale Set instance.
locally dashboardOpen the Locally Dashboard in your browser.
locally deployDeploy an ARM or Bicep template to Locally.
locally docsOpen the Locally documentation in your browser.
locally eventhubInteract with Event Hubs Namespaces within Locally.
locally functionInteract with Function Apps within Locally.
locally iothubInteract with IoT Hubs within Locally.
locally loginSign this installation in to a Locally Account.
locally logoutSign out and deregister this installation.
locally logsView HTTP request/response logs.
locally mcpLaunch the Locally MCP server.
locally mysqlInteract with MySQL Flexible Servers within Locally.
locally pluginManage Resource Provider plugins.
locally postgresInteract with PostgreSQL Flexible Servers within Locally.
locally redisInteract with Redis Caches within Locally.
locally refreshRefresh this installation's Locally licence.
locally refresh-reference-dataRefresh Locally's reference-data override files from real Azure via the Azure CLI.
locally regionsList Azure regions known to Locally.
locally runRun a tool against Locally using Automatic Configuration (az, terraform, pulumi, curl, ...).
locally runbooksManage Locally Runbooks.
locally servicebusInteract with Service Bus Namespaces within Locally.
locally setupSet up this machine to run Locally.
locally storageInteract with Storage Accounts within Locally.
locally subscriptionsManage Locally subscriptions.
locally updateUpdate this copy of Locally to the latest version.
locally validateCheck that Locally is fully configured and ready to run.
locally versionPrint the version of Locally in this binary.

locally account

Show the signed-in account.

Show the signed-in user and organisation. Run 'locally account sync' to refresh from the Locally API.

Usage

locally account [flags]
  locally account [command]

Subcommands

locally account login

Sign this installation in to a Locally Account.

Connects an installation that was set up without an account to a Locally Account. Signing in lifts the plugin allowance and gives you a longer session. To set up a new installation, use 'locally setup' instead.

Usage

locally account login [flags]

Flags

Flag Type Description
--skip-browserPrint the sign-in URL instead of opening a browser.

locally account logout

Sign out and deregister this installation.

Signs you out of your Locally Account on this machine and removes this installation's certificate. Locally will not run again until you re-run 'locally setup'.

Usage

locally account logout [flags]

Flags

Flag Type Description
--forceSkip the confirmation prompt.

locally account sync

Refresh the signed-in account from the Locally API.

Fetches your profile, organisation, teams, and team policies, runbooks and data scripts, and updates the local cache.

Usage

locally account sync [flags]

locally analytics

Show the analytics this installation has collected.

Shows whether analytics submission is enabled, your installation ID, uptime, version, and the
resource types and API versions you've provisioned.

Analytics are held in memory and only sent if you opted in during 'locally setup'. Submitted
analytics also feed Locally Directory, which shows your team who knows which resource types.

Usage

locally analytics [flags]

locally audit

View audit events.

View audit events from all services, with interactive filtering.

Usage

locally audit [flags]
  locally audit [command]

Flags

Flag Type Description
--jsonOutput audit events as JSON

Subcommands

locally audit clear

Clear all audit events.

Usage

locally audit clear [flags]

locally build

Launch the Locally environment on this machine.

Launches the Locally environment on this machine, which includes:

* The Dashboard
* The Control Plane API
* The Authorization API
* The Directory API

The Dashboard opens in your browser. Use 'locally run' to point az, Terraform, Pulumi and the
Azure SDKs at it. In CI, use 'locally ci' instead.

Before launching, this checks that *.locally resolves and that any installed container runtime can
reach Locally, and refuses to start if not. Skip a check with its --skip-*-check flag or the
matching LOCALLY_SKIP_*_CHECK=1 environment variable.

Locally listens on 127.0.0.1, except for these, which listen on every interface so containers can
reach them: the *.locally DNS server (port 5673), the identity endpoint that containers fetch
managed-identity tokens from, and the authenticated entry port in front of each database engine
(Postgres, MySQL, Redis). If you run a host firewall, expect these ports to be open.

On Docker Desktop, Locally also starts a DNS forwarder container so the containers it launches can
resolve *.locally. See 'locally configure docker', or set LOCALLY_CONTAINER_DNS=none to opt out.

Usage

locally build [flags]

Flags

Flag Type Description
--skip-browserSkip opening the dashboard in a browser on launch
--skip-certificate-checkStart even if the TLS certificate does not cover every name Locally serves. Also LOCALLY_SKIP_CERTIFICATE_CHECK=1.
--skip-dns-checkStart even if *.locally does not resolve. Also LOCALLY_SKIP_DNS_CHECK=1.
--skip-docker-checkStart even if Docker cannot reach Locally. Also LOCALLY_SKIP_DOCKER_CHECK=1.
--skip-podman-checkStart even if Podman cannot reach Locally. Also LOCALLY_SKIP_PODMAN_CHECK=1.

locally certificate

Manage the TLS certificate Locally uses.

Usage

locally certificate [flags]
  locally certificate [command]

Subcommands

locally certificate generate

Generate a TLS certificate covering every domain Locally needs.

Generates a TLS certificate covering every hostname and IP Locally serves.

Uses mkcert (https://github.com/FiloSottile/mkcert) if it's on your $PATH, otherwise Locally's built-in certificate authority. Pass --source to choose.

Asks before overwriting existing files in --out-dir; without a terminal, pass --force.

Works before Locally is configured.

Examples:
# Generate a certificate, preferring mkcert and falling back to the built-in CA
  locally certificate generate

  # Use the built-in CA even if mkcert is installed
  locally certificate generate --source builtin

  # Write into another directory, leaving this installation's configuration alone
  locally certificate generate --out-dir ./certs --no-update-config

Usage

locally certificate generate [flags]

Flags

Flag Type Description
--forceOverwrite an existing certificate, key or CA already in --out-dir without prompting.
--no-update-configLeave this installation's configuration untouched, without prompting.
--out-dirstringDirectory to write the certificate, key and CA into (created if missing). (default "~/.config/locally")
--sourcestringWhich generator to use: auto (prefer mkcert, fall back to the built-in CA), mkcert (require mkcert) or builtin (force the built-in CA). (default "auto")
--update-configPoint this installation's configuration at the newly generated certificate, without prompting.

locally certificate get-mkcert-command

Print a ready-to-run mkcert command covering every domain Locally needs.

Prints an mkcert command that generates a TLS certificate covering every hostname and IP Locally serves.

The output is unquoted so it can be run with `$(locally certificate get-mkcert-command)`. To run mkcert without going through the shell, use `locally certificate generate`.

Works before Locally is configured.

Examples:
# Print the command and run it interactively
  locally certificate get-mkcert-command

  # Run it (bash / zsh)
  $(locally certificate get-mkcert-command)

  # Override the output file paths
  locally certificate get-mkcert-command --out-dir ./certs --cert-file dev.pem --key-file dev.key

Usage

locally certificate get-mkcert-command [flags]

Flags

Flag Type Description
--cert-filestringFilename for the generated certificate (passed to mkcert -cert-file). (default "local-cert.pem")
--key-filestringFilename for the generated private key (passed to mkcert -key-file). (default "local-cert.key")
--out-dirstringDirectory to prepend to --cert-file and --key-file. Defaults to the current working directory.

locally certificate get-required-domains

Print the domains Locally's TLS certificate must cover, comma-separated.

Prints the domains Locally's TLS certificate must cover, for CI jobs that generate a certificate before starting Locally.

Works before Locally is configured.

Examples:
# Capture the list into an env var for later steps
  echo "DOMAINS=$(locally certificate get-required-domains)" >> $GITHUB_ENV

  # Pass directly to a cert tool (converting commas to spaces)
  mkcert $(locally certificate get-required-domains | tr ',' ' ')

Usage

locally certificate get-required-domains [flags]

locally chaos

Simulate transient failures in Locally.

Simulate transient failures in Locally's control plane (ARM), directory
(Microsoft Graph) or a data-plane service.

Each fault has a rate, plus optional rules that override it for one location
or plugin. Requests that match no rule use the fault's rate, so "everywhere
except one place" is a rate of 100 plus a rule at 0.

'locally chaos enable' switches the control plane and data-plane services on
or off; 'locally chaos directory enable' does the same for the directory.
Setting a fault switches its surface on.

Examples:
# Inject 500s on 10% of ARM requests
  locally chaos control-plane 500 --percentage 10

  # An outage in one location, for one plugin only
  locally chaos control-plane outage --percentage 100 --location london --plugin Microsoft.Storage

  # Throttle everywhere EXCEPT one location
  locally chaos storage 429 --percentage 100
  locally chaos storage 429 --percentage 0 --location london

  # Put one rule back, then everything back
  locally chaos storage 429 reset --location london
  locally chaos storage reset

  # See what is configured
  locally chaos show
  locally chaos control-plane show

Usage

locally chaos [flags]
  locally chaos [command]

Subcommands

locally chaos control-plane

Simulate ARM (control plane) failure modes.

Simulate ARM (control plane) failure modes.

Without --plugin / --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos control-plane <fault> --percentage N
  locally chaos control-plane <fault> reset
  locally chaos control-plane show
  locally chaos control-plane reset

Usage

locally chaos control-plane [flags]
  locally chaos control-plane [command]

Subcommands

locally chaos control-plane 403

Set the 403 fault's rate on ARM (control plane).

Set the 403 fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane 403 --percentage 25
  locally chaos control-plane 403 --percentage 100 --location london
  locally chaos control-plane 403 reset --location london
  locally chaos control-plane 403 --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane 403 [flags]
  locally chaos control-plane 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane 429

Set the 429 fault's rate on ARM (control plane).

Set the 429 fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane 429 --percentage 25
  locally chaos control-plane 429 --percentage 100 --location london
  locally chaos control-plane 429 reset --location london
  locally chaos control-plane 429 --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane 429 [flags]
  locally chaos control-plane 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane 500

Set the 500 fault's rate on ARM (control plane).

Set the 500 fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane 500 --percentage 25
  locally chaos control-plane 500 --percentage 100 --location london
  locally chaos control-plane 500 reset --location london
  locally chaos control-plane 500 --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane 500 [flags]
  locally chaos control-plane 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane drop-connection

Set the drop-connection fault's rate on ARM (control plane).

Set the drop-connection fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane drop-connection --percentage 25
  locally chaos control-plane drop-connection --percentage 100 --location london
  locally chaos control-plane drop-connection reset --location london
  locally chaos control-plane drop-connection --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane drop-connection [flags]
  locally chaos control-plane drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane latency

Set the latency fault's rate on ARM (control plane).

Set the latency fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos control-plane latency --percentage 25 --seconds 30
  locally chaos control-plane latency --percentage 100 --seconds 30 --location london
  locally chaos control-plane latency reset --location london
  locally chaos control-plane latency --percentage 100 --seconds 30 --plugin Microsoft.Compute

Usage

locally chaos control-plane latency [flags]
  locally chaos control-plane latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane lro-delay

Set the lro-delay fault's rate on ARM (control plane).

Set the lro-delay fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos control-plane lro-delay --percentage 25 --seconds 30
  locally chaos control-plane lro-delay --percentage 100 --seconds 30 --location london
  locally chaos control-plane lro-delay reset --location london
  locally chaos control-plane lro-delay --percentage 100 --seconds 30 --plugin Microsoft.Compute

Usage

locally chaos control-plane lro-delay [flags]
  locally chaos control-plane lro-delay [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane lro-delay reset

Remove one lro-delay rule, or put the whole fault back to zero.

Reset the lro-delay fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane lro-delay reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane lro-failure

Set the lro-failure fault's rate on ARM (control plane).

Set the lro-failure fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane lro-failure --percentage 25
  locally chaos control-plane lro-failure --percentage 100 --location london
  locally chaos control-plane lro-failure reset --location london
  locally chaos control-plane lro-failure --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane lro-failure [flags]
  locally chaos control-plane lro-failure [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane lro-failure reset

Remove one lro-failure rule, or put the whole fault back to zero.

Reset the lro-failure fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane lro-failure reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane out-of-capacity

Set the out-of-capacity fault's rate on ARM (control plane).

Set the out-of-capacity fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane out-of-capacity --percentage 25
  locally chaos control-plane out-of-capacity --percentage 100 --location london
  locally chaos control-plane out-of-capacity reset --location london
  locally chaos control-plane out-of-capacity --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane out-of-capacity [flags]
  locally chaos control-plane out-of-capacity [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane out-of-capacity reset

Remove one out-of-capacity rule, or put the whole fault back to zero.

Reset the out-of-capacity fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane out-of-capacity reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane outage

Set the outage fault's rate on ARM (control plane).

Set the outage fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane outage --percentage 25
  locally chaos control-plane outage --percentage 100 --location london
  locally chaos control-plane outage reset --location london
  locally chaos control-plane outage --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane outage [flags]
  locally chaos control-plane outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane quota-exceeded

Set the quota-exceeded fault's rate on ARM (control plane).

Set the quota-exceeded fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane quota-exceeded --percentage 25
  locally chaos control-plane quota-exceeded --percentage 100 --location london
  locally chaos control-plane quota-exceeded reset --location london
  locally chaos control-plane quota-exceeded --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane quota-exceeded [flags]
  locally chaos control-plane quota-exceeded [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane quota-exceeded reset

Remove one quota-exceeded rule, or put the whole fault back to zero.

Reset the quota-exceeded fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane quota-exceeded reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane recase-names

Set the recase-names fault's rate on ARM (control plane).

Set the recase-names fault's rate on ARM (control plane).

Without scope flags this sets the fault's rate. With --plugin / --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos control-plane recase-names --percentage 25
  locally chaos control-plane recase-names --percentage 100 --location london
  locally chaos control-plane recase-names reset --location london
  locally chaos control-plane recase-names --percentage 100 --plugin Microsoft.Compute

Usage

locally chaos control-plane recase-names [flags]
  locally chaos control-plane recase-names [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos control-plane recase-names reset

Remove one recase-names rule, or put the whole fault back to zero.

Reset the recase-names fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos control-plane recase-names reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--pluginstringScope this rule to one ARM provider, e.g. Microsoft.Compute
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane reset

Zero every ARM (control plane) fault and drop every rule.

Zero every ARM (control plane) fault and drop every rule.

Examples:
locally chaos control-plane reset

Usage

locally chaos control-plane reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos control-plane show

Print the current ARM (control plane) chaos configuration.

Print the current ARM (control plane) chaos configuration.

Examples:
locally chaos control-plane show

Usage

locally chaos control-plane show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos

Simulate Cosmos DB (data plane) failure modes.

Simulate Cosmos DB (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos cosmos <fault> --percentage N
  locally chaos cosmos <fault> reset
  locally chaos cosmos show
  locally chaos cosmos reset

Usage

locally chaos cosmos [flags]
  locally chaos cosmos [command]

Subcommands

locally chaos cosmos 403

Set the 403 fault's rate on Cosmos DB (data plane).

Set the 403 fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos cosmos 403 --percentage 25
  locally chaos cosmos 403 --percentage 100 --location london
  locally chaos cosmos 403 reset --location london

Usage

locally chaos cosmos 403 [flags]
  locally chaos cosmos 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos 429

Set the 429 fault's rate on Cosmos DB (data plane).

Set the 429 fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos cosmos 429 --percentage 25
  locally chaos cosmos 429 --percentage 100 --location london
  locally chaos cosmos 429 reset --location london

Usage

locally chaos cosmos 429 [flags]
  locally chaos cosmos 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos 500

Set the 500 fault's rate on Cosmos DB (data plane).

Set the 500 fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos cosmos 500 --percentage 25
  locally chaos cosmos 500 --percentage 100 --location london
  locally chaos cosmos 500 reset --location london

Usage

locally chaos cosmos 500 [flags]
  locally chaos cosmos 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos drop-connection

Set the drop-connection fault's rate on Cosmos DB (data plane).

Set the drop-connection fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos cosmos drop-connection --percentage 25
  locally chaos cosmos drop-connection --percentage 100 --location london
  locally chaos cosmos drop-connection reset --location london

Usage

locally chaos cosmos drop-connection [flags]
  locally chaos cosmos drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos latency

Set the latency fault's rate on Cosmos DB (data plane).

Set the latency fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos cosmos latency --percentage 25 --seconds 30
  locally chaos cosmos latency --percentage 100 --seconds 30 --location london
  locally chaos cosmos latency reset --location london

Usage

locally chaos cosmos latency [flags]
  locally chaos cosmos latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos outage

Set the outage fault's rate on Cosmos DB (data plane).

Set the outage fault's rate on Cosmos DB (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos cosmos outage --percentage 25
  locally chaos cosmos outage --percentage 100 --location london
  locally chaos cosmos outage reset --location london

Usage

locally chaos cosmos outage [flags]
  locally chaos cosmos outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos cosmos outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos cosmos outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos reset

Zero every Cosmos DB (data plane) fault and drop every rule.

Zero every Cosmos DB (data plane) fault and drop every rule.

Examples:
locally chaos cosmos reset

Usage

locally chaos cosmos reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos cosmos show

Print the current Cosmos DB (data plane) chaos configuration.

Print the current Cosmos DB (data plane) chaos configuration.

Examples:
locally chaos cosmos show

Usage

locally chaos cosmos show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos directory

Simulate Microsoft Graph (directory) failure modes.

Simulate Microsoft Graph (directory) failure modes.

Without no scope flags (this surface has no rules), a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos directory <fault> --percentage N
  locally chaos directory <fault> reset
  locally chaos directory show
  locally chaos directory reset

Usage

locally chaos directory [flags]
  locally chaos directory [command]

Subcommands

locally chaos directory 403

Set the 403 fault's rate on Microsoft Graph (directory).

Set the 403 fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

Examples:
locally chaos directory 403 --percentage 25

Usage

locally chaos directory 403 [flags]
  locally chaos directory 403 [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory 403 reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory 429

Set the 429 fault's rate on Microsoft Graph (directory).

Set the 429 fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

Examples:
locally chaos directory 429 --percentage 25

Usage

locally chaos directory 429 [flags]
  locally chaos directory 429 [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory 429 reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory 500

Set the 500 fault's rate on Microsoft Graph (directory).

Set the 500 fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

Examples:
locally chaos directory 500 --percentage 25

Usage

locally chaos directory 500 [flags]
  locally chaos directory 500 [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory 500 reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory disable

Turn chaos OFF for the directory.

Turn chaos OFF for the directory.

Disabling keeps every fault's configuration, so a later enable restores it.

Usage

locally chaos directory disable [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory drop-connection

Set the drop-connection fault's rate on Microsoft Graph (directory).

Set the drop-connection fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

Examples:
locally chaos directory drop-connection --percentage 25

Usage

locally chaos directory drop-connection [flags]
  locally chaos directory drop-connection [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory drop-connection reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory enable

Turn chaos ON for the directory.

Turn chaos ON for the directory.

Disabling keeps every fault's configuration, so a later enable restores it.

Usage

locally chaos directory enable [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory eventual-consistency

Set the eventual-consistency fault's rate on Microsoft Graph (directory).

Set the eventual-consistency fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos directory eventual-consistency --percentage 25 --seconds 30

Usage

locally chaos directory eventual-consistency [flags]
  locally chaos directory eventual-consistency [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory eventual-consistency reset

Remove one eventual-consistency rule, or put the whole fault back to zero.

Reset the eventual-consistency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory eventual-consistency reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory latency

Set the latency fault's rate on Microsoft Graph (directory).

Set the latency fault's rate on Microsoft Graph (directory).

Graph is regionless and has no plugins, so this fault is a single rate.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos directory latency --percentage 25 --seconds 30

Usage

locally chaos directory latency [flags]
  locally chaos directory latency [command]

Flags

Flag Type Description
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--tenantstringTenant UUID (defaults to the configured default)

Subcommands

locally chaos directory latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos directory latency reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory reset

Zero every Microsoft Graph (directory) fault and drop every rule.

Zero every Microsoft Graph (directory) fault and drop every rule.

Examples:
locally chaos directory reset

Usage

locally chaos directory reset [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos directory show

Print the current Microsoft Graph (directory) chaos configuration.

Print the current Microsoft Graph (directory) chaos configuration.

Examples:
locally chaos directory show

Usage

locally chaos directory show [flags]

Flags

Flag Type Description
--tenantstringTenant UUID (defaults to the configured default)

locally chaos disable

Turn chaos OFF for the control plane and data-plane services.

Turn chaos OFF for the control plane and data-plane services.

Disabling keeps every fault's configuration, so a later enable restores it.

Usage

locally chaos disable [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos enable

Turn chaos ON for the control plane and data-plane services.

Turn chaos ON for the control plane and data-plane services.

Disabling keeps every fault's configuration, so a later enable restores it.

Usage

locally chaos enable [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid

Simulate Event Grid (data plane) failure modes.

Simulate Event Grid (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos eventgrid <fault> --percentage N
  locally chaos eventgrid <fault> reset
  locally chaos eventgrid show
  locally chaos eventgrid reset

Usage

locally chaos eventgrid [flags]
  locally chaos eventgrid [command]

Subcommands

locally chaos eventgrid 403

Set the 403 fault's rate on Event Grid (data plane).

Set the 403 fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventgrid 403 --percentage 25
  locally chaos eventgrid 403 --percentage 100 --location london
  locally chaos eventgrid 403 reset --location london

Usage

locally chaos eventgrid 403 [flags]
  locally chaos eventgrid 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid 429

Set the 429 fault's rate on Event Grid (data plane).

Set the 429 fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventgrid 429 --percentage 25
  locally chaos eventgrid 429 --percentage 100 --location london
  locally chaos eventgrid 429 reset --location london

Usage

locally chaos eventgrid 429 [flags]
  locally chaos eventgrid 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid 500

Set the 500 fault's rate on Event Grid (data plane).

Set the 500 fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventgrid 500 --percentage 25
  locally chaos eventgrid 500 --percentage 100 --location london
  locally chaos eventgrid 500 reset --location london

Usage

locally chaos eventgrid 500 [flags]
  locally chaos eventgrid 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid drop-connection

Set the drop-connection fault's rate on Event Grid (data plane).

Set the drop-connection fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventgrid drop-connection --percentage 25
  locally chaos eventgrid drop-connection --percentage 100 --location london
  locally chaos eventgrid drop-connection reset --location london

Usage

locally chaos eventgrid drop-connection [flags]
  locally chaos eventgrid drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid latency

Set the latency fault's rate on Event Grid (data plane).

Set the latency fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos eventgrid latency --percentage 25 --seconds 30
  locally chaos eventgrid latency --percentage 100 --seconds 30 --location london
  locally chaos eventgrid latency reset --location london

Usage

locally chaos eventgrid latency [flags]
  locally chaos eventgrid latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid outage

Set the outage fault's rate on Event Grid (data plane).

Set the outage fault's rate on Event Grid (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventgrid outage --percentage 25
  locally chaos eventgrid outage --percentage 100 --location london
  locally chaos eventgrid outage reset --location london

Usage

locally chaos eventgrid outage [flags]
  locally chaos eventgrid outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventgrid outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventgrid outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid reset

Zero every Event Grid (data plane) fault and drop every rule.

Zero every Event Grid (data plane) fault and drop every rule.

Examples:
locally chaos eventgrid reset

Usage

locally chaos eventgrid reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventgrid show

Print the current Event Grid (data plane) chaos configuration.

Print the current Event Grid (data plane) chaos configuration.

Examples:
locally chaos eventgrid show

Usage

locally chaos eventgrid show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub

Simulate Event Hubs (data plane) failure modes.

Simulate Event Hubs (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos eventhub <fault> --percentage N
  locally chaos eventhub <fault> reset
  locally chaos eventhub show
  locally chaos eventhub reset

Usage

locally chaos eventhub [flags]
  locally chaos eventhub [command]

Subcommands

locally chaos eventhub 403

Set the 403 fault's rate on Event Hubs (data plane).

Set the 403 fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventhub 403 --percentage 25
  locally chaos eventhub 403 --percentage 100 --location london
  locally chaos eventhub 403 reset --location london

Usage

locally chaos eventhub 403 [flags]
  locally chaos eventhub 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub 429

Set the 429 fault's rate on Event Hubs (data plane).

Set the 429 fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventhub 429 --percentage 25
  locally chaos eventhub 429 --percentage 100 --location london
  locally chaos eventhub 429 reset --location london

Usage

locally chaos eventhub 429 [flags]
  locally chaos eventhub 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub 500

Set the 500 fault's rate on Event Hubs (data plane).

Set the 500 fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventhub 500 --percentage 25
  locally chaos eventhub 500 --percentage 100 --location london
  locally chaos eventhub 500 reset --location london

Usage

locally chaos eventhub 500 [flags]
  locally chaos eventhub 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub drop-connection

Set the drop-connection fault's rate on Event Hubs (data plane).

Set the drop-connection fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventhub drop-connection --percentage 25
  locally chaos eventhub drop-connection --percentage 100 --location london
  locally chaos eventhub drop-connection reset --location london

Usage

locally chaos eventhub drop-connection [flags]
  locally chaos eventhub drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub latency

Set the latency fault's rate on Event Hubs (data plane).

Set the latency fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos eventhub latency --percentage 25 --seconds 30
  locally chaos eventhub latency --percentage 100 --seconds 30 --location london
  locally chaos eventhub latency reset --location london

Usage

locally chaos eventhub latency [flags]
  locally chaos eventhub latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub outage

Set the outage fault's rate on Event Hubs (data plane).

Set the outage fault's rate on Event Hubs (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos eventhub outage --percentage 25
  locally chaos eventhub outage --percentage 100 --location london
  locally chaos eventhub outage reset --location london

Usage

locally chaos eventhub outage [flags]
  locally chaos eventhub outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos eventhub outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos eventhub outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub reset

Zero every Event Hubs (data plane) fault and drop every rule.

Zero every Event Hubs (data plane) fault and drop every rule.

Examples:
locally chaos eventhub reset

Usage

locally chaos eventhub reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos eventhub show

Print the current Event Hubs (data plane) chaos configuration.

Print the current Event Hubs (data plane) chaos configuration.

Examples:
locally chaos eventhub show

Usage

locally chaos eventhub show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions

Simulate Functions (data plane) failure modes.

Simulate Functions (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos functions <fault> --percentage N
  locally chaos functions <fault> reset
  locally chaos functions show
  locally chaos functions reset

Usage

locally chaos functions [flags]
  locally chaos functions [command]

Subcommands

locally chaos functions 403

Set the 403 fault's rate on Functions (data plane).

Set the 403 fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos functions 403 --percentage 25
  locally chaos functions 403 --percentage 100 --location london
  locally chaos functions 403 reset --location london

Usage

locally chaos functions 403 [flags]
  locally chaos functions 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions 429

Set the 429 fault's rate on Functions (data plane).

Set the 429 fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos functions 429 --percentage 25
  locally chaos functions 429 --percentage 100 --location london
  locally chaos functions 429 reset --location london

Usage

locally chaos functions 429 [flags]
  locally chaos functions 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions 500

Set the 500 fault's rate on Functions (data plane).

Set the 500 fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos functions 500 --percentage 25
  locally chaos functions 500 --percentage 100 --location london
  locally chaos functions 500 reset --location london

Usage

locally chaos functions 500 [flags]
  locally chaos functions 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions drop-connection

Set the drop-connection fault's rate on Functions (data plane).

Set the drop-connection fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos functions drop-connection --percentage 25
  locally chaos functions drop-connection --percentage 100 --location london
  locally chaos functions drop-connection reset --location london

Usage

locally chaos functions drop-connection [flags]
  locally chaos functions drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions latency

Set the latency fault's rate on Functions (data plane).

Set the latency fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos functions latency --percentage 25 --seconds 30
  locally chaos functions latency --percentage 100 --seconds 30 --location london
  locally chaos functions latency reset --location london

Usage

locally chaos functions latency [flags]
  locally chaos functions latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions outage

Set the outage fault's rate on Functions (data plane).

Set the outage fault's rate on Functions (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos functions outage --percentage 25
  locally chaos functions outage --percentage 100 --location london
  locally chaos functions outage reset --location london

Usage

locally chaos functions outage [flags]
  locally chaos functions outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos functions outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos functions outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions reset

Zero every Functions (data plane) fault and drop every rule.

Zero every Functions (data plane) fault and drop every rule.

Examples:
locally chaos functions reset

Usage

locally chaos functions reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos functions show

Print the current Functions (data plane) chaos configuration.

Print the current Functions (data plane) chaos configuration.

Examples:
locally chaos functions show

Usage

locally chaos functions show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault

Simulate Key Vault (data plane) failure modes.

Simulate Key Vault (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos keyvault <fault> --percentage N
  locally chaos keyvault <fault> reset
  locally chaos keyvault show
  locally chaos keyvault reset

Usage

locally chaos keyvault [flags]
  locally chaos keyvault [command]

Subcommands

locally chaos keyvault 403

Set the 403 fault's rate on Key Vault (data plane).

Set the 403 fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos keyvault 403 --percentage 25
  locally chaos keyvault 403 --percentage 100 --location london
  locally chaos keyvault 403 reset --location london

Usage

locally chaos keyvault 403 [flags]
  locally chaos keyvault 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault 429

Set the 429 fault's rate on Key Vault (data plane).

Set the 429 fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos keyvault 429 --percentage 25
  locally chaos keyvault 429 --percentage 100 --location london
  locally chaos keyvault 429 reset --location london

Usage

locally chaos keyvault 429 [flags]
  locally chaos keyvault 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault 500

Set the 500 fault's rate on Key Vault (data plane).

Set the 500 fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos keyvault 500 --percentage 25
  locally chaos keyvault 500 --percentage 100 --location london
  locally chaos keyvault 500 reset --location london

Usage

locally chaos keyvault 500 [flags]
  locally chaos keyvault 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault drop-connection

Set the drop-connection fault's rate on Key Vault (data plane).

Set the drop-connection fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos keyvault drop-connection --percentage 25
  locally chaos keyvault drop-connection --percentage 100 --location london
  locally chaos keyvault drop-connection reset --location london

Usage

locally chaos keyvault drop-connection [flags]
  locally chaos keyvault drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault latency

Set the latency fault's rate on Key Vault (data plane).

Set the latency fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos keyvault latency --percentage 25 --seconds 30
  locally chaos keyvault latency --percentage 100 --seconds 30 --location london
  locally chaos keyvault latency reset --location london

Usage

locally chaos keyvault latency [flags]
  locally chaos keyvault latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault outage

Set the outage fault's rate on Key Vault (data plane).

Set the outage fault's rate on Key Vault (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos keyvault outage --percentage 25
  locally chaos keyvault outage --percentage 100 --location london
  locally chaos keyvault outage reset --location london

Usage

locally chaos keyvault outage [flags]
  locally chaos keyvault outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos keyvault outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos keyvault outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault reset

Zero every Key Vault (data plane) fault and drop every rule.

Zero every Key Vault (data plane) fault and drop every rule.

Examples:
locally chaos keyvault reset

Usage

locally chaos keyvault reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos keyvault show

Print the current Key Vault (data plane) chaos configuration.

Print the current Key Vault (data plane) chaos configuration.

Examples:
locally chaos keyvault show

Usage

locally chaos keyvault show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm

Simulate Managed HSM (data plane) failure modes.

Simulate Managed HSM (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos managedhsm <fault> --percentage N
  locally chaos managedhsm <fault> reset
  locally chaos managedhsm show
  locally chaos managedhsm reset

Usage

locally chaos managedhsm [flags]
  locally chaos managedhsm [command]

Subcommands

locally chaos managedhsm 403

Set the 403 fault's rate on Managed HSM (data plane).

Set the 403 fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos managedhsm 403 --percentage 25
  locally chaos managedhsm 403 --percentage 100 --location london
  locally chaos managedhsm 403 reset --location london

Usage

locally chaos managedhsm 403 [flags]
  locally chaos managedhsm 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm 429

Set the 429 fault's rate on Managed HSM (data plane).

Set the 429 fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos managedhsm 429 --percentage 25
  locally chaos managedhsm 429 --percentage 100 --location london
  locally chaos managedhsm 429 reset --location london

Usage

locally chaos managedhsm 429 [flags]
  locally chaos managedhsm 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm 500

Set the 500 fault's rate on Managed HSM (data plane).

Set the 500 fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos managedhsm 500 --percentage 25
  locally chaos managedhsm 500 --percentage 100 --location london
  locally chaos managedhsm 500 reset --location london

Usage

locally chaos managedhsm 500 [flags]
  locally chaos managedhsm 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm drop-connection

Set the drop-connection fault's rate on Managed HSM (data plane).

Set the drop-connection fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos managedhsm drop-connection --percentage 25
  locally chaos managedhsm drop-connection --percentage 100 --location london
  locally chaos managedhsm drop-connection reset --location london

Usage

locally chaos managedhsm drop-connection [flags]
  locally chaos managedhsm drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm latency

Set the latency fault's rate on Managed HSM (data plane).

Set the latency fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos managedhsm latency --percentage 25 --seconds 30
  locally chaos managedhsm latency --percentage 100 --seconds 30 --location london
  locally chaos managedhsm latency reset --location london

Usage

locally chaos managedhsm latency [flags]
  locally chaos managedhsm latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm outage

Set the outage fault's rate on Managed HSM (data plane).

Set the outage fault's rate on Managed HSM (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos managedhsm outage --percentage 25
  locally chaos managedhsm outage --percentage 100 --location london
  locally chaos managedhsm outage reset --location london

Usage

locally chaos managedhsm outage [flags]
  locally chaos managedhsm outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos managedhsm outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos managedhsm outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm reset

Zero every Managed HSM (data plane) fault and drop every rule.

Zero every Managed HSM (data plane) fault and drop every rule.

Examples:
locally chaos managedhsm reset

Usage

locally chaos managedhsm reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos managedhsm show

Print the current Managed HSM (data plane) chaos configuration.

Print the current Managed HSM (data plane) chaos configuration.

Examples:
locally chaos managedhsm show

Usage

locally chaos managedhsm show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor

Simulate Monitor (data plane) failure modes.

Simulate Monitor (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos monitor <fault> --percentage N
  locally chaos monitor <fault> reset
  locally chaos monitor show
  locally chaos monitor reset

Usage

locally chaos monitor [flags]
  locally chaos monitor [command]

Subcommands

locally chaos monitor 403

Set the 403 fault's rate on Monitor (data plane).

Set the 403 fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos monitor 403 --percentage 25
  locally chaos monitor 403 --percentage 100 --location london
  locally chaos monitor 403 reset --location london

Usage

locally chaos monitor 403 [flags]
  locally chaos monitor 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor 429

Set the 429 fault's rate on Monitor (data plane).

Set the 429 fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos monitor 429 --percentage 25
  locally chaos monitor 429 --percentage 100 --location london
  locally chaos monitor 429 reset --location london

Usage

locally chaos monitor 429 [flags]
  locally chaos monitor 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor 500

Set the 500 fault's rate on Monitor (data plane).

Set the 500 fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos monitor 500 --percentage 25
  locally chaos monitor 500 --percentage 100 --location london
  locally chaos monitor 500 reset --location london

Usage

locally chaos monitor 500 [flags]
  locally chaos monitor 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor drop-connection

Set the drop-connection fault's rate on Monitor (data plane).

Set the drop-connection fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos monitor drop-connection --percentage 25
  locally chaos monitor drop-connection --percentage 100 --location london
  locally chaos monitor drop-connection reset --location london

Usage

locally chaos monitor drop-connection [flags]
  locally chaos monitor drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor latency

Set the latency fault's rate on Monitor (data plane).

Set the latency fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos monitor latency --percentage 25 --seconds 30
  locally chaos monitor latency --percentage 100 --seconds 30 --location london
  locally chaos monitor latency reset --location london

Usage

locally chaos monitor latency [flags]
  locally chaos monitor latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor outage

Set the outage fault's rate on Monitor (data plane).

Set the outage fault's rate on Monitor (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos monitor outage --percentage 25
  locally chaos monitor outage --percentage 100 --location london
  locally chaos monitor outage reset --location london

Usage

locally chaos monitor outage [flags]
  locally chaos monitor outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos monitor outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos monitor outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor reset

Zero every Monitor (data plane) fault and drop every rule.

Zero every Monitor (data plane) fault and drop every rule.

Examples:
locally chaos monitor reset

Usage

locally chaos monitor reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos monitor show

Print the current Monitor (data plane) chaos configuration.

Print the current Monitor (data plane) chaos configuration.

Examples:
locally chaos monitor show

Usage

locally chaos monitor show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus

Simulate Service Bus (data plane) failure modes.

Simulate Service Bus (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos servicebus <fault> --percentage N
  locally chaos servicebus <fault> reset
  locally chaos servicebus show
  locally chaos servicebus reset

Usage

locally chaos servicebus [flags]
  locally chaos servicebus [command]

Subcommands

locally chaos servicebus 403

Set the 403 fault's rate on Service Bus (data plane).

Set the 403 fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos servicebus 403 --percentage 25
  locally chaos servicebus 403 --percentage 100 --location london
  locally chaos servicebus 403 reset --location london

Usage

locally chaos servicebus 403 [flags]
  locally chaos servicebus 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus 429

Set the 429 fault's rate on Service Bus (data plane).

Set the 429 fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos servicebus 429 --percentage 25
  locally chaos servicebus 429 --percentage 100 --location london
  locally chaos servicebus 429 reset --location london

Usage

locally chaos servicebus 429 [flags]
  locally chaos servicebus 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus 500

Set the 500 fault's rate on Service Bus (data plane).

Set the 500 fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos servicebus 500 --percentage 25
  locally chaos servicebus 500 --percentage 100 --location london
  locally chaos servicebus 500 reset --location london

Usage

locally chaos servicebus 500 [flags]
  locally chaos servicebus 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus drop-connection

Set the drop-connection fault's rate on Service Bus (data plane).

Set the drop-connection fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos servicebus drop-connection --percentage 25
  locally chaos servicebus drop-connection --percentage 100 --location london
  locally chaos servicebus drop-connection reset --location london

Usage

locally chaos servicebus drop-connection [flags]
  locally chaos servicebus drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus latency

Set the latency fault's rate on Service Bus (data plane).

Set the latency fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos servicebus latency --percentage 25 --seconds 30
  locally chaos servicebus latency --percentage 100 --seconds 30 --location london
  locally chaos servicebus latency reset --location london

Usage

locally chaos servicebus latency [flags]
  locally chaos servicebus latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus outage

Set the outage fault's rate on Service Bus (data plane).

Set the outage fault's rate on Service Bus (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos servicebus outage --percentage 25
  locally chaos servicebus outage --percentage 100 --location london
  locally chaos servicebus outage reset --location london

Usage

locally chaos servicebus outage [flags]
  locally chaos servicebus outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos servicebus outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos servicebus outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus reset

Zero every Service Bus (data plane) fault and drop every rule.

Zero every Service Bus (data plane) fault and drop every rule.

Examples:
locally chaos servicebus reset

Usage

locally chaos servicebus reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos servicebus show

Print the current Service Bus (data plane) chaos configuration.

Print the current Service Bus (data plane) chaos configuration.

Examples:
locally chaos servicebus show

Usage

locally chaos servicebus show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos show

Print the chaos configuration for every subscription-scoped surface.

Print the chaos configuration for every subscription-scoped surface.

Examples:
locally chaos show

Usage

locally chaos show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage

Simulate Storage (data plane) failure modes.

Simulate Storage (data plane) failure modes.

Without --location, a fault command sets the fault's rate; with them, it adds or
edits a rule.

Examples:
locally chaos storage <fault> --percentage N
  locally chaos storage <fault> reset
  locally chaos storage show
  locally chaos storage reset

Usage

locally chaos storage [flags]
  locally chaos storage [command]

Subcommands

locally chaos storage 403

Set the 403 fault's rate on Storage (data plane).

Set the 403 fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos storage 403 --percentage 25
  locally chaos storage 403 --percentage 100 --location london
  locally chaos storage 403 reset --location london

Usage

locally chaos storage 403 [flags]
  locally chaos storage 403 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage 403 reset

Remove one 403 rule, or put the whole fault back to zero.

Reset the 403 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage 403 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage 429

Set the 429 fault's rate on Storage (data plane).

Set the 429 fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos storage 429 --percentage 25
  locally chaos storage 429 --percentage 100 --location london
  locally chaos storage 429 reset --location london

Usage

locally chaos storage 429 [flags]
  locally chaos storage 429 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage 429 reset

Remove one 429 rule, or put the whole fault back to zero.

Reset the 429 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage 429 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage 500

Set the 500 fault's rate on Storage (data plane).

Set the 500 fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos storage 500 --percentage 25
  locally chaos storage 500 --percentage 100 --location london
  locally chaos storage 500 reset --location london

Usage

locally chaos storage 500 [flags]
  locally chaos storage 500 [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage 500 reset

Remove one 500 rule, or put the whole fault back to zero.

Reset the 500 fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage 500 reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage drop-connection

Set the drop-connection fault's rate on Storage (data plane).

Set the drop-connection fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos storage drop-connection --percentage 25
  locally chaos storage drop-connection --percentage 100 --location london
  locally chaos storage drop-connection reset --location london

Usage

locally chaos storage drop-connection [flags]
  locally chaos storage drop-connection [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage drop-connection reset

Remove one drop-connection rule, or put the whole fault back to zero.

Reset the drop-connection fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage drop-connection reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage latency

Set the latency fault's rate on Storage (data plane).

Set the latency fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

--seconds is a maximum: each firing delays a random 0..N seconds, and is
required whenever --percentage is above 0.

Examples:
locally chaos storage latency --percentage 25 --seconds 30
  locally chaos storage latency --percentage 100 --seconds 30 --location london
  locally chaos storage latency reset --location london

Usage

locally chaos storage latency [flags]
  locally chaos storage latency [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--secondsintMaximum delay this fault adds, in seconds (each firing picks 0 to N)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage latency reset

Remove one latency rule, or put the whole fault back to zero.

Reset the latency fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage latency reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage outage

Set the outage fault's rate on Storage (data plane).

Set the outage fault's rate on Storage (data plane).

Without scope flags this sets the fault's rate. With --location it adds
or edits one rule, leaving the rate and other rules alone.

A rule can be lower than the rate: "everywhere except one place" is a rate of
100 plus a rule at 0.

Examples:
locally chaos storage outage --percentage 25
  locally chaos storage outage --percentage 100 --location london
  locally chaos storage outage reset --location london

Usage

locally chaos storage outage [flags]
  locally chaos storage outage [command]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--percentageintHow often this fault fires, 0-100 (required)
--subscriptionstringSubscription UUID (defaults to the configured default)

Subcommands

locally chaos storage outage reset

Remove one outage rule, or put the whole fault back to zero.

Reset the outage fault.

With a scope flag, removes that rule so those requests use the fault's rate.
Without one, removes every rule and sets the rate to 0.

'reset --location X' removes the rule; '--percentage 0 --location X' keeps a
rule that never fires, which is how to say "everywhere except X".

Usage

locally chaos storage outage reset [flags]

Flags

Flag Type Description
--locationstringScope this rule to one location, e.g. london
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage reset

Zero every Storage (data plane) fault and drop every rule.

Zero every Storage (data plane) fault and drop every rule.

Examples:
locally chaos storage reset

Usage

locally chaos storage reset [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally chaos storage show

Print the current Storage (data plane) chaos configuration.

Print the current Storage (data plane) chaos configuration.

Examples:
locally chaos storage show

Usage

locally chaos storage show [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID (defaults to the configured default)

locally ci

Launch the Locally environment in CI mode.

Launches the Locally environment in CI mode on this machine, and leaves it running for the rest of the job.

CI mode is a subset of the Locally environment and includes:

* The Control Plane API
* The Authorization API
* The Directory API
* An Automation API

This lets your CI pipeline build and test against Locally. Run 'locally ci --stop' at the end of the
job to stop what it started.

Authentication is attempted in the following order:
1. LOCALLY_OIDC_TOKEN or LOCALLY_OIDC_TOKEN_FILE (custom OIDC provider, or
   Jenkins via its OpenID Connect Provider plugin credential binding)
2. GitHub Actions OIDC (auto-detected)
3. GitLab CI OIDC (via id_tokens)

Set exactly one of:
  - LOCALLY_TEAM_UUID for team OIDC trusts
  - LOCALLY_USER_UUID for personal OIDC trusts

Usage

locally ci [flags]

Flags

Flag Type Description
--stopStop a running Locally CI environment

locally completion

Generate the autocompletion script for the specified shell

Generate the autocompletion script for locally for the specified shell.
See each sub-command's help for details on how to use the generated script.

Usage

locally completion [command]

Subcommands

locally completion bash

Generate the autocompletion script for bash

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

	source <(locally completion bash)

To load completions for every new session, execute once:

#### Linux:

	locally completion bash > /etc/bash_completion.d/locally

#### macOS:

	locally completion bash > $(brew --prefix)/etc/bash_completion.d/locally

You will need to start a new shell for this setup to take effect.

Usage

locally completion bash

Flags

Flag Type Description
--no-descriptionsdisable completion descriptions

locally completion fish

Generate the autocompletion script for fish

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

	locally completion fish | source

To load completions for every new session, execute once:

	locally completion fish > ~/.config/fish/completions/locally.fish

You will need to start a new shell for this setup to take effect.

Usage

locally completion fish [flags]

Flags

Flag Type Description
--no-descriptionsdisable completion descriptions

locally completion powershell

Generate the autocompletion script for powershell

Generate the autocompletion script for powershell.

To load completions in your current shell session:

	locally completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command
to your powershell profile.

Usage

locally completion powershell [flags]

Flags

Flag Type Description
--no-descriptionsdisable completion descriptions

locally completion zsh

Generate the autocompletion script for zsh

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need
to enable it.  You can execute the following once:

	echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

	source <(locally completion zsh)

To load completions for every new session, execute once:

#### Linux:

	locally completion zsh > "${fpath[1]}/_locally"

#### macOS:

	locally completion zsh > $(brew --prefix)/share/zsh/site-functions/_locally

You will need to start a new shell for this setup to take effect.

Usage

locally completion zsh [flags]

Flags

Flag Type Description
--no-descriptionsdisable completion descriptions

locally configure

Configure this machine for Locally, one change at a time.

Each subcommand makes one configuration change, and is safe to re-run. Use --status to check it,
or --remove to undo it.

To be walked through every change, run `locally setup`; to check them all, run `locally validate`.
For TLS certificates, see `locally certificate`.

Usage

locally configure [flags]
  locally configure [command]

Subcommands

locally configure azure-storage-explorer

Add Locally to Azure Storage Explorer as a custom environment.

Adds a "Locally" custom environment to Azure Storage Explorer using this instance's endpoints, and
installs the Locally CA so that Storage Explorer trusts it.

Locally must be running and Storage Explorer must be closed. Afterwards, sign out of any account
already in the Locally environment and add it again. Re-run this if Locally's ports change.

Examples:
locally configure azure-storage-explorer
  locally configure azure-storage-explorer --status
  locally configure azure-storage-explorer --remove

Usage

locally configure azure-storage-explorer [flags]

Flags

Flag Type Description
--dry-runPrint what would change, without changing it.
--removeUndo this configuration, removing only what Locally added.
--statusReport whether this is configured, without changing anything.

locally configure dns

Configure this machine's resolver so *.locally addresses resolve.

Usage

locally configure dns [flags]

Flags

Flag Type Description
--dry-runPrint what would change, without changing it.
--removeUndo this configuration, removing only what Locally added.
--statusReport whether this is configured, without changing anything.

locally configure docker

Set up Locally's DNS forwarder so containers on Docker Desktop resolve *.locally.

Builds the DNS forwarder image Locally runs alongside Docker Desktop, so the containers Locally
launches can resolve *.locally.

Docker Desktop's VM can't be configured the way Podman's can, so `locally build` runs a dnsmasq
container that forwards *.locally to Locally, and starts its own containers (Container Instances,
databases, Web Apps) with --dns pointing at it. Your own containers are not touched.

Running this ahead of time saves the first `locally build` pulling the image. While Locally is running,
it also starts the forwarder and checks that it resolves.

Pushing images to Locally's registry from Docker Desktop isn't supported, since --dns only applies to
containers and the Docker daemon can't be pointed at Locally. Use podman for that, via
`locally configure podman`.

Set LOCALLY_CONTAINER_DNS to "docker=<address>" to use your own forwarder, or "none" to opt out.

Usage

locally configure docker [flags]

Flags

Flag Type Description
--dry-runPrint what would change, without changing it.
--removeUndo this configuration, removing only what Locally added.
--statusReport whether this is configured, without changing anything.

locally configure podman

Configure Podman's VM so its daemon and containers resolve *.locally.

Usage

locally configure podman [flags]

Flags

Flag Type Description
--dry-runPrint what would change, without changing it.
--removeUndo this configuration, removing only what Locally added.
--restart-wslWhen enabling WSL mirrored networking on Windows, restart WSL to apply it without prompting (shuts down all WSL distributions).
--statusReport whether this is configured, without changing anything.

locally connect

Connect to a Virtual Machine or a Virtual Machine Scale Set instance.

Connects to a Virtual Machine, or an instance of a Virtual Machine Scale Set, using its admin
credentials. Linux VMs open an SSH session in your terminal. Windows VMs open an .rdp file on macOS;
elsewhere, the file's path is printed.

The VM needs a public IP, or a Load Balancer inbound NAT rule targeting its network interface.

Pass --bastion alone to list the VMs reachable through it, or with --virtual-machine to connect
through it.

Examples:
locally connect --virtual-machine my-vm
  locally connect --virtual-machine my-vm --subscription 00000000-0000-0000-0000-000000000000
  locally connect --virtual-machine-scale-set my-scale-set --instance-id 0
  locally connect --bastion my-bastion
  locally connect --bastion my-bastion --virtual-machine my-vm

Usage

locally connect [flags]

Flags

Flag Type Description
--bastionstringName of a bastion; lists reachable VMs, or connects through it when combined with --virtual-machine
--instance-idstringInstance ID within the scale set (use with --virtual-machine-scale-set)
--subscriptionstringSubscription UUID (defaults to the configured default)
--virtual-machinestringName of the virtual machine to connect to
--virtual-machine-scale-setstringName of the virtual machine scale set holding the instance to connect to

locally dashboard

Open the Locally Dashboard in your browser.

Usage

locally dashboard [flags]

locally deploy

Deploy an ARM or Bicep template to Locally.

Deploys an ARM template, or a Bicep file (using the bicep CLI on your PATH), and follows it to
completion.

The scope (resource group or subscription) is read from the template's $schema. Without flags, the
default Subscription is used and the Resource Group and deployment names are generated.

Examples:
# Deploy into a generated resource group in the default subscription
  locally deploy ./template.json

  # Deploy into an existing resource group
  locally deploy --resource-group example ./template.json

  # With an ARM parameters file
  locally deploy --parameters ./parameters.json ./template.json

  # Bicep: a .bicep template with a .bicepparam parameters file (needs 'bicep' on your PATH)
  locally deploy --parameters ./main.bicepparam ./main.bicep

  # A subscription-scoped template, recording the deployment in a chosen location
  locally deploy --location berlin ./subscription-template.json

  # Into a specific subscription, under a chosen deployment name
  locally deploy --subscription 00000000-0000-0000-0000-000000000000 --deployment nightly ./template.json

Usage

locally deploy [flags]

Flags

Flag Type Description
--deploymentstringName to record the deployment under (e.g. --deployment=test)
--locationstringLocation for a subscription-scoped deployment (e.g. --location=berlin)
--parametersstringPath to an ARM parameters file (e.g. --parameters=./parameters.json)
--resource-groupstringResource group for a group-scoped deployment (e.g. --resource-group=some-group)
--subscriptionstringSubscription to deploy into (e.g. --subscription=abc123)

locally docs

Open the Locally documentation in your browser.

Usage

locally docs [flags]

locally eventhub

Interact with Event Hubs Namespaces within Locally.

Usage

locally eventhub [flags]
  locally eventhub [command]

Subcommands

locally eventhub connection-string

Print the primary connection string for an Event Hubs Namespace.

Print the primary connection string for an Event Hubs Namespace.

Examples:
locally eventhub connection-string --namespace ns1

Usage

locally eventhub connection-string [flags]

Flags

Flag Type Description
--namespacestringName of the Event Hubs namespace

locally eventhub consumer-group

Manage Consumer Groups in an Event Hub within Locally.

Usage

locally eventhub consumer-group [flags]
  locally eventhub consumer-group [command]

Subcommands

locally eventhub consumer-group create

Create a Consumer Group for an Event Hub.

Create a Consumer Group for an Event Hub.

Examples:
locally eventhub consumer-group create --namespace ns1 --hub orders --name billing

Usage

locally eventhub consumer-group create [flags]

Flags

Flag Type Description
--hubstringName of the event hub
--namestringName of the consumer group
--namespacestringName of the Event Hubs namespace

locally eventhub consumer-group delete

Delete a Consumer Group from an Event Hub.

Delete a Consumer Group from an Event Hub.

Examples:
locally eventhub consumer-group delete --namespace ns1 --hub orders --name billing

Usage

locally eventhub consumer-group delete [flags]

Flags

Flag Type Description
--hubstringName of the event hub
--namestringName of the consumer group
--namespacestringName of the Event Hubs namespace

locally eventhub consumer-group list

List Consumer Groups for an Event Hub.

List Consumer Groups for an Event Hub.

Examples:
locally eventhub consumer-group list --namespace ns1 --hub orders

Usage

locally eventhub consumer-group list [flags]

Flags

Flag Type Description
--hubstringName of the event hub
--namespacestringName of the Event Hubs namespace

locally eventhub consumer-group show

Show details for a Consumer Group.

Show details for a Consumer Group.

Examples:
locally eventhub consumer-group show --namespace ns1 --hub orders --name billing

Usage

locally eventhub consumer-group show [flags]

Flags

Flag Type Description
--hubstringName of the event hub
--namestringName of the consumer group
--namespacestringName of the Event Hubs namespace

locally eventhub dashboard

Open the Data Plane Emulator UI for an Event Hubs Namespace in your browser.

Open the Data Plane Emulator UI for an Event Hubs Namespace in your browser.

Examples:
locally eventhub dashboard --namespace ns1

Usage

locally eventhub dashboard [flags]

Flags

Flag Type Description
--namespacestringName of the Event Hubs namespace

locally eventhub hub

Manage Event Hubs in an Event Hubs Namespace within Locally.

Usage

locally eventhub hub [flags]
  locally eventhub hub [command]

Subcommands

locally eventhub hub create

Create an Event Hub in an Event Hubs Namespace.

Create an Event Hub in an Event Hubs Namespace.

Examples:
locally eventhub hub create --namespace ns1 --name orders --partition-count 4

Usage

locally eventhub hub create [flags]

Flags

Flag Type Description
--namestringName of the event hub
--namespacestringName of the Event Hubs namespace
--partition-countintNumber of partitions (default 4)

locally eventhub hub delete

Delete an Event Hub from an Event Hubs Namespace.

Delete an Event Hub from an Event Hubs Namespace.

Examples:
locally eventhub hub delete --namespace ns1 --name orders

Usage

locally eventhub hub delete [flags]

Flags

Flag Type Description
--namestringName of the event hub
--namespacestringName of the Event Hubs namespace

locally eventhub hub list

List Event Hubs in an Event Hubs Namespace.

List Event Hubs in an Event Hubs Namespace.

Examples:
locally eventhub hub list --namespace ns1

Usage

locally eventhub hub list [flags]

Flags

Flag Type Description
--namespacestringName of the Event Hubs namespace

locally eventhub hub peek

Peek at events in an Event Hub partition.

Peek at events in an Event Hub partition.

Examples:
locally eventhub hub peek --namespace ns1 --name orders --partition 0 --limit 5

Usage

locally eventhub hub peek [flags]

Flags

Flag Type Description
--limitintMaximum number of events to peek (default 10)
--namestringName of the event hub
--namespacestringName of the Event Hubs namespace
--partitionstringPartition ID to peek

locally eventhub hub send

Send an event to an Event Hub.

Send an event to an Event Hub.

Examples:
locally eventhub hub send --namespace ns1 --name orders --body '{"id": 1}' --content-type application/json
  locally eventhub hub send --namespace ns1 --name orders --body-file ./event.json --partition-key customer-42 --count 10

Usage

locally eventhub hub send [flags]

Flags

Flag Type Description
--bodystringInline event body
--body-filestringPath to a file containing the event body
--content-typestringContent-Type of the event body
--countintNumber of copies of the event to send (default 1)
--namestringName of the event hub
--namespacestringName of the Event Hubs namespace
--partition-keystringPartition key to route the event by
--propertystringArrayCustom event property as key=value (repeatable)

locally eventhub hub show

Show details for an Event Hub in an Event Hubs Namespace.

Show details for an Event Hub in an Event Hubs Namespace.

Examples:
locally eventhub hub show --namespace ns1 --name orders

Usage

locally eventhub hub show [flags]

Flags

Flag Type Description
--namestringName of the event hub
--namespacestringName of the Event Hubs namespace

locally function

Interact with Function Apps within Locally.

Usage

locally function [flags]
  locally function [command]

Subcommands

locally function dashboard

Open a Function App's dashboard in your browser.

Usage

locally function dashboard [flags]

Flags

Flag Type Description
--namestringName of the function app

locally function deploy

Deploy a package to a Function App.

Deploys a zip package to a function app and waits for the deployment to finish.

Examples:
locally function deploy --name example app.zip

Usage

locally function deploy [zip file] [flags]

Flags

Flag Type Description
--envstringArrayEnvironment variables (KEY=VALUE), can be specified multiple times
--namestringName of the function app

locally function invoke

Invoke a function endpoint.

Invokes an HTTP-triggered function and prints the response.

Examples:
locally function invoke --name example --endpoint /api/hello

Usage

locally function invoke [flags]

Flags

Flag Type Description
--endpointstringAPI endpoint to invoke (e.g. /api/hello)
--namestringName of the function app

locally iothub

Interact with IoT Hubs within Locally.

Usage

locally iothub [flags]
  locally iothub [command]

Subcommands

locally iothub connection-string

Print the primary connection string for an IoT Hub.

Prints the connection string for the Hub's iothubowner policy, for the IoT Hub service SDKs and az iot hub.

HostName includes the Hub's port (5662 on the default instance, <base-port> + 662 otherwise). Without it, clients connect to 443 and are refused.

Pass it to az iot hub as --login for commands on Devices, Device Twins and direct methods. Managing the Hub itself (az iot hub create, Terraform, locally iothub) goes through ARM and doesn't need it.

AMQP (5671) and MQTT (5883) use their own ports, which clients on those transports must set separately.

Examples:
locally iothub connection-string --hub hub1

Usage

locally iothub connection-string [flags]

Flags

Flag Type Description
--hubstringName of the IoT Hub

locally iothub dashboard

Open the Data Plane Emulator UI for an IoT Hub in your browser.

Open the Data Plane Emulator UI for an IoT Hub in your browser.

Examples:
locally iothub dashboard --hub hub1

Usage

locally iothub dashboard [flags]

Flags

Flag Type Description
--hubstringName of the IoT Hub

locally iothub device

Manage Devices in an IoT Hub within Locally.

Usage

locally iothub device [flags]
  locally iothub device [command]

Subcommands

locally iothub device create

Create a Device in an IoT Hub.

Create a Device in an IoT Hub.

Examples:
locally iothub device create --hub hub1 --device sensor-01

Usage

locally iothub device create [flags]

Flags

Flag Type Description
--devicestringDevice ID
--hubstringName of the IoT Hub

locally iothub device delete

Delete a Device from an IoT Hub.

Delete a Device from an IoT Hub.

Examples:
locally iothub device delete --hub hub1 --device sensor-01

Usage

locally iothub device delete [flags]

Flags

Flag Type Description
--devicestringDevice ID
--hubstringName of the IoT Hub

locally iothub device list

List Devices in an IoT Hub.

List Devices in an IoT Hub.

Examples:
locally iothub device list --hub hub1

Usage

locally iothub device list [flags]

Flags

Flag Type Description
--hubstringName of the IoT Hub

locally iothub device peek

Peek at device-to-cloud (D2C) telemetry events for a Device.

Peek at device-to-cloud (D2C) telemetry events for a Device.

Examples:
locally iothub device peek --hub hub1 --device sensor-01 --limit 5

Usage

locally iothub device peek [flags]

Flags

Flag Type Description
--devicestringDevice ID
--hubstringName of the IoT Hub
--limitintMaximum number of events to peek (default 10)

locally iothub device send

Send a device-to-cloud (D2C) telemetry message for a Device.

Send a device-to-cloud (D2C) telemetry message for a Device.

Examples:
locally iothub device send --hub hub1 --device sensor-01 --body '{"temperature": 21.5}' --content-type application/json

Usage

locally iothub device send [flags]

Flags

Flag Type Description
--bodystringInline telemetry body
--body-filestringPath to a file containing the telemetry body
--content-typestringContent-Type of the telemetry body
--countintNumber of copies of the telemetry message to send (default 1)
--devicestringDevice ID
--hubstringName of the IoT Hub
--propertystringArrayCustom telemetry property as key=value (repeatable)

locally iothub device show

Show details for a Device in an IoT Hub.

Show details for a Device in an IoT Hub.

Examples:
locally iothub device show --hub hub1 --device sensor-01

Usage

locally iothub device show [flags]

Flags

Flag Type Description
--devicestringDevice ID
--hubstringName of the IoT Hub

locally iothub twin

Manage Device Twins in an IoT Hub within Locally.

Usage

locally iothub twin [flags]
  locally iothub twin [command]

Subcommands

locally iothub twin show

Show the Device Twin for a Device in an IoT Hub.

Show the Device Twin for a Device in an IoT Hub.

Examples:
locally iothub twin show --hub hub1 --device sensor-01

Usage

locally iothub twin show [flags]

Flags

Flag Type Description
--devicestringDevice ID
--hubstringName of the IoT Hub

locally iothub twin update

Update the desired properties of a Device Twin.

Update the desired properties of a Device Twin.

Examples:
locally iothub twin update --hub hub1 --device sensor-01 --desired '{"interval": 30}'

Usage

locally iothub twin update [flags]

Flags

Flag Type Description
--desiredstringDesired properties JSON string
--devicestringDevice ID
--hubstringName of the IoT Hub

locally login

Sign this installation in to a Locally Account.

Connects an installation that was set up without an account to a Locally Account. Signing in lifts the plugin allowance and gives you a longer session. To set up a new installation, use 'locally setup' instead.

Usage

locally login [flags]

Flags

Flag Type Description
--skip-browserPrint the sign-in URL instead of opening a browser.

locally logout

Sign out and deregister this installation.

Signs you out of your Locally Account on this machine and removes this installation's certificate. Locally will not run again until you re-run 'locally setup'.

Usage

locally logout [flags]

Flags

Flag Type Description
--forceSkip the confirmation prompt.

locally logs

View HTTP request/response logs.

View HTTP request/response logs from all services, with interactive filtering.

Usage

locally logs [flags]
  locally logs [command]

Flags

Flag Type Description
--jsonOutput logs as JSON

Subcommands

locally logs clear

Clear all logs.

Usage

locally logs clear [flags]

locally mcp

Launch the Locally MCP server.

Launches the Locally MCP server. Subcommands register the server into MCP clients.

Usage

locally mcp [flags]
  locally mcp [command]

Subcommands

locally mcp install

Register the Locally MCP server in a client's config.

Registers the Locally MCP server, as "locally", in an MCP client's configuration,
pointing at this binary.

Supported clients: claude-desktop, claude-code, cursor, opencode, windsurf,
copilot-vscode, copilot-cli, codex-cli, gemini-cli.

Fails if a "locally" entry already exists, unless you pass --force.

Examples:
locally mcp install claude-desktop
  locally mcp install claude-code
  locally mcp install codex-cli --force

Usage

locally mcp install <client> [flags]

Flags

Flag Type Description
--forceOverwrite an existing locally entry

locally mcp list

List supported MCP clients and whether `locally` is registered.

Lists the supported MCP clients, whether each is installed, and whether the
Locally MCP server is registered in it.

Examples:
locally mcp list

Usage

locally mcp list [flags]

locally mcp uninstall

Remove the Locally MCP server from a client's config.

Removes the Locally MCP server from an MCP client's configuration.

Fails if there is no "locally" entry, unless you pass --force.

Examples:
locally mcp uninstall claude-desktop
  locally mcp uninstall claude-code --force

Usage

locally mcp uninstall <client> [flags]

Flags

Flag Type Description
--forceSucceed even if no locally entry is present

locally mysql

Interact with MySQL Flexible Servers within Locally.

Usage

locally mysql [flags]
  locally mysql [command]

Subcommands

locally mysql connection-string

Print the connection string for a MySQL Flexible Server.

Print the connection string for a MySQL Flexible Server.

Examples:
locally mysql connection-string --server my-server

Usage

locally mysql connection-string [flags]

Flags

Flag Type Description
-g, --resource-groupstringResource group the server is in (disambiguates a name that exists in more than one)
--serverstringName (or full resource ID) of the MySQL flexible server

locally plugin

Manage Resource Provider plugins.

Usage

locally plugin [flags]
  locally plugin [command]

Subcommands

locally plugin install

Install Resource Provider plugins.

Install one, all, or recommended Resource Provider plugins.

Examples:
locally plugin install --name Microsoft.KeyVault
  locally plugin install --recommended
  locally plugin install --all

Usage

locally plugin install [flags]

Flags

Flag Type Description
--allInstall all available providers
--namestringResource Provider namespace (e.g. Microsoft.KeyVault)
--recommendedInstall all recommended providers

locally plugin list-available

List all available Resource Provider plugins from the catalog.

Usage

locally plugin list-available [flags]

locally plugin list-installed

List installed Resource Provider plugins.

Usage

locally plugin list-installed [flags]

locally plugin list-not-installed

List available Resource Provider plugins that are not installed locally.

Usage

locally plugin list-not-installed [flags]

locally plugin show

Show metadata for an installed Resource Provider plugin.

Prints an installed plugin's platform, release version, revision and date, API versions, features and notes. Works while Locally is stopped. Matching is case-insensitive.

For a namespace with no plugin installed, says whether it's built in, available in the catalog, or unknown.

Examples:
locally plugin show Microsoft.KeyVault
  locally plugin show microsoft.keyvault

Usage

locally plugin show <namespace> [flags]

locally plugin supports

Report whether this installation supports a provider or resource type.

Reports whether a resource provider namespace (Microsoft.KeyVault) or resource type (Microsoft.KeyVault/vaults) is supported, not implemented yet, or available to install from the catalog.

Works while Locally is stopped. Matching is case-insensitive.

Examples:
locally plugin supports Microsoft.KeyVault/vaults
  locally plugin supports microsoft.keyvault

Usage

locally plugin supports <namespace|resource type> [flags]

locally plugin uninstall

Uninstall a Resource Provider plugin.

Uninstall a Resource Provider plugin.

Examples:
locally plugin uninstall --name Microsoft.KeyVault

Usage

locally plugin uninstall [flags]

Flags

Flag Type Description
--namestringResource Provider namespace (e.g. Microsoft.KeyVault)

locally plugin update

Update installed Resource Provider plugins.

Check for updates and download new versions of all installed plugins.

A running 'locally build' keeps using the plugin it already launched. For the new version to take effect, reload the plugin from the Dashboard's plugins page (Settings > Plugins > Reload), or restart 'locally build'.

Examples:
locally plugin update
  locally plugin update --name Microsoft.KeyVault

Usage

locally plugin update [flags]

Flags

Flag Type Description
--allUpdate all installed providers (the default when no flag is given)
--namestringUpdate only this Resource Provider namespace (e.g. Microsoft.KeyVault)

locally postgres

Interact with PostgreSQL Flexible Servers within Locally.

Usage

locally postgres [flags]
  locally postgres [command]

Subcommands

locally postgres connection-string

Print the connection string for a PostgreSQL Flexible Server.

Print the connection string for a PostgreSQL Flexible Server.

Examples:
locally postgres connection-string --server my-server

Usage

locally postgres connection-string [flags]

Flags

Flag Type Description
-g, --resource-groupstringResource group the server is in (disambiguates a name that exists in more than one)
--serverstringName (or full resource ID) of the PostgreSQL flexible server

locally redis

Interact with Redis Caches within Locally.

Usage

locally redis [flags]
  locally redis [command]

Subcommands

locally redis connection-string

Print the connection string for a Redis Cache.

Print the connection string for a Redis Cache.

Examples:
locally redis connection-string --name my-cache

Usage

locally redis connection-string [flags]

Flags

Flag Type Description
--namestringName (or full resource ID) of the Redis cache
-g, --resource-groupstringResource group the cache is in (disambiguates a name that exists in more than one)

locally refresh

Refresh this installation's Locally licence.

Locally refreshes your licence automatically as needed. Run this to refresh it
now, for example before you go offline for an extended period.

Usage

locally refresh [flags]

locally refresh-reference-data

Refresh Locally's reference-data override files from real Azure via the Azure CLI.

Updates the reference data Locally reads at launch (VM images, VM SKUs, VM extension types, and function and web app stacks) from real Azure, using your signed-in Azure CLI.

Refreshes all five datasets unless you name one. Images, VM SKUs and extension types are per-region: pass --location, or choose interactively.

Examples:
locally refresh-reference-data                                  # all five, pick regions interactively
  locally refresh-reference-data images -l westeurope,eastus --yes
  locally refresh-reference-data vmSkus --location westeurope --yes

Usage

locally refresh-reference-data [dataset] [flags]

Flags

Flag Type Description
-l, --locationstringsAzure region(s) to pull region-scoped data from (repeatable or comma-separated, e.g. -l westeurope,eastus). Prompts interactively if omitted.
-y, --yesSkip the per-dataset write confirmation (required for non-interactive runs)

locally regions

List Azure regions known to Locally.

Usage

locally regions [flags]
  locally regions [command]

Subcommands

locally regions list

List all known Azure regions.

Usage

locally regions list [flags]

Flags

Flag Type Description
--jsonOutput regions as JSON

locally regions random

Print a random region's identifier, such as london.

Print a random region's identifier, such as london.

Examples:
locally regions random
  locally deploy --location $(locally regions random) ./template.json

Usage

locally regions random [flags]

Flags

Flag Type Description
--jsonOutput the picked region as a JSON object

locally regions status

Report the active location set for this Locally installation.

Reports which location set this installation uses and how many regions it has.

Warns when the set uses a real Azure cloud's region names, because a deployment sent to Azure instead of Locally, or the other way round, will no longer fail on an unknown location.

Usage

locally regions status [flags]

locally run

Run a tool against Locally using Automatic Configuration (az, terraform, pulumi, curl, ...).

Runs a command against Locally instead of Azure.

The command must support Automatic Configuration: reading its credentials and endpoints from
environment variables, as az, Terraform, OpenTofu, Pulumi and the Azure SDKs do.

Locally flags (must appear BEFORE the command):
  --subscription <name|uuid>        run against a specific Subscription
  --tenant <name|uuid>              run against a specific Tenant
  --user <upn|uuid>                 run as a directory user
  --service-principal <uuid|name>   run as a specific service principal
  --managed-identity <uuid|name>    run as a managed identity
  --allow-no-subscriptions          run in a Tenant that has no Subscriptions
  --allow-remote-backend            run Terraform/OpenTofu without confirming its remote backend

Examples:
locally run az group list
  locally run terraform apply
  locally run tofu apply
  locally run pulumi up

  ----

  # Target another Subscription
  locally run --subscription "Second Subscription" az group list

  ----

  # Run as a directory user (delegated token; password never touches the environment)
  locally run --user [email protected] az account show

  # Run as a service principal (by appId or display name)
  locally run --service-principal billing-runner terraform plan

  # Run as a managed identity (by client id or display name; no secret touches the environment)
  locally run --managed-identity deploy-mi terraform apply

Usage

locally run [flags]

locally runbooks

Manage Locally Runbooks.

List and deploy the Locally Runbooks shared with your team.

Usage

locally runbooks [flags]
  locally runbooks [command]

Subcommands

locally runbooks datascripts

List and execute team data scripts.

Usage

locally runbooks datascripts [flags]
  locally runbooks datascripts [command]

Subcommands

locally runbooks datascripts execute

Execute a data script by title.

Execute a data script by title against its target resource. Use 'locally
runbooks datascripts list' to see available titles.

Examples:
locally runbooks datascripts execute seed-orders-db

Usage

locally runbooks datascripts execute <title> [flags]

Flags

Flag Type Description
--subscriptionstringSubscription UUID to execute against (defaults to the primary subscription).

locally runbooks datascripts list

List all synced data scripts.

Usage

locally runbooks datascripts list [flags]

locally runbooks deploy

Deploy a runbook by name.

Deploys a runbook by name.

The runbook may be an ARM template (deployed at subscription or resource group
scope) or a data script (run against a specific resource). Use 'locally runbooks
list' to see available runbooks and their types.

Examples:
locally runbooks deploy my-first-runbook

Usage

locally runbooks deploy <name> [flags]

locally runbooks directory

List and provision team directory objects (users, groups, applications, service principals).

Usage

locally runbooks directory [flags]
  locally runbooks directory [command]

Subcommands

locally runbooks directory list

List all synced directory objects.

Usage

locally runbooks directory list [flags]

locally runbooks directory provision

Provision all synced directory objects onto the running instance.

Provision every synced directory object (users, groups, applications and
service principals) into the running instance's directory. Objects that already
exist are left untouched, so this is safe to run repeatedly.

Examples:
locally runbooks directory provision

Usage

locally runbooks directory provision [flags]

locally runbooks list

List all synced runbooks.

Usage

locally runbooks list [flags]

locally servicebus

Interact with Service Bus Namespaces within Locally.

Usage

locally servicebus [flags]
  locally servicebus [command]

Subcommands

locally servicebus automation

Print a Service Bus Namespace, its queues and its topics as JSON.

Print a Service Bus Namespace, its queues and its topics as JSON.

Examples:
locally servicebus automation --namespace ns1

Usage

locally servicebus automation [flags]

Flags

Flag Type Description
--namespacestringName of the Service Bus namespace

locally servicebus connection-string

Print the primary connection string for a Service Bus Namespace.

Prints the connection string the messaging clients use to send and receive over AMQP.

Pass --management for the string ServiceBusAdministrationClient takes, to create queues, topics, subscriptions and rules from code. It includes the Namespace's port; the messaging string can't, as a port there breaks the Go AMQP client's TLS handshake.

Java's administration client builder drops the port, so in Java use .credential("<namespace>.servicebus.locally:<port>", credential) instead of .connectionString(...).

az servicebus, Terraform and locally servicebus go through ARM and don't need either string.

Examples:
locally servicebus connection-string --namespace ns1
  locally servicebus connection-string --namespace ns1 --management

Usage

locally servicebus connection-string [flags]

Flags

Flag Type Description
--managementPrint the management connection string, for the administration clients
--namespacestringName of the Service Bus namespace

locally servicebus dashboard

Open the Data Plane Emulator UI for a Service Bus Namespace in your browser.

Open the Data Plane Emulator UI for a Service Bus Namespace in your browser.

Examples:
locally servicebus dashboard --namespace ns1

Usage

locally servicebus dashboard [flags]

Flags

Flag Type Description
--namespacestringName of the Service Bus namespace

locally servicebus queue

Manage Queues in a Service Bus Namespace within Locally.

Usage

locally servicebus queue [flags]
  locally servicebus queue [command]

Subcommands

locally servicebus queue create

Create a Queue in a Service Bus Namespace.

Create a Queue in a Service Bus Namespace.

Examples:
locally servicebus queue create --namespace ns1 --name orders --max-delivery-count 5 --lock-duration 30s

Usage

locally servicebus queue create [flags]

Flags

Flag Type Description
--dead-letter-on-expiryDead-letter messages when they expire
--default-message-ttldurationDefault message time-to-live (defaults to unlimited, as in Azure)
--lock-durationdurationMessage lock duration (default 1m0s)
--max-delivery-countintMaximum delivery count before dead-lettering (default 10)
--max-size-mbintMaximum queue size in megabytes (default 1024)
--namestringName of the queue
--namespacestringName of the Service Bus namespace

locally servicebus queue delete

Delete a Queue from a Service Bus Namespace.

Delete a Queue from a Service Bus Namespace.

Examples:
locally servicebus queue delete --namespace ns1 --name orders

Usage

locally servicebus queue delete [flags]

Flags

Flag Type Description
--namestringName of the queue
--namespacestringName of the Service Bus namespace

locally servicebus queue list

List Queues in a Service Bus Namespace.

List Queues in a Service Bus Namespace.

Examples:
locally servicebus queue list --namespace ns1

Usage

locally servicebus queue list [flags]

Flags

Flag Type Description
--namespacestringName of the Service Bus namespace

locally servicebus queue peek

Peek at messages in a Queue without consuming them.

Peek at messages in a Queue without consuming them.

Examples:
locally servicebus queue peek --namespace ns1 --name orders --limit 5
  locally servicebus queue peek --namespace ns1 --name orders --dead-letter

Usage

locally servicebus queue peek [flags]

Flags

Flag Type Description
--dead-letterPeek dead-lettered messages instead of active ones
--limitintMaximum number of messages to peek (max 100) (default 10)
--namestringName of the queue
--namespacestringName of the Service Bus namespace

locally servicebus queue send

Send a message to a Queue.

Send a message to a Queue.

Examples:
locally servicebus queue send --namespace ns1 --name orders --body '{"id": 1}' --content-type application/json
  locally servicebus queue send --namespace ns1 --name orders --body-file ./msg.json --dead-letter --dead-letter-reason Poison

Usage

locally servicebus queue send [flags]

Flags

Flag Type Description
--bodystringInline message body
--body-filestringPath to a file containing the message body
--content-typestringContent-Type of the message body
--countintNumber of copies of the message to send (default 1)
--dead-letterSeed the message directly into the dead-letter sub-queue
--dead-letter-descriptionstringDead-letter description (requires --dead-letter)
--dead-letter-reasonstringDead-letter reason (requires --dead-letter)
--namestringName of the queue
--namespacestringName of the Service Bus namespace
--propertystringArrayCustom message property as key=value (repeatable)
--session-idstringSession ID for session-enabled entities

locally servicebus queue show

Show details for a Queue in a Service Bus Namespace.

Show details for a Queue in a Service Bus Namespace.

Examples:
locally servicebus queue show --namespace ns1 --name orders

Usage

locally servicebus queue show [flags]

Flags

Flag Type Description
--namestringName of the queue
--namespacestringName of the Service Bus namespace

locally servicebus topic

Manage Topics in a Service Bus Namespace within Locally.

Usage

locally servicebus topic [flags]
  locally servicebus topic [command]

Subcommands

locally servicebus topic create

Create a Topic in a Service Bus Namespace.

Create a Topic in a Service Bus Namespace.

Examples:
locally servicebus topic create --namespace ns1 --name events --max-size-mb 2048

Usage

locally servicebus topic create [flags]

Flags

Flag Type Description
--default-message-ttldurationDefault message time-to-live (defaults to unlimited, as in Azure)
--max-size-mbintMaximum topic size in megabytes (default 1024)
--namestringName of the topic
--namespacestringName of the Service Bus namespace

locally servicebus topic delete

Delete a Topic from a Service Bus Namespace.

Delete a Topic from a Service Bus Namespace.

Examples:
locally servicebus topic delete --namespace ns1 --name events

Usage

locally servicebus topic delete [flags]

Flags

Flag Type Description
--namestringName of the topic
--namespacestringName of the Service Bus namespace

locally servicebus topic list

List Topics in a Service Bus Namespace.

List Topics in a Service Bus Namespace.

Examples:
locally servicebus topic list --namespace ns1

Usage

locally servicebus topic list [flags]

Flags

Flag Type Description
--namespacestringName of the Service Bus namespace

locally servicebus topic peek

Peek at messages in a Topic subscription without consuming them.

Peek at messages in a Topic subscription without consuming them.

Examples:
locally servicebus topic peek --namespace ns1 --name events --subscription audit --limit 5

Usage

locally servicebus topic peek [flags]

Flags

Flag Type Description
--dead-letterPeek dead-lettered messages instead of active ones
--limitintMaximum number of messages to peek (max 100) (default 10)
--namestringName of the topic
--namespacestringName of the Service Bus namespace
--subscriptionstringName of the subscription to peek

locally servicebus topic send

Send a message to a Topic.

Send a message to a Topic.

Examples:
locally servicebus topic send --namespace ns1 --name events --body '{"id": 1}' --session-id customer-42

Usage

locally servicebus topic send [flags]

Flags

Flag Type Description
--bodystringInline message body
--body-filestringPath to a file containing the message body
--content-typestringContent-Type of the message body
--countintNumber of copies of the message to send (default 1)
--namestringName of the topic
--namespacestringName of the Service Bus namespace
--propertystringArrayCustom message property as key=value (repeatable)
--session-idstringSession ID for session-enabled entities

locally servicebus topic show

Show details for a Topic in a Service Bus Namespace.

Show details for a Topic in a Service Bus Namespace.

Examples:
locally servicebus topic show --namespace ns1 --name events

Usage

locally servicebus topic show [flags]

Flags

Flag Type Description
--namestringName of the topic
--namespacestringName of the Service Bus namespace

locally setup

Set up this machine to run Locally.

Runs the first-time setup wizard in your browser. It walks you through everything
this machine needs to run Locally: a trusted TLS certificate, *.locally DNS
resolution, your analytics preference, signing in to a Locally Account, and
installing resource provider plugins.

Run it again at any time to revisit any of these steps.

Usage

locally setup [flags]

locally storage

Interact with Storage Accounts within Locally.

Usage

locally storage [flags]
  locally storage [command]

Subcommands

locally storage connection-string

Print the primary connection string for a Storage Account.

Print the primary connection string for a Storage Account.

Examples:
locally storage connection-string --account mystorageaccount

Usage

locally storage connection-string [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally storage container

Manage Containers in a Storage Account within Locally.

Usage

locally storage container [flags]
  locally storage container [command]

Subcommands

locally storage container create

Create a Container in a Storage Account.

Create a Container in a Storage Account.

Examples:
locally storage container create --account mystorageaccount --name uploads

Usage

locally storage container create [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the container

locally storage container delete

Delete a Container from a Storage Account.

Delete a Container from a Storage Account.

Examples:
locally storage container delete --account mystorageaccount --name uploads

Usage

locally storage container delete [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the container

locally storage container list

List Containers in a Storage Account.

List Containers in a Storage Account.

Examples:
locally storage container list --account mystorageaccount

Usage

locally storage container list [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally storage container show

Show details for a Container in a Storage Account.

Show details for a Container in a Storage Account.

Examples:
locally storage container show --account mystorageaccount --name uploads

Usage

locally storage container show [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the container

locally storage dashboard

Open the Data Plane Emulator UI for a Storage Account in your browser.

Open the Data Plane Emulator UI for a Storage Account in your browser.

Examples:
locally storage dashboard --account mystorageaccount

Usage

locally storage dashboard [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally storage queue

Manage Queues in a Storage Account within Locally.

Usage

locally storage queue [flags]
  locally storage queue [command]

Subcommands

locally storage queue create

Create a Queue in a Storage Account.

Create a Queue in a Storage Account.

Examples:
locally storage queue create --account mystorageaccount --name jobs

Usage

locally storage queue create [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the queue

locally storage queue delete

Delete a Queue from a Storage Account.

Delete a Queue from a Storage Account.

Examples:
locally storage queue delete --account mystorageaccount --name jobs

Usage

locally storage queue delete [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the queue

locally storage queue list

List Queues in a Storage Account.

List Queues in a Storage Account.

Examples:
locally storage queue list --account mystorageaccount

Usage

locally storage queue list [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally storage share

Manage File Shares in a Storage Account within Locally.

Usage

locally storage share [flags]
  locally storage share [command]

Subcommands

locally storage share create

Create a File Share in a Storage Account.

Create a File Share in a Storage Account.

Examples:
locally storage share create --account mystorageaccount --name assets

Usage

locally storage share create [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the file share

locally storage share delete

Delete a File Share from a Storage Account.

Delete a File Share from a Storage Account.

Examples:
locally storage share delete --account mystorageaccount --name assets

Usage

locally storage share delete [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the file share

locally storage share list

List File Shares in a Storage Account.

List File Shares in a Storage Account.

Examples:
locally storage share list --account mystorageaccount

Usage

locally storage share list [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally storage table

Manage Tables in a Storage Account within Locally.

Usage

locally storage table [flags]
  locally storage table [command]

Subcommands

locally storage table create

Create a Table in a Storage Account.

Create a Table in a Storage Account.

Examples:
locally storage table create --account mystorageaccount --name orders

Usage

locally storage table create [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the table

locally storage table delete

Delete a Table from a Storage Account.

Delete a Table from a Storage Account.

Examples:
locally storage table delete --account mystorageaccount --name orders

Usage

locally storage table delete [flags]

Flags

Flag Type Description
--accountstringName of the storage account
--namestringName of the table

locally storage table list

List Tables in a Storage Account.

List Tables in a Storage Account.

Examples:
locally storage table list --account mystorageaccount

Usage

locally storage table list [flags]

Flags

Flag Type Description
--accountstringName of the storage account

locally subscriptions

Manage Locally subscriptions.

Usage

locally subscriptions [flags]
  locally subscriptions [command]

Subcommands

locally subscriptions get

Show details for a subscription.

Look up a subscription by UUID, Azure subscription ID, or display name. Matching is case-insensitive.

Usage

locally subscriptions get <uuid | id | display-name> [flags]

locally subscriptions list

List all subscriptions.

Lists every subscription this installation manages, with its display name, UUID, ID, and its resource-group and resource counts.

Usage

locally subscriptions list [flags]

locally update

Update this copy of Locally to the latest version.

Downloads, verifies, and installs the latest version of the Locally CLI in place. Package-manager installs (Homebrew, scoop) are directed to the matching upgrade command instead.

Usage

locally update [flags]

Flags

Flag Type Description
--checkCheck for an update and report without installing it.
-y, --yesInstall the update without an interactive confirmation.

locally validate

Check that Locally is fully configured and ready to run.

Usage

locally validate [flags]

locally version

Print the version of Locally in this binary.

Locally v2026.09 on darwin_arm64 (stable) from c74caef-dirty
Preview

Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in

A local cloud for you and your agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.