[Feature]: Ability to acquire a Storage Account Blob lease #27068
Labels
customer-reported
feature-request
This issue requires a new behavior in the product in order be resolved.
needs-author-feedback
More information is needed from author to address the issue.
Service Attention
This issue is responsible by Azure service team.
Storage
Description of the new feature
I would like the ability to create and acquire a lease for a Storage Account Blob object, as currently there is only support to do this using the Azure CLI, .NET, Java, JavaScript and Python, but not directly and natively via a PowerShell command.
By CLI: https://learn.microsoft.com/en-us/cli/azure/storage/blob/lease?view=azure-cli-latest
By other language: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-lease
By PowerShell: ?
Proposed implementation details (optional)
To leverage a command like New-AzStorageBlobLease to target an existing blob within a Storage Account and create a lease lock on that object.
Example usage:
New-AzStorageBlobLease -Blob $blobName -Container $containerName -Context $context -LeaseDuration $leaseDuration
The text was updated successfully, but these errors were encountered: