System Topic
Manages an Event Grid System Topic.
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.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.eventgrid.SystemTopic;
import com.pulumi.azure.eventgrid.SystemTopicArgs;
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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.tags(Map.of("environment", "staging"))
.build());
var exampleSystemTopic = new SystemTopic("exampleSystemTopic", SystemTopicArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sourceArmResourceId(exampleAccount.id())
.topicType("Microsoft.Storage.StorageAccounts")
.build());
}
}
Import
Event Grid System Topic can be imported using the resource id
, e.g.
$ pulumi import azure:eventgrid/systemTopic:SystemTopic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/systemTopics/systemTopic1
Properties
The Topic Type of the Event Grid System Topic. The topic type is validated by Azure and there may be additional topic types beyond the following: Microsoft.AppConfiguration.ConfigurationStores
, Microsoft.Communication.CommunicationServices
, Microsoft.ContainerRegistry.Registries
, Microsoft.Devices.IoTHubs
, Microsoft.EventGrid.Domains
, Microsoft.EventGrid.Topics
, Microsoft.Eventhub.Namespaces
, Microsoft.KeyVault.vaults
, Microsoft.MachineLearningServices.Workspaces
, Microsoft.Maps.Accounts
, Microsoft.Media.MediaServices
, Microsoft.Resources.ResourceGroups
, Microsoft.Resources.Subscriptions
, Microsoft.ServiceBus.Namespaces
, Microsoft.SignalRService.SignalR
, Microsoft.Storage.StorageAccounts
, Microsoft.Web.ServerFarms
and Microsoft.Web.Sites
. Changing this forces a new Event Grid System Topic to be created.