New-AzIoTDeviceProvisioningService
Een Azure IoT Hub-apparaatinrichtingsservice maken.
Syntaxis
New-AzIoTDeviceProvisioningService
[-ResourceGroupName] <String>
[-Name] <String>
[-Location <String>]
[-AllocationPolicy <String>]
[-SkuName <String>]
[-Tag <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Zie https://learn.microsoft.com/azure/iot-dps/about-iot-dpsvoor een inleiding tot Azure IoT Hub Device Provisioning Service.
Voorbeelden
Voorbeeld 1
$tags = @{}
$tags.Add('key1','value1')
New-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup" -Name "myiotdps" -Tag $tags
ResourceGroupName : myresourcegroup
Name : myiotdps
Location : westus
Type : Microsoft.Devices/provisioningServices
ServiceOperationsHostName : myiotdps.azure-devices-provisioning.net
IotHubs : 0
State : Active
AllocationPolicy : Hashed
Tags : {[key1, value1]}
SkuName : S1
SkuTier : Standard
Etag : AAAAAAAT52k=
Maak een Azure IoT Hub-apparaatinrichtingsservice met de standaardprijscategorie S1 en tags in de regio van de resourcegroep.
Voorbeeld 2
New-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup" -Name "myiotdps" -Location "eastus"
ResourceGroupName : myresourcegroup
Name : myiotdps
Location : eastus
Type : Microsoft.Devices/provisioningServices
ServiceOperationsHostName : myiotdps.azure-devices-provisioning.net
IotHubs : 0
State : Active
AllocationPolicy : Hashed
Tags : {}
SkuName : S1
SkuTier : Standard
Etag : AAAAAAAPoOk=
Maak een Azure IoT Hub-apparaatinrichtingsservice met de standaardprijscategorie S1 in de regio Eastus.
Parameters
-AllocationPolicy
Toewijzingsbeleid voor IoT Device Provisioning Service
Type: | String |
Geaccepteerde waarden: | Hashed, GeoLatency, Static |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Location
Plaats
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
Naam van de IoT Device Provisioning Service
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
Naam van de resourcegroep
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SkuName
Sku
Type: | String |
Geaccepteerde waarden: | S1 |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Tag
IoT Device Provisioning Service-exemplaartags. Eigenschapsverzameling in sleutel-waardeparen in de vorm van een hash-tabel.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
None
Uitvoerwaarden
Azure PowerShell