Skip to content

Commit 2b17931

Browse files
Merge pull request #216965 from bwren/amw-bicep
Add bicep to Azure Monitor workspace
2 parents 7240a09 + 10e996e commit 2b17931

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/azure-monitor/essentials/azure-monitor-workspace-overview.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ az resource create --resource-group divyaj-test --namespace microsoft.monitor --
6262
```
6363

6464
### [Resource Manager](#tab/resource-manager)
65-
Use the following Resource Manager template with any of the [standard deployment options](../resource-manager-samples.md#deploy-the-sample-templates) to create an Azure Monitor workspace.
65+
Use one of the following Resource Manager templates with any of the [standard deployment options](../resource-manager-samples.md#deploy-the-sample-templates) to create an Azure Monitor workspace.
6666

6767
```json
6868
{
@@ -88,6 +88,20 @@ Use the following Resource Manager template with any of the [standard deployment
8888
}
8989
```
9090

91+
```bicep
92+
@description('Specify the name of the workspace.')
93+
param workspaceName string
94+
95+
@description('Specify the location for the workspace.')
96+
param location string = resourceGroup().location
97+
98+
resource workspace 'microsoft.monitor/accounts@2021-06-03-preview' = {
99+
name: workspaceName
100+
location: location
101+
}
102+
103+
```
104+
91105

92106
---
93107

0 commit comments

Comments
 (0)