Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

Aliases should be removed for the duration of Arm blocks #126

Open
@rjmholt

Description

@rjmholt

Except for the ones defined by PSArm.

Alias definitions in PowerShell take precedence over functions, which take precedence over cmdlets.

PSArm defines cmdlet-based keywords with aliases, but resource-specific keywords (i.e. keywords within a Resource block) a defined as functions. This means they will be overridden by other aliases.

For example, a resource with a keyword called type won't be able to use that keyword on Windows because of the type alias for Get-Content.

To fix this, Arm blocks should disable aliases for the duration of their execution and restore them afterward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions