Certificate Profile Args
Certificate profile resource. Uses Azure REST API version 2024-09-30-preview. In version 2.x of the Azure Native provider, it used API version 2024-02-05-preview. Other available API versions: 2024-02-05-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native codesigning [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create a certificate profile.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificateProfile = new AzureNative.CodeSigning.CertificateProfile("certificateProfile", new()
{
AccountName = "MyAccount",
IdentityValidationId = "00000000-1234-5678-3333-444444444444",
IncludePostalCode = true,
IncludeStreetAddress = false,
ProfileName = "profileA",
ProfileType = AzureNative.CodeSigning.ProfileType.PublicTrust,
ResourceGroupName = "MyResourceGroup",
});
});package main
import (
codesigning "github.com/pulumi/pulumi-azure-native-sdk/codesigning/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codesigning.NewCertificateProfile(ctx, "certificateProfile", &codesigning.CertificateProfileArgs{
AccountName: pulumi.String("MyAccount"),
IdentityValidationId: pulumi.String("00000000-1234-5678-3333-444444444444"),
IncludePostalCode: pulumi.Bool(true),
IncludeStreetAddress: pulumi.Bool(false),
ProfileName: pulumi.String("profileA"),
ProfileType: pulumi.String(codesigning.ProfileTypePublicTrust),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.codesigning.CertificateProfile;
import com.pulumi.azurenative.codesigning.CertificateProfileArgs;
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 certificateProfile = new CertificateProfile("certificateProfile", CertificateProfileArgs.builder()
.accountName("MyAccount")
.identityValidationId("00000000-1234-5678-3333-444444444444")
.includePostalCode(true)
.includeStreetAddress(false)
.profileName("profileA")
.profileType("PublicTrust")
.resourceGroupName("MyResourceGroup")
.build());
}
}Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:codesigning:CertificateProfile profileA /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}Constructors
Properties
Trusted Signing account name.
Identity validation id used for the certificate subject name.
Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
Whether to include PC in the certificate subject name.
Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
Whether to include STREET in the certificate subject name.
Certificate profile name.
Profile type of the certificate.
The name of the resource group. The name is case insensitive.