Skip to content

Commit ae22d6f

Browse files
committed
Add bicep to Azure Monitor workspace
1 parent b337973 commit ae22d6f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Use the following command to create an Azure Monitor workspace using Azure CLI.
6161
az resource create --resource-group divyaj-test --namespace microsoft.monitor --resource-type accounts --name testmac0929 --location westus2 --properties {}
6262
```
6363

64+
### [Resource Manager](#tab/resource-manager)
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.
66+
6467
### [Resource Manager](#tab/resource-manager)
6568
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.
6669

@@ -88,6 +91,20 @@ Use the following Resource Manager template with any of the [standard deployment
8891
}
8992
```
9093

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

92109
---
93110

0 commit comments

Comments
 (0)