How to remove blob with blob type unspecified

Sai Praneeth Eranti 0 Reputation points
2023-02-25T08:34:20.18+00:00

When I pull blob type from powershell it says 'Unspecified' but through GUI it shows "Block blob" . When I'm trying to delete blob it throws below error . Please help me here

Remove-AzStorageBlob : Blob type 'Unspecified' of blob 'Sai_Test.txt' is not supported.
At line:21 char:15
+ $Testblob   | Remove-AzStorageBlob -Force
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Remove-AzStorageBlob], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.WindowsAzure.Commands.Storage.Blob.RemoveStorageAzureBlobCommand

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,721 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,448 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
965 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 41,921 Reputation points
    2023-02-25T11:26:46.92+00:00

    Hi,

    Can you check the command for deletion - Remove-AzStorageAccount -ResourceGroupName "RG01" -Name "mystorageaccount"

    Try list command to get the directories and Blob info -

    az storage blob list \
        --account-name <storage-account> \
        --container-name <container> \
        --output table \
        --auth-mode login
    

    Check this page - https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments