使用带有数据库,键值等的Azure ARM模板创建Web应用 [英] Create Web app using Azure ARM Template with database, key-values etc

查看:43
本文介绍了使用带有数据库,键值等的Azure ARM模板创建Web应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个json模板,可使用数据库创建Web应用程序,但我想在要创建的Web应用程序之后创建第一个数据库.

I have a json template to create web app with Database, but i want to create first database after that web app to be created. what changes i need to do in jason template or in Azure.

推荐答案

您好,Satfromhyd,您如何在模板中定义资源? ?

Hi Satfromhyd, How do you have the resources defined in your template?

您已经知道,最基本形式的ARM模板包含4个元素. Resource元素是您定义要部署的资源+属性的地方.另外,如果您未定义部署依赖项,则将并行部署资源 在您的模板中.添加 DependOn元素允许您定义模板中资源的部署依赖项.

As you already know, an ARM template in it's most basic form includes 4 elements. The Resource element is where you define the resources + properties to be deployed. Also, resources are deployed in parallel if you do not define deployment dependencies across your template. Adding the dependsOn element allows you to define the deployment dependencies of resources within your template.


尝试根据您的部署顺序对资源重新排序,这应该可以工作.再次,看到您的ARM模板及其疑难解答,希望对您有所帮助.

Try re-ordering the resource based on your deployment sequence and that should work. Again, seeing your ARM template, its difficult troubleshoot do so hope this helps.

参考:


这篇关于使用带有数据库,键值等的Azure ARM模板创建Web应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆