1. Packages
  2. Azure Native v2
  3. API Docs
  4. recoveryservices
  5. ReplicationStorageClassificationMapping
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.recoveryservices.ReplicationStorageClassificationMapping

Explore with Pulumi AI

Storage mapping object. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2018-07-10.

Other available API versions: 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-10-01.

Example Usage

Create storage classification mapping.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var replicationStorageClassificationMapping = new AzureNative.RecoveryServices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", new()
    {
        FabricName = "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
        Properties = new AzureNative.RecoveryServices.Inputs.StorageMappingInputPropertiesArgs
        {
            TargetStorageClassificationId = "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
        },
        ResourceGroupName = "resourceGroupPS1",
        ResourceName = "vault1",
        StorageClassificationMappingName = "testStorageMapping",
        StorageClassificationName = "8891569e-aaef-4a46-a4a0-78c14f2d7b09",
    });

});
Copy
package main

import (
	recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := recoveryservices.NewReplicationStorageClassificationMapping(ctx, "replicationStorageClassificationMapping", &recoveryservices.ReplicationStorageClassificationMappingArgs{
			FabricName: pulumi.String("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0"),
			Properties: &recoveryservices.StorageMappingInputPropertiesArgs{
				TargetStorageClassificationId: pulumi.String("/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09"),
			},
			ResourceGroupName:                pulumi.String("resourceGroupPS1"),
			ResourceName:                     pulumi.String("vault1"),
			StorageClassificationMappingName: pulumi.String("testStorageMapping"),
			StorageClassificationName:        pulumi.String("8891569e-aaef-4a46-a4a0-78c14f2d7b09"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.recoveryservices.ReplicationStorageClassificationMapping;
import com.pulumi.azurenative.recoveryservices.ReplicationStorageClassificationMappingArgs;
import com.pulumi.azurenative.recoveryservices.inputs.StorageMappingInputPropertiesArgs;
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 replicationStorageClassificationMapping = new ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", ReplicationStorageClassificationMappingArgs.builder()
            .fabricName("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0")
            .properties(StorageMappingInputPropertiesArgs.builder()
                .targetStorageClassificationId("/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09")
                .build())
            .resourceGroupName("resourceGroupPS1")
            .resourceName("vault1")
            .storageClassificationMappingName("testStorageMapping")
            .storageClassificationName("8891569e-aaef-4a46-a4a0-78c14f2d7b09")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const replicationStorageClassificationMapping = new azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", {
    fabricName: "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
    properties: {
        targetStorageClassificationId: "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
    },
    resourceGroupName: "resourceGroupPS1",
    resourceName: "vault1",
    storageClassificationMappingName: "testStorageMapping",
    storageClassificationName: "8891569e-aaef-4a46-a4a0-78c14f2d7b09",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

replication_storage_classification_mapping = azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping",
    fabric_name="2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
    properties={
        "target_storage_classification_id": "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
    },
    resource_group_name="resourceGroupPS1",
    resource_name_="vault1",
    storage_classification_mapping_name="testStorageMapping",
    storage_classification_name="8891569e-aaef-4a46-a4a0-78c14f2d7b09")
Copy
resources:
  replicationStorageClassificationMapping:
    type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
    properties:
      fabricName: 2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0
      properties:
        targetStorageClassificationId: /Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09
      resourceGroupName: resourceGroupPS1
      resourceName: vault1
      storageClassificationMappingName: testStorageMapping
      storageClassificationName: 8891569e-aaef-4a46-a4a0-78c14f2d7b09
Copy

Create ReplicationStorageClassificationMapping Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ReplicationStorageClassificationMapping(name: string, args: ReplicationStorageClassificationMappingArgs, opts?: CustomResourceOptions);
@overload
def ReplicationStorageClassificationMapping(resource_name: str,
                                            args: ReplicationStorageClassificationMappingArgs,
                                            opts: Optional[ResourceOptions] = None)

@overload
def ReplicationStorageClassificationMapping(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            fabric_name: Optional[str] = None,
                                            resource_group_name: Optional[str] = None,
                                            resource_name_: Optional[str] = None,
                                            storage_classification_name: Optional[str] = None,
                                            properties: Optional[StorageMappingInputPropertiesArgs] = None,
                                            storage_classification_mapping_name: Optional[str] = None)
func NewReplicationStorageClassificationMapping(ctx *Context, name string, args ReplicationStorageClassificationMappingArgs, opts ...ResourceOption) (*ReplicationStorageClassificationMapping, error)
public ReplicationStorageClassificationMapping(string name, ReplicationStorageClassificationMappingArgs args, CustomResourceOptions? opts = null)
public ReplicationStorageClassificationMapping(String name, ReplicationStorageClassificationMappingArgs args)
public ReplicationStorageClassificationMapping(String name, ReplicationStorageClassificationMappingArgs args, CustomResourceOptions options)
type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ReplicationStorageClassificationMappingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ReplicationStorageClassificationMappingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ReplicationStorageClassificationMappingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ReplicationStorageClassificationMappingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ReplicationStorageClassificationMappingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var replicationStorageClassificationMappingResource = new AzureNative.Recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", new()
{
    FabricName = "string",
    ResourceGroupName = "string",
    ResourceName = "string",
    StorageClassificationName = "string",
    Properties = 
    {
        { "targetStorageClassificationId", "string" },
    },
    StorageClassificationMappingName = "string",
});
Copy
example, err := recoveryservices.NewReplicationStorageClassificationMapping(ctx, "replicationStorageClassificationMappingResource", &recoveryservices.ReplicationStorageClassificationMappingArgs{
	FabricName:                "string",
	ResourceGroupName:         "string",
	ResourceName:              "string",
	StorageClassificationName: "string",
	Properties: map[string]interface{}{
		"targetStorageClassificationId": "string",
	},
	StorageClassificationMappingName: "string",
})
Copy
var replicationStorageClassificationMappingResource = new ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", ReplicationStorageClassificationMappingArgs.builder()
    .fabricName("string")
    .resourceGroupName("string")
    .resourceName("string")
    .storageClassificationName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .storageClassificationMappingName("string")
    .build());
Copy
replication_storage_classification_mapping_resource = azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource",
    fabric_name=string,
    resource_group_name=string,
    resource_name_=string,
    storage_classification_name=string,
    properties={
        targetStorageClassificationId: string,
    },
    storage_classification_mapping_name=string)
Copy
const replicationStorageClassificationMappingResource = new azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", {
    fabricName: "string",
    resourceGroupName: "string",
    resourceName: "string",
    storageClassificationName: "string",
    properties: {
        targetStorageClassificationId: "string",
    },
    storageClassificationMappingName: "string",
});
Copy
type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
properties:
    fabricName: string
    properties:
        targetStorageClassificationId: string
    resourceGroupName: string
    resourceName: string
    storageClassificationMappingName: string
    storageClassificationName: string
Copy

ReplicationStorageClassificationMapping Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ReplicationStorageClassificationMapping resource accepts the following input properties:

FabricName
This property is required.
Changes to this property will trigger replacement.
string
Fabric name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
StorageClassificationName
This property is required.
Changes to this property will trigger replacement.
string
Storage classification name.
Properties Pulumi.AzureNative.RecoveryServices.Inputs.StorageMappingInputProperties
Storage mapping input properties.
StorageClassificationMappingName Changes to this property will trigger replacement. string
Storage classification mapping name.
FabricName
This property is required.
Changes to this property will trigger replacement.
string
Fabric name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
StorageClassificationName
This property is required.
Changes to this property will trigger replacement.
string
Storage classification name.
Properties StorageMappingInputPropertiesArgs
Storage mapping input properties.
StorageClassificationMappingName Changes to this property will trigger replacement. string
Storage classification mapping name.
fabricName
This property is required.
Changes to this property will trigger replacement.
String
Fabric name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group where the recovery services vault is present.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the recovery services vault.
storageClassificationName
This property is required.
Changes to this property will trigger replacement.
String
Storage classification name.
properties StorageMappingInputProperties
Storage mapping input properties.
storageClassificationMappingName Changes to this property will trigger replacement. String
Storage classification mapping name.
fabricName
This property is required.
Changes to this property will trigger replacement.
string
Fabric name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
resourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
storageClassificationName
This property is required.
Changes to this property will trigger replacement.
string
Storage classification name.
properties StorageMappingInputProperties
Storage mapping input properties.
storageClassificationMappingName Changes to this property will trigger replacement. string
Storage classification mapping name.
fabric_name
This property is required.
Changes to this property will trigger replacement.
str
Fabric name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group where the recovery services vault is present.
resource_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the recovery services vault.
storage_classification_name
This property is required.
Changes to this property will trigger replacement.
str
Storage classification name.
properties StorageMappingInputPropertiesArgs
Storage mapping input properties.
storage_classification_mapping_name Changes to this property will trigger replacement. str
Storage classification mapping name.
fabricName
This property is required.
Changes to this property will trigger replacement.
String
Fabric name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group where the recovery services vault is present.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the recovery services vault.
storageClassificationName
This property is required.
Changes to this property will trigger replacement.
String
Storage classification name.
properties Property Map
Storage mapping input properties.
storageClassificationMappingName Changes to this property will trigger replacement. String
Storage classification mapping name.

Outputs

All input properties are implicitly available as output properties. Additionally, the ReplicationStorageClassificationMapping resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource Name
Type string
Resource Type
Location string
Resource Location
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource Name
Type string
Resource Type
Location string
Resource Location
id String
The provider-assigned unique ID for this managed resource.
name String
Resource Name
type String
Resource Type
location String
Resource Location
id string
The provider-assigned unique ID for this managed resource.
name string
Resource Name
type string
Resource Type
location string
Resource Location
id str
The provider-assigned unique ID for this managed resource.
name str
Resource Name
type str
Resource Type
location str
Resource Location
id String
The provider-assigned unique ID for this managed resource.
name String
Resource Name
type String
Resource Type
location String
Resource Location

Supporting Types

StorageClassificationMappingPropertiesResponse
, StorageClassificationMappingPropertiesResponseArgs

TargetStorageClassificationId string
Target storage object Id.
TargetStorageClassificationId string
Target storage object Id.
targetStorageClassificationId String
Target storage object Id.
targetStorageClassificationId string
Target storage object Id.
target_storage_classification_id str
Target storage object Id.
targetStorageClassificationId String
Target storage object Id.

StorageMappingInputProperties
, StorageMappingInputPropertiesArgs

TargetStorageClassificationId string
The ID of the storage object.
TargetStorageClassificationId string
The ID of the storage object.
targetStorageClassificationId String
The ID of the storage object.
targetStorageClassificationId string
The ID of the storage object.
target_storage_classification_id str
The ID of the storage object.
targetStorageClassificationId String
The ID of the storage object.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:recoveryservices:ReplicationStorageClassificationMapping testStorageMapping /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0