Test path for a blob file


i able read blob file using following command:

$p=get-azurestorageblob-container$containername-blob$blobname

but want know whether blob file present or not.

something like: test-path c:\scripts\archive

 

hello chirag54,

thanks post. according issue, maybe try wrap call get-azurestorageblob in try/catch , catch resourcenotfoundexception determine blob doesn't exist.

besides, issue more related azure, in order problem fixed asap, suggest post issue on azure script forum:

https://social.msdn.microsoft.com/forums/en-us/home?forum=azurescripting&filter=alltypes&sort=lastpostdesc

hope helps.

best regards,

elaine


please remember mark replies answers if , unmark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2