{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/3976","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3976/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3976/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/3976/events","html_url":"https://github.com/Azure/azure-powershell/issues/3976","id":228841531,"number":3976,"title":"A context retrieved using New-AzureStorageContext command is incompatible with Start-AzureVirtualNetworkGatewayDiagnostics and Start-AzureVNetGatewayDiagnostics","user":{"login":"asktomsk","id":1353194,"avatar_url":"https://avatars0.githubusercontent.com/u/1353194?v=4","gravatar_id":"","url":"https://api.github.com/users/asktomsk","html_url":"https://github.com/asktomsk","followers_url":"https://api.github.com/users/asktomsk/followers","following_url":"https://api.github.com/users/asktomsk/following{/other_user}","gists_url":"https://api.github.com/users/asktomsk/gists{/gist_id}","starred_url":"https://api.github.com/users/asktomsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asktomsk/subscriptions","organizations_url":"https://api.github.com/users/asktomsk/orgs","repos_url":"https://api.github.com/users/asktomsk/repos","events_url":"https://api.github.com/users/asktomsk/events{/privacy}","received_events_url":"https://api.github.com/users/asktomsk/received_events","type":"User","site_admin":false},"labels":[{"id":334528495,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Investigate","name":"Investigate","color":"0052cc","default":false},{"id":187436091,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Team","name":"Team","color":"DDDDDD","default":false}],"state":"closed","locked":false,"assignee":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"assignees":[{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/26","html_url":"https://github.com/Azure/azure-powershell/milestone/26","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/26/labels","id":2516091,"number":26,"title":"August 2017","description":"Code complete 8/2; Shipping 8/9","creator":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars1.githubusercontent.com/u/1054056?v=4","gravatar_id":"","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":13,"state":"open","created_at":"2017-05-11T20:19:33Z","updated_at":"2017-08-08T17:50:48Z","due_on":"2017-08-02T07:00:00Z","closed_at":null},"comments":3,"created_at":"2017-05-15T20:50:23Z","updated_at":"2017-08-08T17:50:48Z","closed_at":"2017-08-08T17:50:48Z","body":"### Cmdlet(s)\r\nNew-AzureStorageContext \r\nStart-AzureVirtualNetworkGatewayDiagnostics\r\nStart-AzureVNetGatewayDiagnostics\r\n\r\n### PowerShell Version\r\n5.1.14393.576\r\n### Module Version\r\nAzure 4.0.1 (Azure.Storage 3.0.1)\r\n\r\n### OS Version\r\nWindows 10, Windows Server 2016\r\n\r\n### Description\r\nI faced the problem when AzureStorageContext retrieved using `New-AzureStorageContext` command is incompatible with `Start-AzureVirtualNetworkGatewayDiagnostics` and `Start-AzureVNetGatewayDiagnostics` input parameters.\r\nError:\r\n```\r\nStart-AzureVirtualNetworkGatewayDiagnostics : \r\nCannot bind parameter 'StorageContext'. \r\nCannot convert the \"Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext\" \r\nvalue of type \"Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext\" to\r\ntype \r\n\"Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext\".\r\n```\r\nit means you use the latest (May 15 2017) version of Azure powershell module: 4.0.1\r\nThis version has some incompatibility with latest Azure.Storage 3.0.1.\r\n\r\nYou need to remove it and install Azure 3.8.0 (April 5th 2017) it has Azure.Storage 2.8.0 as dependency. https://www.powershellgallery.com/packages/Azure/3.8.0\r\n\r\n```\r\nUninstall-Module -Name Azure.Storage\r\nUninstall-Module -Name Azure\r\nInstall-Module -Name Azure -RequiredVersion 3.8.0\r\n```\r\n\r\nThis combination works fine.\r\n"}}
{"actor":{"display_login":"markcowl"}}