Azure / template-specs

MIT License
31 stars 4 forks source link

Export-AzTemplateSpec saves to C:\Windows\system32\<folder-name> if directory path is not provided #12

Closed filizt closed 4 years ago

filizt commented 4 years ago

Run below cmdlet in PS:

Export-AzTemplateSpec -Id "/subscriptions/28cbf98f-381d-4425-9ac4-cf342dab9753/resourceGroups/jcotillo-script-debug/providers/Microsoft.Resources/templateSpecs/NSG-Shared" -Version 1.0 -OutputFolder "test"

Expected: file saved in \test folder Actual: file saved in C:\Windows\system32\test folder

filizt commented 4 years ago

For reference, Blueprints use the user's current relative path if a directory is not provided.

stuartko commented 4 years ago

This is fixed in the latest cmdlets/drop (though it may not be in the github artifacts until tomorrow morning).