You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is effectively a duplicate of Azure/bicep-types-az#1441 even though it is a different resource type. Recommendation is to open a support ticket so the Cost Management team can triage the issue.
Bicep version
Bicep 0.13.1
The bicep creates a new resource (Anomaly report) but cannot update them.
I tried API's:
2022-10-01
2022-06-01-preview
2022-04-01-preview
Below Bicep module:
targetScope = 'subscription'
@description('Subscription id on which budget will be created')
param subscriptionId string
@description('Subscription Name')
param subscriptionName string
@description('Alert recipents')
param emailNotification array
param baseTime string = utcNow('u')
resource anomaliesReport 'Microsoft.CostManagement/scheduledActions@2022-10-01' = {
name: 'Dailyanomaly2'
kind: 'InsightAlert'
scope: subscription()
properties: {
displayName: 'Daily anomaly'
fileDestination: {
fileFormats: []
}
notificationEmail: ''
notification: {
message: 'Daily anomaly report'
subject: 'Cost anomaly detected in the ${subscriptionName} subscription'
to: emailNotification
}
schedule: {
endDate: dateTimeAdd(baseTime,'P1Y')
frequency: 'Daily'
startDate: baseTime
}
scope: 'subscriptions/${subscriptionId}'
status: 'Enabled'
viewId: resourceId('Microsoft.CostManagement/views/','ms:DailyAnomalyByResourceGroup')
}
}
The text was updated successfully, but these errors were encountered: