EncryptionScope

class EncryptionScope : KotlinCustomResource

Manages a Storage Encryption Scope.

Note: Storage Encryption Scopes are in Preview more information can be found here.

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.storage.inputs.AccountIdentityArgs;
import com.pulumi.azure.storage.EncryptionScope;
import com.pulumi.azure.storage.EncryptionScopeArgs;
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")
.identity(AccountIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleEncryptionScope = new EncryptionScope("exampleEncryptionScope", EncryptionScopeArgs.builder()
.storageAccountId(exampleAccount.id())
.source("Microsoft.Storage")
.build());
}
}

Import

Storage Encryption Scopes can be imported using the resource id, e.g.

$ pulumi import azure:storage/encryptionScope:EncryptionScope example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/account1/encryptionScopes/scope1

Properties

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

Is a secondary layer of encryption with Platform Managed Keys for data applied? Changing this forces a new resource to be created.

Link copied to clipboard
val keyVaultKeyId: Output<String>?

The ID of the Key Vault Key. Required when source is Microsoft.KeyVault.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Storage Encryption Scope. Changing this forces a new Storage Encryption Scope to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<String>

The source of the Storage Encryption Scope. Possible values are Microsoft.KeyVault and Microsoft.Storage.

Link copied to clipboard

The ID of the Storage Account where this Storage Encryption Scope is created. Changing this forces a new Storage Encryption Scope to be created.

Link copied to clipboard
val urn: Output<String>