Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.14.0 published on Thursday, Jul 28, 2022 by Pulumi

DiskPoolIscsiTarget

Manages an iSCSI Target.

!> Note: Each Disk Pool can have a maximum of 1 iSCSI Target.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;

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
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AddressSpaces = 
            {
                "10.0.0.0/16",
            },
        });
        var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = 
            {
                "10.0.0.0/24",
            },
            Delegations = 
            {
                new Azure.Network.Inputs.SubnetDelegationArgs
                {
                    Name = "diskspool",
                    ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                    {
                        Actions = 
                        {
                            "Microsoft.Network/virtualNetworks/read",
                        },
                        Name = "Microsoft.StoragePool/diskPools",
                    },
                },
            },
        });
        var exampleDiskPool = new Azure.Compute.DiskPool("exampleDiskPool", new Azure.Compute.DiskPoolArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            SubnetId = exampleSubnet.Id,
            Zones = 
            {
                "1",
            },
            SkuName = "Basic_B1",
        });
        var exampleManagedDisk = new Azure.Compute.ManagedDisk("exampleManagedDisk", new Azure.Compute.ManagedDiskArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            CreateOption = "Empty",
            StorageAccountType = "Premium_LRS",
            DiskSizeGb = 4,
            MaxShares = 2,
            Zone = "1",
        });
        var exampleServicePrincipal = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs
        {
            DisplayName = "StoragePool Resource Provider",
        }));
        var roles = 
        {
            "Disk Pool Operator",
            "Virtual Machine Contributor",
        };
        var exampleAssignment = new List<Azure.Authorization.Assignment>();
        for (var rangeIndex = 0; rangeIndex < roles.Length; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            exampleAssignment.Add(new Azure.Authorization.Assignment($"exampleAssignment-{range.Value}", new Azure.Authorization.AssignmentArgs
            {
                PrincipalId = exampleServicePrincipal.Apply(exampleServicePrincipal => exampleServicePrincipal.Id),
                RoleDefinitionName = roles[range.Value],
                Scope = exampleManagedDisk.Id,
            }));
        }
        var exampleDiskPoolManagedDiskAttachment = new Azure.Compute.DiskPoolManagedDiskAttachment("exampleDiskPoolManagedDiskAttachment", new Azure.Compute.DiskPoolManagedDiskAttachmentArgs
        {
            DiskPoolId = exampleDiskPool.Id,
            ManagedDiskId = exampleManagedDisk.Id,
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                exampleAssignment,
            },
        });
        var exampleDiskPoolIscsiTarget = new Azure.Compute.DiskPoolIscsiTarget("exampleDiskPoolIscsiTarget", new Azure.Compute.DiskPoolIscsiTargetArgs
        {
            AclMode = "Dynamic",
            DisksPoolId = exampleDiskPool.Id,
            TargetIqn = "iqn.2021-11.com.microsoft:test",
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                exampleDiskPoolManagedDiskAttachment,
            },
        });
    }

}

Coming soon!

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.network.inputs.SubnetDelegationArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
import com.pulumi.azure.compute.DiskPool;
import com.pulumi.azure.compute.DiskPoolArgs;
import com.pulumi.azure.compute.ManagedDisk;
import com.pulumi.azure.compute.ManagedDiskArgs;
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.compute.DiskPoolManagedDiskAttachment;
import com.pulumi.azure.compute.DiskPoolManagedDiskAttachmentArgs;
import com.pulumi.azure.compute.DiskPoolIscsiTarget;
import com.pulumi.azure.compute.DiskPoolIscsiTargetArgs;
import com.pulumi.codegen.internal.KeyedValue;
import com.pulumi.resources.CustomResourceOptions;
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()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .addressSpaces("10.0.0.0/16")
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.0.0/24")
            .delegations(SubnetDelegationArgs.builder()
                .name("diskspool")
                .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
                    .actions("Microsoft.Network/virtualNetworks/read")
                    .name("Microsoft.StoragePool/diskPools")
                    .build())
                .build())
            .build());

        var exampleDiskPool = new DiskPool("exampleDiskPool", DiskPoolArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .subnetId(exampleSubnet.id())
            .zones("1")
            .skuName("Basic_B1")
            .build());

        var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .createOption("Empty")
            .storageAccountType("Premium_LRS")
            .diskSizeGb(4)
            .maxShares(2)
            .zone("1")
            .build());

        final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
            .displayName("StoragePool Resource Provider")
            .build());

        final var roles =         
            "Disk Pool Operator",
            "Virtual Machine Contributor";

        for (var i = 0; i < roles.length(); i++) {
            new Assignment("exampleAssignment-" + i, AssignmentArgs.builder()            
                .principalId(exampleServicePrincipal.applyValue(getServicePrincipalResult -> getServicePrincipalResult.id()))
                .roleDefinitionName(roles[range.value()])
                .scope(exampleManagedDisk.id())
                .build());

        
}
        var exampleDiskPoolManagedDiskAttachment = new DiskPoolManagedDiskAttachment("exampleDiskPoolManagedDiskAttachment", DiskPoolManagedDiskAttachmentArgs.builder()        
            .diskPoolId(exampleDiskPool.id())
            .managedDiskId(exampleManagedDisk.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleAssignment)
                .build());

        var exampleDiskPoolIscsiTarget = new DiskPoolIscsiTarget("exampleDiskPoolIscsiTarget", DiskPoolIscsiTargetArgs.builder()        
            .aclMode("Dynamic")
            .disksPoolId(exampleDiskPool.id())
            .targetIqn("iqn.2021-11.com.microsoft:test")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleDiskPoolManagedDiskAttachment)
                .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",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    address_spaces=["10.0.0.0/16"])
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.0.0/24"],
    delegations=[azure.network.SubnetDelegationArgs(
        name="diskspool",
        service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
            actions=["Microsoft.Network/virtualNetworks/read"],
            name="Microsoft.StoragePool/diskPools",
        ),
    )])
example_disk_pool = azure.compute.DiskPool("exampleDiskPool",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    subnet_id=example_subnet.id,
    zones=["1"],
    sku_name="Basic_B1")
example_managed_disk = azure.compute.ManagedDisk("exampleManagedDisk",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    create_option="Empty",
    storage_account_type="Premium_LRS",
    disk_size_gb=4,
    max_shares=2,
    zone="1")
example_service_principal = azuread.get_service_principal(display_name="StoragePool Resource Provider")
roles = [
    "Disk Pool Operator",
    "Virtual Machine Contributor",
]
example_assignment = []
for range in [{"value": i} for i in range(0, len(roles))]:
    example_assignment.append(azure.authorization.Assignment(f"exampleAssignment-{range['value']}",
        principal_id=example_service_principal.id,
        role_definition_name=roles[range["value"]],
        scope=example_managed_disk.id))
example_disk_pool_managed_disk_attachment = azure.compute.DiskPoolManagedDiskAttachment("exampleDiskPoolManagedDiskAttachment",
    disk_pool_id=example_disk_pool.id,
    managed_disk_id=example_managed_disk.id,
    opts=pulumi.ResourceOptions(depends_on=[example_assignment]))
example_disk_pool_iscsi_target = azure.compute.DiskPoolIscsiTarget("exampleDiskPoolIscsiTarget",
    acl_mode="Dynamic",
    disks_pool_id=example_disk_pool.id,
    target_iqn="iqn.2021-11.com.microsoft:test",
    opts=pulumi.ResourceOptions(depends_on=[example_disk_pool_managed_disk_attachment]))
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", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    addressSpaces: ["10.0.0.0/16"],
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.0.0/24"],
    delegations: [{
        name: "diskspool",
        serviceDelegation: {
            actions: ["Microsoft.Network/virtualNetworks/read"],
            name: "Microsoft.StoragePool/diskPools",
        },
    }],
});
const exampleDiskPool = new azure.compute.DiskPool("exampleDiskPool", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    subnetId: exampleSubnet.id,
    zones: ["1"],
    skuName: "Basic_B1",
});
const exampleManagedDisk = new azure.compute.ManagedDisk("exampleManagedDisk", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    createOption: "Empty",
    storageAccountType: "Premium_LRS",
    diskSizeGb: 4,
    maxShares: 2,
    zone: "1",
});
const exampleServicePrincipal = azuread.getServicePrincipal({
    displayName: "StoragePool Resource Provider",
});
const roles = [
    "Disk Pool Operator",
    "Virtual Machine Contributor",
];
const exampleAssignment: azure.authorization.Assignment[];
for (const range = {value: 0}; range.value < roles.length; range.value++) {
    exampleAssignment.push(new azure.authorization.Assignment(`exampleAssignment-${range.value}`, {
        principalId: exampleServicePrincipal.then(exampleServicePrincipal => exampleServicePrincipal.id),
        roleDefinitionName: roles[range.value],
        scope: exampleManagedDisk.id,
    }));
}
const exampleDiskPoolManagedDiskAttachment = new azure.compute.DiskPoolManagedDiskAttachment("exampleDiskPoolManagedDiskAttachment", {
    diskPoolId: exampleDiskPool.id,
    managedDiskId: exampleManagedDisk.id,
}, {
    dependsOn: [exampleAssignment],
});
const exampleDiskPoolIscsiTarget = new azure.compute.DiskPoolIscsiTarget("exampleDiskPoolIscsiTarget", {
    aclMode: "Dynamic",
    disksPoolId: exampleDiskPool.id,
    targetIqn: "iqn.2021-11.com.microsoft:test",
}, {
    dependsOn: [exampleDiskPoolManagedDiskAttachment],
});

Coming soon!

Create a DiskPoolIscsiTarget Resource

new DiskPoolIscsiTarget(name: string, args: DiskPoolIscsiTargetArgs, opts?: CustomResourceOptions);
@overload
def DiskPoolIscsiTarget(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        acl_mode: Optional[str] = None,
                        disks_pool_id: Optional[str] = None,
                        name: Optional[str] = None,
                        target_iqn: Optional[str] = None)
@overload
def DiskPoolIscsiTarget(resource_name: str,
                        args: DiskPoolIscsiTargetArgs,
                        opts: Optional[ResourceOptions] = None)
func NewDiskPoolIscsiTarget(ctx *Context, name string, args DiskPoolIscsiTargetArgs, opts ...ResourceOption) (*DiskPoolIscsiTarget, error)
public DiskPoolIscsiTarget(string name, DiskPoolIscsiTargetArgs args, CustomResourceOptions? opts = null)
public DiskPoolIscsiTarget(String name, DiskPoolIscsiTargetArgs args)
public DiskPoolIscsiTarget(String name, DiskPoolIscsiTargetArgs args, CustomResourceOptions options)
type: azure:compute:DiskPoolIscsiTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DiskPoolIscsiTargetArgs
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 DiskPoolIscsiTargetArgs
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 DiskPoolIscsiTargetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DiskPoolIscsiTargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DiskPoolIscsiTargetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DiskPoolIscsiTarget 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 DiskPoolIscsiTarget resource accepts the following input properties:

AclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

DisksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

Name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

TargetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

AclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

DisksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

Name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

TargetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode String

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId String

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

name String

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

targetIqn String

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

targetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

acl_mode str

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disks_pool_id str

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

name str

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

target_iqn str

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode String

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId String

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

name String

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

targetIqn String

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

Outputs

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

Endpoints List<string>

List of private IPv4 addresses to connect to the iSCSI Target.

Id string

The provider-assigned unique ID for this managed resource.

Port int

The port used by iSCSI Target portal group.

Endpoints []string

List of private IPv4 addresses to connect to the iSCSI Target.

Id string

The provider-assigned unique ID for this managed resource.

Port int

The port used by iSCSI Target portal group.

endpoints List<String>

List of private IPv4 addresses to connect to the iSCSI Target.

id String

The provider-assigned unique ID for this managed resource.

port Integer

The port used by iSCSI Target portal group.

endpoints string[]

List of private IPv4 addresses to connect to the iSCSI Target.

id string

The provider-assigned unique ID for this managed resource.

port number

The port used by iSCSI Target portal group.

endpoints Sequence[str]

List of private IPv4 addresses to connect to the iSCSI Target.

id str

The provider-assigned unique ID for this managed resource.

port int

The port used by iSCSI Target portal group.

endpoints List<String>

List of private IPv4 addresses to connect to the iSCSI Target.

id String

The provider-assigned unique ID for this managed resource.

port Number

The port used by iSCSI Target portal group.

Look up an Existing DiskPoolIscsiTarget Resource

Get an existing DiskPoolIscsiTarget 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?: DiskPoolIscsiTargetState, opts?: CustomResourceOptions): DiskPoolIscsiTarget
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl_mode: Optional[str] = None,
        disks_pool_id: Optional[str] = None,
        endpoints: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        port: Optional[int] = None,
        target_iqn: Optional[str] = None) -> DiskPoolIscsiTarget
func GetDiskPoolIscsiTarget(ctx *Context, name string, id IDInput, state *DiskPoolIscsiTargetState, opts ...ResourceOption) (*DiskPoolIscsiTarget, error)
public static DiskPoolIscsiTarget Get(string name, Input<string> id, DiskPoolIscsiTargetState? state, CustomResourceOptions? opts = null)
public static DiskPoolIscsiTarget get(String name, Output<String> id, DiskPoolIscsiTargetState 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.
The following state arguments are supported:
AclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

DisksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

Endpoints List<string>

List of private IPv4 addresses to connect to the iSCSI Target.

Name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

Port int

The port used by iSCSI Target portal group.

TargetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

AclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

DisksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

Endpoints []string

List of private IPv4 addresses to connect to the iSCSI Target.

Name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

Port int

The port used by iSCSI Target portal group.

TargetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode String

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId String

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

endpoints List<String>

List of private IPv4 addresses to connect to the iSCSI Target.

name String

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

port Integer

The port used by iSCSI Target portal group.

targetIqn String

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode string

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId string

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

endpoints string[]

List of private IPv4 addresses to connect to the iSCSI Target.

name string

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

port number

The port used by iSCSI Target portal group.

targetIqn string

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

acl_mode str

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disks_pool_id str

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

endpoints Sequence[str]

List of private IPv4 addresses to connect to the iSCSI Target.

name str

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

port int

The port used by iSCSI Target portal group.

target_iqn str

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

aclMode String

Mode for Target connectivity. The only supported value is Dynamic for now. Changing this forces a new iSCSI Target to be created.

disksPoolId String

The ID of the Disk Pool. Changing this forces a new iSCSI Target to be created.

endpoints List<String>

List of private IPv4 addresses to connect to the iSCSI Target.

name String

The name of the iSCSI Target. The name can only contain lowercase letters, numbers, periods, or hyphens, and length should between [5-223]. Changing this forces a new iSCSI Target to be created.

port Number

The port used by iSCSI Target portal group.

targetIqn String

ISCSI Target IQN (iSCSI Qualified Name); example: iqn.2005-03.org.iscsi:server. IQN should follow the format iqn.yyyy-mm.<abc>.<pqr>[:xyz]; supported characters include alphanumeric characters in lower case, hyphen, dot and colon, and the length should between 4 and 223. Changing this forces a new iSCSI Target to be created.

Import

iSCSI Targets can be imported using the resource id, e.g.

 $ pulumi import azure:compute/diskPoolIscsiTarget:DiskPoolIscsiTarget example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.StoragePool/diskPools/pool1/iscsiTargets/iscsiTarget1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.