Open sindkor opened 2 weeks ago
[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!
[!TIP] For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.
@sindkor, thanks for submitting this issue for the avm/res/web/site
module!
[!IMPORTANT] A member of the @Azure/avm-res-web-site-module-owners-bicep or @Azure/avm-res-web-site-module-contributors-bicep team will review it soon!
A workaround seems to be to set the AzureWebJobsStorage
-parameter directory in appSettingsKeyValuePairs
and unset storageAccountResourceId
.
var storageAccountConnectionString = 'DefaultEndpointsProtocol=https;AccountName=${storage.outputs.name};AccountKey=${listKeys(resourceId('Microsoft.Storage/storageAccounts', storageAccountName), '2023-01-01').keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
(...)
AzureWebJobsStorage: storageAccountConnectionString
This might not work if you're configuring slots, as it also seems to use the storageAccountResourceId
-parameter. Additionally, there might also be issues if the storage account doesn't already exists when the listKeys()-function is ran.
[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.
[!TIP]
- To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
- To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!
[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.
[!TIP]
- To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
- To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!
[!CAUTION] This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days.
[!TIP]
- To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to!
- Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to.
Hi There - Thanks for logging this issue. We shall triage this wc 8th July.
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/web/site
(Optional) Module Version
0.3.7
Description
Using the following module call:
I've set Java version 17 and OS as Linux in pom.xml.
The module sets the app setting/environment variable
AzureWebJobsStorage
as expected. However, it does not appendEndpointSuffix=core.windows.net
. This leads to the following error when trying to deploy to the function using the Github ActionAzure/functions-action
:If I manually append
EndpointSuffix=core.windows.net
toAzureWebJobsStorage
in the Azure Portal deployment works fine.(Optional) Correlation Id
No response