Skip to content

Commit a0efff3

Browse files
Fix broken file reference
1 parent ae64429 commit a0efff3

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

articles/azure-video-indexer/deploy-with-bicep.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,36 @@ The Bicep file used in this tutorial is:
2727

2828
One Azure resource is defined in the bicep file:
2929

30-
* [Microsoft.videoIndexer/accounts](/azure/templates/microsoft.videoindexer/accounts?tabs=bicep)
30+
```bicep
31+
param location string = resourceGroup().location
32+
33+
@description('The name of the AVAM resource')
34+
param accountName string
35+
36+
@description('The managed identity Resource Id used to grant access to the Azure Media Service (AMS) account')
37+
param managedIdentityResourceId string
38+
39+
@description('The media Service Account Id. The Account needs to be created prior to the creation of this template')
40+
param mediaServiceAccountResourceId string
41+
42+
@description('The AVAM Template')
43+
resource avamAccount 'Microsoft.VideoIndexer/accounts@2022-08-01' = {
44+
name: accountName
45+
location: location
46+
identity:{
47+
type: 'UserAssigned'
48+
userAssignedIdentities : {
49+
'${managedIdentityResourceId}' : {}
50+
}
51+
}
52+
properties: {
53+
mediaServices: {
54+
resourceId: mediaServiceAccountResourceId
55+
userAssignedIdentity: managedIdentityResourceId
56+
}
57+
}
58+
}
59+
```
3160

3261
Check [Azure Quickstart Templates](https://github.com/Azure/azure-quickstart-templates) for more updated Bicep samples.
3362

0 commit comments

Comments
 (0)