|
| 1 | +--- |
| 2 | +external help file: |
| 3 | +Module Name: Az.WindowsIotServices |
| 4 | +online version: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesdevice |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# Get-AzWindowsIotServicesDevice |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | +Get the non-security related metadata of a Windows IoT Device Service. |
| 12 | + |
| 13 | +## SYNTAX |
| 14 | + |
| 15 | +### List1 (Default) |
| 16 | +``` |
| 17 | +Get-AzWindowsIotServicesDevice [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 18 | +``` |
| 19 | + |
| 20 | +### Get |
| 21 | +``` |
| 22 | +Get-AzWindowsIotServicesDevice -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>] |
| 23 | + [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 24 | +``` |
| 25 | + |
| 26 | +### GetViaIdentity |
| 27 | +``` |
| 28 | +Get-AzWindowsIotServicesDevice -InputObject <IWindowsIotServicesIdentity> [-DefaultProfile <PSObject>] |
| 29 | + [<CommonParameters>] |
| 30 | +``` |
| 31 | + |
| 32 | +### List |
| 33 | +``` |
| 34 | +Get-AzWindowsIotServicesDevice -ResourceGroupName <String> [-SubscriptionId <String[]>] |
| 35 | + [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 36 | +``` |
| 37 | + |
| 38 | +## DESCRIPTION |
| 39 | +Get the non-security related metadata of a Windows IoT Device Service. |
| 40 | + |
| 41 | +## EXAMPLES |
| 42 | + |
| 43 | +### Example 1: Get all Windows IoT services under a subscription |
| 44 | +```powershell |
| 45 | +PS C:\> Get-AzWindowsIotServicesDevice |
| 46 | +
|
| 47 | +Location Name Type Etag |
| 48 | +-------- ---- ---- ---- |
| 49 | +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" |
| 50 | +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" |
| 51 | +``` |
| 52 | + |
| 53 | +This command gets all Windows IoT services under a subscription. |
| 54 | + |
| 55 | +### Example 2: Get all Windows IoT services under a resource group |
| 56 | +```powershell |
| 57 | +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test |
| 58 | +
|
| 59 | +Location Name Type Etag |
| 60 | +-------- ---- ---- ---- |
| 61 | +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" |
| 62 | +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" |
| 63 | +``` |
| 64 | + |
| 65 | +This command gets all Windows IoT services under a resource group. |
| 66 | + |
| 67 | +### Example 3: Get a Windows IoT service by name |
| 68 | +```powershell |
| 69 | +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 |
| 70 | +
|
| 71 | +Location Name Type Etag |
| 72 | +-------- ---- ---- ---- |
| 73 | +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" |
| 74 | +``` |
| 75 | + |
| 76 | +This command gets a Windows IoT service by name. |
| 77 | + |
| 78 | +### Example 4: Get a Windows IoT service by object |
| 79 | +```powershell |
| 80 | +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' |
| 81 | +PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi |
| 82 | +
|
| 83 | +Location Name Type Etag |
| 84 | +-------- ---- ---- ---- |
| 85 | +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" |
| 86 | +``` |
| 87 | + |
| 88 | +This command gets a Windows IoT service by object. |
| 89 | + |
| 90 | +### Example 4: Get a Windows IoT service by pipeline |
| 91 | +```powershell |
| 92 | +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice |
| 93 | +
|
| 94 | +Location Name Type Etag |
| 95 | +-------- ---- ---- ---- |
| 96 | +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" |
| 97 | +``` |
| 98 | + |
| 99 | +This command gets a Windows IoT service by pipeline. |
| 100 | + |
| 101 | +## PARAMETERS |
| 102 | + |
| 103 | +### -DefaultProfile |
| 104 | +The credentials, account, tenant, and subscription used for communication with Azure. |
| 105 | + |
| 106 | +```yaml |
| 107 | +Type: System.Management.Automation.PSObject |
| 108 | +Parameter Sets: (All) |
| 109 | +Aliases: AzureRMContext, AzureCredential |
| 110 | + |
| 111 | +Required: False |
| 112 | +Position: Named |
| 113 | +Default value: None |
| 114 | +Accept pipeline input: False |
| 115 | +Accept wildcard characters: False |
| 116 | +``` |
| 117 | +
|
| 118 | +### -InputObject |
| 119 | +Identity Parameter |
| 120 | +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. |
| 121 | +
|
| 122 | +```yaml |
| 123 | +Type: Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity |
| 124 | +Parameter Sets: GetViaIdentity |
| 125 | +Aliases: |
| 126 | + |
| 127 | +Required: True |
| 128 | +Position: Named |
| 129 | +Default value: None |
| 130 | +Accept pipeline input: True (ByValue) |
| 131 | +Accept wildcard characters: False |
| 132 | +``` |
| 133 | +
|
| 134 | +### -Name |
| 135 | +The name of the Windows IoT Device Service. |
| 136 | +
|
| 137 | +```yaml |
| 138 | +Type: System.String |
| 139 | +Parameter Sets: Get |
| 140 | +Aliases: |
| 141 | + |
| 142 | +Required: True |
| 143 | +Position: Named |
| 144 | +Default value: None |
| 145 | +Accept pipeline input: False |
| 146 | +Accept wildcard characters: False |
| 147 | +``` |
| 148 | +
|
| 149 | +### -ResourceGroupName |
| 150 | +The name of the resource group that contains the Windows IoT Device Service. |
| 151 | +
|
| 152 | +```yaml |
| 153 | +Type: System.String |
| 154 | +Parameter Sets: Get, List |
| 155 | +Aliases: |
| 156 | + |
| 157 | +Required: True |
| 158 | +Position: Named |
| 159 | +Default value: None |
| 160 | +Accept pipeline input: False |
| 161 | +Accept wildcard characters: False |
| 162 | +``` |
| 163 | +
|
| 164 | +### -SubscriptionId |
| 165 | +The subscription identifier. |
| 166 | +
|
| 167 | +```yaml |
| 168 | +Type: System.String[] |
| 169 | +Parameter Sets: Get, List, List1 |
| 170 | +Aliases: |
| 171 | + |
| 172 | +Required: False |
| 173 | +Position: Named |
| 174 | +Default value: (Get-AzContext).Subscription.Id |
| 175 | +Accept pipeline input: False |
| 176 | +Accept wildcard characters: False |
| 177 | +``` |
| 178 | +
|
| 179 | +### CommonParameters |
| 180 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 181 | +
|
| 182 | +## INPUTS |
| 183 | +
|
| 184 | +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity |
| 185 | +
|
| 186 | +## OUTPUTS |
| 187 | +
|
| 188 | +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService |
| 189 | +
|
| 190 | +## NOTES |
| 191 | +
|
| 192 | +ALIASES |
| 193 | +
|
| 194 | +COMPLEX PARAMETER PROPERTIES |
| 195 | +
|
| 196 | +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. |
| 197 | +
|
| 198 | +
|
| 199 | +INPUTOBJECT <IWindowsIotServicesIdentity>: Identity Parameter |
| 200 | + - `[DeviceName <String>]`: The name of the Windows IoT Device Service. |
| 201 | + - `[Id <String>]`: Resource identity path |
| 202 | + - `[ResourceGroupName <String>]`: The name of the resource group that contains the Windows IoT Device Service. |
| 203 | + - `[SubscriptionId <String>]`: The subscription identifier. |
| 204 | + |
| 205 | +## RELATED LINKS |
| 206 | + |
0 commit comments