Watcher
The DatabaseWatcherProviderHub resource. Azure REST API version: 2023-09-01-preview.
Example Usage
Watchers_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var watcher = new AzureNative.DatabaseWatcher.Watcher("watcher", new()
{
Location = "westus",
ResourceGroupName = "apiTest-ddat4p",
WatcherName = "databasemo3ej9ih",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/databasewatcher/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasewatcher.NewWatcher(ctx, "watcher", &databasewatcher.WatcherArgs{
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("apiTest-ddat4p"),
WatcherName: pulumi.String("databasemo3ej9ih"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databasewatcher.Watcher;
import com.pulumi.azurenative.databasewatcher.WatcherArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var watcher = new Watcher("watcher", WatcherArgs.builder()
.location("westus")
.resourceGroupName("apiTest-ddat4p")
.watcherName("databasemo3ej9ih")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databasewatcher:Watcher databasemo3ej9ih /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
Content copied to clipboard
Properties
Link copied to clipboard
The data store for collected monitoring data.
Link copied to clipboard
The managed service identities assigned to this resource.
Link copied to clipboard
The provisioning state of the resource watcher.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.