1. Packages
  2. Azure Native
  3. API Docs
  4. windowsiot
  5. Service
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.windowsiot.Service

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    The description of the Windows IoT Device Service. Azure REST API version: 2019-06-01. Prior API version in Azure Native 1.x: 2019-06-01.

    Other available API versions: 2018-02-16-preview.

    Example Usage

    Service_Create

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var service = new AzureNative.WindowsIoT.Service("service", new()
        {
            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/windowsiot/v2"
    	"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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.windowsiot.Service;
    import com.pulumi.azurenative.windowsiot.ServiceArgs;
    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 service = new Service("service", ServiceArgs.builder()
                .adminDomainName("d.e.f")
                .billingDomainName("a.b.c")
                .deviceName("service4445")
                .location("East US")
                .notes("blah")
                .quantity(1000000)
                .resourceGroupName("res9101")
                .build());
    
        }
    }
    
    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",
    });
    
    resources:
      service:
        type: azure-native:windowsiot:Service
        properties:
          adminDomainName: d.e.f
          billingDomainName: a.b.c
          deviceName: service4445
          location: East US
          notes: blah
          quantity: 1e+06
          resourceGroupName: res9101
    

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                admin_domain_name: Optional[str] = None,
                billing_domain_name: Optional[str] = None,
                device_name: Optional[str] = None,
                location: Optional[str] = None,
                notes: Optional[str] = None,
                quantity: Optional[float] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: azure-native:windowsiot:Service
    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 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.
    name String
    The unique name of the resource.
    args ServiceArgs
    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 exampleserviceResourceResourceFromWindowsiot = new AzureNative.WindowsIoT.Service("exampleserviceResourceResourceFromWindowsiot", new()
    {
        ResourceGroupName = "string",
        AdminDomainName = "string",
        BillingDomainName = "string",
        DeviceName = "string",
        Location = "string",
        Notes = "string",
        Quantity = 0,
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := windowsiot.NewService(ctx, "exampleserviceResourceResourceFromWindowsiot", &windowsiot.ServiceArgs{
    ResourceGroupName: pulumi.String("string"),
    AdminDomainName: pulumi.String("string"),
    BillingDomainName: pulumi.String("string"),
    DeviceName: pulumi.String("string"),
    Location: pulumi.String("string"),
    Notes: pulumi.String("string"),
    Quantity: pulumi.Float64(0),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var exampleserviceResourceResourceFromWindowsiot = new Service("exampleserviceResourceResourceFromWindowsiot", ServiceArgs.builder()
        .resourceGroupName("string")
        .adminDomainName("string")
        .billingDomainName("string")
        .deviceName("string")
        .location("string")
        .notes("string")
        .quantity(0)
        .tags(Map.of("string", "string"))
        .build());
    
    exampleservice_resource_resource_from_windowsiot = azure_native.windowsiot.Service("exampleserviceResourceResourceFromWindowsiot",
        resource_group_name="string",
        admin_domain_name="string",
        billing_domain_name="string",
        device_name="string",
        location="string",
        notes="string",
        quantity=0,
        tags={
            "string": "string",
        })
    
    const exampleserviceResourceResourceFromWindowsiot = new azure_native.windowsiot.Service("exampleserviceResourceResourceFromWindowsiot", {
        resourceGroupName: "string",
        adminDomainName: "string",
        billingDomainName: "string",
        deviceName: "string",
        location: "string",
        notes: "string",
        quantity: 0,
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:windowsiot:Service
    properties:
        adminDomainName: string
        billingDomainName: string
        deviceName: string
        location: string
        notes: string
        quantity: 0
        resourceGroupName: string
        tags:
            string: string
    

    Service 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 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.
    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.
    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.
    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 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.
    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.
    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.
    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.
    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 Map<String>
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi