Cache

class Cache : KotlinCustomResource

Manages a HPC Cache.

Note: By request of the service team the provider no longer automatically registering the Microsoft.StorageCache Resource Provider for this resource. To register it you can run az provider register --namespace 'Microsoft.StorageCache'.

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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.hpc.Cache;
import com.pulumi.azure.hpc.CacheArgs;
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 exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.0.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.1.0/24")
.build());
var exampleCache = new Cache("exampleCache", CacheArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.cacheSizeInGb(3072)
.subnetId(exampleSubnet.id())
.skuName("Standard_2G")
.build());
}
}

Import

HPC Caches can be imported using the resource id, e.g.

$ pulumi import azure:hpc/cache:Cache example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.StorageCache/caches/cacheName

Properties

Link copied to clipboard

Specifies whether the HPC Cache automatically rotates Encryption Key to the latest version.

Link copied to clipboard
val cacheSizeInGb: Output<Int>

The size of the HPC Cache, in GB. Possible values are 3072, 6144, 12288, 21623, 24576, 43246, 49152 and 86491. Changing this forces a new resource to be created.

Link copied to clipboard

A default_access_policy block as defined below.

Link copied to clipboard

A directory_active_directory block as defined below.

Link copied to clipboard

A directory_flat_file block as defined below.

Link copied to clipboard

A directory_ldap block as defined below.

Link copied to clipboard
val dns: Output<CacheDns>?

A dns block as defined below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identity: Output<CacheIdentity>?

An identity block as defined below. Changing this forces a new resource to be created.

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

The ID of the Key Vault Key which should be used to encrypt the data in this HPC Cache.

Link copied to clipboard
val location: Output<String>

Specifies the supported Azure Region where the HPC Cache should be created. Changing this forces a new resource to be created.

Link copied to clipboard
val mountAddresses: Output<List<String>>

A list of IP Addresses where the HPC Cache can be mounted.

Link copied to clipboard
val mtu: Output<Int>?

The IPv4 maximum transmission unit configured for the subnet of the HPC Cache. Possible values range from 576 - 1500. Defaults to 1500.

Link copied to clipboard
val name: Output<String>

The name of the HPC Cache. Changing this forces a new resource to be created.

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

The NTP server IP Address or FQDN for the HPC Cache. Defaults to time.windows.com.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the Resource Group in which to create the HPC Cache. Changing this forces a new resource to be created.

Link copied to clipboard
val skuName: Output<String>

The SKU of HPC Cache to use. Possible values are (ReadWrite) - Standard_2G, Standard_4G Standard_8G or (ReadOnly) - Standard_L4_5G, Standard_L9G, and Standard_L16G. Changing this forces a new resource to be created.

Link copied to clipboard
val subnetId: Output<String>

The ID of the Subnet for the HPC Cache. Changing this forces a new resource to be created.

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

A mapping of tags to assign to the HPC Cache.

Link copied to clipboard
val urn: Output<String>