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

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL

Como saber quien entro a mi PC por la Red