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/diagnostics/bcp139.md
+28-14Lines changed: 28 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: BCP139
3
3
description: A resource's scope must match the scope of the Bicep file for it to be deployable. You must use modules to deploy resources to a different scope.
4
4
ms.topic: reference
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 02/12/2025
6
+
ms.date: 06/25/2025
7
7
---
8
8
9
9
# Bicep diagnostic code - BCP139
@@ -32,13 +32,14 @@ To deploy resources to a scope that isn't the target scope, add a `module`.
32
32
The following example deploys a storage account resource to a different resource group in the same subscription. The example raises the diagnostic because the `module` declaration type isn't used:
33
33
34
34
```bicep
35
-
param otherResourceGroup string
35
+
param targetResourceGroup string
36
+
param storageAccountName string
36
37
param location string
37
38
38
39
// resource deployed to a different resource group in the same subscription
0 commit comments