We recommend using Azure Native.
azure.iot.DpsSharedAccessPolicy
Explore with Pulumi AI
Manages an IotHub Device Provisioning Service Shared Access Policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleIotHubDps = new azure.iot.IotHubDps("example", {
    name: "example",
    resourceGroupName: example.name,
    location: example.location,
    sku: {
        name: "S1",
        capacity: 1,
    },
});
const exampleDpsSharedAccessPolicy = new azure.iot.DpsSharedAccessPolicy("example", {
    name: "example",
    resourceGroupName: example.name,
    iothubDpsName: exampleIotHubDps.name,
    enrollmentWrite: true,
    enrollmentRead: true,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_iot_hub_dps = azure.iot.IotHubDps("example",
    name="example",
    resource_group_name=example.name,
    location=example.location,
    sku=azure.iot.IotHubDpsSkuArgs(
        name="S1",
        capacity=1,
    ))
example_dps_shared_access_policy = azure.iot.DpsSharedAccessPolicy("example",
    name="example",
    resource_group_name=example.name,
    iothub_dps_name=example_iot_hub_dps.name,
    enrollment_write=True,
    enrollment_read=True)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleIotHubDps, err := iot.NewIotHubDps(ctx, "example", &iot.IotHubDpsArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Sku: &iot.IotHubDpsSkuArgs{
				Name:     pulumi.String("S1"),
				Capacity: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		_, err = iot.NewDpsSharedAccessPolicy(ctx, "example", &iot.DpsSharedAccessPolicyArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
			IothubDpsName:     exampleIotHubDps.Name,
			EnrollmentWrite:   pulumi.Bool(true),
			EnrollmentRead:    pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleIotHubDps = new Azure.Iot.IotHubDps("example", new()
    {
        Name = "example",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Sku = new Azure.Iot.Inputs.IotHubDpsSkuArgs
        {
            Name = "S1",
            Capacity = 1,
        },
    });
    var exampleDpsSharedAccessPolicy = new Azure.Iot.DpsSharedAccessPolicy("example", new()
    {
        Name = "example",
        ResourceGroupName = example.Name,
        IothubDpsName = exampleIotHubDps.Name,
        EnrollmentWrite = true,
        EnrollmentRead = true,
    });
});
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.iot.IotHubDps;
import com.pulumi.azure.iot.IotHubDpsArgs;
import com.pulumi.azure.iot.inputs.IotHubDpsSkuArgs;
import com.pulumi.azure.iot.DpsSharedAccessPolicy;
import com.pulumi.azure.iot.DpsSharedAccessPolicyArgs;
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 exampleIotHubDps = new IotHubDps("exampleIotHubDps", IotHubDpsArgs.builder()
            .name("example")
            .resourceGroupName(example.name())
            .location(example.location())
            .sku(IotHubDpsSkuArgs.builder()
                .name("S1")
                .capacity("1")
                .build())
            .build());
        var exampleDpsSharedAccessPolicy = new DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy", DpsSharedAccessPolicyArgs.builder()
            .name("example")
            .resourceGroupName(example.name())
            .iothubDpsName(exampleIotHubDps.name())
            .enrollmentWrite(true)
            .enrollmentRead(true)
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleIotHubDps:
    type: azure:iot:IotHubDps
    name: example
    properties:
      name: example
      resourceGroupName: ${example.name}
      location: ${example.location}
      sku:
        name: S1
        capacity: '1'
  exampleDpsSharedAccessPolicy:
    type: azure:iot:DpsSharedAccessPolicy
    name: example
    properties:
      name: example
      resourceGroupName: ${example.name}
      iothubDpsName: ${exampleIotHubDps.name}
      enrollmentWrite: true
      enrollmentRead: true
Create DpsSharedAccessPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DpsSharedAccessPolicy(name: string, args: DpsSharedAccessPolicyArgs, opts?: CustomResourceOptions);@overload
def DpsSharedAccessPolicy(resource_name: str,
                          args: DpsSharedAccessPolicyArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def DpsSharedAccessPolicy(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          iothub_dps_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          enrollment_read: Optional[bool] = None,
                          enrollment_write: Optional[bool] = None,
                          name: Optional[str] = None,
                          registration_read: Optional[bool] = None,
                          registration_write: Optional[bool] = None,
                          service_config: Optional[bool] = None)func NewDpsSharedAccessPolicy(ctx *Context, name string, args DpsSharedAccessPolicyArgs, opts ...ResourceOption) (*DpsSharedAccessPolicy, error)public DpsSharedAccessPolicy(string name, DpsSharedAccessPolicyArgs args, CustomResourceOptions? opts = null)
public DpsSharedAccessPolicy(String name, DpsSharedAccessPolicyArgs args)
public DpsSharedAccessPolicy(String name, DpsSharedAccessPolicyArgs args, CustomResourceOptions options)
type: azure:iot:DpsSharedAccessPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- 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 DpsSharedAccessPolicyArgs
- 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 DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- 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 dpsSharedAccessPolicyResource = new Azure.Iot.DpsSharedAccessPolicy("dpsSharedAccessPolicyResource", new()
{
    IothubDpsName = "string",
    ResourceGroupName = "string",
    EnrollmentRead = false,
    EnrollmentWrite = false,
    Name = "string",
    RegistrationRead = false,
    RegistrationWrite = false,
    ServiceConfig = false,
});
example, err := iot.NewDpsSharedAccessPolicy(ctx, "dpsSharedAccessPolicyResource", &iot.DpsSharedAccessPolicyArgs{
	IothubDpsName:     pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	EnrollmentRead:    pulumi.Bool(false),
	EnrollmentWrite:   pulumi.Bool(false),
	Name:              pulumi.String("string"),
	RegistrationRead:  pulumi.Bool(false),
	RegistrationWrite: pulumi.Bool(false),
	ServiceConfig:     pulumi.Bool(false),
})
var dpsSharedAccessPolicyResource = new DpsSharedAccessPolicy("dpsSharedAccessPolicyResource", DpsSharedAccessPolicyArgs.builder()
    .iothubDpsName("string")
    .resourceGroupName("string")
    .enrollmentRead(false)
    .enrollmentWrite(false)
    .name("string")
    .registrationRead(false)
    .registrationWrite(false)
    .serviceConfig(false)
    .build());
dps_shared_access_policy_resource = azure.iot.DpsSharedAccessPolicy("dpsSharedAccessPolicyResource",
    iothub_dps_name="string",
    resource_group_name="string",
    enrollment_read=False,
    enrollment_write=False,
    name="string",
    registration_read=False,
    registration_write=False,
    service_config=False)
const dpsSharedAccessPolicyResource = new azure.iot.DpsSharedAccessPolicy("dpsSharedAccessPolicyResource", {
    iothubDpsName: "string",
    resourceGroupName: "string",
    enrollmentRead: false,
    enrollmentWrite: false,
    name: "string",
    registrationRead: false,
    registrationWrite: false,
    serviceConfig: false,
});
type: azure:iot:DpsSharedAccessPolicy
properties:
    enrollmentRead: false
    enrollmentWrite: false
    iothubDpsName: string
    name: string
    registrationRead: false
    registrationWrite: false
    resourceGroupName: string
    serviceConfig: false
DpsSharedAccessPolicy 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 DpsSharedAccessPolicy resource accepts the following input properties:
- IothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- EnrollmentRead bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- EnrollmentWrite bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- Name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- RegistrationRead bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- RegistrationWrite bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- ServiceConfig bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- IothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- EnrollmentRead bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- EnrollmentWrite bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- Name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- RegistrationRead bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- RegistrationWrite bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- ServiceConfig bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- iothubDps StringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollmentRead Boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite Boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- name String
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registrationRead Boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite Boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- serviceConfig Boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- iothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollmentRead boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registrationRead boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- serviceConfig boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- iothub_dps_ strname 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollment_read bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollment_write bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- name str
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registration_read bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registration_write bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- service_config bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- iothubDps StringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollmentRead Boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite Boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- name String
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registrationRead Boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite Boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- serviceConfig Boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
Outputs
All input properties are implicitly available as output properties. Additionally, the DpsSharedAccessPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- PrimaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- PrimaryKey string
- The primary key used to create the authentication token.
- SecondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- SecondaryKey string
- The secondary key used to create the authentication token.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrimaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- PrimaryKey string
- The primary key used to create the authentication token.
- SecondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- SecondaryKey string
- The secondary key used to create the authentication token.
- id String
- The provider-assigned unique ID for this managed resource.
- primaryConnection StringString 
- The primary connection string of the Shared Access Policy.
- primaryKey String
- The primary key used to create the authentication token.
- secondaryConnection StringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey String
- The secondary key used to create the authentication token.
- id string
- The provider-assigned unique ID for this managed resource.
- primaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- primaryKey string
- The primary key used to create the authentication token.
- secondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey string
- The secondary key used to create the authentication token.
- id str
- The provider-assigned unique ID for this managed resource.
- primary_connection_ strstring 
- The primary connection string of the Shared Access Policy.
- primary_key str
- The primary key used to create the authentication token.
- secondary_connection_ strstring 
- The secondary connection string of the Shared Access Policy.
- secondary_key str
- The secondary key used to create the authentication token.
- id String
- The provider-assigned unique ID for this managed resource.
- primaryConnection StringString 
- The primary connection string of the Shared Access Policy.
- primaryKey String
- The primary key used to create the authentication token.
- secondaryConnection StringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey String
- The secondary key used to create the authentication token.
Look up Existing DpsSharedAccessPolicy Resource
Get an existing DpsSharedAccessPolicy 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?: DpsSharedAccessPolicyState, opts?: CustomResourceOptions): DpsSharedAccessPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enrollment_read: Optional[bool] = None,
        enrollment_write: Optional[bool] = None,
        iothub_dps_name: Optional[str] = None,
        name: Optional[str] = None,
        primary_connection_string: Optional[str] = None,
        primary_key: Optional[str] = None,
        registration_read: Optional[bool] = None,
        registration_write: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        secondary_connection_string: Optional[str] = None,
        secondary_key: Optional[str] = None,
        service_config: Optional[bool] = None) -> DpsSharedAccessPolicyfunc GetDpsSharedAccessPolicy(ctx *Context, name string, id IDInput, state *DpsSharedAccessPolicyState, opts ...ResourceOption) (*DpsSharedAccessPolicy, error)public static DpsSharedAccessPolicy Get(string name, Input<string> id, DpsSharedAccessPolicyState? state, CustomResourceOptions? opts = null)public static DpsSharedAccessPolicy get(String name, Output<String> id, DpsSharedAccessPolicyState 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.
- EnrollmentRead bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- EnrollmentWrite bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- IothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- PrimaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- PrimaryKey string
- The primary key used to create the authentication token.
- RegistrationRead bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- RegistrationWrite bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- ResourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- SecondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- SecondaryKey string
- The secondary key used to create the authentication token.
- ServiceConfig bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- EnrollmentRead bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- EnrollmentWrite bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- IothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- PrimaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- PrimaryKey string
- The primary key used to create the authentication token.
- RegistrationRead bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- RegistrationWrite bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- ResourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- SecondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- SecondaryKey string
- The secondary key used to create the authentication token.
- ServiceConfig bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- enrollmentRead Boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite Boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- iothubDps StringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name String
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primaryConnection StringString 
- The primary connection string of the Shared Access Policy.
- primaryKey String
- The primary key used to create the authentication token.
- registrationRead Boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite Boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- resourceGroup StringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondaryConnection StringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey String
- The secondary key used to create the authentication token.
- serviceConfig Boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- enrollmentRead boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- iothubDps stringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name string
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primaryConnection stringString 
- The primary connection string of the Shared Access Policy.
- primaryKey string
- The primary key used to create the authentication token.
- registrationRead boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- resourceGroup stringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondaryConnection stringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey string
- The secondary key used to create the authentication token.
- serviceConfig boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- enrollment_read bool
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollment_write bool
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- iothub_dps_ strname 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name str
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primary_connection_ strstring 
- The primary connection string of the Shared Access Policy.
- primary_key str
- The primary key used to create the authentication token.
- registration_read bool
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registration_write bool
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- resource_group_ strname 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondary_connection_ strstring 
- The secondary connection string of the Shared Access Policy.
- secondary_key str
- The secondary key used to create the authentication token.
- service_config bool
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
- enrollmentRead Boolean
- Adds - EnrollmentReadpermission to this Shared Access Account. It allows read access to enrollment data.- NOTE When - enrollment_readis set to- true,- registration_readmust also be set to true. This is a limitation of the Azure REST API
- enrollmentWrite Boolean
- Adds - EnrollmentWritepermission to this Shared Access Account. It allows write access to enrollment data.- NOTE When - registration_writeis set to- true,- enrollment_read,- registration_read, and- registration_writemust also be set to true. This is a requirement of the Azure API.
- iothubDps StringName 
- The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name String
- Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primaryConnection StringString 
- The primary connection string of the Shared Access Policy.
- primaryKey String
- The primary key used to create the authentication token.
- registrationRead Boolean
- Adds RegistrationStatusReadpermission to this Shared Access Account. It allows read access to device registrations.
- registrationWrite Boolean
- Adds - RegistrationStatusWritepermission to this Shared Access Account. It allows write access to device registrations.- NOTE When - registration_writeis set to- true,- registration_readmust also be set to true. This is a requirement of the Azure API.
- resourceGroup StringName 
- The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondaryConnection StringString 
- The secondary connection string of the Shared Access Policy.
- secondaryKey String
- The secondary key used to create the authentication token.
- serviceConfig Boolean
- Adds - ServiceConfigpermission to this Shared Access Account. It allows configuration of the Device Provisioning Service.- NOTE At least one of - registration_read,- registration_write,- service_config,- enrollment_read,- enrollment_writepermissions must be set to- true.
Import
IoTHub Device Provisioning Service Shared Access Policies can be imported using the resource id, e.g.
$ pulumi import azure:iot/dpsSharedAccessPolicy:DpsSharedAccessPolicy shared_access_policy1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/provisioningServices/dps1/keys/shared_access_policy1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.