{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/7855","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7855/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7855/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7855/events","html_url":"https://github.com/Azure/azure-powershell/issues/7855","id":381740150,"node_id":"MDU6SXNzdWUzODE3NDAxNTA=","number":7855,"title":"New-AzureRmEventGridSubscription & Update-AzureRmEventGridSubscription: Add Support for Storage Queue Handler","user":{"login":"MateusAmin","id":7839920,"node_id":"MDQ6VXNlcjc4Mzk5MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/7839920?v=4","gravatar_id":"","url":"https://api.github.com/users/MateusAmin","html_url":"https://github.com/MateusAmin","followers_url":"https://api.github.com/users/MateusAmin/followers","following_url":"https://api.github.com/users/MateusAmin/following{/other_user}","gists_url":"https://api.github.com/users/MateusAmin/gists{/gist_id}","starred_url":"https://api.github.com/users/MateusAmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MateusAmin/subscriptions","organizations_url":"https://api.github.com/users/MateusAmin/orgs","repos_url":"https://api.github.com/users/MateusAmin/repos","events_url":"https://api.github.com/users/MateusAmin/events{/privacy}","received_events_url":"https://api.github.com/users/MateusAmin/received_events","type":"User","site_admin":false},"labels":[{"id":744805401,"node_id":"MDU6TGFiZWw3NDQ4MDU0MDE=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Event%20Grid","name":"Event Grid","color":"e99695","default":false},{"id":1069434804,"node_id":"MDU6TGFiZWwxMDY5NDM0ODA0","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Service%20Attention","name":"Service Attention","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"kalyanaj","id":7423585,"node_id":"MDQ6VXNlcjc0MjM1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/7423585?v=4","gravatar_id":"","url":"https://api.github.com/users/kalyanaj","html_url":"https://github.com/kalyanaj","followers_url":"https://api.github.com/users/kalyanaj/followers","following_url":"https://api.github.com/users/kalyanaj/following{/other_user}","gists_url":"https://api.github.com/users/kalyanaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kalyanaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalyanaj/subscriptions","organizations_url":"https://api.github.com/users/kalyanaj/orgs","repos_url":"https://api.github.com/users/kalyanaj/repos","events_url":"https://api.github.com/users/kalyanaj/events{/privacy}","received_events_url":"https://api.github.com/users/kalyanaj/received_events","type":"User","site_admin":false},"assignees":[{"login":"kalyanaj","id":7423585,"node_id":"MDQ6VXNlcjc0MjM1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/7423585?v=4","gravatar_id":"","url":"https://api.github.com/users/kalyanaj","html_url":"https://github.com/kalyanaj","followers_url":"https://api.github.com/users/kalyanaj/followers","following_url":"https://api.github.com/users/kalyanaj/following{/other_user}","gists_url":"https://api.github.com/users/kalyanaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kalyanaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalyanaj/subscriptions","organizations_url":"https://api.github.com/users/kalyanaj/orgs","repos_url":"https://api.github.com/users/kalyanaj/repos","events_url":"https://api.github.com/users/kalyanaj/events{/privacy}","received_events_url":"https://api.github.com/users/kalyanaj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-16T20:00:26Z","updated_at":"2018-11-17T03:55:49Z","closed_at":"2018-11-17T03:55:49Z","author_association":"NONE","body":"This a request for enhancement. Currently, New-AzureRmEventGridSubscription & Update-AzureRmEventGridSubscription  do not support using Storage Queue for the subscription handler.\r\n\r\nApplicable Spots in the code:\r\n\r\nhttps://github.com/Azure/azure-powershell/blob/6ab1c8b0048e526302d42e45c670d24aaaf786e2/src/ResourceManager/EventGrid/Commands.EventGrid/EventSubscription/NewAzureEventGridSubscription.cs#L147\r\n\r\nhttps://github.com/Azure/azure-powershell/blob/97229e0b1d913453cac19ba46da65a3001e809f6/src/ResourceManager/EventGrid/Commands.EventGrid/Utilities/EventGridClient.cs#L123\r\n\r\nhttps://github.com/Azure/azure-powershell/blob/6ab1c8b0048e526302d42e45c670d24aaaf786e2/src/ResourceManager/EventGrid/Commands.EventGrid/EventSubscription/UpdateAzureEventGridSubscription.cs#L105\r\n\r\nhttps://github.com/Azure/azure-powershell/blob/97229e0b1d913453cac19ba46da65a3001e809f6/src/ResourceManager/EventGrid/Commands.EventGrid/Utilities/EventGridClient.cs#L184\r\n\r\nI tried both logical branches but it looks like it we will need to do more that updating the parameter set and the if then statement expressions.\r\n\r\n## REST API Links\r\n\r\nhttps://docs.microsoft.com/en-us/rest/api/eventgrid/eventsubscriptions/createorupdate#storagequeueeventsubscriptiondestination"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/439585539","html_url":"https://github.com/Azure/azure-powershell/issues/7855#issuecomment-439585539","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7855","id":439585539,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTU4NTUzOQ==","user":{"login":"kalyanaj","id":7423585,"node_id":"MDQ6VXNlcjc0MjM1ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/7423585?v=4","gravatar_id":"","url":"https://api.github.com/users/kalyanaj","html_url":"https://github.com/kalyanaj","followers_url":"https://api.github.com/users/kalyanaj/followers","following_url":"https://api.github.com/users/kalyanaj/following{/other_user}","gists_url":"https://api.github.com/users/kalyanaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kalyanaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalyanaj/subscriptions","organizations_url":"https://api.github.com/users/kalyanaj/orgs","repos_url":"https://api.github.com/users/kalyanaj/repos","events_url":"https://api.github.com/users/kalyanaj/events{/privacy}","received_events_url":"https://api.github.com/users/kalyanaj/received_events","type":"User","site_admin":false},"created_at":"2018-11-17T03:55:49Z","updated_at":"2018-11-17T03:55:49Z","author_association":"CONTRIBUTOR","body":"This has been supported as part of the latest preview PowerShell package for EventGrid: It can be downloaded from here. https://www.powershellgallery.com/packages/AzureRM.EventGrid/0.4.1-preview\r\n\r\nThe PowerShell usage for this is documented at https://docs.microsoft.com/en-us/azure/event-grid/custom-event-to-queue-storage.\r\n\r\n(Note: When this feature becomes GA, the main branch of PowerShell and the module that ships as part of the main PowerShell package will get updated to include this functionality. )"}}
{"actor":{"display_login":"kalyanaj"}}