question

SholaLawani-0401 avatar image
0 Votes"
SholaLawani-0401 asked PramodValavala-MSFT answered

Function App App files -requirements.psd1

Hello experts,

When a function app is created (using the Powershell runtime), it comes with a requirements.psd1 which has this content

This file enables modules to be automatically managed by the Functions service.

See https://aka.ms/functionsmanageddependency for additional information.

@{
# For latest supported version, go to 'https://www.powershellgallery.com/packages/Az'.
# To use the Az module in your function app, please uncomment the line below.
# 'Az' = '6.'
}
the line AZ=6.
is commented, is there a way that this line can be uncommented at deployment time using ARM template or Azure Powershell?

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

anonymous user While an ARM Template won't be able to do this, you could always use bash/PowerShell in your build pipeline to update the file before zipping.

Another option would be to set the managed dependency setting in host.json by using app settings.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.