File tree 4 files changed +14
-6
lines changed
Tasks/AzureResourceManagerTemplateDeploymentV3
Strings/resources.resjson/en-US
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 101
101
"loc.messages.AuthSchemeNotSupported": "Auth Scheme %s is not supported",
102
102
"loc.messages.ErrorInSettingUpSubscription": "Error in setting up subscription: %s",
103
103
"loc.messages.BicepParamBuildFailed": "\"az bicep build-param\" failed. Error: %s",
104
- "loc.messages.IncompatibleAzureCLIVersionBicepParam": "Azure CLI version should be >= 2.47.0 to use .bicepparam file"
104
+ "loc.messages.IncompatibleAzureCLIVersionBicepParam": "Azure CLI version should be >= 2.47.0 to use .bicepparam file",
105
+ "loc.messages.ErrorWhileOverrideParameterUndefined": "The provided metadata file '%s' is missing metadata of parameter '%s'"
105
106
}
Original file line number Diff line number Diff line change @@ -369,7 +369,12 @@ class Utils {
369
369
}
370
370
371
371
try {
372
- overrideParameter . value = this . castToType ( overrideParameter . value , template . parameters [ overrideParameter . name ] . type ) ;
372
+ if ( template . parameters [ overrideParameter . name ] === undefined ) {
373
+ tl . error ( tl . loc ( "ErrorWhileOverrideParameterUndefined" , taskParameters . csmFile , overrideParameter . name ) ) ;
374
+ }
375
+ else {
376
+ overrideParameter . value = this . castToType ( overrideParameter . value , template . parameters [ overrideParameter . name ] . type ) ;
377
+ }
373
378
} catch ( error ) {
374
379
console . log ( tl . loc ( "ErrorWhileParsingParameter" , overrideParameter . name , error . toString ( ) ) ) ;
375
380
}
Original file line number Diff line number Diff line change 14
14
"author" : " Microsoft Corporation" ,
15
15
"version" : {
16
16
"Major" : 3 ,
17
- "Minor" : 254 ,
17
+ "Minor" : 255 ,
18
18
"Patch" : 0
19
19
},
20
20
"demands" : [],
341
341
"AuthSchemeNotSupported" : " Auth Scheme %s is not supported" ,
342
342
"ErrorInSettingUpSubscription" : " Error in setting up subscription: %s" ,
343
343
"BicepParamBuildFailed" : " \" az bicep build-param\" failed. Error: %s" ,
344
- "IncompatibleAzureCLIVersionBicepParam" : " Azure CLI version should be >= 2.47.0 to use .bicepparam file"
344
+ "IncompatibleAzureCLIVersionBicepParam" : " Azure CLI version should be >= 2.47.0 to use .bicepparam file" ,
345
+ "ErrorWhileOverrideParameterUndefined" : " The provided metadata file '%s' is missing metadata of parameter '%s'"
345
346
}
346
347
}
Original file line number Diff line number Diff line change 14
14
"author" : " Microsoft Corporation" ,
15
15
"version" : {
16
16
"Major" : 3 ,
17
- "Minor" : 254 ,
17
+ "Minor" : 255 ,
18
18
"Patch" : 0
19
19
},
20
20
"demands" : [],
341
341
"AuthSchemeNotSupported" : " ms-resource:loc.messages.AuthSchemeNotSupported" ,
342
342
"ErrorInSettingUpSubscription" : " ms-resource:loc.messages.ErrorInSettingUpSubscription" ,
343
343
"BicepParamBuildFailed" : " ms-resource:loc.messages.BicepParamBuildFailed" ,
344
- "IncompatibleAzureCLIVersionBicepParam" : " ms-resource:loc.messages.IncompatibleAzureCLIVersionBicepParam"
344
+ "IncompatibleAzureCLIVersionBicepParam" : " ms-resource:loc.messages.IncompatibleAzureCLIVersionBicepParam" ,
345
+ "ErrorWhileOverrideParameterUndefined" : " ms-resource:loc.messages.ErrorWhileOverrideParameterUndefined"
345
346
}
346
347
}
You can’t perform that action at this time.
0 commit comments