PowerShell / PSArm

PSArm is a PowerShell module that provides a PowerShell-embedded domain-specific language (DSL) for Azure Resource Manager (ARM) templates
MIT License
78 stars 19 forks source link

Prevent cmdlet keyword aliases from overriding inner keyword functions #94

Closed rjmholt closed 3 years ago

rjmholt commented 3 years ago

Some resources have keywords defined by functions called things like sku or resource and because PowerShell aliases are resolved first, the cmdlets are resolved instead of the functions.

For now I've only seen this with sku and renamed the Sku alias to ArmSku as a workaround, but we need to solve this more generally.

Two possibilities are:

Neither of those solutions is ideal though.

rjmholt commented 3 years ago

Deduplicated to https://github.com/PowerShell/PSArm/issues/126