{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/802","labels_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/802/comments","events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/802/events","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/802","id":114993372,"number":802,"title":"[Question] Is it possible to have static IP assigned directly to VM?","user":{"login":"akuryan","id":1794306,"avatar_url":"https://avatars.githubusercontent.com/u/1794306?v=3","gravatar_id":"","url":"https://api.github.com/users/akuryan","html_url":"https://github.com/akuryan","followers_url":"https://api.github.com/users/akuryan/followers","following_url":"https://api.github.com/users/akuryan/following{/other_user}","gists_url":"https://api.github.com/users/akuryan/gists{/gist_id}","starred_url":"https://api.github.com/users/akuryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akuryan/subscriptions","organizations_url":"https://api.github.com/users/akuryan/orgs","repos_url":"https://api.github.com/users/akuryan/repos","events_url":"https://api.github.com/users/akuryan/events{/privacy}","received_events_url":"https://api.github.com/users/akuryan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T07:48:29Z","updated_at":"2015-11-09T06:37:59Z","closed_at":null,"body":"When I try to allocate public static IP and assign it directly to NIC - powershell states that it is not possible.\r\n\r\nHere is JSON excerpt:\r\n```json\r\n        {\r\n            \"apiVersion\": \"[variables('apiVersionString')]\",\r\n            \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n            \"name\": \"[parameters('publicIPAddressNameForMaster')]\",\r\n            \"location\": \"[resourceGroup().location]\",\r\n            \"properties\": {\r\n                \"publicIPAllocationMethod\": \"Static\",\r\n                \"dnsSettings\": {\r\n                    \"domainNameLabel\": \"[parameters('dnsNameforLBIPForMaster')]\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"apiVersion\": \"[variables('apiVersionString')]\",\r\n            \"type\": \"Microsoft.Network/networkInterfaces\",\r\n            \"name\": \"[concat(parameters('nicNamePrefix'), 'Master')]\",\r\n            \"location\": \"[resourceGroup().location]\",\r\n            \"dependsOn\": [\r\n                \"[concat('Microsoft.Network/virtualNetworks/', parameters('vnetName'))]\"\r\n            ],\r\n            \"properties\": {\r\n                \"ipConfigurations\": [\r\n                    {\r\n                        \"name\": \"ipconfig1\",\r\n                        \"properties\": {\r\n                            \"privateIPAllocationMethod\": \"Dynamic\",\r\n                            \"subnet\": {\r\n                                \"id\": \"[variables('subnetRef')]\"\r\n                            },\r\n                            \"publicIPAddress\": {\r\n                                \"id\": \"[variables('publicIPAddressIDForMaster')]\"\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\t\r\n```\r\n\r\nMaybe there is some trick how to setup Static IP directly on VM??"},"comment":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/comments/154961323","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/802#issuecomment-154961323","issue_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/802","id":154961323,"user":{"login":"akuryan","id":1794306,"avatar_url":"https://avatars.githubusercontent.com/u/1794306?v=3","gravatar_id":"","url":"https://api.github.com/users/akuryan","html_url":"https://github.com/akuryan","followers_url":"https://api.github.com/users/akuryan/followers","following_url":"https://api.github.com/users/akuryan/following{/other_user}","gists_url":"https://api.github.com/users/akuryan/gists{/gist_id}","starred_url":"https://api.github.com/users/akuryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akuryan/subscriptions","organizations_url":"https://api.github.com/users/akuryan/orgs","repos_url":"https://api.github.com/users/akuryan/repos","events_url":"https://api.github.com/users/akuryan/events{/privacy}","received_events_url":"https://api.github.com/users/akuryan/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T06:37:59Z","updated_at":"2015-11-09T06:37:59Z","body":"At least, i suppose so"}}