Shared Private Link Service Args
data class SharedPrivateLinkServiceArgs(val name: Output<String>? = null, val requestMessage: Output<String>? = null, val searchServiceId: Output<String>? = null, val subresourceName: Output<String>? = null, val targetResourceId: Output<String>? = null) : ConvertibleToJava<SharedPrivateLinkServiceArgs>
Manages the Shared Private Link Service for an Azure Search 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.search.Service;
import com.pulumi.azure.search.ServiceArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.search.SharedPrivateLinkService;
import com.pulumi.azure.search.SharedPrivateLinkServiceArgs;
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 testResourceGroup = new ResourceGroup("testResourceGroup", ResourceGroupArgs.builder()
.location("east us")
.build());
var testService = new Service("testService", ServiceArgs.builder()
.resourceGroupName(testResourceGroup.name())
.location(testResourceGroup.location())
.sku("standard")
.build());
var testAccount = new Account("testAccount", AccountArgs.builder()
.resourceGroupName(testResourceGroup.name())
.location(testResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var testSharedPrivateLinkService = new SharedPrivateLinkService("testSharedPrivateLinkService", SharedPrivateLinkServiceArgs.builder()
.searchServiceId(testService.id())
.subresourceName("blob")
.targetResourceId(testAccount.id())
.requestMessage("please approve")
.build());
}
}
Content copied to clipboard
Import
Azure Search Shared Private Link Resource can be imported using the resource id
, e.g.
$ pulumi import azure:search/sharedPrivateLinkService:SharedPrivateLinkService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Search/searchServices/service1/sharedPrivateLinkResources/resource1
Content copied to clipboard