ReplaceMacro

Replace macro to the specified value.

Syntax

ReplaceMacro
   [-Input] <String>
   [-Macro] <String>
   [[-Value] <String>]
   [<CommonParameters>]

Description

The ReplaceMacro cmdlet replaces the macro in input string with the specified value. Use Get-Help ReplaceMacro -Examples for more detail.

Examples

EXAMPLE 1

ReplaceMacro -Macro "{apiVersion}"  -Value $ApiVersion

Replace {apiVersion} to $ApiVersion.

Parameters

-Input

The input string.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Macro

The macro to be replaced.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Value

The value for the replacement.

Type:String
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False