File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
articles/azure-video-indexer Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,36 @@ The Bicep file used in this tutorial is:
27
27
28
28
One Azure resource is defined in the bicep file:
29
29
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
+ ```
31
60
32
61
Check [ Azure Quickstart Templates] ( https://github.com/Azure/azure-quickstart-templates ) for more updated Bicep samples.
33
62
You can’t perform that action at this time.
0 commit comments