Azure证书导出脚本给出错误

时间:2018-05-26 14:13:32

标签: azure certificate ssl-certificate

运行此Microsoft提供的脚本Link to MS Blog Post以将SSL证书导出到PFX文件会在此行上产生此错误。

行:$ certificateProperties = Get-Member -InputObject $ ascResource.Properties.certificates [0] -MemberType NoteProperty

错误:Get-Member:您必须为Get-Member cmdlet指定一个对象。在C:\ Users \ User \ Desktop \ certget.ps1:14 char:24 + ... eProperties = Get-Member -InputObject $ ascResource.Properties.certifica ... + ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:CloseError :(:) [Get-Member],InvalidOperationException + FullyQualifiedErrorId:NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand

其他人遇到此错误并找到解决方法吗?谢谢!

1 个答案:

答案 0 :(得分:0)

我最终遵循了these technet说明,它给了我PFX。