Skip to content

Commit 1d238d6

Browse files
authored
Merge pull request #245063 from aishwaryabh/aibhandari
Add docs for SAS token expiration
2 parents 9c54fba + d125ec5 commit 1d238d6

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

articles/azure-functions/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,9 @@
912912
- name: AZFD0004
913913
href: errors-diagnostics/diagnostic-events/azfd0004.md
914914
- name: AZFD0005
915-
href: errors-diagnostics/diagnostic-events/azfd0005.md
915+
href: errors-diagnostics/diagnostic-events/azfd0005.md
916+
- name: AZFD0006
917+
href: errors-diagnostics/diagnostic-events/azfd0006.md
916918
- name: host.json 2.x reference
917919
href: functions-host-json.md
918920
- name: host.json 1.x reference
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Comments
 (0)