@Bin Jin (Forestay) If I understand correctly, you are having trouble deploying your Azure Function on a Premium App Service Plan after adding the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE settings. I'll do my best to help you out. The WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE settings are used to configure the Azure Files storage account that is used to store the content for your Function App. These settings are required if you want to use Azure Files storage instead of the default storage option. The error you are seeing ("Error Uploading archive... (ServiceUnavailable)" or "Timed out waiting for SCM to update the Environment Settings") could be caused by a few different things, but it's possible that it's related to the Azure Files storage account. Here are a few things you can try:
- Check that the storage account you are using for Azure Files is configured correctly. Make sure that it is in the same region as your Function App, and that it has the correct access policies configured.
- Try deploying your Function App using a different deployment method, such as using the Azure portal or Azure DevOps. This may help you identify any issues with the deployment process. In general, I would not recommend ignoring the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE settings if you want to use Azure Files storage. These settings are required for the storage account to be used correctly.