azure-storage-account

Unable to programmatically get the keys for Azure Storage Account

旧城冷巷雨未停 提交于 2021-02-11 12:29:29
问题 I am trying to get the keys for all the Storage Accounts in my subscription. But I am getting this exception on one of the Storage Account using Azure Java SDK. com.microsoft.azure.CloudException: Status code 403, {"error":{"code":"AuthorizationFailed","message":"The client '5c79ee27-#########-######91f8e3' with object id '5c79ee27-###########-#####91f8e3' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/listKeys/action' over scope '/subscriptions/758ad253-####

Is it possible to generate SAS (Shared Access Signature) with write permission for given directory in azure blob storage

梦想与她 提交于 2021-02-08 05:16:35
问题 Our blob storage account structure: container name: simple inside this container we have blobs: aa/one.zip aa/two.zip bb/ss.zip bb/dd.zip Is it possible to generate SAS with write permission for aa “directory”, but no access for bb “directory”? With Amazon AWS we can easily create restrictions based on object/blob prefix name, but I can't find similar functionality in azure storage sdk for java. 回答1: As of today, it is not possible to do so at the folder level because as such there's no

Is it possible to generate SAS (Shared Access Signature) with write permission for given directory in azure blob storage

廉价感情. 提交于 2021-02-08 05:16:10
问题 Our blob storage account structure: container name: simple inside this container we have blobs: aa/one.zip aa/two.zip bb/ss.zip bb/dd.zip Is it possible to generate SAS with write permission for aa “directory”, but no access for bb “directory”? With Amazon AWS we can easily create restrictions based on object/blob prefix name, but I can't find similar functionality in azure storage sdk for java. 回答1: As of today, it is not possible to do so at the folder level because as such there's no

Azure functions : Getting 403 error while accessing the storage account

五迷三道 提交于 2021-02-07 20:21:07
问题 I have been using azure timer based function in my project. Since I started using the function, I was getting error 403 related to access forbidden from Azure storage account. I tried adding AzureWebJobsStorage Key in function's configuration I tried adding outbound IPs of Allowed ip ranges of azure storage accounts I tried checking the option of allowing azure managed services to the storage account. However, I'm still getting the error in that particular timer function of my function app.

Azure functions : Getting 403 error while accessing the storage account

橙三吉。 提交于 2021-02-07 20:20:02
问题 I have been using azure timer based function in my project. Since I started using the function, I was getting error 403 related to access forbidden from Azure storage account. I tried adding AzureWebJobsStorage Key in function's configuration I tried adding outbound IPs of Allowed ip ranges of azure storage accounts I tried checking the option of allowing azure managed services to the storage account. However, I'm still getting the error in that particular timer function of my function app.

Send Azure Blob Storage event notifications to Event Hubs on another account

对着背影说爱祢 提交于 2020-06-12 15:33:59
问题 In Azure, I'm trying to send event notifications from a Storage Account in one Active Directory to an Event Hub in another Active Directory. I'm having trouble figuring out how to share/link the resource. In AWS, I was able to accomplish this by creating a role in the receiver account, adding the source account by ID, adding the SQS Writer resource permission, and adding the SQS Queue ARN as the bucket notification destination. I'm guessing something similar is possible in Azure.. At the

Send Azure Blob Storage event notifications to Event Hubs on another account

怎甘沉沦 提交于 2020-06-12 15:26:14
问题 In Azure, I'm trying to send event notifications from a Storage Account in one Active Directory to an Event Hub in another Active Directory. I'm having trouble figuring out how to share/link the resource. In AWS, I was able to accomplish this by creating a role in the receiver account, adding the source account by ID, adding the SQS Writer resource permission, and adding the SQS Queue ARN as the bucket notification destination. I'm guessing something similar is possible in Azure.. At the

Unable to open Cloud Shell because of Storage Account error

北城余情 提交于 2020-05-31 02:02:48
问题 I am trying to open Cloud Shell by following below steps. Click on Cloud Shell toolbar icon. Click on PowerShell link from the generated window. Selected Visual Studio Professional Subscription as that is the one and only available for me. Clicked on Create storage button. Now, I am getting below error: {"error":{"code":"StorageAccountAlreadyTaken","message":"The storage account named abcdefghijklmn1003200086 is already taken."}} Can't create a storage account. Please try again. I have

Unable to open Cloud Shell because of Storage Account error

自闭症网瘾萝莉.ら 提交于 2020-05-31 02:02:41
问题 I am trying to open Cloud Shell by following below steps. Click on Cloud Shell toolbar icon. Click on PowerShell link from the generated window. Selected Visual Studio Professional Subscription as that is the one and only available for me. Clicked on Create storage button. Now, I am getting below error: {"error":{"code":"StorageAccountAlreadyTaken","message":"The storage account named abcdefghijklmn1003200086 is already taken."}} Can't create a storage account. Please try again. I have

How to copy a file in Azure from a one storage account to another using Python?

十年热恋 提交于 2020-04-30 09:07:58
问题 I have written a piece of code to copy a file from one container to another within the same storage account. block_blob_service = BlockBlobService( account_name='', account_key='') blob_name = file_name copy_from_container = source copy_to_container = destination blob_url = block_blob_service.make_blob_url(copy_from_container, blob_name) # blob_url:https://demostorage.blob.core.windows.net/image-container/pretty.jpg block_blob_service.copy_blob(copy_to_container, blob_name, blob_url) But now