Complete reference for all azd rest commands, flags, and supported Azure services.
Commands
All HTTP method commands follow the same pattern: azd rest <method> <url> [flags]
Command
Description
azd rest get <url>
Execute a GET request
azd rest post <url>
Execute a POST request
azd rest put <url>
Execute a PUT request
azd rest patch <url>
Execute a PATCH request
azd rest delete <url>
Execute a DELETE request
azd rest head <url>
Execute a HEAD request (headers only)
azd rest options <url>
Execute an OPTIONS request
azd rest version
Display extension version
Global Flags
These flags are available for all HTTP method commands.
Authentication
Flag
Short
Type
Default
Description
--scope
-s
string
(auto)
OAuth scope. Auto-detected for Azure services if not provided.
--no-auth
bool
false
Skip authentication. Use for public APIs.
Request Configuration
Flag
Short
Type
Default
Description
--header
-H
string[]
[]
Custom headers (repeatable). Format: Key:Value
--data
-d
string
""
Request body (JSON string)
--data-file
string
""
Read request body from file. Also accepts @file shorthand.
--timeout
-t
duration
30s
Request timeout. Examples: 30s, 5m, 1h
--insecure
-k
bool
false
Skip TLS certificate verification
Response Configuration
Flag
Short
Type
Default
Description
--format
-f
string
auto
Output format: auto (pretty JSON), json (compact), raw
--output-file
string
""
Write response to file
--binary
bool
false
Stream as binary without transformation
--verbose
-v
bool
false
Show headers, timing, request details (tokens redacted)
Advanced Options
Flag
Type
Default
Description
--paginate
bool
false
Follow continuation tokens / next links
--retry
int
3
Retry attempts with exponential backoff for transient errors
--follow-redirects
bool
true
Follow HTTP redirects
--max-redirects
int
10
Maximum redirect hops
Version Command
Terminal window
# Default output
azdrestversion
# Quiet — version number only
azdrestversion--quiet
# JSON output
azdrestversion--formatjson
Flag
Short
Type
Default
Description
--quiet
-q
bool
false
Display only the version number
--format
-f
string
auto
Output format: auto or json
Scope Detection
azd rest automatically detects the correct OAuth scope based on the URL hostname.
This eliminates the need to manually specify scopes for most Azure API calls.