Get-AzWindowsIotServicesDevice
Get the non-security related metadata of a Windows IoT Device Service.
Syntax
Get-AzWindowsIotServicesDevice
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzWindowsIotServicesDevice
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzWindowsIotServicesDevice
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzWindowsIotServicesDevice
-InputObject <IWindowsIotServicesIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Get the non-security related metadata of a Windows IoT Device Service.
Examples
Example 1: Get all Windows IoT services under a subscription
Get-AzWindowsIotServicesDevice
Location Name Type Etag
-------- ---- ---- ----
West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000"
eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000"
This command gets all Windows IoT services under a subscription.
Example 2: Get all Windows IoT services under a resource group
Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test
Location Name Type Etag
-------- ---- ---- ----
West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000"
eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000"
This command gets all Windows IoT services under a resource group.
Example 3: Get a Windows IoT service by name
Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01
Location Name Type Etag
-------- ---- ---- ----
West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000"
This command gets a Windows IoT service by name.
Example 4: Get a Windows IoT service by object
$wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com'
Get-AzWindowsIotServicesDevice -InputObject $wsi
Location Name Type Etag
-------- ---- ---- ----
West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000"
This command gets a Windows IoT service by object.
Example 5: Get a Windows IoT service by pipeline
$wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice
Location Name Type Etag
-------- ---- ---- ----
West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000"
This command gets a Windows IoT service by pipeline.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IWindowsIotServicesIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
The name of the Windows IoT Device Service.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group that contains the Windows IoT Device Service.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The subscription identifier.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |