Azure storage emulator mac

broken image
broken image

Var blobClient = new BlobClient(authorizedBlobUri) Ĭonsole.WriteLine('blob read successfully: #') Var authorizedBlobUri = blobUriBuilder.Uri Var blobUriBuilder = new System.UriBuilder(blobUri) I am very new to this so have no idea how it should work I am trying to access Azure Blob with SAS token to download the data from the blob, this is what I have tried. My issue is that New-AzureStorageContainerSASToken generates a URL the I use for azure copy destination azcopy copy 'xxx' $containerSASURI but it copies to the container root and I would like it to copy to a specific directory e.g \test\demo $containerSASURI = New-AzureStorageContainerSASToken -Context $destinationContext -ExpiryTime(get-date).AddSeconds(3600) -FullUri -Name 'xxx' -Permission rw -Protocol HttpsOnly $destinationContext = New-AzureStorageContext -ConnectionString 'DefaultEndpointsProtocol=https AccountName=xxx AccountKey=xxx EndpointSuffix=xxx ' Is there some sort of flag or something for New-AzureStorageContext that will allow me to set this? # Set AzStorageContext

broken image

I have the code working but I can't figure out how to set a custom path for URL that New-AzureStorageContext generates, because I would like to copy to a particular path and not the container root. I am following Microsoft docs and to create a SAS token.

broken image

I am copying some files to azure blob storage.