Azure / Azure/azure-cli

Function app zipdeploy command fails due to invalid sas uri

Open
#15,713 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

'az functionapp deployment source config-zip' command generates a sas uri, uploads app content and updates the WEBSITE_RUN_FROM_PACKAGE appsetting with the newly generated uri.

The generated sas uri is not based on UTC, so it is possible the sas uri might not be valid for a few hours depending on the region where the sas uri is generated.

https://github.com/Azure/azure-cli/blob/ddeaff14e255669d535f135f46e3009a10d49ad2/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L558

Looks like the datetime logic needs to use tzinfo class to set the timezone.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.