Home

Get a permanent URL for Azure Storage Blob?

%3CLINGO-SUB%20id%3D%22lingo-sub-1026704%22%20slang%3D%22en-US%22%3EGet%20a%20permanent%20URL%20for%20Azure%20Storage%20Blob%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1026704%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20images%20in%20Azure%20Storage%20Blob.%20I%20am%20trying%20to%20get%20a%20permanent%20URL%20for%20the%20images%20from%20Azure%20Storage%20Explorer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20right-click%20on%20the%20actual%20blob%20container%2C%20select%20%22Get%20Shared%20Access%20Signature%22%20but%20it%20has%20a%20start%20and%20expiration%20time.%20I%20know%20I%20can%20set%20it%20to%20expire%20in%202050%20or%20something%20like%20that%2C%20but%20is%20there%20a%20way%20to%20just%20have%20a%20URL%20that%20I%20can%20use%20with%20no%20start%2Fexpire%20date%3F%20The%20URL%20I%20get%20has%20the%20start%2Fexpire%20dates%20in%20it%20as%20shown%20below.%20Looking%20for%20a%20way%20to%20avoid%20that%20if%20possible.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fstorageaccpimtname.blob.core.windows.net%2Fitemimages%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstorageaccpimtname.blob.core.windows.net%2Ffilesareheresomewhere%2F%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%3E%26amp%3B%3C%2FSPAN%3E%20%3CSPAN%3EThisItem%3C%2FSPAN%3E%3CSPAN%3E.ItemNumber%20%3C%2FSPAN%3E%3CSPAN%3E%26amp%3B%3C%2FSPAN%3E%20%3CSPAN%3E%22.jpg%3Fst%3D2019-11-22T18%253A16%253A00Z%26amp%3Bse%3D2051-01-01T07%253A59%253A00Z%26amp%3Bsp%3Drl%26amp%3Bsv%3D2018-03-28%26amp%3Bsr%3Dc%26amp%3Bsig%3DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EApologies%20if%20not%20the%20right%20forum.%20Couldn't%20find%20one%20specific%20to%20Azure%20Storage%20Blobs.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1026704%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Data%20Explorer%20(Kusto)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029155%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20a%20permanent%20URL%20for%20Azure%20Storage%20Blob%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029155%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236847%22%20target%3D%22_blank%22%3E%40Ed%20Hansberry%3C%2FA%3E%26nbsp%3Bwhat%20access%20type%20did%20you%20grant%20at%20the%20container%20level%3F%20If%20the%20container%20allows%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-manage-access-to-resources%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eanonymous%20read%20access%3C%2FA%3E%2C%20you%20don't%20need%20the%20SAS%20token%20part.%20Using%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fstorageaccpimtname.blob.core.windows.net%2Ffilesareheresomewhere%2Fimagename.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstorageaccpimtname.blob.core.windows.net%2Ffilesareheresomewhere%2Fimagename.jpg%3C%2FA%3E%20is%20enough.%20You%20can%20also%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fblobs%2Fstorage-custom-domain-name%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Econfigure%20a%20custom%20domain%20for%20your%20storage%20account%3C%2FA%3E%20to%20make%20the%20URL%20match%20your%20app%20domain%20name.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1032447%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20a%20permanent%20URL%20for%20Azure%20Storage%20Blob%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1032447%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F453722%22%20target%3D%22_blank%22%3E%40hspinto%3C%2FA%3E%26nbsp%3BThanks.%20I%20see%20that%20now%20in%20Storage%20Explorer%20to%20set%20that%20for%20public%20access.%20I'll%20also%20review%20the%20URL%20you%20gave%20on%20domain%20names.%20Very%20helpful!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Ed Hansberry
Contributor

I have images in Azure Storage Blob. I am trying to get a permanent URL for the images from Azure Storage Explorer.

 

I can right-click on the actual blob container, select "Get Shared Access Signature" but it has a start and expiration time. I know I can set it to expire in 2050 or something like that, but is there a way to just have a URL that I can use with no start/expire date? The URL I get has the start/expire dates in it as shown below. Looking for a way to avoid that if possible.

https://storageaccpimtname.blob.core.windows.net/filesareheresomewhere/" & ThisItem.ItemNumber & ".jpg?st=2019-11-22T18%3A16%3A00Z&se=2051-01-01T07%3A59%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
 
Apologies if not the right forum. Couldn't find one specific to Azure Storage Blobs.
2 Replies

@Ed Hansberry what access type did you grant at the container level? If the container allows anonymous read access, you don't need the SAS token part. Using https://storageaccpimtname.blob.core.windows.net/filesareheresomewhere/imagename.jpg is enough. You can also configure a custom domain for your storage account to make the URL match your app domain name.

@hspinto Thanks. I see that now in Storage Explorer to set that for public access. I'll also review the URL you gave on domain names. Very helpful!