az-disk Verified for current stable LTS

Az Disk Command: Grant Access To Managed Disk

Use for grant access to managed disk with Az Disk. Exact CLI syntax to grant access to managed disk using Az Disk.

When to use this: Use for grant access to managed disk with Az Disk.

Command Syntax

az disk grant-access -g <resource_group> -n <disk_name> --access <Read|Write> --duration-in-seconds <seconds>

Command Breakdown

-g
Command Option
Tool-specific option used by this command invocation.
-n
Command Option
Tool-specific option used by this command invocation.
--access
Command Option
Tool-specific option used by this command invocation.
--duration-in-seconds
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to grant access to managed disk using Az Disk.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Az Disk directory