victorious-arm-40344
10/25/2024, 2:18 PMpythonVersion
is not setting, which is also preventing the appropriate linux image from deploying. I have even manually set the linuxFxVersion
to python|3.11
, but on deploy it is set to python|3.6
. Are their any suggestions as to why I might be running into this issue? The app works if I set the python version manually in the console after deployment, but I can't get it to set automatically.
assistantApiFnApp:
type: azure-native:web:WebApp
properties:
name: ${resourcePrefix}-api
resourceGroupName: ${resourceGroup.name}
serverFarmId: ${servicePlan.id}
kind: FunctionApp
location: ${region}
siteConfig:
pythonVersion: "3.11"
appSettings:
- name: FUNCTIONS_WORKER_RUNTIME
value: python
- name: FUNCTIONS_EXTENSION_VERSION
value: "~4"
- name: linuxFxVersion
value: "Python|3.11"
- name: AzureWebJobsStorage
value: DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};AccountKey=${storageAccountKeys.keys[0].value}
- name: WEBSITE_RUN_FROM_PACKAGE
value: ${assistantApiFn.url}?${signature.serviceSasToken}
- name: WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
value: DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};AccountKey=${storageAccountKeys.keys[0].value}
- name: WEBSITE_CONTENTSHARE
value: ${fileShare.name}
cors:
allowedOrigins:
- "*"
full-balloon-47815
10/25/2024, 3:18 PMlinuxFxVersion
needs to be directly under siteConfig
, not under appSettings
. Mine is in Python rather than YAML, so it looks like...
...
site_config={
"app_settings": [
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "python",
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~4",
},
...
],
"linux_fx_version": "Python|3.9",
...
full-balloon-47815
10/25/2024, 3:20 PMvictorious-arm-40344
10/25/2024, 3:37 PMfull-balloon-47815
10/25/2024, 3:37 PM