Azure PowerShell: Enable Application Diagnostics and Site Diagnostics

前端 未结 3 576
既然无缘
既然无缘 2021-01-14 21:17

I am configuring Diagnostics & IIS Logs for Azure Websites. Azure Manage Portal shows options to store Application Diagnostics to Azure Table Storage:

3条回答
  •  忘掉有多难
    2021-01-14 21:57

    After you enable the table diagnostics, try setting this app_setting for the SAS URL to your table:

    DIAGNOSTICS_AZURETABLESASURL

    Example:

    $site = get-azurewebsite mysite
    $site.AppSettings.Add("DIAGNOSTICS_AZURETABLESASURL", "")
    set-azurewebsite $site.Name -AppSettings $site.AppSettings
    

    You can find out more about the SAS URLs here: http://msdn.microsoft.com/en-us/library/azure/dn140255.aspx

    You can't just set the table name because it needs more information for security purposes to access the table as fully as it needs to for writing data.

提交回复
热议问题