You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/bicep-core-diagnostics.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,15 +320,15 @@ If you need more information about a particular diagnostic code, select the **Fe
320
320
| BCP334 | Warning | The provided value can have a length as small as {sourceMinLength} and may be too short to assign to a target with a configured minimum length of {targetMinLength}. |
321
321
| BCP335 | Warning | The provided value can have a length as large as {sourceMaxLength} and may be too long to assign to a target with a configured maximum length of {targetMaxLength}. |
322
322
| BCP337 | Error | This declaration type is not valid for a Bicep Parameters file. Specify a "{LanguageConstants.UsingKeyword}", "{LanguageConstants.ParameterKeyword}" or "{LanguageConstants.VariableKeyword}" declaration. |
323
-
| BCP338| Error | Failed to evaluate parameter "{parameterName}": {message}|
323
+
|<aid='BCP338' />[BCP338](./diagnostics/bcp338.md)| Error | Failed to evaluate parameter \<parameter-name>: \<error-message>`|
324
324
| BCP339 | Error | The provided array index value of "{indexSought}" is not valid. Array index should be greater than or equal to 0. |
325
325
| BCP340 | Error | Unable to parse literal YAML value. Please ensure that it is well-formed. |
326
326
| BCP341 | Error | This expression is being used inside a function declaration, which requires a value that can be calculated at the start of the deployment. {variableDependencyChainClause}{accessiblePropertiesClause} |
327
327
| BCP342 | Error | User-defined types are not supported in user-defined function parameters or outputs. |
328
328
| BCP344 | Error | Expected an assert identifier at this location. |
329
329
| BCP345 | Error | A test declaration can only reference a Bicep File |
330
-
|BCP0346| Error | Expected a test identifier at this location. |
331
-
|BCP0347| Error | Expected a test path string at this location. |
330
+
|BCP346| Error | Expected a test identifier at this location. |
331
+
|BCP347| Error | Expected a test path string at this location. |
332
332
| BCP348 | Error | Using a test declaration statement requires enabling EXPERIMENTAL feature "{nameof(ExperimentalFeaturesEnabled.TestFramework)}". |
333
333
| BCP349 | Error | Using an assert declaration requires enabling EXPERIMENTAL feature "{nameof(ExperimentalFeaturesEnabled.Assertions)}". |
334
334
| BCP350 | Error | Value of type "{valueType}" cannot be assigned to an assert. Asserts can take values of type 'bool' only. |
The string value of the environment variable or a default value.
83
83
84
+
### Remarks
85
+
86
+
The following command sets the environment variable only for the PowerShell process in which it's executed. You get [BCP338](./diagnostics/bcp338.md) from Visual Studio Code.
87
+
88
+
```PowerShell
89
+
$env:testEnvironmentVariable = "Hello World!"
90
+
```
91
+
92
+
To set the environment variable at the user level, use the following command:
It could be because the environment variable isn't defined in the user or system level. For more information, see [`readEnvironmentVariable`](../bicep-functions-parameters-file.md)
31
+
You can fix the error by assigning a string whose length is within the allowable range.
32
+
33
+
## Next steps
34
+
35
+
For more information about Bicep error and warning codes, see [Bicep core diagnostics](../bicep-core-diagnostics.md).
0 commit comments