{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/6831","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6831/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6831/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6831/events","html_url":"https://github.com/Azure/azure-powershell/issues/6831","id":346840126,"node_id":"MDU6SXNzdWUzNDY4NDAxMjY=","number":6831,"title":"[netcore] Need to document call XSCL API in Powershell change: Sync -> Async","user":{"login":"blueww","id":6926193,"node_id":"MDQ6VXNlcjY5MjYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/6926193?v=4","gravatar_id":"","url":"https://api.github.com/users/blueww","html_url":"https://github.com/blueww","followers_url":"https://api.github.com/users/blueww/followers","following_url":"https://api.github.com/users/blueww/following{/other_user}","gists_url":"https://api.github.com/users/blueww/gists{/gist_id}","starred_url":"https://api.github.com/users/blueww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueww/subscriptions","organizations_url":"https://api.github.com/users/blueww/orgs","repos_url":"https://api.github.com/users/blueww/repos","events_url":"https://api.github.com/users/blueww/events{/privacy}","received_events_url":"https://api.github.com/users/blueww/received_events","type":"User","site_admin":false},"labels":[{"id":1069434804,"node_id":"MDU6TGFiZWwxMDY5NDM0ODA0","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Service%20Attention","name":"Service Attention","color":"e99695","default":false},{"id":148836221,"node_id":"MDU6TGFiZWwxNDg4MzYyMjE=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Storage","name":"Storage","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/60","html_url":"https://github.com/Azure/azure-powershell/milestone/60","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/60/labels","id":3683709,"node_id":"MDk6TWlsZXN0b25lMzY4MzcwOQ==","number":60,"title":"2018-12-04","description":"Cmdlet Design Reviews Complete: 11/19 ; Code Complete: 11/26; Release to CloudShell: 11/30; Release to Customers: 12/4 ","creator":{"login":"markcowl","id":1054056,"node_id":"MDQ6VXNlcjEwNTQwNTY=","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":47,"closed_issues":1,"state":"open","created_at":"2018-09-24T16:48:11Z","updated_at":"2018-11-19T04:45:28Z","due_on":"2018-11-26T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-08-02T02:54:24Z","updated_at":"2018-11-19T04:49:37Z","closed_at":null,"author_association":"COLLABORATOR","body":"The Storage XSCL API call is frequently used in PowerShell script. E.g: \r\n•\thttps://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-soft-delete  : $Blobs.ICloudBlob.Undelete()\r\n•\thttps://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-powershell  : $snapshot = $share.Snapshot()\r\n\r\n\r\nWhen move Powershell storage module to netcore, the original XSCL API not work on Powershell netcore build, since the sync call is removed. \r\n\r\nLike following script never work:\r\n```powershell\r\n$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -Context $ctx \r\n$b.ICloudBlob.Snapshot()\r\n```\r\n\r\nAnd the following script will work\r\n```powershell\r\n$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -Context $ctx \r\n$task = $b.ICloudBlob.SnapshotAsync() \r\n$task.Wait()\r\n$snapshot = $task.Result  \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/439770909","html_url":"https://github.com/Azure/azure-powershell/issues/6831#issuecomment-439770909","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6831","id":439770909,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTc3MDkwOQ==","user":{"login":"markcowl","id":1054056,"node_id":"MDQ6VXNlcjEwNTQwNTY=","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},"created_at":"2018-11-19T04:49:37Z","updated_at":"2018-11-19T04:49:37Z","author_association":"MEMBER","body":"Why don't we take this opportunity to remove these instructions altogether form azure storage cmdlets?  Csutomers should use cmdlets to perform the tasks they wamt, not methods of cmdlet return types.\r\n\r\nStorage os currently the *only* RP to suggest that their dataplane cmdlet output should be used in this way - it means that you need to ensure there are never any brakign changes in your .Net API, \r\n\r\nOur suggestion is not to suggest the customers use the underlying .net sdk methods in PowerShell documenation.  This would seem to be a good opportunity to make this change."}}
{"actor":{"display_login":"markcowl"}}