PrivateLinkScopedServiceArgs

data class PrivateLinkScopedServiceArgs(val linkedResourceId: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scopeName: Output<String>? = null) : ConvertibleToJava<PrivateLinkScopedServiceArgs>

Manages an Azure Monitor Private Link Scoped Service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.monitoring.PrivateLinkScope;
import com.pulumi.azure.monitoring.PrivateLinkScopeArgs;
import com.pulumi.azure.monitoring.PrivateLinkScopedService;
import com.pulumi.azure.monitoring.PrivateLinkScopedServiceArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var examplePrivateLinkScope = new PrivateLinkScope("examplePrivateLinkScope", PrivateLinkScopeArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.build());
var examplePrivateLinkScopedService = new PrivateLinkScopedService("examplePrivateLinkScopedService", PrivateLinkScopedServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.scopeName(examplePrivateLinkScope.name())
.linkedResourceId(exampleInsights.id())
.build());
}
}

Import

Azure Monitor Private Link Scoped Services can be imported using the resource id, e.g.

$ pulumi import azure:monitoring/privateLinkScopedService:PrivateLinkScopedService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/privateLinkScopes/pls1/scopedResources/sr1

Constructors

Link copied to clipboard
fun PrivateLinkScopedServiceArgs(linkedResourceId: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scopeName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PrivateLinkScopedServiceArgs

Properties

Link copied to clipboard
val linkedResourceId: Output<String>? = null

The ID of the linked resource. It must be the Log Analytics workspace or the Application Insights component or the Data Collection endpoint. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the Azure Monitor Private Link Scoped Service. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Azure Monitor Private Link Scoped Service should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val scopeName: Output<String>? = null

The name of the Azure Monitor Private Link Scope. Changing this forces a new resource to be created.