< Back

Get-AzureRmIotHubCertificateVerificationCode

Tue Jan 29, 2019 9:49 pm

NAME Get-AzureRmIotHubCertificateVerificationCode



SYNOPSIS

Generates a verification code for an Azure IoT Hub certificate.





SYNTAX

Get-AzureRmIotHubCertificateVerificationCode [-ResourceGroupName] <String> [-CertificateName] <String> [-Name] <String> [-Etag] <String>

[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmIotHubCertificateVerificationCode [-ResourceId] <String> [-Etag] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]



Get-AzureRmIotHubCertificateVerificationCode [-InputObject] <PSCertificateDescription> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]





DESCRIPTION

This verification code is used to complete the proof of possession step for a certificate. Use this verification code as the CN of a new

certificate signed with the root certificates private key. For a detailed explanation of CA certificates in Azure IoT Hub, see

https://docs.microsoft.com/en-us/azure/ ... a-overview





PARAMETERS

-CertificateName <String>

Name of the Certificate



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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



-Etag <String>

Etag of the Certificate



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <PSCertificateDescription>

Certificate Object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Name of the Iot Hub



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Name of the Resource Group



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceId <String>

Certificate Resource Id



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

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.Commands.Management.IotHub.Models.PSCertificateWithNonceDescription







NOTES









Example 1



PS C:\\> Get-AzureRmIotHubCertificateVerificationCode -ResourceGroupName "myresourcegroup" -Name "myiothub" -CertificateName "mycertificate" -Etag

"AAAAAAFPazE="



Id : /subscriptions/377cxxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Devices/IotHubs/myiothub/certificates/mycertificate

ResourceGroupName : myresourcegroup

Name : myiothub

CertificateName : mycertificate

Subject : CN=mycertificate

Thumbprint : 38303FC7371EC13DDE3E18D712C8414EE50969C7

VerificationCode : 47292AB6260DB02CCD2D07C601B7303DD49858B6

Status : Unverified

Expiry : 1/01/2027 16:01

Created : 1/01/2017 16:01

Etag : AAAAAAFpObE=



Generates a verification code for MyCertificate







RELATED LINKS

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