We recommend using Azure Native.
azure.hpc.CacheBlobTarget
Explore with Pulumi AI
Manages a Blob Target within 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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
{
AddressSpaces = new[]
{
"10.0.0.0/16",
},
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new()
{
ResourceGroupName = exampleResourceGroup.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"10.0.1.0/24",
},
});
var exampleCache = new Azure.Hpc.Cache("exampleCache", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
CacheSizeInGb = 3072,
SubnetId = exampleSubnet.Id,
SkuName = "Standard_2G",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleContainer = new Azure.Storage.Container("exampleContainer", new()
{
StorageAccountName = exampleAccount.Name,
});
var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()
{
DisplayName = "HPC Cache Resource Provider",
});
var exampleStorageAccountContrib = new Azure.Authorization.Assignment("exampleStorageAccountContrib", new()
{
Scope = exampleAccount.Id,
RoleDefinitionName = "Storage Account Contributor",
PrincipalId = exampleServicePrincipal.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
});
var exampleStorageBlobDataContrib = new Azure.Authorization.Assignment("exampleStorageBlobDataContrib", new()
{
Scope = exampleAccount.Id,
RoleDefinitionName = "Storage Blob Data Contributor",
PrincipalId = exampleServicePrincipal.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
});
var exampleCacheBlobTarget = new Azure.Hpc.CacheBlobTarget("exampleCacheBlobTarget", new()
{
ResourceGroupName = exampleResourceGroup.Name,
CacheName = exampleCache.Name,
StorageContainerId = exampleContainer.ResourceManagerId,
NamespacePath = "/blob_storage",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/hpc"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
ResourceGroupName: exampleResourceGroup.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.1.0/24"),
},
})
if err != nil {
return err
}
exampleCache, err := hpc.NewCache(ctx, "exampleCache", &hpc.CacheArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
CacheSizeInGb: pulumi.Int(3072),
SubnetId: exampleSubnet.ID(),
SkuName: pulumi.String("Standard_2G"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
exampleContainer, err := storage.NewContainer(ctx, "exampleContainer", &storage.ContainerArgs{
StorageAccountName: exampleAccount.Name,
})
if err != nil {
return err
}
exampleServicePrincipal, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
DisplayName: pulumi.StringRef("HPC Cache Resource Provider"),
}, nil)
if err != nil {
return err
}
_, err = authorization.NewAssignment(ctx, "exampleStorageAccountContrib", &authorization.AssignmentArgs{
Scope: exampleAccount.ID(),
RoleDefinitionName: pulumi.String("Storage Account Contributor"),
PrincipalId: *pulumi.String(exampleServicePrincipal.ObjectId),
})
if err != nil {
return err
}
_, err = authorization.NewAssignment(ctx, "exampleStorageBlobDataContrib", &authorization.AssignmentArgs{
Scope: exampleAccount.ID(),
RoleDefinitionName: pulumi.String("Storage Blob Data Contributor"),
PrincipalId: *pulumi.String(exampleServicePrincipal.ObjectId),
})
if err != nil {
return err
}
_, err = hpc.NewCacheBlobTarget(ctx, "exampleCacheBlobTarget", &hpc.CacheBlobTargetArgs{
ResourceGroupName: exampleResourceGroup.Name,
CacheName: exampleCache.Name,
StorageContainerId: exampleContainer.ResourceManagerId,
NamespacePath: pulumi.String("/blob_storage"),
})
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.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 com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
import com.pulumi.azure.hpc.CacheBlobTarget;
import com.pulumi.azure.hpc.CacheBlobTargetArgs;
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());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.build());
final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
.displayName("HPC Cache Resource Provider")
.build());
var exampleStorageAccountContrib = new Assignment("exampleStorageAccountContrib", AssignmentArgs.builder()
.scope(exampleAccount.id())
.roleDefinitionName("Storage Account Contributor")
.principalId(exampleServicePrincipal.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
.build());
var exampleStorageBlobDataContrib = new Assignment("exampleStorageBlobDataContrib", AssignmentArgs.builder()
.scope(exampleAccount.id())
.roleDefinitionName("Storage Blob Data Contributor")
.principalId(exampleServicePrincipal.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
.build());
var exampleCacheBlobTarget = new CacheBlobTarget("exampleCacheBlobTarget", CacheBlobTargetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.cacheName(exampleCache.name())
.storageContainerId(exampleContainer.resourceManagerId())
.namespacePath("/blob_storage")
.build());
}
}
import pulumi
import pulumi_azure as azure
import pulumi_azuread as azuread
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
address_spaces=["10.0.0.0/16"],
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.1.0/24"])
example_cache = azure.hpc.Cache("exampleCache",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
cache_size_in_gb=3072,
subnet_id=example_subnet.id,
sku_name="Standard_2G")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_container = azure.storage.Container("exampleContainer", storage_account_name=example_account.name)
example_service_principal = azuread.get_service_principal(display_name="HPC Cache Resource Provider")
example_storage_account_contrib = azure.authorization.Assignment("exampleStorageAccountContrib",
scope=example_account.id,
role_definition_name="Storage Account Contributor",
principal_id=example_service_principal.object_id)
example_storage_blob_data_contrib = azure.authorization.Assignment("exampleStorageBlobDataContrib",
scope=example_account.id,
role_definition_name="Storage Blob Data Contributor",
principal_id=example_service_principal.object_id)
example_cache_blob_target = azure.hpc.CacheBlobTarget("exampleCacheBlobTarget",
resource_group_name=example_resource_group.name,
cache_name=example_cache.name,
storage_container_id=example_container.resource_manager_id,
namespace_path="/blob_storage")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
addressSpaces: ["10.0.0.0/16"],
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
resourceGroupName: exampleResourceGroup.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10.0.1.0/24"],
});
const exampleCache = new azure.hpc.Cache("exampleCache", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
cacheSizeInGb: 3072,
subnetId: exampleSubnet.id,
skuName: "Standard_2G",
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleContainer = new azure.storage.Container("exampleContainer", {storageAccountName: exampleAccount.name});
const exampleServicePrincipal = azuread.getServicePrincipal({
displayName: "HPC Cache Resource Provider",
});
const exampleStorageAccountContrib = new azure.authorization.Assignment("exampleStorageAccountContrib", {
scope: exampleAccount.id,
roleDefinitionName: "Storage Account Contributor",
principalId: exampleServicePrincipal.then(exampleServicePrincipal => exampleServicePrincipal.objectId),
});
const exampleStorageBlobDataContrib = new azure.authorization.Assignment("exampleStorageBlobDataContrib", {
scope: exampleAccount.id,
roleDefinitionName: "Storage Blob Data Contributor",
principalId: exampleServicePrincipal.then(exampleServicePrincipal => exampleServicePrincipal.objectId),
});
const exampleCacheBlobTarget = new azure.hpc.CacheBlobTarget("exampleCacheBlobTarget", {
resourceGroupName: exampleResourceGroup.name,
cacheName: exampleCache.name,
storageContainerId: exampleContainer.resourceManagerId,
namespacePath: "/blob_storage",
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
properties:
addressSpaces:
- 10.0.0.0/16
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
exampleSubnet:
type: azure:network:Subnet
properties:
resourceGroupName: ${exampleResourceGroup.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.1.0/24
exampleCache:
type: azure:hpc:Cache
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
cacheSizeInGb: 3072
subnetId: ${exampleSubnet.id}
skuName: Standard_2G
exampleAccount:
type: azure:storage:Account
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
accountTier: Standard
accountReplicationType: LRS
exampleContainer:
type: azure:storage:Container
properties:
storageAccountName: ${exampleAccount.name}
exampleStorageAccountContrib:
type: azure:authorization:Assignment
properties:
scope: ${exampleAccount.id}
roleDefinitionName: Storage Account Contributor
principalId: ${exampleServicePrincipal.objectId}
exampleStorageBlobDataContrib:
type: azure:authorization:Assignment
properties:
scope: ${exampleAccount.id}
roleDefinitionName: Storage Blob Data Contributor
principalId: ${exampleServicePrincipal.objectId}
exampleCacheBlobTarget:
type: azure:hpc:CacheBlobTarget
properties:
resourceGroupName: ${exampleResourceGroup.name}
cacheName: ${exampleCache.name}
storageContainerId: ${exampleContainer.resourceManagerId}
namespacePath: /blob_storage
variables:
exampleServicePrincipal:
fn::invoke:
Function: azuread:getServicePrincipal
Arguments:
displayName: HPC Cache Resource Provider
Create CacheBlobTarget Resource
new CacheBlobTarget(name: string, args: CacheBlobTargetArgs, opts?: CustomResourceOptions);
@overload
def CacheBlobTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_policy_name: Optional[str] = None,
cache_name: Optional[str] = None,
name: Optional[str] = None,
namespace_path: Optional[str] = None,
resource_group_name: Optional[str] = None,
storage_container_id: Optional[str] = None)
@overload
def CacheBlobTarget(resource_name: str,
args: CacheBlobTargetArgs,
opts: Optional[ResourceOptions] = None)
func NewCacheBlobTarget(ctx *Context, name string, args CacheBlobTargetArgs, opts ...ResourceOption) (*CacheBlobTarget, error)
public CacheBlobTarget(string name, CacheBlobTargetArgs args, CustomResourceOptions? opts = null)
public CacheBlobTarget(String name, CacheBlobTargetArgs args)
public CacheBlobTarget(String name, CacheBlobTargetArgs args, CustomResourceOptions options)
type: azure:hpc:CacheBlobTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CacheBlobTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CacheBlobTargetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CacheBlobTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CacheBlobTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CacheBlobTargetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CacheBlobTarget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CacheBlobTarget resource accepts the following input properties:
- Cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- Namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- Resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- Access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- Name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- Namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- Resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- Access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- Name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- cache
Name String The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- namespace
Path String The client-facing file path of the HPC Cache Blob Target.
- resource
Group StringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container StringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- access
Policy StringName The name of the access policy applied to this target. Defaults to
default
.- name String
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- cache_
name str The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- namespace_
path str The client-facing file path of the HPC Cache Blob Target.
- resource_
group_ strname The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage_
container_ strid The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- access_
policy_ strname The name of the access policy applied to this target. Defaults to
default
.- name str
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- cache
Name String The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- namespace
Path String The client-facing file path of the HPC Cache Blob Target.
- resource
Group StringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container StringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.- access
Policy StringName The name of the access policy applied to this target. Defaults to
default
.- name String
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the CacheBlobTarget resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing CacheBlobTarget Resource
Get an existing CacheBlobTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CacheBlobTargetState, opts?: CustomResourceOptions): CacheBlobTarget
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_policy_name: Optional[str] = None,
cache_name: Optional[str] = None,
name: Optional[str] = None,
namespace_path: Optional[str] = None,
resource_group_name: Optional[str] = None,
storage_container_id: Optional[str] = None) -> CacheBlobTarget
func GetCacheBlobTarget(ctx *Context, name string, id IDInput, state *CacheBlobTargetState, opts ...ResourceOption) (*CacheBlobTarget, error)
public static CacheBlobTarget Get(string name, Input<string> id, CacheBlobTargetState? state, CustomResourceOptions? opts = null)
public static CacheBlobTarget get(String name, Output<String> id, CacheBlobTargetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- Cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- Name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- Resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
- Access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- Cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- Name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- Resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- Storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
- access
Policy StringName The name of the access policy applied to this target. Defaults to
default
.- cache
Name String The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- name String
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- namespace
Path String The client-facing file path of the HPC Cache Blob Target.
- resource
Group StringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container StringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
- access
Policy stringName The name of the access policy applied to this target. Defaults to
default
.- cache
Name string The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- name string
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- namespace
Path string The client-facing file path of the HPC Cache Blob Target.
- resource
Group stringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container stringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
- access_
policy_ strname The name of the access policy applied to this target. Defaults to
default
.- cache_
name str The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- name str
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- namespace_
path str The client-facing file path of the HPC Cache Blob Target.
- resource_
group_ strname The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage_
container_ strid The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
- access
Policy StringName The name of the access policy applied to this target. Defaults to
default
.- cache
Name String The name HPC Cache, which the HPC Cache Blob Target will be added to. Changing this forces a new resource to be created.
- name String
The name of the HPC Cache Blob Target. Changing this forces a new resource to be created.
- namespace
Path String The client-facing file path of the HPC Cache Blob Target.
- resource
Group StringName The name of the Resource Group in which to create the HPC Cache Blob Target. Changing this forces a new resource to be created.
- storage
Container StringId The Resource Manager ID of the Storage Container used as the HPC Cache Blob Target. Changing this forces a new resource to be created.
Note: This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the
azure.storage.Container
Data Source/Resource asresource_manager_id
.
Import
Blob Targets within an HPC Cache can be imported using the resource id
, e.g.
$ pulumi import azure:hpc/cacheBlobTarget:CacheBlobTarget example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StorageCache/caches/cache1/storageTargets/target1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.