Skip to content

Commit

Permalink
Managed identity fix. (#3306)
Browse files Browse the repository at this point in the history
* Managed identity fix.

* Updated the message.
  • Loading branch information
khkh-ms authored Mar 13, 2023
1 parent de769a4 commit fabf989
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ private async Task<IDictionary<string, string>> ValidateFunctionAppPublish(Site
}
}

if (!functionApp.AzureAppSettings.ContainsKey("AzureWebJobsStorage") && functionApp.IsDynamic)
if (!functionApp.AzureAppSettings.ContainsKey("AzureWebJobsStorage") && functionApp.IsDynamic && functionApp.IsLinux)
{
throw new CliException($"'{FunctionAppName}' app is missing AzureWebJobsStorage app setting. That setting is required for publishing consumption linux apps.");
throw new CliException($"Azure Functions Core Tools does not support this deployment path. Please configure the app to deploy from a remote package using the steps here: https://aka.ms/deployfromurl");
}

await UpdateFrameworkVersions(functionApp, workerRuntime, DotnetFrameworkVersion, Force, azureHelperService);
Expand Down

0 comments on commit fabf989

Please sign in to comment.