-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupportTicket.bicep
More file actions
51 lines (42 loc) · 1.47 KB
/
supportTicket.bicep
File metadata and controls
51 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
targetScope = 'subscription'
param ticketTitle string
param ticketDescription string
@allowed(['critical', 'highestcriticalimpact', 'minimal', 'moderate'])
param severity string = 'minimal'
param serviceName string
param problemClassificationName string
param resourceId string
param utc string = utcNow()
var serviceId = '/providers/Microsoft.Support/services/${serviceName}'
var problemClassificationId = '/providers/Microsoft.Support/services/${serviceName}/problemClassifications/${problemClassificationName}'
var abc = resourceId
param contactDetails object = {
country: 'DNK'
firstName: 'Mantas'
lastName: ''
preferredContactMethod: 'email'
preferredSupportLanguage: 'en-US'
preferredTimeZone: 'Central Europe Standard Time'
primaryEmailAddress: ''
phoneNumber:
}
resource supportTicket 'Microsoft.Support/supportTickets@2020-04-01' = {
#disable-next-line use-stable-resource-identifiers
name: guid(subscription().id, utc)
properties:{
contactDetails: contactDetails
description: ticketDescription
#disable-next-line use-resource-id-functions
problemClassificationId: problemClassificationId
#disable-next-line use-resource-id-functions
serviceId: serviceId
severity: severity
title: ticketTitle
technicalTicketDetails: {
resourceId: resourceId
}
}
}
output supportTicketName string = supportTicket.name
output supportTciketId string = supportTicket.id
output supportTicketProperties object = supportTicket.properties