We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the @pulumi/azure.monitoring function in @pulumi/azure

To help you get started, we’ve selected a few @pulumi/azure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pulumi / kubernetes-guides / azure / 04-cluster-services / index.ts View on Github external
import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import { config } from "./config";

const name = pulumi.getProject();

// Enable the Monitoring Diagonostic control plane component logs and AllMetrics
const azMonitoringDiagnostic = new azure.monitoring.DiagnosticSetting(name, {
    logAnalyticsWorkspaceId: config.logAnalyticsWorkspaceId,
    targetResourceId: config.clusterId,
    logs: ["kube-apiserver", "kube-controller-manager", "kube-scheduler", "kube-audit", "cluster-autoscaler"]
        .map(category => ({
            category,
            enabled : true,
            retentionPolicy: { enabled: true },
        })),
    metrics: [{
        category: "AllMetrics",
        retentionPolicy: { enabled: true },
    }],
});
github pulumi / examples / azure-ts-cosmosapp-component / vms.ts View on Github external
storageProfileImageReference: {
                offer: "UbuntuServer",
                publisher: "Canonical",
                sku: "18.04-LTS",
                version: "latest",
            },
            storageProfileOsDisk: {
                caching: "ReadWrite",
                createOption: "FromImage",
                managedDiskType: "Standard_LRS",
                name: "",
            },
            upgradePolicyMode: "Automatic",
        }, { dependsOn: [bpepool], ...opts });

        const autoscale = new azure.monitoring.AutoscaleSetting(`as-${location}`, {
            resourceGroupName: resourceGroup.name,
            notification: {
                email: {
                    customEmails: ["admin@contoso.com"],
                    sendToSubscriptionAdministrator: true,
                    sendToSubscriptionCoAdministrator: true,
                },
            },
            profiles: [{
                capacity: {
                    default: 1,
                    maximum: 10,
                    minimum: 1,
                },
                name: "defaultProfile",
                rules: [
github pulumi / examples / azure-ts-vm-scaleset / index.ts View on Github external
storageProfileImageReference: {
        offer: "UbuntuServer",
        publisher: "Canonical",
        sku: "16.04-LTS",
        version: "latest",
    },
    storageProfileOsDisk: {
        caching: "ReadWrite",
        createOption: "FromImage",
        managedDiskType: "Standard_LRS",
        name: "",
    },
    upgradePolicyMode: "Manual",
}, { dependsOn: [bpepool] });

const autoscale = new azure.monitoring.AutoscaleSetting("vmss-autoscale", {
    resourceGroupName: resourceGroup.name,
    notification: {
        email: {
            customEmails: ["admin@contoso.com"],
            sendToSubscriptionAdministrator: true,
            sendToSubscriptionCoAdministrator: true,
        },
    },
    profiles: [{
        capacity: {
            default: 1,
            maximum: 10,
            minimum: 1,
        },
        name: "defaultProfile",
        rules: [

@pulumi/azure

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Nat

Apache-2.0
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis