Cache Args
data class CacheArgs(val automaticallyRotateKeyToLatestEnabled: Output<Boolean>? = null, val cacheSizeInGb: Output<Int>? = null, val defaultAccessPolicy: Output<CacheDefaultAccessPolicyArgs>? = null, val directoryActiveDirectory: Output<CacheDirectoryActiveDirectoryArgs>? = null, val directoryFlatFile: Output<CacheDirectoryFlatFileArgs>? = null, val directoryLdap: Output<CacheDirectoryLdapArgs>? = null, val dns: Output<CacheDnsArgs>? = null, val identity: Output<CacheIdentityArgs>? = null, val keyVaultKeyId: Output<String>? = null, val location: Output<String>? = null, val mtu: Output<Int>? = null, val name: Output<String>? = null, val ntpServer: Output<String>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CacheArgs>
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 runaz 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("examplevn")
.addressSpaces("10.0.0.0/16")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("examplesubnet")
.resourceGroupName(example.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.1.0/24")
.build());
var exampleCache = new Cache("exampleCache", CacheArgs.builder()
.name("examplehpccache")
.resourceGroupName(example.name())
.location(example.location())
.cacheSizeInGb(3072)
.subnetId(exampleSubnet.id())
.skuName("Standard_2G")
.build());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun CacheArgs(automaticallyRotateKeyToLatestEnabled: Output<Boolean>? = null, cacheSizeInGb: Output<Int>? = null, defaultAccessPolicy: Output<CacheDefaultAccessPolicyArgs>? = null, directoryActiveDirectory: Output<CacheDirectoryActiveDirectoryArgs>? = null, directoryFlatFile: Output<CacheDirectoryFlatFileArgs>? = null, directoryLdap: Output<CacheDirectoryLdapArgs>? = null, dns: Output<CacheDnsArgs>? = null, identity: Output<CacheIdentityArgs>? = null, keyVaultKeyId: Output<String>? = null, location: Output<String>? = null, mtu: Output<Int>? = null, name: Output<String>? = null, ntpServer: Output<String>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null)