|
| 1 | +--- |
| 2 | +title: "AZFD0006: SAS Token Expiring" |
| 3 | +titleSuffix: "Azure Functions" |
| 4 | +description: "AZFD0006: SAS token expiring" |
| 5 | +author: aishwaryabh |
| 6 | +ms.author: aibhandari |
| 7 | +ms.topic: troubleshooting |
| 8 | +ms.date: 08/03/2023 |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +# AZFD0006: SAS Token Expiring Warning |
| 13 | + |
| 14 | + |
| 15 | +This event occurs when an SAS token in an application setting is set to expire within 45 days. |
| 16 | + |
| 17 | + |
| 18 | +| | Value | |
| 19 | +|-|-| |
| 20 | +| **Event ID** |AZFD0006| |
| 21 | +| **Category** |[Usage]| |
| 22 | +| **Severity** |Warning| |
| 23 | + |
| 24 | +## Event description |
| 25 | + |
| 26 | +This warning event occurs when an SAS token within a URI is set to expire within 45 days. If the token has already expired, an error event will be triggered. |
| 27 | + |
| 28 | + |
| 29 | +Functions currently only checks the following application settings for expiring SAS tokens: |
| 30 | ++ [`WEBSITE_RUN_FROM_PACKAGE`](../../functions-app-settings.md#website_run_from_package) |
| 31 | ++ [`AzureWebJobsStorage`](../../functions-app-settings.md#azurewebjobsstorage) |
| 32 | ++ [`WEBSITE_CONTENTAZUREFILECONNECTIONSTRING`](../../functions-app-settings.md#website_contentazurefileconnectionstring) |
| 33 | +The warning message specifies which variable has the SAS token that's going to expire and how much time is left. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +## How to resolve the event |
| 38 | + |
| 39 | +There are two ways to resolve this event: |
| 40 | + |
| 41 | ++ Renew the SAS token so that it doesn't expire within the next 45 days and set the new value in application settings. For more information, see [Manually uploading a package to Blob Storage](../../run-functions-from-deployment-package.md#manually-uploading-a-package-to-blob-storage). |
| 42 | + |
| 43 | ++ Switch to using managed identities instead relying on using an SAS URI. For more information, see [Fetch a package from Azure Blob Storage using a managed identity](../../run-functions-from-deployment-package.md#fetch-a-package-from-azure-blob-storage-using-a-managed-identity). |
| 44 | + |
| 45 | + |
| 46 | +## When to suppress the event |
| 47 | + |
| 48 | +This event shouldn't be suppressed. |
0 commit comments