1. Packages
  2. Azure Native
  3. API Docs
  4. azuresphere
  5. DeviceGroup
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.8.0 published on Monday, Sep 18, 2023 by Pulumi

azure-native.azuresphere.DeviceGroup

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.8.0 published on Monday, Sep 18, 2023 by Pulumi

    An device group resource belonging to a product resource. Azure REST API version: 2022-09-01-preview. Prior API version in Azure Native 1.x: 2022-09-01-preview

    Example Usage

    DeviceGroups_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var deviceGroup = new AzureNative.AzureSphere.DeviceGroup("deviceGroup", new()
        {
            CatalogName = "MyCatalog1",
            Description = "Description for MyDeviceGroup1",
            DeviceGroupName = "MyDeviceGroup1",
            OsFeedType = "Retail",
            ProductName = "MyProduct1",
            ResourceGroupName = "MyResourceGroup1",
            UpdatePolicy = "UpdateAll",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/azuresphere/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azuresphere.NewDeviceGroup(ctx, "deviceGroup", &azuresphere.DeviceGroupArgs{
    			CatalogName:       pulumi.String("MyCatalog1"),
    			Description:       pulumi.String("Description for MyDeviceGroup1"),
    			DeviceGroupName:   pulumi.String("MyDeviceGroup1"),
    			OsFeedType:        pulumi.String("Retail"),
    			ProductName:       pulumi.String("MyProduct1"),
    			ResourceGroupName: pulumi.String("MyResourceGroup1"),
    			UpdatePolicy:      pulumi.String("UpdateAll"),
    		})
    		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.azuresphere.DeviceGroup;
    import com.pulumi.azurenative.azuresphere.DeviceGroupArgs;
    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 deviceGroup = new DeviceGroup("deviceGroup", DeviceGroupArgs.builder()        
                .catalogName("MyCatalog1")
                .description("Description for MyDeviceGroup1")
                .deviceGroupName("MyDeviceGroup1")
                .osFeedType("Retail")
                .productName("MyProduct1")
                .resourceGroupName("MyResourceGroup1")
                .updatePolicy("UpdateAll")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    device_group = azure_native.azuresphere.DeviceGroup("deviceGroup",
        catalog_name="MyCatalog1",
        description="Description for MyDeviceGroup1",
        device_group_name="MyDeviceGroup1",
        os_feed_type="Retail",
        product_name="MyProduct1",
        resource_group_name="MyResourceGroup1",
        update_policy="UpdateAll")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const deviceGroup = new azure_native.azuresphere.DeviceGroup("deviceGroup", {
        catalogName: "MyCatalog1",
        description: "Description for MyDeviceGroup1",
        deviceGroupName: "MyDeviceGroup1",
        osFeedType: "Retail",
        productName: "MyProduct1",
        resourceGroupName: "MyResourceGroup1",
        updatePolicy: "UpdateAll",
    });
    
    resources:
      deviceGroup:
        type: azure-native:azuresphere:DeviceGroup
        properties:
          catalogName: MyCatalog1
          description: Description for MyDeviceGroup1
          deviceGroupName: MyDeviceGroup1
          osFeedType: Retail
          productName: MyProduct1
          resourceGroupName: MyResourceGroup1
          updatePolicy: UpdateAll
    

    Create DeviceGroup Resource

    new DeviceGroup(name: string, args: DeviceGroupArgs, opts?: CustomResourceOptions);
    @overload
    def DeviceGroup(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    allow_crash_dumps_collection: Optional[Union[str, AllowCrashDumpCollection]] = None,
                    catalog_name: Optional[str] = None,
                    description: Optional[str] = None,
                    device_group_name: Optional[str] = None,
                    os_feed_type: Optional[Union[str, OSFeedType]] = None,
                    product_name: Optional[str] = None,
                    regional_data_boundary: Optional[Union[str, RegionalDataBoundary]] = None,
                    resource_group_name: Optional[str] = None,
                    update_policy: Optional[Union[str, UpdatePolicy]] = None)
    @overload
    def DeviceGroup(resource_name: str,
                    args: DeviceGroupArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewDeviceGroup(ctx *Context, name string, args DeviceGroupArgs, opts ...ResourceOption) (*DeviceGroup, error)
    public DeviceGroup(string name, DeviceGroupArgs args, CustomResourceOptions? opts = null)
    public DeviceGroup(String name, DeviceGroupArgs args)
    public DeviceGroup(String name, DeviceGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:azuresphere:DeviceGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DeviceGroupArgs
    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 DeviceGroupArgs
    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 DeviceGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CatalogName string

    Name of catalog

    ProductName string

    Name of product.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    AllowCrashDumpsCollection string | Pulumi.AzureNative.AzureSphere.AllowCrashDumpCollection

    Flag to define if the user allows for crash dump collection.

    Description string

    Description of the device group.

    DeviceGroupName string

    Name of device group.

    OsFeedType string | Pulumi.AzureNative.AzureSphere.OSFeedType

    Operating system feed type of the device group.

    RegionalDataBoundary string | Pulumi.AzureNative.AzureSphere.RegionalDataBoundary

    Regional data boundary for the device group.

    UpdatePolicy string | Pulumi.AzureNative.AzureSphere.UpdatePolicy

    Update policy of the device group.

    CatalogName string

    Name of catalog

    ProductName string

    Name of product.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    AllowCrashDumpsCollection string | AllowCrashDumpCollection

    Flag to define if the user allows for crash dump collection.

    Description string

    Description of the device group.

    DeviceGroupName string

    Name of device group.

    OsFeedType string | OSFeedType

    Operating system feed type of the device group.

    RegionalDataBoundary string | RegionalDataBoundary

    Regional data boundary for the device group.

    UpdatePolicy string | UpdatePolicy

    Update policy of the device group.

    catalogName String

    Name of catalog

    productName String

    Name of product.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    allowCrashDumpsCollection String | AllowCrashDumpCollection

    Flag to define if the user allows for crash dump collection.

    description String

    Description of the device group.

    deviceGroupName String

    Name of device group.

    osFeedType String | OSFeedType

    Operating system feed type of the device group.

    regionalDataBoundary String | RegionalDataBoundary

    Regional data boundary for the device group.

    updatePolicy String | UpdatePolicy

    Update policy of the device group.

    catalogName string

    Name of catalog

    productName string

    Name of product.

    resourceGroupName string

    The name of the resource group. The name is case insensitive.

    allowCrashDumpsCollection string | AllowCrashDumpCollection

    Flag to define if the user allows for crash dump collection.

    description string

    Description of the device group.

    deviceGroupName string

    Name of device group.

    osFeedType string | OSFeedType

    Operating system feed type of the device group.

    regionalDataBoundary string | RegionalDataBoundary

    Regional data boundary for the device group.

    updatePolicy string | UpdatePolicy

    Update policy of the device group.

    catalog_name str

    Name of catalog

    product_name str

    Name of product.

    resource_group_name str

    The name of the resource group. The name is case insensitive.

    allow_crash_dumps_collection str | AllowCrashDumpCollection

    Flag to define if the user allows for crash dump collection.

    description str

    Description of the device group.

    device_group_name str

    Name of device group.

    os_feed_type str | OSFeedType

    Operating system feed type of the device group.

    regional_data_boundary str | RegionalDataBoundary

    Regional data boundary for the device group.

    update_policy str | UpdatePolicy

    Update policy of the device group.

    catalogName String

    Name of catalog

    productName String

    Name of product.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    allowCrashDumpsCollection String | "Enabled" | "Disabled"

    Flag to define if the user allows for crash dump collection.

    description String

    Description of the device group.

    deviceGroupName String

    Name of device group.

    osFeedType String | "Retail" | "RetailEval"

    Operating system feed type of the device group.

    regionalDataBoundary String | "None" | "EU"

    Regional data boundary for the device group.

    updatePolicy String | "UpdateAll" | "No3rdPartyAppUpdates"

    Update policy of the device group.

    Outputs

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

    HasDeployment bool

    Deployment status for the device group.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the resource

    ProvisioningState string

    The status of the last operation.

    SystemData Pulumi.AzureNative.AzureSphere.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"

    HasDeployment bool

    Deployment status for the device group.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the resource

    ProvisioningState string

    The status of the last operation.

    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"

    hasDeployment Boolean

    Deployment status for the device group.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the resource

    provisioningState String

    The status of the last operation.

    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"

    hasDeployment boolean

    Deployment status for the device group.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    The name of the resource

    provisioningState string

    The status of the last operation.

    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"

    has_deployment bool

    Deployment status for the device group.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    The name of the resource

    provisioning_state str

    The status of the last operation.

    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"

    hasDeployment Boolean

    Deployment status for the device group.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the resource

    provisioningState String

    The status of the last operation.

    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

    AllowCrashDumpCollection, AllowCrashDumpCollectionArgs

    Enabled
    Enabled

    Crash dump collection enabled

    Disabled
    Disabled

    Crash dump collection disabled

    AllowCrashDumpCollectionEnabled
    Enabled

    Crash dump collection enabled

    AllowCrashDumpCollectionDisabled
    Disabled

    Crash dump collection disabled

    Enabled
    Enabled

    Crash dump collection enabled

    Disabled
    Disabled

    Crash dump collection disabled

    Enabled
    Enabled

    Crash dump collection enabled

    Disabled
    Disabled

    Crash dump collection disabled

    ENABLED
    Enabled

    Crash dump collection enabled

    DISABLED
    Disabled

    Crash dump collection disabled

    "Enabled"
    Enabled

    Crash dump collection enabled

    "Disabled"
    Disabled

    Crash dump collection disabled

    OSFeedType, OSFeedTypeArgs

    Retail
    Retail

    Retail OS feed type.

    RetailEval
    RetailEval

    Retail evaluation OS feed type.

    OSFeedTypeRetail
    Retail

    Retail OS feed type.

    OSFeedTypeRetailEval
    RetailEval

    Retail evaluation OS feed type.

    Retail
    Retail

    Retail OS feed type.

    RetailEval
    RetailEval

    Retail evaluation OS feed type.

    Retail
    Retail

    Retail OS feed type.

    RetailEval
    RetailEval

    Retail evaluation OS feed type.

    RETAIL
    Retail

    Retail OS feed type.

    RETAIL_EVAL
    RetailEval

    Retail evaluation OS feed type.

    "Retail"
    Retail

    Retail OS feed type.

    "RetailEval"
    RetailEval

    Retail evaluation OS feed type.

    RegionalDataBoundary, RegionalDataBoundaryArgs

    None
    None

    No data boundary

    EU
    EU

    EU data boundary

    RegionalDataBoundaryNone
    None

    No data boundary

    RegionalDataBoundaryEU
    EU

    EU data boundary

    None
    None

    No data boundary

    EU
    EU

    EU data boundary

    None
    None

    No data boundary

    EU
    EU

    EU data boundary

    NONE
    None

    No data boundary

    EU
    EU

    EU data boundary

    "None"
    None

    No data boundary

    "EU"
    EU

    EU data boundary

    SystemDataResponse, SystemDataResponseArgs

    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.

    UpdatePolicy, UpdatePolicyArgs

    UpdateAll
    UpdateAll

    Update all policy.

    No3rdPartyAppUpdates
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    UpdatePolicyUpdateAll
    UpdateAll

    Update all policy.

    UpdatePolicyNo3rdPartyAppUpdates
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    UpdateAll
    UpdateAll

    Update all policy.

    No3rdPartyAppUpdates
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    UpdateAll
    UpdateAll

    Update all policy.

    No3rdPartyAppUpdates
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    UPDATE_ALL
    UpdateAll

    Update all policy.

    NO3RD_PARTY_APP_UPDATES
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    "UpdateAll"
    UpdateAll

    Update all policy.

    "No3rdPartyAppUpdates"
    No3rdPartyAppUpdates

    No update for 3rd party app policy.

    Import

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

    $ pulumi import azure-native:azuresphere:DeviceGroup MyDeviceId1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName} 
    

    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.8.0 published on Monday, Sep 18, 2023 by Pulumi