I have a PSScript works, but the command Get-AzStorageBlobContent always throws the same error when file still downloads, even the script is compete and I verified the files are downloaded to the specified local folder sucessfully, how to ignore these errors?
I tried to catch the error and just ignored it, but looks like it won't come to catch section.
For each blob image, it has one error throwing, as you can see it doesn't step into the catch statement (the screeshot 1). How to ignore below error? or just get warning?

How to ignore Get-AzStorageBlobContent NullReferenceException error as file still downloads
314 Views Asked by jumpingbunny At
1
There are 1 best solutions below
Related Questions in AZURE-BLOB-STORAGE
- Azure Storage Account Access: Role Assignments Yield 'Access Denied' even for "Blob Owners" roles
- Getting "Incorrect padding" error when trying to retrieve the list of blob names
- Get all file from blob directory timeout 400 error when having large number of file
- Adding users file storage feature to my application
- azure-sdk-for-rust: How to get the Content-MD5 for a file?
- Azure storage blobs, Download file and check integrity
- Unhandled host error occurs after function execution
- Azure Storage Copy Blob From Url (REST API) error on x-ms-requires-sync header
- New Azure Function App processes blobs that were already processed by another Function App
- Unknown characters while reading PDF file from Azure Blobl Storage
- Transfer files to Azure Blob Storage
- "Directory is expected, not a file." error when using Azure CLI to download from blob storage
- Nothing read from Azure Blob storage after downloading file in stream data
- How to get the sizes of different Azure Blob Container inside Azure Storage Account on Grafana
- SAS token for azure storage container failed 403 error
Related Questions in AZURE-POWERSHELL
- Powershell - Error while adding CC and BCC - Missing '=' after key in hash literal
- PowerShell - Concatenate Two HTML Tables
- How to list the databases/models under Azure Analysis Services using Powershell?
- Powershell error " incomplete string token"
- Az Powershell Module commands hang
- Get today's Jenkins builds and and check if there are any success builds using PowerShell
- How can I know which certificate is able to decrypt a string?
- How to create an Azure VM from an existing managed disk with PowerShell?
- Get-AzConnectedMachineExtension returns True for enableAutomaticUpgrade when Null is expected
- Not listing the files and folders inside the azure file share
- Azure diagnostic settings creation via powershell is not working
- Update Data flow connection details for a given Power BI report Dataset
- Caching (?) issue with Set-AzSqlDatabase to rename a database
- List Virtual Machine in an azure site recovery plan
- invalid_grant error - PowerShell Azure PartnerCenter Get-PartnerCustomer API call
Related Questions in BLOBSTORAGE
- Get all file from blob directory timeout 400 error when having large number of file
- Azure Blob Storage StartCopyFromUriAsync() Causes Zero Byte Files to be Copied
- Azure Blob Storage (WASBS) - How to get permission to access?
- Error in listing all blobs under the container in for loop statement- The requested URI does not represent any resource on the server
- Azure Blob + Cloudflare CDN = SSL Issues
- Is changing an access tier considered as a write Operation, and does it incur any associated cost?
- Get-AzStorageBlob API Hangs often for a large blob container
- How to make atomic writes to blob storage and database?
- Setting BlobHttpHeaders seems to 'corrupt' my image upload
- Azure blob storage : token to share access
- SSIS Flexible File Destination FolderPath contains backslash
- Azure Storage Operational Backup Creating new version after Restore
- How to list a blob that is inside a unknown folder?
- Request is not authorized to perform this operation (403 unauthorized) . Azure blob storage
- Images in a database
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use the command (
ErrorAction SilentlyContinue) to avoid errors and continue the execution of the command in the console.Command:
Output:
Otherwise, try assigning
Get-AzStorageBlobContentcommand as a variable like the below:Output:
Reference: Everything you wanted to know about exceptions - PowerShell | Microsoft Learn