{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/2660","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2660/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2660/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2660/events","html_url":"https://github.com/Azure/azure-powershell/issues/2660","id":167393953,"number":2660,"title":"Set-AzureRmVirtualNetworkSubnetConfig doesn't allow empty RouteTable","user":{"login":"lmusat","id":4648207,"avatar_url":"https://avatars.githubusercontent.com/u/4648207?v=3","gravatar_id":"","url":"https://api.github.com/users/lmusat","html_url":"https://github.com/lmusat","followers_url":"https://api.github.com/users/lmusat/followers","following_url":"https://api.github.com/users/lmusat/following{/other_user}","gists_url":"https://api.github.com/users/lmusat/gists{/gist_id}","starred_url":"https://api.github.com/users/lmusat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmusat/subscriptions","organizations_url":"https://api.github.com/users/lmusat/orgs","repos_url":"https://api.github.com/users/lmusat/repos","events_url":"https://api.github.com/users/lmusat/events{/privacy}","received_events_url":"https://api.github.com/users/lmusat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Networking","name":"Networking","color":"DDDDDD"}],"state":"open","locked":false,"assignee":{"login":"DeepakRajendranMsft","id":7852548,"avatar_url":"https://avatars.githubusercontent.com/u/7852548?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepakRajendranMsft","html_url":"https://github.com/DeepakRajendranMsft","followers_url":"https://api.github.com/users/DeepakRajendranMsft/followers","following_url":"https://api.github.com/users/DeepakRajendranMsft/following{/other_user}","gists_url":"https://api.github.com/users/DeepakRajendranMsft/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepakRajendranMsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepakRajendranMsft/subscriptions","organizations_url":"https://api.github.com/users/DeepakRajendranMsft/orgs","repos_url":"https://api.github.com/users/DeepakRajendranMsft/repos","events_url":"https://api.github.com/users/DeepakRajendranMsft/events{/privacy}","received_events_url":"https://api.github.com/users/DeepakRajendranMsft/received_events","type":"User","site_admin":false},"assignees":[{"login":"DeepakRajendranMsft","id":7852548,"avatar_url":"https://avatars.githubusercontent.com/u/7852548?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepakRajendranMsft","html_url":"https://github.com/DeepakRajendranMsft","followers_url":"https://api.github.com/users/DeepakRajendranMsft/followers","following_url":"https://api.github.com/users/DeepakRajendranMsft/following{/other_user}","gists_url":"https://api.github.com/users/DeepakRajendranMsft/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepakRajendranMsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepakRajendranMsft/subscriptions","organizations_url":"https://api.github.com/users/DeepakRajendranMsft/orgs","repos_url":"https://api.github.com/users/DeepakRajendranMsft/repos","events_url":"https://api.github.com/users/DeepakRajendranMsft/events{/privacy}","received_events_url":"https://api.github.com/users/DeepakRajendranMsft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-25T15:24:56Z","updated_at":"2016-07-25T22:49:03Z","closed_at":null,"body":"Currently I am unable to remove a route table from a subnet using azure powershell.\r\nI can do it from UI using an option called \"Dissociate\".\r\nIn this file: https://github.com/Azure/azure-powershell/blob/dev/src/ResourceManager/Network/Commands.Network/VirtualNetwork/Subnet/SetAzureVirtualNetworkSubnetConfigCommand.cs\r\nwhy is a must to check that RouteTable is not null?\r\nIs there an alternate way to remove the association between a subnet and a route table using azure powershell?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/235110078","html_url":"https://github.com/Azure/azure-powershell/issues/2660#issuecomment-235110078","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2660","id":235110078,"user":{"login":"DeepakRajendranMsft","id":7852548,"avatar_url":"https://avatars.githubusercontent.com/u/7852548?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepakRajendranMsft","html_url":"https://github.com/DeepakRajendranMsft","followers_url":"https://api.github.com/users/DeepakRajendranMsft/followers","following_url":"https://api.github.com/users/DeepakRajendranMsft/following{/other_user}","gists_url":"https://api.github.com/users/DeepakRajendranMsft/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepakRajendranMsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepakRajendranMsft/subscriptions","organizations_url":"https://api.github.com/users/DeepakRajendranMsft/orgs","repos_url":"https://api.github.com/users/DeepakRajendranMsft/repos","events_url":"https://api.github.com/users/DeepakRajendranMsft/events{/privacy}","received_events_url":"https://api.github.com/users/DeepakRajendranMsft/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T22:49:03Z","updated_at":"2016-07-25T22:49:03Z","body":"Hi @lmusat  Thanks for pointing this out.\r\n\r\nTo unblock yourself, you could do this\r\n\r\n$vnet = Get-AzureRmVirtualNetwork -Name -ResourceGroupName\r\n$vnet.Subnet[0].RouteTable = $null //use the correct subnet index\r\n$vnet | Set-AzureRmVirtualNetwork\r\n\r\nThanks,"}}
{"actor":{"display_login":"DeepakRajendranMsft"}}