{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/7739","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/7739/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/7739/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/7739/events","html_url":"https://github.com/Azure/azure-cli/issues/7739","id":376392503,"node_id":"MDU6SXNzdWUzNzYzOTI1MDM=","number":7739,"title":"az keyvault network-rule add with VNet from a different resource group","user":{"login":"omerlh","id":6730584,"node_id":"MDQ6VXNlcjY3MzA1ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6730584?v=4","gravatar_id":"","url":"https://api.github.com/users/omerlh","html_url":"https://github.com/omerlh","followers_url":"https://api.github.com/users/omerlh/followers","following_url":"https://api.github.com/users/omerlh/following{/other_user}","gists_url":"https://api.github.com/users/omerlh/gists{/gist_id}","starred_url":"https://api.github.com/users/omerlh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omerlh/subscriptions","organizations_url":"https://api.github.com/users/omerlh/orgs","repos_url":"https://api.github.com/users/omerlh/repos","events_url":"https://api.github.com/users/omerlh/events{/privacy}","received_events_url":"https://api.github.com/users/omerlh/received_events","type":"User","site_admin":false},"labels":[{"id":418940013,"node_id":"MDU6TGFiZWw0MTg5NDAwMTM=","url":"https://api.github.com/repos/Azure/azure-cli/labels/KeyVault","name":"KeyVault","color":"e99695","default":false},{"id":593424290,"node_id":"MDU6TGFiZWw1OTM0MjQyOTA=","url":"https://api.github.com/repos/Azure/azure-cli/labels/Question","name":"Question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-01T13:29:18Z","updated_at":"2018-11-01T17:29:49Z","closed_at":"2018-11-01T15:58:29Z","author_association":"CONTRIBUTOR","body":"**Describe the bug**\r\nI'm trying to create a new KeyVault network rule to allow traffic only from a VNet that exist in a different resource group (not the one containing the KeyVault). This request failed with the following error:\r\n```\r\nVirtual Network could not be validated. code: ResourceNotFound. message: \"The Resource 'microsoft.network/virtualNetworks/<>' under resource group '<>' was not found.\".\r\n```\r\n**To Reproduce**\r\n* Create 2 resource group, a and b\r\n* Create keyvault in a \r\n* Create vnet in b\r\n*  Try to create a new rule by using:\r\n```\r\nz keyvault network-rule add --resource-group a --vnet-name <vnet name> --subnet <subnet name> -n <keyvault name>\r\n```\r\n**Expected behavior**\r\nRule created succesfully \r\n**Environment summary**\r\n* MacOS, az installed view brew\r\n* `azure-cli (2.0.49)`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/comments/435119352","html_url":"https://github.com/Azure/azure-cli/issues/7739#issuecomment-435119352","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/7739","id":435119352,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTExOTM1Mg==","user":{"login":"tjprescott","id":5723682,"node_id":"MDQ6VXNlcjU3MjM2ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/5723682?v=4","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T17:29:49Z","updated_at":"2018-11-01T17:29:49Z","author_association":"MEMBER","body":"You can't provide just a VNet. You must supply a subnet. You can do either of the following:\r\n`--vnet-name NAME --subnet NAME | --subnet ID`\r\nFor the cross-subscription or cross-RG scenario, you must supply the ID, not names."}}
{"actor":{"display_login":"tjprescott"}}