Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.0 published on Wednesday, May 4, 2022 by Pulumi

Instance

Device Update instance details. API Version: 2020-03-01-preview.

Example Usage

Creates or updates Instance

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var instance = new AzureNative.DeviceUpdate.Instance("instance", new AzureNative.DeviceUpdate.InstanceArgs
        {
            AccountName = "contoso",
            DiagnosticStorageProperties = new AzureNative.DeviceUpdate.Inputs.DiagnosticStoragePropertiesArgs
            {
                AuthenticationType = "KeyBased",
                ConnectionString = "string",
                ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount",
            },
            EnableDiagnostics = false,
            InstanceName = "blue",
            IotHubs = 
            {
                new AzureNative.DeviceUpdate.Inputs.IotHubSettingsArgs
                {
                    EventHubConnectionString = "string",
                    IoTHubConnectionString = "string",
                    ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub",
                },
            },
            Location = "westus2",
            ResourceGroupName = "test-rg",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := deviceupdate.NewInstance(ctx, "instance", &deviceupdate.InstanceArgs{
			AccountName: pulumi.String("contoso"),
			DiagnosticStorageProperties: &deviceupdate.DiagnosticStoragePropertiesArgs{
				AuthenticationType: pulumi.String("KeyBased"),
				ConnectionString:   pulumi.String("string"),
				ResourceId:         pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"),
			},
			EnableDiagnostics: pulumi.Bool(false),
			InstanceName:      pulumi.String("blue"),
			IotHubs: []deviceupdate.IotHubSettingsArgs{
				&deviceupdate.IotHubSettingsArgs{
					EventHubConnectionString: pulumi.String("string"),
					IoTHubConnectionString:   pulumi.String("string"),
					ResourceId:               pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"),
				},
			},
			Location:          pulumi.String("westus2"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var instance = new Instance("instance", InstanceArgs.builder()        
            .accountName("contoso")
            .diagnosticStorageProperties(Map.ofEntries(
                Map.entry("authenticationType", "KeyBased"),
                Map.entry("connectionString", "string"),
                Map.entry("resourceId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount")
            ))
            .enableDiagnostics(false)
            .instanceName("blue")
            .iotHubs(Map.ofEntries(
                Map.entry("eventHubConnectionString", "string"),
                Map.entry("ioTHubConnectionString", "string"),
                Map.entry("resourceId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub")
            ))
            .location("westus2")
            .resourceGroupName("test-rg")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

instance = azure_native.deviceupdate.Instance("instance",
    account_name="contoso",
    diagnostic_storage_properties=azure_native.deviceupdate.DiagnosticStoragePropertiesArgs(
        authentication_type="KeyBased",
        connection_string="string",
        resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount",
    ),
    enable_diagnostics=False,
    instance_name="blue",
    iot_hubs=[azure_native.deviceupdate.IotHubSettingsArgs(
        event_hub_connection_string="string",
        io_t_hub_connection_string="string",
        resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub",
    )],
    location="westus2",
    resource_group_name="test-rg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const instance = new azure_native.deviceupdate.Instance("instance", {
    accountName: "contoso",
    diagnosticStorageProperties: {
        authenticationType: "KeyBased",
        connectionString: "string",
        resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount",
    },
    enableDiagnostics: false,
    instanceName: "blue",
    iotHubs: [{
        eventHubConnectionString: "string",
        ioTHubConnectionString: "string",
        resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub",
    }],
    location: "westus2",
    resourceGroupName: "test-rg",
});
resources:
  instance:
    type: azure-native:deviceupdate:Instance
    properties:
      accountName: contoso
      diagnosticStorageProperties:
        authenticationType: KeyBased
        connectionString: string
        resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount
      enableDiagnostics: false
      instanceName: blue
      iotHubs:
        - eventHubConnectionString: string
          ioTHubConnectionString: string
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub
      location: westus2
      resourceGroupName: test-rg

Create a Instance Resource

new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             account_name: Optional[str] = None,
             diagnostic_storage_properties: Optional[DiagnosticStoragePropertiesArgs] = None,
             enable_diagnostics: Optional[bool] = None,
             instance_name: Optional[str] = None,
             iot_hubs: Optional[Sequence[IotHubSettingsArgs]] = None,
             location: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)
@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: azure-native:deviceupdate:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AccountName string

Account name.

ResourceGroupName string

The resource group name.

DiagnosticStorageProperties Pulumi.AzureNative.DeviceUpdate.Inputs.DiagnosticStoragePropertiesArgs

Customer-initiated diagnostic log collection storage properties

EnableDiagnostics bool

Enables or Disables the diagnostic logs collection

InstanceName string

Instance name.

IotHubs List<Pulumi.AzureNative.DeviceUpdate.Inputs.IotHubSettingsArgs>

List of IoT Hubs associated with the account.

Location string

The geo-location where the resource lives

Tags Dictionary<string, string>

Resource tags.

AccountName string

Account name.

ResourceGroupName string

The resource group name.

DiagnosticStorageProperties DiagnosticStoragePropertiesArgs

Customer-initiated diagnostic log collection storage properties

EnableDiagnostics bool

Enables or Disables the diagnostic logs collection

InstanceName string

Instance name.

IotHubs []IotHubSettingsArgs

List of IoT Hubs associated with the account.

Location string

The geo-location where the resource lives

Tags map[string]string

Resource tags.

accountName String

Account name.

resourceGroupName String

The resource group name.

diagnosticStorageProperties DiagnosticStoragePropertiesArgs

Customer-initiated diagnostic log collection storage properties

enableDiagnostics Boolean

Enables or Disables the diagnostic logs collection

instanceName String

Instance name.

iotHubs ListHubSettingsArgs>

List of IoT Hubs associated with the account.

location String

The geo-location where the resource lives

tags Map

Resource tags.

accountName string

Account name.

resourceGroupName string

The resource group name.

diagnosticStorageProperties DiagnosticStoragePropertiesArgs

Customer-initiated diagnostic log collection storage properties

enableDiagnostics boolean

Enables or Disables the diagnostic logs collection

instanceName string

Instance name.

iotHubs IotHubSettingsArgs[]

List of IoT Hubs associated with the account.

location string

The geo-location where the resource lives

tags {[key: string]: string}

Resource tags.

account_name str

Account name.

resource_group_name str

The resource group name.

diagnostic_storage_properties DiagnosticStoragePropertiesArgs

Customer-initiated diagnostic log collection storage properties

enable_diagnostics bool

Enables or Disables the diagnostic logs collection

instance_name str

Instance name.

iot_hubs Sequence[IotHubSettingsArgs]

List of IoT Hubs associated with the account.

location str

The geo-location where the resource lives

tags Mapping[str, str]

Resource tags.

accountName String

Account name.

resourceGroupName String

The resource group name.

diagnosticStorageProperties Property Map

Customer-initiated diagnostic log collection storage properties

enableDiagnostics Boolean

Enables or Disables the diagnostic logs collection

instanceName String

Instance name.

iotHubs List

List of IoT Hubs associated with the account.

location String

The geo-location where the resource lives

tags Map

Resource tags.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

Provisioning state.

SystemData Pulumi.AzureNative.DeviceUpdate.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

Provisioning state.

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

Provisioning state.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

Provisioning state.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

Provisioning state.

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

Provisioning state.

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AuthenticationType

KeyBased
KeyBased
AuthenticationTypeKeyBased
KeyBased
KeyBased
KeyBased
KeyBased
KeyBased
KEY_BASED
KeyBased
"KeyBased"
KeyBased

DiagnosticStorageProperties

AuthenticationType string | Pulumi.AzureNative.DeviceUpdate.AuthenticationType

Authentication Type

ResourceId string

ResourceId of the diagnostic storage account

ConnectionString string

ConnectionString of the diagnostic storage account

AuthenticationType string | AuthenticationType

Authentication Type

ResourceId string

ResourceId of the diagnostic storage account

ConnectionString string

ConnectionString of the diagnostic storage account

authenticationType String | AuthenticationType

Authentication Type

resourceId String

ResourceId of the diagnostic storage account

connectionString String

ConnectionString of the diagnostic storage account

authenticationType string | AuthenticationType

Authentication Type

resourceId string

ResourceId of the diagnostic storage account

connectionString string

ConnectionString of the diagnostic storage account

authentication_type str | AuthenticationType

Authentication Type

resource_id str

ResourceId of the diagnostic storage account

connection_string str

ConnectionString of the diagnostic storage account

authenticationType String | "KeyBased"

Authentication Type

resourceId String

ResourceId of the diagnostic storage account

connectionString String

ConnectionString of the diagnostic storage account

DiagnosticStoragePropertiesResponse

AuthenticationType string

Authentication Type

ResourceId string

ResourceId of the diagnostic storage account

ConnectionString string

ConnectionString of the diagnostic storage account

AuthenticationType string

Authentication Type

ResourceId string

ResourceId of the diagnostic storage account

ConnectionString string

ConnectionString of the diagnostic storage account

authenticationType String

Authentication Type

resourceId String

ResourceId of the diagnostic storage account

connectionString String

ConnectionString of the diagnostic storage account

authenticationType string

Authentication Type

resourceId string

ResourceId of the diagnostic storage account

connectionString string

ConnectionString of the diagnostic storage account

authentication_type str

Authentication Type

resource_id str

ResourceId of the diagnostic storage account

connection_string str

ConnectionString of the diagnostic storage account

authenticationType String

Authentication Type

resourceId String

ResourceId of the diagnostic storage account

connectionString String

ConnectionString of the diagnostic storage account

IotHubSettings

ResourceId string

IoTHub resource ID

EventHubConnectionString string

EventHub connection string.

IoTHubConnectionString string

IoTHub connection string.

ResourceId string

IoTHub resource ID

EventHubConnectionString string

EventHub connection string.

IoTHubConnectionString string

IoTHub connection string.

resourceId String

IoTHub resource ID

eventHubConnectionString String

EventHub connection string.

ioTHubConnectionString String

IoTHub connection string.

resourceId string

IoTHub resource ID

eventHubConnectionString string

EventHub connection string.

ioTHubConnectionString string

IoTHub connection string.

resource_id str

IoTHub resource ID

event_hub_connection_string str

EventHub connection string.

io_t_hub_connection_string str

IoTHub connection string.

resourceId String

IoTHub resource ID

eventHubConnectionString String

EventHub connection string.

ioTHubConnectionString String

IoTHub connection string.

IotHubSettingsResponse

ResourceId string

IoTHub resource ID

EventHubConnectionString string

EventHub connection string.

IoTHubConnectionString string

IoTHub connection string.

ResourceId string

IoTHub resource ID

EventHubConnectionString string

EventHub connection string.

IoTHubConnectionString string

IoTHub connection string.

resourceId String

IoTHub resource ID

eventHubConnectionString String

EventHub connection string.

ioTHubConnectionString String

IoTHub connection string.

resourceId string

IoTHub resource ID

eventHubConnectionString string

EventHub connection string.

ioTHubConnectionString string

IoTHub connection string.

resource_id str

IoTHub resource ID

event_hub_connection_string str

EventHub connection string.

io_t_hub_connection_string str

IoTHub connection string.

resourceId String

IoTHub resource ID

eventHubConnectionString String

EventHub connection string.

ioTHubConnectionString String

IoTHub connection string.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:deviceupdate:Instance blue /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue 

Package Details

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