Show / Hide Table of Contents

Class Cache

Manages a HPC Cache.

Note: During the first several months of the GA release, a request must be made to the Azure HPC Cache team to add your subscription to the access list before it can be used to create a cache instance. Fill out this form to request access.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West Europe",
    });
    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
    {
        AddressSpaces = 
        {
            "10.0.0.0/16",
        },
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });
    var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefix = "10.0.1.0/24",
    });
    var exampleCache = new Azure.Hpc.Cache("exampleCache", new Azure.Hpc.CacheArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        CacheSizeInGb = 3072,
        SubnetId = exampleSubnet.Id,
        SkuName = "Standard_2G",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Cache
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Hpc
Assembly: Pulumi.Azure.dll
Syntax
public class Cache : CustomResource

Constructors

View Source

Cache(String, CacheArgs, CustomResourceOptions)

Create a Cache resource with the given unique name, arguments, and options.

Declaration
public Cache(string name, CacheArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

CacheArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CacheSizeInGb

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

Declaration
public Output<int> CacheSizeInGb { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Location

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

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

MountAddresses

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

Declaration
public Output<ImmutableArray<string>> MountAddresses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

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

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

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

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SkuName

The SKU of HPC Cache to use. Possible values are Standard_2G, Standard_4G and Standard_8G. Changing this forces a new resource to be created.

Declaration
public Output<string> SkuName { get; }
Property Value
Type Description
Output<System.String>
View Source

SubnetId

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

Declaration
public Output<string> SubnetId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, CacheState, CustomResourceOptions)

Get an existing Cache resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Cache Get(string name, Input<string> id, CacheState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CacheState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Cache
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.