Skip to content

Commit 18f5572

Browse files
Merge pull request #301892 from mumian/0625-bcp420
update the BCP420 issue description
2 parents 649c8c9 + e2ce11d commit 18f5572

File tree

1 file changed

+1
-1
lines changed
  • articles/azure-resource-manager/bicep/diagnostics

1 file changed

+1
-1
lines changed

articles/azure-resource-manager/bicep/diagnostics/bcp420.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Error
2020

2121
## Examples
2222

23-
The following code triggers BCP420 because the scope can't be determined at the compile time.
23+
The following code triggers BCP420 because the scope property uses a conditional expression that depends on the runtime value of the **targetResourceGroupName** parameter. Bicep requires that scope expressions resolve to a specific scope at compile time, without relying on parameter values or dynamic logic. Since the compiler can't determine the scope without evaluating **targetResourceGroupName**, it throws BCP420.
2424

2525
```bicep
2626
param targetResourceGroupName string = 'my-target-rg'

0 commit comments

Comments
 (0)