{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/4890","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/4890/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/4890/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/4890/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/4890","id":246148341,"number":4890,"title":"AzureFileCopy issue: Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only.","user":{"login":"tcarun","id":30139833,"avatar_url":"https://avatars1.githubusercontent.com/u/30139833?v=4","gravatar_id":"","url":"https://api.github.com/users/tcarun","html_url":"https://github.com/tcarun","followers_url":"https://api.github.com/users/tcarun/followers","following_url":"https://api.github.com/users/tcarun/following{/other_user}","gists_url":"https://api.github.com/users/tcarun/gists{/gist_id}","starred_url":"https://api.github.com/users/tcarun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcarun/subscriptions","organizations_url":"https://api.github.com/users/tcarun/orgs","repos_url":"https://api.github.com/users/tcarun/repos","events_url":"https://api.github.com/users/tcarun/events{/privacy}","received_events_url":"https://api.github.com/users/tcarun/received_events","type":"User","site_admin":false},"labels":[{"id":391088767,"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Documentation","name":"Area: Documentation","color":"c2e0c6","default":false},{"id":391088230,"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Release","name":"Area: Release","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars2.githubusercontent.com/u/11780076?v=4","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},"assignees":[{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars2.githubusercontent.com/u/11780076?v=4","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},{"login":"asranja","id":20986928,"avatar_url":"https://avatars3.githubusercontent.com/u/20986928?v=4","gravatar_id":"","url":"https://api.github.com/users/asranja","html_url":"https://github.com/asranja","followers_url":"https://api.github.com/users/asranja/followers","following_url":"https://api.github.com/users/asranja/following{/other_user}","gists_url":"https://api.github.com/users/asranja/gists{/gist_id}","starred_url":"https://api.github.com/users/asranja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asranja/subscriptions","organizations_url":"https://api.github.com/users/asranja/orgs","repos_url":"https://api.github.com/users/asranja/repos","events_url":"https://api.github.com/users/asranja/events{/privacy}","received_events_url":"https://api.github.com/users/asranja/received_events","type":"User","site_admin":false},{"login":"rokmicrosoft","id":33001640,"avatar_url":"https://avatars3.githubusercontent.com/u/33001640?v=4","gravatar_id":"","url":"https://api.github.com/users/rokmicrosoft","html_url":"https://github.com/rokmicrosoft","followers_url":"https://api.github.com/users/rokmicrosoft/followers","following_url":"https://api.github.com/users/rokmicrosoft/following{/other_user}","gists_url":"https://api.github.com/users/rokmicrosoft/gists{/gist_id}","starred_url":"https://api.github.com/users/rokmicrosoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokmicrosoft/subscriptions","organizations_url":"https://api.github.com/users/rokmicrosoft/orgs","repos_url":"https://api.github.com/users/rokmicrosoft/repos","events_url":"https://api.github.com/users/rokmicrosoft/events{/privacy}","received_events_url":"https://api.github.com/users/rokmicrosoft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-07-27T19:44:17Z","updated_at":"2018-05-11T10:46:58Z","closed_at":null,"author_association":"NONE","body":"Runs on an on premise agent. Started failing with the error- Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only. The storage account is an ARM account. This is blocking our CI runs.\r\n\r\n\r\n2017-07-27T19:10:46.3354426Z ##[debug]Loading module from path 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\Azure\\.\\Services\\Microsoft.WindowsAzure.Commands.dll'.\r\n2017-07-27T19:10:46.3510695Z ##[debug]Loading module from path 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\Azure\\.\\Services\\Microsoft.WindowsAzure.Commands.Profile.dll'.\r\n2017-07-27T19:10:46.3666959Z ##[debug]Loading module from path 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\Azure\\.\\Sql\\Microsoft.WindowsAzure.Commands.SqlDatabase.dll'.\r\n2017-07-27T19:10:46.3823208Z ##[debug]Loading module from path 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\Azure\\.\\StorSimple\\Microsoft.WindowsAzure.Commands.StorSimple.dll'.\r\n2017-07-27T19:10:46.3979462Z ##[debug]Loading module from path 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\PowerShell\\ServiceManagement\\Azure\\.\\TrafficManager\\Microsoft.WindowsAzure.Commands.TrafficManager.dll'.\r\n2017-07-27T19:10:46.4135799Z ##[debug]Installed Azure PowerShell version: 4.2.1\r\n2017-07-27T19:10:46.4291896Z ##[debug]Compare azure versions: 4.2.1, 0.9.0\r\n2017-07-27T19:10:46.4291896Z ##[debug]Validated the required azure powershell version is greater than or equal to 0.9.0\r\n2017-07-27T19:10:46.4448218Z ##[debug][Azure Call]Getting resource details for azure storage account resource: xxxxxxxxx with resource type: Microsoft.Storage/storageAccounts\r\n2017-07-27T19:10:46.5854523Z ##[debug](ARM)Storage account: xxxxxxxxx not found\r\n2017-07-27T19:10:46.6010782Z ##[debug]Processed: ##vso[task.logissue type=error;code={\"Task_Internal_Error\":RMStorageAccountNotFound};]\r\n2017-07-27T19:10:46.6010782Z ##[debug]Processed: ##vso[task.logissue type=error;code={\"Task_Internal_Error\":Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only.};]\r\n2017-07-27T19:10:46.6010782Z ##[debug]Caught exception from task script.\r\n2017-07-27T19:10:46.6167036Z ##[debug]Error record:\r\n2017-07-27T19:10:46.7573335Z ##[debug]Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only.\r\n2017-07-27T19:10:46.7573335Z ##[debug]At C:\\e\\1\\w\\_tasks\\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\\1.0.94\\AzureUtilityGTE1.0.ps1:42 char:17\r\n2017-07-27T19:10:46.7573335Z ##[debug]+ ...             Throw (Get-VstsLocString -Key \"AFC_StorageAccountNotFound ...\r\n2017-07-27T19:10:46.7573335Z ##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n2017-07-27T19:10:46.7573335Z ##[debug]    + CategoryInfo          : OperationStopped: (Storage account...ager type only.:String) [], RuntimeException\r\n2017-07-27T19:10:46.7573335Z ##[debug]    + FullyQualifiedErrorId : Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports     storage account of Azure Resource Manager type only.\r\n2017-07-27T19:10:46.7729599Z ##[debug] \r\n2017-07-27T19:10:46.7729599Z ##[debug]Script stack trace:\r\n2017-07-27T19:10:46.7729599Z ##[debug]at Get-AzureStorageAccountResourceGroupName, C:\\e\\1\\w\\_tasks\\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\\1.0.94\\AzureUtilityGTE1.0.ps1: line 42\r\n2017-07-27T19:10:46.7885863Z ##[debug]at Get-AzureStorageKeyFromARM, C:\\e\\1\\w\\_tasks\\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\\1.0.94\\AzureUtilityRest.ps1: line 28\r\n2017-07-27T19:10:46.7885863Z ##[debug]at Get-StorageKey, C:\\e\\1\\w\\_tasks\\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\\1.0.94\\Utility.ps1: line 152\r\n2017-07-27T19:10:46.7885863Z ##[debug]at <ScriptBlock>, C:\\e\\1\\w\\_tasks\\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\\1.0.94\\AzureFileCopy.ps1: line 91\r\n2017-07-27T19:10:46.7885863Z ##[debug]at <ScriptBlock>, <No file>: line 1\r\n2017-07-27T19:10:46.7885863Z ##[debug]at <ScriptBlock>, <No file>: line 22\r\n2017-07-27T19:10:46.7885863Z ##[debug]at <ScriptBlock>, <No file>: line 18\r\n2017-07-27T19:10:46.8042107Z ##[debug]at <ScriptBlock>, <No file>: line 1\r\n2017-07-27T19:10:46.8042107Z ##[debug]Exception:\r\n2017-07-27T19:10:46.8042107Z ##[debug]System.Management.Automation.RuntimeException: Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only.\r\n2017-07-27T19:10:46.8354629Z ##[error]Storage account: xxxxxxxxx not found. Selected Connection 'ServicePrincipal' supports storage account of Azure Resource Manager type only."},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/388329686","html_url":"https://github.com/Microsoft/vsts-tasks/issues/4890#issuecomment-388329686","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/4890","id":388329686,"user":{"login":"rokmicrosoft","id":33001640,"avatar_url":"https://avatars3.githubusercontent.com/u/33001640?v=4","gravatar_id":"","url":"https://api.github.com/users/rokmicrosoft","html_url":"https://github.com/rokmicrosoft","followers_url":"https://api.github.com/users/rokmicrosoft/followers","following_url":"https://api.github.com/users/rokmicrosoft/following{/other_user}","gists_url":"https://api.github.com/users/rokmicrosoft/gists{/gist_id}","starred_url":"https://api.github.com/users/rokmicrosoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokmicrosoft/subscriptions","organizations_url":"https://api.github.com/users/rokmicrosoft/orgs","repos_url":"https://api.github.com/users/rokmicrosoft/repos","events_url":"https://api.github.com/users/rokmicrosoft/events{/privacy}","received_events_url":"https://api.github.com/users/rokmicrosoft/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T10:46:58Z","updated_at":"2018-05-11T10:46:58Z","author_association":"CONTRIBUTOR","body":"Issue created on Azure Powershell team [link](https://github.com/Azure/azure-powershell/issues/6202)"}}
{"actor":{"display_login":"rokmicrosoft"}}