diff --git a/Tasks/AzureResourceGroupDeployment/operations/ParameterParser.ts b/Tasks/AzureResourceGroupDeployment/operations/ParameterParser.ts index ef097afb2653..0187a9d981b4 100644 --- a/Tasks/AzureResourceGroupDeployment/operations/ParameterParser.ts +++ b/Tasks/AzureResourceGroupDeployment/operations/ParameterParser.ts @@ -31,7 +31,7 @@ export function parse(input: string) { } function isName(literal: string, specialCharacterFlag: boolean): boolean { - return literal[0] === '-' && !specialCharacterFlag; + return literal[0] === '-' && !specialCharacterFlag && isNaN(Number(literal)); } function findLiteral(input, currentPosition) {