Get-AzIotHubCertificateVerificationCode
產生 Azure IoT 中樞 憑證的驗證碼。
語法
Get-AzIotHubCertificateVerificationCode
[-ResourceGroupName] <String>
[-Name] <String>
[-CertificateName] <String>
[-Etag] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubCertificateVerificationCode
[-InputObject] <PSCertificateDescription>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubCertificateVerificationCode
[-ResourceId] <String>
[-Etag] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
此驗證碼可用來完成憑證的擁有證明步驟。 使用此驗證碼作為以跟證書私鑰簽署之新憑證的 CN。 如需 Azure IoT 中樞 中 CA 憑證的詳細說明,請參閱https://learn.microsoft.com/azure/iot-hub/iot-hub-x509ca-overview
範例
範例 1
Get-AzIotHubCertificateVerificationCode -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=
產生 MyCertificate 的驗證碼
參數
-CertificateName
憑證的名稱
類型: | String |
Position: | 2 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Etag
憑證的 Etag
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Certificate 物件
類型: | PSCertificateDescription |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
IoT 中樞的名稱
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceId
憑證資源標識碼
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |