Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
14.06k stars 16.13k forks source link

Can I remove a public IP from a JSON template? #2836

Open azurethr opened 7 years ago

azurethr commented 7 years ago

Issue Details

I'm fairly certain this is obvious - but I'm new to Azure and to GitHub, so apologies in advance because I'm probably not doing this correctly.

I'm trying to create a custom template from a template that I was pointed to by an Azure Support Technician located here

I'm trying to edit some fields, names, etc. - most of which are successful, but I can't seem to pull out the Public IP successfully. I've tried everything I can think of and that Google points me to. Of course now that I've said that, it will probably be a super easy fix and I'm just looking too deep.

I've been editing the JSON inside the Azure Portal and it allows me to save it successfully, but when I try to deploy from it I get the following error:

"The request content was invalid and could not be deserialized: 'Required property 'type' not found in JSON. Path 'properties.template.resources[1]', line 1, position 3493.'. (Code: InvalidRequestContent)"

Repro steps

  1. Basically all I have done is pull out all code that referenced anything regarding a public IP.

azure template.txt

MCKLMT commented 7 years ago

Hello,

I removed all the stuff related to the public IP. Please find the file in attachment.

azuredeploy.json.txt