{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/371","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/371/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/371/events","html_url":"https://github.com/Azure/azure-powershell/issues/371","id":73871330,"number":371,"title":"A problem with Switch-AzureMode in PowerShell ISE","user":{"login":"alexandair","id":3135708,"avatar_url":"https://avatars.githubusercontent.com/u/3135708?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandair","html_url":"https://github.com/alexandair","followers_url":"https://api.github.com/users/alexandair/followers","following_url":"https://api.github.com/users/alexandair/following{/other_user}","gists_url":"https://api.github.com/users/alexandair/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandair/subscriptions","organizations_url":"https://api.github.com/users/alexandair/orgs","repos_url":"https://api.github.com/users/alexandair/repos","events_url":"https://api.github.com/users/alexandair/events{/privacy}","received_events_url":"https://api.github.com/users/alexandair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Team","name":"Team","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-07T06:54:25Z","updated_at":"2015-06-04T14:27:34Z","closed_at":null,"body":"I'm using Azure PowerShell 0.9.0 on the latest Windows 10 TP. (The issue is also confirmed on Windows 8.1 with Azure PowerShell 0.9.1)\r\n  \r\n If I open powershell.exe and run Get-Module Azure -ListAvailable, I get expected result and details about Azure module.\r\n And then, I open another powershell.exe and run Switch-AzureMode AzureResourceManager command there switching to Resource Manager mode and loading AzureResourceManager in that session.\r\n When I return to my first powershell.exe console and run Get-Module Azure -ListAvailable again, I get details about Azure module, because that session is not affected by changes in other powershell.exe session.\r\n  \r\n That's expected behavior.\r\n  \r\n Let's move to PowerShell ISE now.\r\n  \r\n I will run Get-Module Azure -ListAvailable in default PowerShell tab and get expected details about Azure module.\r\n And then, I will open new PowerShell tab (which is a new PowerShell runspace unaware of the first tab) and run Switch-AzureMode AzureResourceManager.\r\n When I return to my first tab, Azure module is not loaded there anymore and Get-Module Azure -ListAvailable returns nothing because now AzureResourceManager module is loaded thanks to the command from the second PowerShell tab.\r\n  \r\n That's not expected behavior. And I cannot recall that it worked like that before.\n<!---@tfsbridge:{\"tfsId\":3899912}-->"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/108914335","html_url":"https://github.com/Azure/azure-powershell/issues/371#issuecomment-108914335","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/371","id":108914335,"user":{"login":"devigned","id":386473,"avatar_url":"https://avatars.githubusercontent.com/u/386473?v=3","gravatar_id":"","url":"https://api.github.com/users/devigned","html_url":"https://github.com/devigned","followers_url":"https://api.github.com/users/devigned/followers","following_url":"https://api.github.com/users/devigned/following{/other_user}","gists_url":"https://api.github.com/users/devigned/gists{/gist_id}","starred_url":"https://api.github.com/users/devigned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devigned/subscriptions","organizations_url":"https://api.github.com/users/devigned/orgs","repos_url":"https://api.github.com/users/devigned/repos","events_url":"https://api.github.com/users/devigned/events{/privacy}","received_events_url":"https://api.github.com/users/devigned/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T14:27:34Z","updated_at":"2015-06-04T14:27:34Z","body":"Agreed. As of 0.9.2 switch azure mode has been marked for deprecation. Please follow #428 to get more information regarding this transition.\r\n\r\nWe are aware of stateful activities which cause issues across powershell sessions and will be eliminating them in future releases."}}