{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/1835","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1835/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1835/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1835/events","html_url":"https://github.com/Azure/azure-powershell/issues/1835","id":134940749,"number":1835,"title":"Request: Make AzureRM modules workflow-friendly","user":{"login":"pcgeek86","id":466713,"avatar_url":"https://avatars.githubusercontent.com/u/466713?v=3","gravatar_id":"","url":"https://api.github.com/users/pcgeek86","html_url":"https://github.com/pcgeek86","followers_url":"https://api.github.com/users/pcgeek86/followers","following_url":"https://api.github.com/users/pcgeek86/following{/other_user}","gists_url":"https://api.github.com/users/pcgeek86/gists{/gist_id}","starred_url":"https://api.github.com/users/pcgeek86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcgeek86/subscriptions","organizations_url":"https://api.github.com/users/pcgeek86/orgs","repos_url":"https://api.github.com/users/pcgeek86/repos","events_url":"https://api.github.com/users/pcgeek86/events{/privacy}","received_events_url":"https://api.github.com/users/pcgeek86/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":6,"created_at":"2016-02-19T18:29:22Z","updated_at":"2016-02-22T17:30:23Z","closed_at":null,"body":"@ravbhatnagar @devigned @markcowl @jodoglevy \r\n\r\n# Request\r\nPlease make it a requirement for all AzureRM commands to be implemented as native activities, or otherwise Workflow-friendly, for the Windows Workflow Foundation (WWF) engine that PowerShell Workflow is based upon. The Microsoft Azure Automation service heavily depends on PowerShell Workflow, especially the relatively new Graphical Runbooks (correct me if I'm wrong). There are clear benefits of supporting native activities, including state persistence inside workflows (checkpoints), pause / resume, remoting, and so on. Unfortunately, PowerShell Workflow has suffered from a general lack of support, and the ASM and AzureRM experiences are no exception to the rule.\r\n\r\n# Limitations\r\n\r\nCurrent limitations prevent deserialized objects from being passed into ARM PowerShell commands, when they're used inside PowerShell Workflow. One of the more common scenarios I come across regularly, is that storage context objects are serialized, and then deserialized, but the deserialized object cannot be used to authenticate from the Azure Storage commands.\r\n\r\n# Work-around\r\n\r\nThe current \"work-around\" is to essentially embed the entire PowerShell script inside an `InlineScript` activity, which defeats the whole purpose of using the PowerShell Workflow engine in the first place. The Microsoft Azure Automation service could be even more compelling than it already is, if proper workflow support were implemented by the AzureRM modules.\r\n\r\nCheers,\r\nTrevor Sullivan\r\nMicrosoft MVP: PowerShell\r\nhttps://trevorsullivan.net\r\nhttps://twitter.com/pcgeek86\n<!---@tfsbridge:{\"tfsId\":5795194}-->"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/187280444","html_url":"https://github.com/Azure/azure-powershell/issues/1835#issuecomment-187280444","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1835","id":187280444,"user":{"login":"pcgeek86","id":466713,"avatar_url":"https://avatars.githubusercontent.com/u/466713?v=3","gravatar_id":"","url":"https://api.github.com/users/pcgeek86","html_url":"https://github.com/pcgeek86","followers_url":"https://api.github.com/users/pcgeek86/followers","following_url":"https://api.github.com/users/pcgeek86/following{/other_user}","gists_url":"https://api.github.com/users/pcgeek86/gists{/gist_id}","starred_url":"https://api.github.com/users/pcgeek86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcgeek86/subscriptions","organizations_url":"https://api.github.com/users/pcgeek86/orgs","repos_url":"https://api.github.com/users/pcgeek86/repos","events_url":"https://api.github.com/users/pcgeek86/events{/privacy}","received_events_url":"https://api.github.com/users/pcgeek86/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T17:30:23Z","updated_at":"2016-02-22T17:30:23Z","body":"@markcowl Thanks Mark! At the moment, I don't have others to report. :) \r\n\r\nCheers,\r\nTrevor Sullivan"}}