< Back

New-AzureRmIotHubExportDevices

Tue Jan 29, 2019 9:49 pm

NAME New-AzureRmIotHubExportDevices



SYNOPSIS

Creates a new export devices job.





SYNTAX

New-AzureRmIotHubExportDevices [-ResourceGroupName] <String> [-Name] <String> [-ExportBlobContainerUri] <String> [-DefaultProfile

<IAzureContextContainer>] [-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/docum ... tity-mgmt/ .





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ExportBlobContainerUri <String>

The Uri to export the blob to.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Name of the IotHub



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Microsoft.Azure.Management.IotHub.Models.JobResponse







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ortdevices