azure-native.deviceupdate.Instance
Explore with Pulumi AI
Device Update instance details. API Version: 2020-03-01-preview.
Example Usage
Creates or updates Instance
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var instance = new AzureNative.DeviceUpdate.Instance("instance", new()
{
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[]
{
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/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{
{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deviceupdate.Instance;
import com.pulumi.azurenative.deviceupdate.InstanceArgs;
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 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 Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_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,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var instanceResource = new AzureNative.Deviceupdate.Instance("instanceResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
DiagnosticStorageProperties =
{
{ "authenticationType", "string" },
{ "resourceId", "string" },
{ "connectionString", "string" },
},
EnableDiagnostics = false,
InstanceName = "string",
IotHubs = new[]
{
{
{ "resourceId", "string" },
{ "eventHubConnectionString", "string" },
{ "ioTHubConnectionString", "string" },
},
},
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := deviceupdate.NewInstance(ctx, "instanceResource", &deviceupdate.InstanceArgs{
AccountName: "string",
ResourceGroupName: "string",
DiagnosticStorageProperties: map[string]interface{}{
"authenticationType": "string",
"resourceId": "string",
"connectionString": "string",
},
EnableDiagnostics: false,
InstanceName: "string",
IotHubs: []map[string]interface{}{
map[string]interface{}{
"resourceId": "string",
"eventHubConnectionString": "string",
"ioTHubConnectionString": "string",
},
},
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
.accountName("string")
.resourceGroupName("string")
.diagnosticStorageProperties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.enableDiagnostics(false)
.instanceName("string")
.iotHubs(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
instance_resource = azure_native.deviceupdate.Instance("instanceResource",
account_name=string,
resource_group_name=string,
diagnostic_storage_properties={
authenticationType: string,
resourceId: string,
connectionString: string,
},
enable_diagnostics=False,
instance_name=string,
iot_hubs=[{
resourceId: string,
eventHubConnectionString: string,
ioTHubConnectionString: string,
}],
location=string,
tags={
string: string,
})
const instanceResource = new azure_native.deviceupdate.Instance("instanceResource", {
accountName: "string",
resourceGroupName: "string",
diagnosticStorageProperties: {
authenticationType: "string",
resourceId: "string",
connectionString: "string",
},
enableDiagnostics: false,
instanceName: "string",
iotHubs: [{
resourceId: "string",
eventHubConnectionString: "string",
ioTHubConnectionString: "string",
}],
location: "string",
tags: {
string: "string",
},
});
type: azure-native:deviceupdate:Instance
properties:
accountName: string
diagnosticStorageProperties:
authenticationType: string
connectionString: string
resourceId: string
enableDiagnostics: false
instanceName: string
iotHubs:
- eventHubConnectionString: string
ioTHubConnectionString: string
resourceId: string
location: string
resourceGroupName: string
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Account
Name string - Account name.
- Resource
Group stringName - The resource group name.
- Diagnostic
Storage Pulumi.Properties Azure Native. Device Update. Inputs. Diagnostic Storage Properties - Customer-initiated diagnostic log collection storage properties
- Enable
Diagnostics bool - Enables or Disables the diagnostic logs collection
- Instance
Name string - Instance name.
- Iot
Hubs List<Pulumi.Azure Native. Device Update. Inputs. Iot Hub Settings> - List of IoT Hubs associated with the account.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Account
Name string - Account name.
- Resource
Group stringName - The resource group name.
- Diagnostic
Storage DiagnosticProperties Storage Properties Args - Customer-initiated diagnostic log collection storage properties
- Enable
Diagnostics bool - Enables or Disables the diagnostic logs collection
- Instance
Name string - Instance name.
- Iot
Hubs []IotHub Settings Args - List of IoT Hubs associated with the account.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- account
Name String - Account name.
- resource
Group StringName - The resource group name.
- diagnostic
Storage DiagnosticProperties Storage Properties - Customer-initiated diagnostic log collection storage properties
- enable
Diagnostics Boolean - Enables or Disables the diagnostic logs collection
- instance
Name String - Instance name.
- iot
Hubs List<IotHub Settings> - List of IoT Hubs associated with the account.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- account
Name string - Account name.
- resource
Group stringName - The resource group name.
- diagnostic
Storage DiagnosticProperties Storage Properties - Customer-initiated diagnostic log collection storage properties
- enable
Diagnostics boolean - Enables or Disables the diagnostic logs collection
- instance
Name string - Instance name.
- iot
Hubs IotHub Settings[] - List of IoT Hubs associated with the account.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- account_
name str - Account name.
- resource_
group_ strname - The resource group name.
- diagnostic_
storage_ Diagnosticproperties Storage Properties Args - 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[IotHub Settings Args] - List of IoT Hubs associated with the account.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- account
Name String - Account name.
- resource
Group StringName - The resource group name.
- diagnostic
Storage Property MapProperties - Customer-initiated diagnostic log collection storage properties
- enable
Diagnostics Boolean - Enables or Disables the diagnostic logs collection
- instance
Name String - Instance name.
- iot
Hubs List<Property Map> - List of IoT Hubs associated with the account.
- location String
- The geo-location where the resource lives
- Map<String>
- 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
- Provisioning
State string - Provisioning state.
- System
Data Pulumi.Azure Native. Device Update. Outputs. System Data Response - 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
- Provisioning
State string - Provisioning state.
- System
Data SystemData Response - 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
- provisioning
State String - Provisioning state.
- system
Data SystemData Response - 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
- provisioning
State string - Provisioning state.
- system
Data SystemData Response - 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 SystemData Response - 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
- provisioning
State String - Provisioning state.
- system
Data 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, AuthenticationTypeArgs
- Key
Based - KeyBased
- Authentication
Type Key Based - KeyBased
- Key
Based - KeyBased
- Key
Based - KeyBased
- KEY_BASED
- KeyBased
- "Key
Based" - KeyBased
DiagnosticStorageProperties, DiagnosticStoragePropertiesArgs
- Authentication
Type string | Pulumi.Azure Native. Device Update. Authentication Type - Authentication Type
- Resource
Id string - ResourceId of the diagnostic storage account
- Connection
String string - ConnectionString of the diagnostic storage account
- Authentication
Type string | AuthenticationType - Authentication Type
- Resource
Id string - ResourceId of the diagnostic storage account
- Connection
String string - ConnectionString of the diagnostic storage account
- authentication
Type String | AuthenticationType - Authentication Type
- resource
Id String - ResourceId of the diagnostic storage account
- connection
String String - ConnectionString of the diagnostic storage account
- authentication
Type string | AuthenticationType - Authentication Type
- resource
Id string - ResourceId of the diagnostic storage account
- connection
String 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
- authentication
Type String | "KeyBased" - Authentication Type
- resource
Id String - ResourceId of the diagnostic storage account
- connection
String String - ConnectionString of the diagnostic storage account
DiagnosticStoragePropertiesResponse, DiagnosticStoragePropertiesResponseArgs
- Authentication
Type string - Authentication Type
- Resource
Id string - ResourceId of the diagnostic storage account
- Connection
String string - ConnectionString of the diagnostic storage account
- Authentication
Type string - Authentication Type
- Resource
Id string - ResourceId of the diagnostic storage account
- Connection
String string - ConnectionString of the diagnostic storage account
- authentication
Type String - Authentication Type
- resource
Id String - ResourceId of the diagnostic storage account
- connection
String String - ConnectionString of the diagnostic storage account
- authentication
Type string - Authentication Type
- resource
Id string - ResourceId of the diagnostic storage account
- connection
String 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
- authentication
Type String - Authentication Type
- resource
Id String - ResourceId of the diagnostic storage account
- connection
String String - ConnectionString of the diagnostic storage account
IotHubSettings, IotHubSettingsArgs
- Resource
Id string - IoTHub resource ID
- Event
Hub stringConnection String - EventHub connection string.
- Io
THub stringConnection String - IoTHub connection string.
- Resource
Id string - IoTHub resource ID
- Event
Hub stringConnection String - EventHub connection string.
- Io
THub stringConnection String - IoTHub connection string.
- resource
Id String - IoTHub resource ID
- event
Hub StringConnection String - EventHub connection string.
- io
THub StringConnection String - IoTHub connection string.
- resource
Id string - IoTHub resource ID
- event
Hub stringConnection String - EventHub connection string.
- io
THub stringConnection String - IoTHub connection string.
- resource_
id str - IoTHub resource ID
- event_
hub_ strconnection_ string - EventHub connection string.
- io_
t_ strhub_ connection_ string - IoTHub connection string.
- resource
Id String - IoTHub resource ID
- event
Hub StringConnection String - EventHub connection string.
- io
THub StringConnection String - IoTHub connection string.
IotHubSettingsResponse, IotHubSettingsResponseArgs
- Resource
Id string - IoTHub resource ID
- Event
Hub stringConnection String - EventHub connection string.
- Io
THub stringConnection String - IoTHub connection string.
- Resource
Id string - IoTHub resource ID
- Event
Hub stringConnection String - EventHub connection string.
- Io
THub stringConnection String - IoTHub connection string.
- resource
Id String - IoTHub resource ID
- event
Hub StringConnection String - EventHub connection string.
- io
THub StringConnection String - IoTHub connection string.
- resource
Id string - IoTHub resource ID
- event
Hub stringConnection String - EventHub connection string.
- io
THub stringConnection String - IoTHub connection string.
- resource_
id str - IoTHub resource ID
- event_
hub_ strconnection_ string - EventHub connection string.
- io_
t_ strhub_ connection_ string - IoTHub connection string.
- resource
Id String - IoTHub resource ID
- event
Hub StringConnection String - EventHub connection string.
- io
THub StringConnection String - IoTHub connection string.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0