我一直在查看有关创作 ARM 模板文件的各种文章,包括Authoring Azure Resource Manager Templates。该文章解释了如何编写模板文件来部署网站,假设该网站已打包为 .zip 文件并放置在 Azure BLOB 存储中:
"properties": {
"packageUri": "https://auxmktplceprod.blob.core.windows.net/packages/StarterSite-modified.zip",
"dbType": "None",
"connectionString": "",
"setParameters": {
"Application Path": "[parameters('siteName')]"
}
它没有解释的是如何将 asp.net 项目打包到该 .zip 文件中。
我在 Visual Studio 中有一个 ASP.net Web 项目。如何打包该 ASP.net 项目的构建输出,以便可以在我的 ARM 模板中引用它?
此外,我的解决方案还包含一个在 Visual Studio 数据库项目中表示的数据库。同样的问题,我如何打包来自该数据库项目的构建输出,以便可以在我的 ARM 模板中引用它?