sparse-intern-71089
01/26/2023, 3:33 PMmany-telephone-49025
01/26/2023, 3:36 PMmany-telephone-49025
01/26/2023, 3:36 PMmicroscopic-furniture-52860
01/26/2023, 4:04 PMusing MetricAlert = Pulumi.AzureNative.Insights.V20180301.MetricAlert;
using MetricAlertActionArgs = Pulumi.AzureNative.Insights.V20180301.Inputs.MetricAlertActionArgs;
and without, no luck unfortunatelymany-telephone-49025
01/26/2023, 4:10 PM+ └─ azure-native:insights/v20180301:MetricAlert metricAlert **creating failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (ts-stuff-dev):
error: update failed
azure-native:insights/v20180301:MetricAlert (metricAlert):
error: autorest/azure: Service returned an error. Status=403 Code="MultipleErrorsOccurred" Message="Multiple error occurred: Forbidden,Forbidden. Please see details." Details=[{"code":"LinkedAuthorizationFailed","message":"The client has permission to perform action 'microsoft.insights/webtests/read' on scope '/subscriptions/d62eb9ef-fe7c-45f5-8bd6-7b2b727869c4/resourceGroups/rg-example/providers/Microsoft.Insights/metricAlerts/webtest-name-example', however the linked subscription '12345678-1234-1234-1234-123456789101' was not found. "},{"code":"LinkedAuthorizationFailed","message":"The client has permission to perform action 'microsoft.insights/components/read' on scope '/subscriptions/d62eb9ef-fe7c-45f5-8bd6-7b2b727869c4/resourceGroups/rg-example/providers/Microsoft.Insights/metricAlerts/webtest-name-example', however the linked subscription '12345678-1234-1234-1234-123456789101' was not found. "}]
Resources:
+ 2 created
Can you maybe update the nugget packge of the azure-native provider to the latest 1.92.0
microscopic-furniture-52860
01/26/2023, 4:53 PMmany-telephone-49025
01/26/2023, 4:53 PMmany-telephone-49025
01/26/2023, 4:53 PMmicroscopic-furniture-52860
01/26/2023, 4:55 PMnew Pulumi.AzureNative.Insights.V20180301.MetricAlert("seq-traffic-alert", new()
{
Description = "Network traffic below threshold - instance possibly inaccessible",
Enabled = true,
Location = "Global",
ResourceGroupName = resourceGroup.Id,
Scopes = new[]
{
containerInstanceId
},
Actions = new[]
{
new Pulumi.AzureNative.Insights.V20180301.Inputs.MetricAlertActionArgs
{
ActionGroupId = actionGroup.Id
},
},
AutoMitigate = true,
Severity = 1,
EvaluationFrequency = "PT5M",
WindowSize = "PT5M",
Criteria = new Pulumi.AzureNative.Insights.V20180301.Inputs.MetricAlertSingleResourceMultipleMetricCriteriaArgs()
{
AllOf = new[]
{
new Pulumi.AzureNative.Insights.V20180301.Inputs.MetricCriteriaArgs
{
Name = "networktraffic",
Threshold = 250,
MetricName = "NetworkBytesReceivedPerSecond",
MetricNamespace = "Microsoft.ContainerInstance/containerGroups",
Operator = "lessthan",
TimeAggregation = "Average",
CriterionType = "StaticThresholdCriterion",
},
},
OdataType = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
},
});
many-telephone-49025
01/27/2023, 10:55 AMmany-telephone-49025
01/27/2023, 10:55 AMmany-telephone-49025
01/27/2023, 11:24 AMmany-telephone-49025
01/31/2023, 10:05 AMResourceGroupName = resourceGroup.Id
to ResourceGroupName = resourceGroup.Name
please! Then it should work!microscopic-furniture-52860
01/31/2023, 10:10 AMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by