AzureDevOpsConnector

API Version: 2022-09-01-preview.

Example Usage

AzureDevOpsConnector_CreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureDevOpsConnector = new AzureNative.SecurityDevOps.AzureDevOpsConnector("azureDevOpsConnector", new()
{
AzureDevOpsConnectorName = "testconnector",
Location = "West US",
Properties = new AzureNative.SecurityDevOps.Inputs.AzureDevOpsConnectorPropertiesArgs
{
Authorization = new AzureNative.SecurityDevOps.Inputs.AuthorizationInfoArgs
{
Code = "00000000000000000000",
},
Orgs = new[]
{
new AzureNative.SecurityDevOps.Inputs.AzureDevOpsOrgMetadataArgs
{
Name = "testOrg",
Projects = new[]
{
new AzureNative.SecurityDevOps.Inputs.AzureDevOpsProjectMetadataArgs
{
Name = "testProject",
Repos = new[]
{
"testRepo",
},
},
},
},
},
},
ResourceGroupName = "westusrg",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securitydevops.AzureDevOpsConnector;
import com.pulumi.azurenative.securitydevops.AzureDevOpsConnectorArgs;
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 azureDevOpsConnector = new AzureDevOpsConnector("azureDevOpsConnector", AzureDevOpsConnectorArgs.builder()
.azureDevOpsConnectorName("testconnector")
.location("West US")
.properties(Map.ofEntries(
Map.entry("authorization", Map.of("code", "00000000000000000000")),
Map.entry("orgs", Map.ofEntries(
Map.entry("name", "testOrg"),
Map.entry("projects", Map.ofEntries(
Map.entry("name", "testProject"),
Map.entry("repos", "testRepo")
))
))
))
.resourceGroupName("westusrg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:securitydevops:AzureDevOpsConnector testconnector /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

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.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>