Как включить автоматическую настройку tpm в виртуальной машине 1809 обновления окна Azure 10? - PullRequest
0 голосов
/ 18 апреля 2019

У меня есть виртуальная машина Azure (Windows 10 с обновлением 1809 и размером vm - Standard D2s v3 (2 vcpus, 8 ГБ памяти)), в которой разрабатывается решение для iotedge с сервисом предоставления устройств с использованием TPM. Невозможно выполнить автоматическую инициализацию с помощью команды powershell Enable-TpmAutoProvisioning.

Открыт запуск PowerShell от имени администратора в виртуальной машине Azure (Windows 10, обновление 1809), команда Выполнить-TpmAutoProvisioning в PowerShell

PS C:\Users\dev> Enable-TpmAutoProvisioning

получено сообщение об ошибке, приведенное ниже

TpmPresent                : False
TpmReady                  : False
ManufacturerId            : 0
ManufacturerIdTxt         :
ManufacturerVersion       :
ManufacturerVersionFull20 :
ManagedAuthLevel          : Full
OwnerAuth                 :
OwnerClearDisabled        : True
AutoProvisioning          : NotDefined
LockedOut                 : False
LockoutHealTime           :
LockoutCount              :
LockoutMax                :
SelfTest                  :



PS C:\Users\dev> TpmReady           : False
TpmReady : The term 'TpmReady' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmReady           : False
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmReady:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> TpmPresent         : True
TpmPresent : The term 'TpmPresent' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmPresent         : True
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmPresent:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> ManagedAuthLevel   : Full
ManagedAuthLevel : The term 'ManagedAuthLevel' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ ManagedAuthLevel   : Full
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (ManagedAuthLevel:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> OwnerAuth          : OwnerClearDisabled : True
OwnerAuth : The term 'OwnerAuth' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ OwnerAuth          : OwnerClearDisabled : True
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (OwnerAuth:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> AutoProvisioning   : Enabled
AutoProvisioning : The term 'AutoProvisioning' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ AutoProvisioning   : Enabled
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (AutoProvisioning:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> LockedOut          : False
LockedOut : The term 'LockedOut' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ LockedOut          : False
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (LockedOut:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\dev> SelfTest           : {191, 191, 245, 191...}
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
You must provide a value expression following the '..' operator.
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
Unexpected token '.' in expression or statement.
At line:1 char:43
+ SelfTest           : {191, 191, 245, 191...}
+                                           ~
Missing expression after '.' in pipeline element.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedValueExpression

PS C:\Users\dev>


In Azure virtual machine(Windows 10 update 1809), After running 
PS C:\Users\dev> Enable-TpmAutoProvisioning

output should be
TpmPresent                : True
TpmReady                  : True
ManufacturerId            : 1229346816
ManufacturerIdTxt         : IFX
ManufacturerVersion       : 7.63
ManufacturerVersionFull20 : 7.63.13.6400

ManagedAuthLevel          : Full
OwnerAuth                 :
OwnerClearDisabled        : False
AutoProvisioning          : Enabled
LockedOut                 : False
LockoutHealTime           : 10 minutes
LockoutCount              : 0
LockoutMax                : 31
SelfTest                  : {}

1 Ответ

0 голосов
/ 24 апреля 2019

Сообщения об ошибках не из-за команды Enable-TpmAutoProvisioning. Вы, кажется, вставили дополнительный текст в конце команды. Пожалуйста, убедитесь, что вы правильно выполнили команду.

Например:

PS C:\Users\dev> TpmReady           : False
TpmReady : The term 'TpmReady' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ TpmReady           : False
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (TpmReady:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Вы, кажется, неправильно вставили PS C:\Users\dev> TpmReady : False в окно powershell.

Пожалуйста, просто запустите Enable-TpmAutoProvisioning

...