Skip to content

Commit d4767f4

Browse files
authored
bug fix (#198)
1 parent 22b7b98 commit d4767f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/handlers/resourceValidator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ export class ResourceValidator implements IOrchestratable {
199199
);
200200
}
201201

202-
if (!appSettings.properties['AzureWebJobsStorage'] && !appSettings.properties['AzureWebJobsStorage__accountName']) {
202+
if (!appSettings['AzureWebJobsStorage'] && !appSettings['AzureWebJobsStorage__accountName']) {
203203
Logger.Warn(
204204
'Neither AzureWebJobsStorage nor AzureWebJobsStorage__accountName exist in app settings (from Kudu SCM site with publish-profile credential). ' +
205205
'Please ensure one of them is configured as it is critical for function runtime. ' +
206206
'For more information, please visit the function app settings reference page: ' +
207207
'https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azurewebjobsstorage'
208208
);
209-
} else if (appSettings.properties['AzureWebJobsStorage']) {
209+
} else if (appSettings['AzureWebJobsStorage']) {
210210
console.log(`::add-mask::${appSettings['AzureWebJobsStorage']}`);
211211
}
212212

@@ -217,12 +217,12 @@ export class ResourceValidator implements IOrchestratable {
217217

218218
const result: IAppSettings = {
219219
AzureWebJobsStorage: appSettings['AzureWebJobsStorage'],
220-
AzureWebJobsStorage__accountName: appSettings.properties['AzureWebJobsStorage__accountName'],
220+
AzureWebJobsStorage__accountName: appSettings['AzureWebJobsStorage__accountName'],
221221
FUNCTIONS_WORKER_RUNTIME: appSettings['FUNCTIONS_WORKER_RUNTIME'],
222222
ENABLE_ORYX_BUILD: appSettings['ENABLE_ORYX_BUILD'],
223223
SCM_DO_BUILD_DURING_DEPLOYMENT: appSettings['SCM_DO_BUILD_DURING_DEPLOYMENT'],
224224
WEBSITE_RUN_FROM_PACKAGE: appSettings['WEBSITE_RUN_FROM_PACKAGE'],
225-
WEBSITE_RUN_FROM_PACKAGE_BLOB_MI_RESOURCE_ID: appSettings.properties['WEBSITE_RUN_FROM_PACKAGE_BLOB_MI_RESOURCE_ID'],
225+
WEBSITE_RUN_FROM_PACKAGE_BLOB_MI_RESOURCE_ID: appSettings['WEBSITE_RUN_FROM_PACKAGE_BLOB_MI_RESOURCE_ID'],
226226
SCM_RUN_FROM_PACKAGE: appSettings['SCM_RUN_FROM_PACKAGE']
227227
};
228228
return result

0 commit comments

Comments
 (0)