{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/305","repository_url":"https://api.github.com/repos/Azure/azure-rest-api-specs","labels_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/305/comments","events_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/305/events","html_url":"https://github.com/Azure/azure-rest-api-specs/issues/305","id":155600858,"number":305,"title":"CRP and NRP Swagger are not accurate for NIC/IPConfiguration's primary fields","user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-05-18T21:02:22Z","updated_at":"2016-08-12T00:57:08Z","closed_at":"2016-08-12T00:57:08Z","body":"The core details are here: https://github.com/Azure/azure-sdk-for-go/issues/259#issuecomment-220155974\r\n\r\nThe Swagger spec for Compute Instance -> NetworkProfile NIC -> primary is not correct -- in that [someone] is not populating the \"primary\" field for an Interface in my VM's NetworkProfile.\r\n\r\nThe Swagger spec for Network's Interface -> IPConfiguration -> primary field does not exist.\r\n\r\nThe net result of this is that I can NOT accurately write code to say... place a VM in a load balancer backend pool because I have no way of determining which NIC is primary, or which ip configuration on the NIC is primary.\r\n\r\nI'm currently \"working around\" this by assuming that there is only one NIC and only one IP Configuration... which is probably fine for my use case, but we should still fix this."},"comment":{"url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/comments/239336420","html_url":"https://github.com/Azure/azure-rest-api-specs/issues/305#issuecomment-239336420","issue_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/305","id":239336420,"user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T00:57:08Z","updated_at":"2016-08-12T00:57:08Z","body":"Summary:\r\n\r\n* NRP will always return the `primary` fields on the NIC and on the IPConfigs on the NICs. These are here in the Swagger spec:\r\n  * https://github.com/Azure/azure-rest-api-specs/blob/master/arm-network/2016-06-01/swagger/network.json#L6440\r\n  * https://github.com/Azure/azure-rest-api-specs/blob/master/arm-network/2016-06-01/swagger/network.json#L6531\r\n\r\n* CRP will only return the `primary` flag for a NIC if the user specified it in a previous create/update of the VM\r\n\r\nThanks to @DeepakRajendranMsft for providing this information."}}
{"actor":{"display_login":"colemickens"}}