Could not find required file in package createUiDefinition.json File path - Azure app publish in marketplace - azure

I have developed web app using .NET Core 2.0. Now I want to deploy this app in Azure Marketplace so anyone can use this app. To deploy the app I have created package which will contain below 2 files.
mainTemplate.json
createUIDefinition.json
And I have uploaded the package as shown in below image.
But it shows error:
Package acceptance validation error: AzureAppAssetRequiredFileNotFound Could not find required file in package createUiDefinition.json File path: createUiDefinition.json Code: PAC-AzureAppAssetRequiredFileNotFound
I have tried to fix this issue but I was not able to make it work. Has anyone faced this issue or anyone know the solution please guide me.
Thanks

Usually this happens when your ZIP file contains folders, and in those folders you have the artifacts such as createUiDefinition.json.
To fix, make sure createUiDefinition.json is at the root of the ZIP archive and not in any subfolders.

Related

Azure App Service keeping old files at /home/site/wwwroot/

I'm deploying nodejs application to Azure App Service with visual studio code extension (Deploy to web app). However when I inspect the files section, I found some old file/ files from previous deployment are still exist at /home/site/wwwroot/ folder.
For example first deployment have A.js, and second deployment I renamed it to B.js, /home/site/wwwroot/ will endup with A.js and B.js.
How can I resolved this issue? Any suggestion will be appreciated, thank you!
on publish page click on show all settings.
Make sure Remove additional files at destination.
Before check Remove additional files at destination. showing old file on wwwroot folder.
After check Remove additional files at destination. showing old file on wwwroot folder.

Error deploying to azure app service - "specified path, file name, or both are too long. The fully qualified file name must be < 260 characters"

I was trying to deploy my web app to a web app service I created in Azure services portal. I was doing it through Visual Studio Code with the help of Azure extensions (idk if that's important to mention or no). I got this error:
"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters"
Unfortunately, I can not change file names or move the project to a different folder. What can I do to fix this issue? Thanks in advance :)
Please check if the below steps help to fix the issue:
If it is Node JS Web App, delete the folder called node_modules within the project folder. Reload the solution > Rebuild and publish to the Azure. In the Azure Portal > Web App > Console - run the command npm install which adds the dependencies within that project with the folder called node_modules.
If possible, try to move your projects/solutions to the root directory or to the short directory path.
According to this similar issue reported in the GitHub Repo-Azure Web App, you can include a setting in publish profile file like:
<PublishTempFolderName>i2</PublishTempFolderName>
Check that reference when using the above setting, some global settings need to be applied given on the GitHub Repo
(OR) Enable the policy state of Enable NTFS long paths in the Local Group Policy Editor and check once.

Adding NuGet package ContentFiles to Azure Functions solution

I am having a great amount of difficulty adding content from a nuget package, into an Azure Functions application within Visual STudio.
When I create a non-azure functions library and/or console application and add the package, the new folder and files are there.
I am trying to do the following:
Add content to a NuGet package targeting net461 framework.
Have the NuGet package create a folder "Folder1" and add many JSON files into that folder. (Folder1/File1.json)
The issue I am having, is that it would seem that inside of the Azure Functions Project Type for Visual Studio, this does not work correctly.
I have added the custom "contentFiles" XML node inside of the nuspec file, and still no luck.
<contentFiles>
<files include="Folder1\File1.json" buildAction="Content" copyToOutput="true" />
</contentFiles>
The thing is, this works correctly for every other project under net461, except for the Azure Functions project-type.
Help would be greatly appreciated.

Azure publish package not including all files

I have couple of config, dll and an exe file located in the bin folder and included in project. The files are set as Content and Copy Always.
When I debug the project locally, all works fine, the problem is when I publish the cloud service, the files are missing. The files are being omitted by the Azure publish process and are missing from the deployment package file.
How do I force the files to be included in the package?
This might be a duplicate of Windows Azure not generating aspx files
Here is a quote from that post that may offer a solution:
I've had a similar issue with deploying Spark ViewEngine files in an MVC3 app. Solution for me was to make sure the files were part of the project (see smarx answer), and to explicitly set the Build Action to Content for each file. – kenxl Mar 3 '11 at 9:09

Typescript .js.map files missing when publishing to azure

When I publish my web app to Azure website, using the Publish functionality in VS2012, none of the .js.map files are published with it.
What can I do to make sure those files are published to the server?
Make sure they are added to the solution. Use the show all files feature followed by add file feature in the solution explorer to do this

Resources