Azure / Azure/azure-quickstart-templates
Can I remove a public IP from a JSON template?
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
### 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](https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Azure_azure-2Dquickstart-2Dtemplates_tree_master_101-2Dvm-2Dfrom-2Duser-2Dimage&d=DgMFAg&c=tAAbe3VWSXg4_eMSItYKuRlnp5vCb2OrQZQHnRXk_fc&r=n8fACoSaN9J3-MwdMqeH57SHF374UL11P2bxkwYIJWc&m=1YG9GIWdqW4avjuyDsGLlBnz-RFAjuh87eh6YvqT57U&s=EBFMlpK4XFuTbCAbBZH4m3GE5WgAi4xHXt0WbHt6aac&e=)
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](https://github.com/Azure/azure-quickstart-templates/files/637662/azure.template.txt)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the attached azure.template.txt and compare it with the referenced 101-vm-from-user-image template. Inspect properties.template.resources[1] and the remaining public-IP-related resource references, then validate the edited template. Done means the template deploys successfully without a public IP.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100