2017-04-18 62 views
0

部署如下模板中定義:資源不是在模板

https://gist.github.com/rnkhouse/aea0a8fd395da37b19466348b919d620

錯誤:

"Deployment failed with status code: 400 and message: Deployment template validation failed: 'The resource 'Microsoft.Network/virtualNetworks/mtes-dev-VNET' is not defined in the template. Please see https://aka.ms/arm-template for usage details.'."

我已經創建的虛擬網絡中的其他模板,這裏使用同一資源組。但是,我仍然遇到了錯誤。請指教!

回答

4

刪除dependsOn代碼中的Vnet,只有當該資源是模板的一部分時才需要,而不是已經部署的模板。

+0

刪除它。仍然得到相同的錯誤。 –

+0

是的。我只是參考子網。因爲我需要在新的子網中創建新的虛擬機。 –

+0

https://gist.github.com/rnkhouse/aea0a8fd395da37b19466348b919d620#file-02-azure-dbserver-json-L164 @RonakPatel – 4c74356b41