azure-native.azuresphere.DeviceGroup
Explore with Pulumi AI
An device group resource belonging to a product resource. API Version: 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 (
azuresphere "github.com/pulumi/pulumi-azure-native-sdk/azuresphere"
"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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeviceGroup(name: string, args: DeviceGroupArgs, opts?: CustomResourceOptions);
@overload
def DeviceGroup(resource_name: str,
args: DeviceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DeviceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_name: Optional[str] = None,
product_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
allow_crash_dumps_collection: Optional[Union[str, AllowCrashDumpCollection]] = None,
description: Optional[str] = None,
device_group_name: Optional[str] = None,
os_feed_type: Optional[Union[str, OSFeedType]] = None,
regional_data_boundary: Optional[Union[str, RegionalDataBoundary]] = None,
update_policy: Optional[Union[str, UpdatePolicy]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var deviceGroupResource = new AzureNative.Azuresphere.DeviceGroup("deviceGroupResource", new()
{
CatalogName = "string",
ProductName = "string",
ResourceGroupName = "string",
AllowCrashDumpsCollection = "string",
Description = "string",
DeviceGroupName = "string",
OsFeedType = "string",
RegionalDataBoundary = "string",
UpdatePolicy = "string",
});
example, err := azuresphere.NewDeviceGroup(ctx, "deviceGroupResource", &azuresphere.DeviceGroupArgs{
CatalogName: "string",
ProductName: "string",
ResourceGroupName: "string",
AllowCrashDumpsCollection: "string",
Description: "string",
DeviceGroupName: "string",
OsFeedType: "string",
RegionalDataBoundary: "string",
UpdatePolicy: "string",
})
var deviceGroupResource = new DeviceGroup("deviceGroupResource", DeviceGroupArgs.builder()
.catalogName("string")
.productName("string")
.resourceGroupName("string")
.allowCrashDumpsCollection("string")
.description("string")
.deviceGroupName("string")
.osFeedType("string")
.regionalDataBoundary("string")
.updatePolicy("string")
.build());
device_group_resource = azure_native.azuresphere.DeviceGroup("deviceGroupResource",
catalog_name=string,
product_name=string,
resource_group_name=string,
allow_crash_dumps_collection=string,
description=string,
device_group_name=string,
os_feed_type=string,
regional_data_boundary=string,
update_policy=string)
const deviceGroupResource = new azure_native.azuresphere.DeviceGroup("deviceGroupResource", {
catalogName: "string",
productName: "string",
resourceGroupName: "string",
allowCrashDumpsCollection: "string",
description: "string",
deviceGroupName: "string",
osFeedType: "string",
regionalDataBoundary: "string",
updatePolicy: "string",
});
type: azure-native:azuresphere:DeviceGroup
properties:
allowCrashDumpsCollection: string
catalogName: string
description: string
deviceGroupName: string
osFeedType: string
productName: string
regionalDataBoundary: string
resourceGroupName: string
updatePolicy: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DeviceGroup resource accepts the following input properties:
- Catalog
Name string - Name of catalog
- Product
Name string - Name of product.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Allow
Crash string | Pulumi.Dumps Collection Azure Native. Azure Sphere. Allow Crash Dump Collection - Flag to define if the user allows for crash dump collection.
- Description string
- Description of the device group.
- Device
Group stringName - Name of device group.
- Os
Feed string | Pulumi.Type Azure Native. Azure Sphere. OSFeed Type - Operating system feed type of the device group.
- Regional
Data string | Pulumi.Boundary Azure Native. Azure Sphere. Regional Data Boundary - Regional data boundary for the device group.
- Update
Policy string | Pulumi.Azure Native. Azure Sphere. Update Policy - Update policy of the device group.
- Catalog
Name string - Name of catalog
- Product
Name string - Name of product.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Allow
Crash string | AllowDumps Collection Crash Dump Collection - Flag to define if the user allows for crash dump collection.
- Description string
- Description of the device group.
- Device
Group stringName - Name of device group.
- Os
Feed string | OSFeedType Type - Operating system feed type of the device group.
- Regional
Data string | RegionalBoundary Data Boundary - Regional data boundary for the device group.
- Update
Policy string | UpdatePolicy - Update policy of the device group.
- catalog
Name String - Name of catalog
- product
Name String - Name of product.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- allow
Crash String | AllowDumps Collection Crash Dump Collection - Flag to define if the user allows for crash dump collection.
- description String
- Description of the device group.
- device
Group StringName - Name of device group.
- os
Feed String | OSFeedType Type - Operating system feed type of the device group.
- regional
Data String | RegionalBoundary Data Boundary - Regional data boundary for the device group.
- update
Policy String | UpdatePolicy - Update policy of the device group.
- catalog
Name string - Name of catalog
- product
Name string - Name of product.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- allow
Crash string | AllowDumps Collection Crash Dump Collection - Flag to define if the user allows for crash dump collection.
- description string
- Description of the device group.
- device
Group stringName - Name of device group.
- os
Feed string | OSFeedType Type - Operating system feed type of the device group.
- regional
Data string | RegionalBoundary Data Boundary - Regional data boundary for the device group.
- update
Policy string | UpdatePolicy - Update policy of the device group.
- catalog_
name str - Name of catalog
- product_
name str - Name of product.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- allow_
crash_ str | Allowdumps_ collection Crash Dump Collection - Flag to define if the user allows for crash dump collection.
- description str
- Description of the device group.
- device_
group_ strname - Name of device group.
- os_
feed_ str | OSFeedtype Type - Operating system feed type of the device group.
- regional_
data_ str | Regionalboundary Data Boundary - Regional data boundary for the device group.
- update_
policy str | UpdatePolicy - Update policy of the device group.
- catalog
Name String - Name of catalog
- product
Name String - Name of product.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- allow
Crash String | "Enabled" | "Disabled"Dumps Collection - Flag to define if the user allows for crash dump collection.
- description String
- Description of the device group.
- device
Group StringName - Name of device group.
- os
Feed String | "Retail" | "RetailType Eval" - Operating system feed type of the device group.
- regional
Data String | "None" | "EU"Boundary - Regional data boundary for the device group.
- update
Policy String | "UpdateAll" | "No3rd Party App Updates" - 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:
- Has
Deployment 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
- Provisioning
State string - The status of the last operation.
- System
Data Pulumi.Azure Native. Azure Sphere. 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"
- Has
Deployment 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
- Provisioning
State string - The status of the last operation.
- 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"
- has
Deployment 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
- provisioning
State String - The status of the last operation.
- 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"
- has
Deployment 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
- provisioning
State string - The status of the last operation.
- 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"
- 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 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"
- has
Deployment 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
- provisioning
State String - The status of the last operation.
- 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
AllowCrashDumpCollection, AllowCrashDumpCollectionArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Allow
Crash Dump Collection Enabled - Enabled
- Allow
Crash Dump Collection Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
OSFeedType, OSFeedTypeArgs
- Retail
- Retail
- Retail
Eval - RetailEval
- OSFeed
Type Retail - Retail
- OSFeed
Type Retail Eval - RetailEval
- Retail
- Retail
- Retail
Eval - RetailEval
- Retail
- Retail
- Retail
Eval - RetailEval
- RETAIL
- Retail
- RETAIL_EVAL
- RetailEval
- "Retail"
- Retail
- "Retail
Eval" - RetailEval
RegionalDataBoundary, RegionalDataBoundaryArgs
- None
- None
- EU
- EU
- Regional
Data Boundary None - None
- Regional
Data Boundary EU - EU
- None
- None
- EU
- EU
- None
- None
- EU
- EU
- NONE
- None
- EU
- EU
- "None"
- None
- "EU"
- EU
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.
UpdatePolicy, UpdatePolicyArgs
- Update
All - UpdateAll
- No3rd
Party App Updates - No3rdPartyAppUpdates
- Update
Policy Update All - UpdateAll
- Update
Policy No3rd Party App Updates - No3rdPartyAppUpdates
- Update
All - UpdateAll
- No3rd
Party App Updates - No3rdPartyAppUpdates
- Update
All - UpdateAll
- No3rd
Party App Updates - No3rdPartyAppUpdates
- UPDATE_ALL
- UpdateAll
- NO3RD_PARTY_APP_UPDATES
- No3rdPartyAppUpdates
- "Update
All" - UpdateAll
- "No3rd
Party App Updates" - No3rdPartyAppUpdates
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azuresphere:DeviceGroup MyDeviceId1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup1/providers/Microsoft.AzureSphere/catalogs/MyCatalog1/products/myProduct1/deviceGroups/myDeviceGroup1
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