New-​Azure​Rm​Iot​Hub​Export​Devices

Creates a new export devices job.

Syntax

New-AzureRmIotHubExportDevices
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-ExportBlobContainerUri] <String>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Creates a new export devices job for the IotHub. This will export all the devices to the specified container. Refer to the following article on how to generate the SAS URI. https://azure.microsoft.com/en-us/documentation/articles/iot-hub-bulk-identity-mgmt/ .

Examples

Example 1 Issue an export device request.

PS C:\> New-AzureRmIotHubExportDevices -ResourceGroupName "myresourcegroup" -Name "myiothub" -ExportBlobContainerUri "https://mystorageaccount.blob.core.windows.net/?sv=2015-04-05&ss=bfqt&sr=c&srt=sco&sp=rwdl&se=2016-10-27T04:01:48Z&st=2016-10-26T20:01:48Z&spr=https&sig=QqpIhHsIMF8hNuFO%3D" -ExcludeKeys $true

Creates a new export device request for the IotHub "myiothub" excluding the keys.

Required Parameters

-ExportBlobContainerUri

The Uri to export the blob to.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Name of the IotHub

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

Microsoft.Azure.Management.IotHub.Models.JobResponse