Closed pixeye33 closed 1 week ago
storage
Any updates for this bug? I'm having the same error these days.
I think the rest api has the bug a well.
uri="https://management.azure.com/subscriptions/$sid/resourceGroups/$rg_name/providers/Microsoft.Storage/storageAccounts/$sa_name/fileServices/default/shares/${sName}?api-version=2023-01-01&$include=leased-snapshots"
az rest --method delete --uri "$uri" --verbose
error:
Unable to delete share because one or more share snapshots have active leases. Release the share snapshot leases or delete the share with the include-leased parameter for x-ms-delete-snapshots.
Describe the bug When using
az storage share delete --name xxx --account-name xxx --account-key xxx --delete-snapshots include-leased
we getfor blob
x-ms-delete-snapshots
can be{include, only}
as seen in Docs blob commands allows itaz storage blob delete [--delete-snapshots {include, only}]
for share
x-ms-delete-snapshots
can be{include, include-leased}
as seen in Docs but share commands do not allow include-leasedaz storage share delete [--delete-snapshots {include}]
Expected behavior being able to use the "include-leased" value.
az storage share delete [--delete-snapshots {include, include-leased}]
Environment summary we use the Docker container with version 2.32.0
Additional context this was attempted because when using
az storage share delete --name xxx --account-name xxx --account-key xxx --delete-snapshots include
we got