Service

The description of the Windows IoT Device Service. API Version: 2019-06-01.

Example Usage

Service_Create

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var service = new AzureNative.WindowsIoT.Service("service", new AzureNative.WindowsIoT.ServiceArgs
        {
            AdminDomainName = "d.e.f",
            BillingDomainName = "a.b.c",
            DeviceName = "service4445",
            Location = "East US",
            Notes = "blah",
            Quantity = 1000000,
            ResourceGroupName = "res9101",
        });
    }

}

package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := windowsiot.NewService(ctx, "service", &windowsiot.ServiceArgs{
			AdminDomainName:   pulumi.String("d.e.f"),
			BillingDomainName: pulumi.String("a.b.c"),
			DeviceName:        pulumi.String("service4445"),
			Location:          pulumi.String("East US"),
			Notes:             pulumi.String("blah"),
			Quantity:          pulumi.Float64(1000000),
			ResourceGroupName: pulumi.String("res9101"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

import pulumi
import pulumi_azure_native as azure_native

service = azure_native.windowsiot.Service("service",
    admin_domain_name="d.e.f",
    billing_domain_name="a.b.c",
    device_name="service4445",
    location="East US",
    notes="blah",
    quantity=1000000,
    resource_group_name="res9101")

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

const service = new azure_native.windowsiot.Service("service", {
    adminDomainName: "d.e.f",
    billingDomainName: "a.b.c",
    deviceName: "service4445",
    location: "East US",
    notes: "blah",
    quantity: 1000000,
    resourceGroupName: "res9101",
});

Create a Service Resource

new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            admin_domain_name: Optional[str] = None,
            billing_domain_name: Optional[str] = None,
            device_name: Optional[str] = None,
            etag: Optional[str] = None,
            location: Optional[str] = None,
            notes: Optional[str] = None,
            quantity: Optional[float] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
@overload
def Service(resource_name: str,
            args: ServiceArgs,
            opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceArgs
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 ServiceArgs
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 ServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Service Resource Properties

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

Inputs

The Service resource accepts the following input properties:

ResourceGroupName string
The name of the resource group that contains the Windows IoT Device Service.
AdminDomainName string
Windows IoT Device Service OEM AAD domain
BillingDomainName string
Windows IoT Device Service ODM AAD domain
DeviceName string
The name of the Windows IoT Device Service.
Etag string
The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
Location string
The Azure Region where the resource lives
Notes string
Windows IoT Device Service notes.
Quantity double
Windows IoT Device Service device allocation,
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName string
The name of the resource group that contains the Windows IoT Device Service.
AdminDomainName string
Windows IoT Device Service OEM AAD domain
BillingDomainName string
Windows IoT Device Service ODM AAD domain
DeviceName string
The name of the Windows IoT Device Service.
Etag string
The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
Location string
The Azure Region where the resource lives
Notes string
Windows IoT Device Service notes.
Quantity float64
Windows IoT Device Service device allocation,
Tags map[string]string
Resource tags.
resourceGroupName string
The name of the resource group that contains the Windows IoT Device Service.
adminDomainName string
Windows IoT Device Service OEM AAD domain
billingDomainName string
Windows IoT Device Service ODM AAD domain
deviceName string
The name of the Windows IoT Device Service.
etag string
The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
location string
The Azure Region where the resource lives
notes string
Windows IoT Device Service notes.
quantity number
Windows IoT Device Service device allocation,
tags {[key: string]: string}
Resource tags.
resource_group_name str
The name of the resource group that contains the Windows IoT Device Service.
admin_domain_name str
Windows IoT Device Service OEM AAD domain
billing_domain_name str
Windows IoT Device Service ODM AAD domain
device_name str
The name of the Windows IoT Device Service.
etag str
The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
location str
The Azure Region where the resource lives
notes str
Windows IoT Device Service notes.
quantity float
Windows IoT Device Service device allocation,
tags Mapping[str, str]
Resource tags.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
StartDate string
Windows IoT Device Service start date,
Type string
The type of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
StartDate string
Windows IoT Device Service start date,
Type string
The type of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
startDate string
Windows IoT Device Service start date,
type string
The type of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
start_date str
Windows IoT Device Service start date,
type str
The type of the resource.

Import

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

$ pulumi import azure-native:windowsiot:Service myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName} 

Package Details

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