{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/1259","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-node","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/1259/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/1259/events","html_url":"https://github.com/Azure/azure-sdk-for-node/issues/1259","id":37797860,"number":1259,"title":"An error occurs when attempting to create a virtual network when to networks exist.","user":{"login":"davidcrossland","id":5793132,"avatar_url":"https://avatars.githubusercontent.com/u/5793132?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcrossland","html_url":"https://github.com/davidcrossland","followers_url":"https://api.github.com/users/davidcrossland/followers","following_url":"https://api.github.com/users/davidcrossland/following{/other_user}","gists_url":"https://api.github.com/users/davidcrossland/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcrossland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcrossland/subscriptions","organizations_url":"https://api.github.com/users/davidcrossland/orgs","repos_url":"https://api.github.com/users/davidcrossland/repos","events_url":"https://api.github.com/users/davidcrossland/events{/privacy}","received_events_url":"https://api.github.com/users/davidcrossland/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-sdk-for-node/labels/IAAS","name":"IAAS","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":{"login":"guangyang","id":2089145,"avatar_url":"https://avatars.githubusercontent.com/u/2089145?v=3","gravatar_id":"","url":"https://api.github.com/users/guangyang","html_url":"https://github.com/guangyang","followers_url":"https://api.github.com/users/guangyang/followers","following_url":"https://api.github.com/users/guangyang/following{/other_user}","gists_url":"https://api.github.com/users/guangyang/gists{/gist_id}","starred_url":"https://api.github.com/users/guangyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guangyang/subscriptions","organizations_url":"https://api.github.com/users/guangyang/orgs","repos_url":"https://api.github.com/users/guangyang/repos","events_url":"https://api.github.com/users/guangyang/events{/privacy}","received_events_url":"https://api.github.com/users/guangyang/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-07-14T15:38:45Z","updated_at":"2016-02-06T01:49:16Z","closed_at":"2016-02-06T01:49:16Z","body":"Following the guide \n\nhttps://www.npmjs.org/package/azure-mgmt-vnet\n\nfor creating virtual networks, gives the following code snippet as the first call to create a virtual network, it retrieves the existing configuration\n\n            this.vnetManagementClient.networks.getConfiguration(function (err, result) {\n            if (err) {\n                error(err)\n                console.error(err);\n\nWhen no virtual networks exist an error is generated\n\n              404/ResourceNotFound/Network configuration does not exist.\n\nIf at least one virtual network has been created manually this error does not occur.\n\nWhy not return an empty configuration object rather than throwing an error?<p><a href=\"https://github.com/Azure/azure-sdk-for-node/issues/1259\">https://github.com/Azure/azure-sdk-for-node/issues/1259</a></p>\n<!---@tfsbridge:{\"tfsId\":2116617}-->"}}