Accessing blobs in private container without Shared Access Secret key

Is there any way to access blobs in private blob container without Shared Access Secret key ? i mean any User / Role based security or domain level security i.e only our domain should be able to access blobs in private container etc.
Actually i don't want to append SAS key after each blob url to access it, i want my container to be private and also i want to access each blob in that container without SAS key
any way currently available or planned in future release ?

Hi Yazeem,
> That main page loads sucessfully but the js, css, xml files which this page accesses are unable to load because SAS key is not appended to their URL automatically.
If the main page is served by a http handler and the js, css, xml files are linked using relative address, these files will also be served by the http handler too. For example, if the http handler serves a page in address
http://xxx.cloudapp.net/blobproxy/index.html and the page links to a script file using tag
<script src="myscript.js"></script>, actually the browser will use address
http://xxx.cloudapp.net/blobproxy/myscript.js to access the script file. So the solution is to create a http handler to serve all requests to address
http://xxx.cloudapp.netb/blobproxy/*.
For test purpose, I made this sample. Please add a class file BlobProxy.cs to your web role project:
using System;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure;
namespace WebApplication2
public class BlobProxy : IHttpHandler
// Please replace this with your blob container name.
const string blobContainerName = "files";
public bool IsReusable
get { return false; }
public void ProcessRequest(HttpContext context)
// Get the file name.
string fileName = context.Request.Path.Replace("/blobproxy/", string.Empty);
// Get the blob from blob storage.
var storageAccount = CloudStorageAccount.DevelopmentStorageAccount;
var blobStorage = storageAccount.CreateCloudBlobClient();
string blobAddress = blobContainerName + "/" + fileName;
CloudBlob blob = blobStorage.GetBlobReference(blobAddress);
// Read blob content to response.
context.Response.Clear();
try
blob.FetchAttributes();
context.Response.ContentType = blob.Properties.ContentType;
blob.DownloadToStream(context.Response.OutputStream);
catch (Exception ex)
context.Response.Write(ex.ToString());
context.Response.End();
Then please add this http handler to web.config file:
<configuration>
<system.webServer>
<handlers>
<add name="BlobProxy" verb="*" path="/blobproxy/*" type="WebApplication2.BlobProxy"/>
</handlers>
</system.webServer>
</configuration>
Before running the project, please replace blobContainerName with your own blob container that contains both html and related files. Then start debugging the Azure service project and then you can use the following address to access the page:
http://127.0.0.1:[port number]/blobproxy/[page name]
I above sample does not work for you, please let me know.
Thanks.
Wengchao Zeng
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact
[email protected].
Microsoft One Code Framework

Similar Messages

  • Access blobs in private container

    Hi,
    How can we access blobs in the container using account name and key if the container is marked as private.
    If the container is public we can directly download the blob from the url.
    Is there any such way to download blobs from private container using url.
    Regards,
    Kishan.

    Hi Kishan,
    You could consider using Shared Access Signatures to access BLOBs in Private containers.
    You could refer the following links for details on how to create and use SAS (Shared Access Signatures) with BLOB storage:
    http://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-shared-access-signature-part-2/
    https://msdn.microsoft.com/en-us/library/azure/jj721951.aspx
    Regards,
    Malar.

  • I have an i-tunes account on my home computer.  I just bought a lap-top (not a mac) and would like to have access to my i-tunes account without sharing so that I don't have to have home computer on.  How do I do that?

    I have a i-tunes account on my home computer.  I just bought a new lap-top (not a mac) and would like to have access to my account without sharing so that I don't have to have my home computer on.  How do I do that?

    Hi JEETCHOWHAN,
    Thanks for using Apple Support Communities.  This article has instructions on different ways to transfer your iTunes library:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Cheers,
    - Ari

  • I have an apple developer account to make a new app, but I need to give access to the designer without sharing my payment info or allowing him to have access to my icloud, apps or itunes account. There is some way to have another password?

    I have an apple developer account to make a new app, but I need to give access to the designer without sharing my payment info or allowing him to have access to my icloud, apps or itunes account. There is some way to have another password?

    The designer is usually someone who just handles the user interface portion of the code. The developer would handle core functionality. I assumed you were the developer and the designer was the designer. You are the client and your "designer" is the developer.
    Ideally, you should create a business account so that you can add someone to your team. That is the way it is supposed to work. Otherwise, you will have to ask for the final source code so that you can build and submit the app yourself. You should always have the source code regardless. You should always perform the submission under your own account too. Otherwise, it is the developer's app, not yours.
    Sharing accounts is against the Apple Developer agreement anyway. The App Store Gold Rush is over. Now it is mostly zombie apps and competing fraudsters. You don't want to give someone access to your iTunes account. You really don't want to give someone access to your bank account either.
    The best solution would be to convert your account to a business account. You may be able to have the developer submit the app and then transfer it to you.

  • List of Blobs in Storage Container

    Hi,
    I am aware I can get a Enumeration Page which provides the list of Blobs in a container in an XML Format.
    The issue is, I can't parse this into HTML with javascript. Ideally I want a file.html or file.php which will list the entire contents of the storage container and give a hyperlink to the resource. Much like a webservers index page.
    Problem is when I use Javascript and do an xmlhttp.open Get command to https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list It does not work because I get the following No
    'Access-Control-Allow-Origin' header is present on the requested resource.
    Thus it seems I can not parse the information in this manner.
    Is there any way of achieving this at all.

    Web browsers use a security restriction called "same origin policy" that prevents a web page from calling APIs in a different domain. You must set up
    CORS on your Azure Storage account so web browsers will recognize it as authorized access. For more information, see the following MSDN page:
    http://msdn.microsoft.com/en-us/library/azure/dn535601.aspx
    and the following blog post: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/02/03/windows-azure-storage-introducing-cors.aspx.

  • File Server Failover Cluster without shared disks

    i have two servers that i wish to cluster as my Hyper V hosts and also two file servers each with 10 4TB SATA disks, all i have read about implementing high availability at the storage level involves clustering the file servers (e.g SOFS) which require external
    shared storage that the servers in the cluster can access directly. i do not have external storage and do not have budget for it.
    Is it possible to implement some for of HA with windows server 2012 R2 file servers without shared storage? for example is it possible to cluster the servers and have data on one server mirrored real-time to the other server such that if one server goes
    down, the other server will take over processing storage request using the mirrored data?
    i intend to use the storage to host VMs for Hyper V fail-over cluster and an SQL server cluster. they will access the shared on the file server through SMB
    each file server also has 144GB SSD, how can i use it to improve performance?

    i have two servers that i wish to cluster as my Hyper V hosts and also two file servers each with 10 4TB SATA disks, all i have read about implementing high availability at the storage level involves clustering the file servers (e.g SOFS) which require external
    shared storage that the servers in the cluster can access directly. i do not have external storage and do not have budget for it.
    Is it possible to implement some for of HA with windows server 2012 R2 file servers without shared storage? for example is it possible to cluster the servers and have data on one server mirrored real-time to the other server such that if one server goes
    down, the other server will take over processing storage request using the mirrored data?
    i intend to use the storage to host VMs for Hyper V fail-over cluster and an SQL server cluster. they will access the shared on the file server through SMB
    each file server also has 144GB SSD, how can i use it to improve performance?
    There are two ways for you to go:
    1) Build a cluster w/o shared storage using MSFT upcoming version of Windows (yes, finally they have that feature and tons of other cool stuff). We've recently build both Scale-Out File Server serving Hyper-V cluster and standard general-purpose File Server
    cluster with this version. I'll blog next week edited content (you can drop me a message to get drafts right now) or you can use Dave's blog who was the first one I know who build it and posted, see :
    Windows Server Technical Preview (Storage Replica)
    http://clusteringformeremortals.com
    Feature you should be interested in it Storage Replica. Official guide is here:
    Storage Replica Guide
    http://blogs.technet.com/b/filecab/archive/2014/10/07/storage-replica-guide-released-for-windows-server-technical-preview.aspx
    Will do things like on the picture below:
    Just be aware: feature is new, build is preview (not even beta) so failover does not happen transparently (even with CA feature of SMB 3.0 enabled). However I think tuning timeout and improving I/O performance will fix that. SoFS failover is transparent
    even right away.
    2) If you cannot wait 9-12 months from now (hope MSFT is not going to delay their release) and you're not happy with a very basic functionality MSFT had put there (active-passive design, no RAM cache, requirement for separated storage, system/boot and dedicated
    log disks where SSD is assumed) you can get advanced stuff with a third-party software doing things similar to the picture below:
    So it will basically "mirror" some part of your storage (can be even directly-accessed file on your only system/boot disk) between hypervisor or just Windows hosts creating fault-tolerant and distributed SAN volume with optimal SMB3/NFS shares.
    For more details see:
    StarWind Virtual SAN
    http://www.starwindsoftware.com/starwind-virtual-san/
    There are other guys who do similar things but as you want file server (no virtualization?) most of them who are Linux/FreeBSD/Solaris-based and VM-running are out and you need to check for native Windows implementations. Guess SteelEye DataKeeper (that's
    Dave who blogged about Storage Replica File Server) and DataCore.
    Good luck :) 
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Can Apple Employees hack my iCloud/iMessage/iTunes/Private Apps/Photo Sharing?

    Can Apple Employees hack my iCloud/iMessage/iTunes/Private Apps/Photo Sharing? I was recently in the Apple Store and was asked for my Apple Id/password, and to enter it onto the stores iPad. Coincidently, my email associated with my Apple ID was hacked, and numerous times a day I will be asked for my Apple ID password for iMessage and iCloud. I finally changed my email and password for APPLE ID and now literally every 45 seconds a screen for iCloud pops up. What can be accessed using my iTunes account? I had personal and private data including bank accounts, photos, location enabled GPS for most apps. Is it possible that an Apple employee (with good reason) could get a hold of this information??

    We have become familiar faces since I go into the Apple Store and we know some of the same people through mutual friends. Everything I know about her she has told me, and mostly just innocent conversation at the apple store. I'm not going to report someone is stalking me if I dont know for a FACT that she is stalking me. It didnt catch my attention until a few friends who don't know her, just the situation started noticing it. I changed my apple ID so hopefully it stops, but like I said - it came to the point of being too frequent to be a coincidence. I guess re-routing back to my original question ....... Can an Apple Employee hack into my account and download the apps under my Apple ID and use my iMessage, iCloud, ect.... I don't understand why it is such a secret! its either a yes or no question. I don't feel comfortable knowing that I have had devices (not my own) that have been granted permission for iMessage (I received the notification on my ipad that another ipad had turned on imessage under my apple ID), and at the time I was not aware that someone would desire the need to log into my account to read my imessages - or could actually do it? I'm very very secretive about passwords, and would not even write on the forum about this if I didn't think it were possible. I appreciate all of your responses, I truely do but this has been going on since before March when I first created the post so understandably its been on the back of my mind for quite some time!

  • Allow a windows non-administrator user to run cmd.exe as administrator without sharing administrator password with the user

    I have standalone Windows 2003 and 2008 Oracle database servers (they are not in a Windows domain environment ). The Oracle DBAs can perform all their routine activities from command line with administrator privileges. For this i've to either share administrator
    user password with the Oracle DBAs or add their windows login user to Administrators group. If i can give the DBA user permission to run windows command prompt without sharing administrator password, i can give them non-administrator login access to Windows
    2003/2008 server. Normally when a non administrator user would try to run a program as administrator on Windows 2008, the user is prompted to input administrator username/password. Is it possible to give non-admin user access to run a program/application (cmd.exe
    in this case) on Windows 2003/2008 without sharing administrator credentials with them?

    With the OTORISER application I developed, normal users can run applications with admin privilege …  
    Otoriser is totally free ! Applications, mmc consoles, control panel cpl files can be run under admin and system context with Otoriser. Let’s say you donot want your users to be admin in their machines, but want them to run some applications with admin rights.
    If this is the case then you are on the right blog.
    There are two components for Otoriser. Management and client components. There are no complex implementation and no frustrating steps to be performed. Within 10 minutes you can start testing the results
    After you download the setup files, install client components in the client by running it directly (or any deployment method you have), it will take about 5 seconds to install it. Then, let’s say you want your user to change system properties of the machine.
    With the tool provided in Admin package produce the hash of system.cpl file and enter that hash into the group policy (details are provided in documentation). When policies are applied for that user then he or she can run that control panel applet under admin
    context but donot forget that the user is still an ordinary user.
    download link :
    http://burakuysaler.wordpress.com/2013/02/21/with-the-otoriser-application-that-i-developed-normal-users-can-run-applications-with-admin-priviledges

  • Quering on blob fields that contain XML

    Hi All,
    I need to query on blob fields that contain XML data. So I wanna say give me XML docs where ELEMENT[@ATTRIBUTE='VALUE']. So, I need to be able to query on attributes. Is there any way to do that?
    Thanks.

    Thanks for the attempt, but tried what you suggested and it will only pull records where the Asterisk is the ONLY character in that data field.
    Maybe I wasn't clear enough.
    I have in access of 200,000 records in KNA1, out of which some of them have one or more * values in the some of the fileds, eg: Comany ABC At XXXX road Workshop  is stored in the Name 1 field, I want all records like this where * is one of the characters in that field.
    May have to download the entire lot and use Excel to filter.

  • Can I share I cloud without sharing texts ?

    Can I share a single I cloud acct without sharing texts with all of the devices?

    icloud provides many services (mail, contacts, photo stream, etc.) and for any device connected to icloud, you can determine which services it will use.
    Settings>icloud, turn on whichever services you want that device to access.  Texts can be administered at Settings>Messages.  You can turn of texting if you like.  Also indicate which addresses the device will respond to.

  • How can I have two devices with separate iTunes accounts on the same computer without sharing libraries?

    I have an iPhone 3s and my sister has an iPhone 3.  We use them only as iPods.  We each have our own iTunes account, but we have to share a computer.  How can we both syn our devices without sharing our music and app libraries?

    The most reliable way would be to set up individual user accounts in WIndows. Then each of your iTunes libraries will be completely separate.
    Regards.

  • How does a family share an iTunes account without sharing the master password?

    Is there any way to avoid having to give my password to my daughter? I have had the same AppleID for many years, and it also my email address, so I would prefer not to share the password with all of my family. As far as I can tell, I can not change my AppleID associated with my iTunes account.
    I do want my daughter to be able to download apps or updates to existing apps even when she is not with me, but that doesn't seem possible without sharing passwords.
    It would be great if iTunes allowed "sub-accounts." Perhaps someday.

    I do want my daughter to be able to download apps or updates to existing apps even when she is not with me, but that doesn't seem possible without sharing passwords.
    That is indeed not possible. She'll either need to re-acquire all those apps through her own iTunes Store account, you'll have to give her the password to your account, or you'll have to do all the updating for her.
    Regards.

  • If I have an IPhone and my mother has an IPod, how can we share an iTunes account on a Mac without sharing the music?

    If I have an IPhone and my mother has an IPod, how can we share an iTunes account on a Mac without sharing the music?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Can I share an iCloud folder with someone outside my immediate family (i.e. grandparents, etc) without sharing iTunes products (music, books, videos, etc)?

    Can I share an iCloud folder with someone outside my immediate family (i.e. grandparents, etc) without sharing iTunes products (music, books, videos, etc)?

    Can I share an iCloud folder with someone outside my immediate family (i.e. grandparents, etc) without sharing iTunes products (music, books, videos, etc)?

  • Can I use one iCloud account for two phones without sharing contacts

    Can I use one iCloud account for two phones without sharing contacts

    If so how do I unmerge the two phones?

Maybe you are looking for

  • Type (..) of the context element (..) in view (..) does not exist

    Hi all I have got an question. I have an ABAP webdynpro with a context node which is connected to an ABAP structure. The context node is mapped to a context node of a view and the fields of the view are mapped to the context node of the view. So the

  • WEBI Report Use of Variable in Drill Down

    Hi, i am new to BI Webi report just doing some practice exercise from E fashion Universe. Need your help in creating a WEBI report which should show Sales Revenue broken down to half-year level. For example: We have Year, when we drill Year 2004, it

  • How to make graph?

    can anyone tell me how to show graph in the application and not using the java applets?thanks!

  • Intransit Shipment from WMS Enabled to Non-WMS Enabled Org

    Hi All, When performing Intransit Shipment (IOT) from WMS Enabled to Non-WMS Enabled Org, we are not able to Ship goods which are lying in LPNs. As a work around, we are unpacking them and shipping. But this will not work in the long run for the clie

  • Emctl start dbconsole issue

    Hello I have two 10g install on my xp. i made two databases on it. untill i made second database my oem using web browser was working fine but know its not i think its port issue. this when i try to start dbconsole service. can any body tell me on wh