Problem in creating vm using existing storage account threw an ARM template threw visual studio RRS feed

  • Question

  • When I am trying to deploy a Virtual machine using existing storage account by a template, It shows that deployment failed because storage account is already exists. How to deploy a virtual machine using existing storage account by using template (not from azure portal) ?
    Tuesday, January 17, 2017 5:11 AM

All replies

  • Hello Vikrant,

    I would suggest that you first test your configurations as below:
    Test-AzureRmResourceGroupDeployment -ResourceGroupName ExampleResourceGroup -TemplateFile <PathToTemplate>
    And, then you go for final deployment with mode as Incremental.
    Do not mention the storage account deployment details except for the VHD url.
    It will server your purpose. 


    rahul mohan

    • Proposed as answer by Md Shihab Wednesday, January 25, 2017 7:22 AM
    Tuesday, January 17, 2017 11:06 AM