Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (403)

前端 未结 1 889
孤独总比滥情好
孤独总比滥情好 2020-12-21 12:54

upon fresh publish this is the initial error:

System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.Inva

相关标签:
1条回答
  • 2020-12-21 13:02

    According to your description, I guess the reason why you faced the error is your SAS token doesn't have enough permission to CRUD the blob.

    The SAS token must be the blob container SAS token not the blob SAS token.

    Besides, if you set the the azure web app's diagnostics logs Application Logging feature, it will auto generate a SAS token in your web app's appsetting.

    More details, you could refer to below image:

    Set the storage account in the diagnostics logs.

    Then it will auto set the appsetting:


    Update:

    Failed to validate Microsoft Azure WebJobs SDK Dashboard connection string. The Microsoft Azure Storage account connection string is not formatted correctly.

    If you upload a webjobs to your web app, the web jobs need two appsetting. One is the Dashboard connection string, another one is the AzureWebJobsStorage.

    Both of these two setting need the storage connection string not the storage SAS.

    You could find the storage connection string as below image shows:

    1.Open the storage access key feature.

    2.Copy the connection string:

    3.Replace the connection string in the web app appsetting.

    0 讨论(0)
提交回复
热议问题