Get-AzureResourceGroupGalleryTemplate error: Missing api version query string

Hello everyone
My name’s Huy, from Vietnam, completely newbie to PowerShell (v4&5, with WMF)
I’m getting used to Azure resource manager. I use cmdlet Get-AzureResourceGroupGalleryTemplate to download the JSON template from Azure but PS return error: Missing api version query string. Allowed values are [2014-09-01,2015-04-01,2015-10-01].
I added the switch parameter -Debug to the cmdlets and found out that the cmdlet composes a http request to azure without api-version parameter in the absolute uri. That might be the reason.

Is there anyone experiencing the same error? Any solutions?

I’m getting the same