Quantcast
Viewing all articles
Browse latest Browse all 2770

VMM 2019 - Create or Update Run As Account Failure: The specified directory service attribute or value does not exist

Hello all,

I have exact the same issue as the one stated here: https://social.technet.microsoft.com/Forums/en-US/7c320856-dc53-4276-84eb-bb5aee99b3f7/vmm-2012-r2-create-or-update-run-as-account-failure-the-specified-directory-service-attribute-or?forum=virtualmachinemanager, only we have a SCVMM 2019 environment (10.19.1013.0).

When creating a new Run As Account (in GUI as well as via powershell) this error is shown (with or without Validate domain credentials checkbox ticked):

Image may be NSFW.
Clik here to view.

The report.txt error log shows this:

EventType=VMM20
P1(appName)=vmmservice.exe
P2(appVersion)=10.19.1013.0
P3(assemblyName)=Microsoft.Cryptography.DKM.dll
P4(assemblyVer)=10.19.1013.0
P5(methodName)=Microsoft.Incubation.Crypto.GroupKeys.ADRepository.EnumerateKeys
P6(exceptionType)=System.Runtime.InteropServices.COMException
P7(callstackHash)=d0d2

SCVMM Version=10.19.1013.0
SCVMM flavor=C-buddy-RTL-AMD64
Default Assembly Version=10.19.1013.0
Executable Name=vmmservice.exe
Executable Version=10.19.1013.0
Base Exception Target Site=140723511941992
Base Exception Assembly name=System.DirectoryServices.dll
Base Exception Method Name=System.DirectoryServices.DirectoryEntry.Bind
Exception Message=The specified directory service attribute or value does not exist.

EIP=0x00007ffd06219129
Build bit-size=64


----------------------------------------------------
------------ exceptionObject.ToString() ------------
----------------------------------------------------
System.Runtime.InteropServices.COMException (0x8007200A): The specified directory service attribute or value does not exist.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_IsContainer()
   at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)
   at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.EnumerateKeys()
   at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.FindNewestKey()
   at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.GetCurrentKeyAndUpdate(KeyPolicy& keyPolicy)
   at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Protect(MemoryStream plaintext)
   at Microsoft.VirtualManager.Engine.DKMUtil.Protect(Byte[] data)
   at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(Char[] data)
   at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(SecureString data)
   at Microsoft.VirtualManager.DB.RunAs.RunAsDBAccess.UpsertRunAsAccount(RunAsAccountData data, Boolean isAdd, Boolean setCredential, IVmmDbTransaction tx)
   at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.AddOrUpdateObjectInDB(Boolean setCredential, IVmmDbTransaction tx)
   at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.UpdateDB(Boolean audit, Boolean setCredential, IVmmDbTransaction tx)
   at Microsoft.VirtualManager.Engine.AuthorizationManager.NewRunAsAccountTask.<>c__DisplayClass6.<RunSubtask>b__1(IVmmDbTransaction _tx)
   at Microsoft.VirtualManager.DB.SqlContext.Transact(CallSite callSite, String connectionString, WindowsIdentity identity, Action`1 action)
   at Microsoft.VirtualManager.DB.TransactableDbContext.Microsoft.VirtualManager.DB.IVmmDbConnection.Transact(Action`1 action)
   at Microsoft.VirtualManager.Engine.AuthorizationManager.NewRunAsAccountTask.RunSubtask(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.TaskRepository.SubtaskBase.Run(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.DB.SqlContext.Connect(Action`1 action)
   at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)


----------------------------------------------------
------------------- Scope Trace --------------------
----------------------------------------------------
[s#f93] RunAsAccount.UpdateDB(this: (RunAsAccount#[163]) { objLock = (CarmineObjectLock#[13]) { lockType = Delete, objectID = 9d456d93-52b3-4573-9504-c368220e0d8f, objectType = RunAsAccount, taskID = afb62017-a94a-43c9-abe2-ac25cc0e5f6f } }, audit: (Boolean#1) True, setCredential: (Boolean#1) True, tx: (VmmDbTransaction#[40]) { startTime: (DateTime#d279c6a5) 8/26/2019 11:02:15 AM sqlContext: (SqlContext#[181]) { [rw] NewRunAsAccountTask.RunSubtasktx = (SqlTransaction#3abe41c) System.Data.SqlClient.SqlTransaction, currentTxRecord = (SqlTransactionRecord#[27]), constructionIdentity = (WindowsIdentity#3433f97) System.Security.Principal.WindowsIdentity commandList: ∅ txRecordList: { n=1  { tx#39 NewRunAsAccountTask.RunSubtask() +00:00:00.0616222 ReadCommitted commands: ∅ } } , conn = (SqlConnection#1c52f34) { State: Open Database: <DB-Name> DataSource: <DB Always On logical name> PacketSize: 8000 ServerVersion: 14.00.3162 StatisticsEnabled: False WorkstationId: <VMM server cluster name> } } }) in s:\btvsts\25562\private\product\engine\RunAs\RunAsAccount.cs:line 378
[s#f82] Task`1.SubtaskRun(this: (Task`1<NewRunAsAccountTask>#[1]) { TBD }, TaskID: (guid) afb62017-a94a-43c9-abe2-ac25cc0e5f6f) in s:\btvsts\25562\private\product\engine\TaskRepository\Task.cs:line 254
[s#10] SqlRetryCommand.ExecuteScalar(this: (SqlRetryCommand#[10]) { cmd = (SqlCommand#1ff5f95) System.Data.SqlClient.SqlCommand, errorTitle = (string) "errorTitle", sqlContext = (SqlContext#[5]) { [rw] SqlContext.ConnectconstructionIdentity = (WindowsIdentity#1e2a3dc) System.Security.Principal.WindowsIdentity commandList: { n=92 { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=CPUPercentageReserve)", @8/26/2019 11:00:38 AM [+00:00:00.0010020] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=DiskIOPercentageReserve)", @8/26/2019 11:00:38 AM [+00:00:00.0010000] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=NetworkPercentageReserve)", @8/26/2019 11:00:38 AM [+00:00:00.0009997] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=DiskSpaceReserveMB)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MemoryReserveMB)", @8/26/2019 11:00:38 AM [+00:00:00.0010005] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=OperationsManagerServer)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=PlacementGoal)", @8/26/2019 11:00:38 AM [+00:00:00.0009986] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MemoryPriority)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=DiskIOPriority)", @8/26/2019 11:00:38 AM [+00:00:00.0010001] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=CPUPriority)", @8/26/2019 11:00:38 AM [+00:00:00.0009996] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=NetworkPriority)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=CEIPOptIn)", @8/26/2019 11:00:38 AM [+00:00:00.0010025] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=LibraryRefresherEnabled)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=LibraryRefresherFrequency)", @8/26/2019 11:00:38 AM [+00:00:00.0009996] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMRCAccessAccount)", @8/26/2019 11:00:38 AM [+00:00:00.0010022] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMRCDefaultPort)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectDefaultPort)", @8/26/2019 11:00:38 AM [+00:00:00.0009967] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MinimumSupportedAgentVersion)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MinimumSupportedGuestAgentVersion)", @8/26/2019 11:00:38 AM [+00:00:00.0010009] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MinimumSupportedHostAgentFunctionalLevel)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MACAddressRangeStart)", @8/26/2019 11:00:38 AM [+00:00:00.0009995] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=MACAddressRangeEnd)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMSubnetIDRangeStart)", @8/26/2019 11:00:38 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMSubnetIDRangeEnd)", @8/26/2019 11:00:38 AM [+00:00:00.0009991] }, { Q:"dbo.prc_VMM_GetVmmServerAgentIDAll()", @8/26/2019 11:00:38 AM [+00:00:00.0010002] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=UpgradeTime)", @8/26/2019 11:00:38 AM [+00:00:00.0010001] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=DKMEnabled)", @8/26/2019 11:00:38 AM [+00:00:00.0010004] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=TopContainerName)", @8/26/2019 11:00:38 AM [+00:00:00.0009997] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=ContainerName)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=AutomaticVirtualNetworkCreationEnabled)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=AutomaticLogicalNetworkCreationEnabled)", @8/26/2019 11:00:39 AM [+00:00:00.0009985] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=LogicalNetworkMatchOption)", @8/26/2019 11:00:39 AM [+00:00:00.0010000] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=LogicalNetworkMatchOptionBackup)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=ProductID)", @8/26/2019 11:00:39 AM [+00:00:00.0009986] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=DatabaseVersion)", @8/26/2019 11:00:39 AM [+00:00:00.0009994] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=QFEDatabaseVersion)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=SKUType)", @8/26/2019 11:00:39 AM [+00:00:00.0010010] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectGatewayCertificateID)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectGatewayCertificateThumbprint)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectGatewayCertificateSubject)", @8/26/2019 11:00:39 AM [+00:00:00.0010003] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectHyperVCertificateID)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectHyperVCertificateThumbprint)", @8/26/2019 11:00:39 AM [+00:00:00.0009994] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectHyperVCertificateSubject)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectNCCertificateID)", @8/26/2019 11:00:39 AM [+00:00:00.0009988] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectNCCertificateThumbprint)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectNCCertificateSubject)", @8/26/2019 11:00:39 AM [+00:00:00.0010049] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectTokenTimeToLiveInMinutes)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=VMConnectHostIdentificationMode)", @8/26/2019 11:00:39 AM [+00:00:00.0009959] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=KeyProtectionServerUrl)", @8/26/2019 11:00:39 AM [+00:00:00.0009997] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=AttestationServerUrl)", @8/26/2019 11:00:39 AM [+00:00:00.0009988] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=FallbackKeyProtectionServerUrl)", @8/26/2019 11:00:39 AM }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=FallbackAttestationServerUrl)", @8/26/2019 11:00:39 AM [+00:00:00.0010019] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=GlobalPortACL)", @8/26/2019 11:00:39 AM [+00:00:00.0020000] }, { S:"dbo.prc_VM_GetGlobalProperty(@PropertyName=ShieldingUtilityVhdId)", @8/26/2019 11:00:39 AM [+00:00:00.0009998] }, { Q:"dbo.prc_ADHC_Host_GetRef()", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_HostCluster_GetAll()", @8/26/2019 11:00:39 AM [+00:00:00.0010042] }, { Q:"dbo.prc_ADHC_HostCluster_Get(@ClusterID=812bae6b-cdf5-4d96-8cba-4a5eccb5a228)", @8/26/2019 11:00:39 AM [+00:00:00.0010019] }, { Q:"dbo.prc_ADHC_Host_GetByClusterID(@HostClusterID=812bae6b-cdf5-4d96-8cba-4a5eccb5a228)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_BTBS_CustomPropertyValue_GetCPValIDByObjID(ObjectID=812bae6b-cdf5-4d96-8cba-4a5eccb5a228)", @8/26/2019 11:00:39 AM [+00:00:00.0009986] }, { Q:"dbo.prc_ST_GetStoragePoolIdsByClusterId(@HostClusterID=812bae6b-cdf5-4d96-8cba-4a5eccb5a228)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_BTBS_HostGroupDOSettings_GetByHostGroupID(@HostGroupID=e91c9a14-dcd0-4904-8bea-b7b600b38846)", @8/26/2019 11:00:39 AM [+00:00:00.0010021] }, { Q:"dbo.prc_ADHC_Library_GetAll()", @8/26/2019 11:00:39 AM [+00:00:00.0010001] }, { Q:"dbo.prc_ADHC_AgentServer_Get(@AgentServerID=1ef17bd4-24b5-4ea2-81ee-cd7a16f82832)", @8/26/2019 11:00:39 AM [+00:00:00.0009998] }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetByAgent(@AgentServerID=1ef17bd4-24b5-4ea2-81ee-cd7a16f82832)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetVirtualizationSchemeByLibrary(@LibraryServerID=7d87f2ab-cd04-47a5-9591-19ad58515196)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_Library_GetVMNetworkIdsByLibraryId(@LibraryID=7d87f2ab-cd04-47a5-9591-19ad58515196)", @8/26/2019 11:00:39 AM [+00:00:00.0009966] }, { Q:"dbo.prc_RBS_GetRunAsAccountConsumer(RunAsAccountID=, ObjectID=7d87f2ab-cd04-47a5-9591-19ad58515196)", @8/26/2019 11:00:39 AM [+00:00:00.0009975] }, { Q:"dbo.prc_ADHC_AgentServer_Get(@AgentServerID=5e97cd0e-c0a3-446d-8cb2-2a6d64368b85)", @8/26/2019 11:00:39 AM [+00:00:00.0009985] }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetByAgent(@AgentServerID=5e97cd0e-c0a3-446d-8cb2-2a6d64368b85)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetVirtualizationSchemeByLibrary(@LibraryServerID=61bfe340-8b85-4877-af3a-b219eda187ab)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_Library_GetVMNetworkIdsByLibraryId(@LibraryID=61bfe340-8b85-4877-af3a-b219eda187ab)", @8/26/2019 11:00:39 AM [+00:00:00.0010005] }, { Q:"dbo.prc_NetMan_VMNetwork_GetByID(@ID=1b89c211-3ec2-4268-bfd9-3f3ef5d87194)", @8/26/2019 11:00:39 AM [+00:00:00.0009996] }, { Q:"dbo.prc_RBS_GetRunAsAccountConsumer(RunAsAccountID=, ObjectID=61bfe340-8b85-4877-af3a-b219eda187ab)", @8/26/2019 11:00:39 AM [+00:00:00.0009960] }, { Q:"dbo.prc_ADHC_AgentServer_Get(@AgentServerID=ce909051-2789-4fa5-84ce-3ca55a30a31d)", @8/26/2019 11:00:39 AM [+00:00:00.0010032] }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetByAgent(@AgentServerID=ce909051-2789-4fa5-84ce-3ca55a30a31d)", @8/26/2019 11:00:39 AM [+00:00:00.0009963] }, { Q:"dbo.prc_ADHC_AgentServerRelation_GetVirtualizationSchemeByLibrary(@LibraryServerID=2faf9e22-25a3-477d-a340-fba63125108d)", @8/26/2019 11:00:39 AM }, { Q:"dbo.prc_ADHC_Library_GetVMNetworkIdsByLibraryId(@LibraryID=2faf9e22-25a3-477d-a340-fba63125108d)", @8/26/2019 11:00:39 AM [+00:00:00.0010020] }, { Q:"dbo.prc_RBS_GetRunAsAccountConsumer(RunAsAccountID=, ObjectID=2faf9e22-25a3-477d-a340-fba63125108d)", @8/26/2019 11:00:39 AM [+00:00:00.0009989] }, { Q:"dbo.prc_ST_GetAllStorageProviders()", @8/26/2019 11:00:39 AM [+00:00:00.0009999] }, { Q:"dbo.prc_ST_GetAllStorageProviders()", @8/26/2019 11:00:39 AM [+00:00:00.0009999] }, { Q:"dbo.prc_WLC_GetAllServiceInstances()", @8/26/2019 11:00:39 AM [+00:00:00.0010008] }, { Q:"dbo.prc_WLC_GetAllServiceTemplateIDs()", @8/26/2019 11:00:39 AM [+00:00:00.1389599] }, { Q:"dbo.prc_NetMan_NetworkService_GetAllInstances()", @8/26/2019 11:00:39 AM [+00:00:00.0050000] }, { Q:"dbo.prc_NetMan_NetworkServiceConnection_GetByNetworkServiceId(NetworkServiceId=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0030029] }, { Q:"dbo.prc_NetMan_NetworkServiceHostGroup_GetAll(NetworkServiceId=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0040054] }, { Q:"dbo.prc_NetMan_HardwareModelSettings_GetInstance(ID=ecac71a5-f683-43f6-ba44-d36a55bd7760)", @8/26/2019 11:00:39 AM [+00:00:00.0010086] }, { Q:"dbo.prc_NetMan_GetNetworkServiceLoadBalancer(ID=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0020032] }, { Q:"dbo.prc_NetMan_GetNetworkServiceNetworkGateway(ID=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0059948] }, { Q:"dbo.prc_RBS_GetRunAsAccountConsumer(RunAsAccountID=, ObjectID=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0041596] }, { Q:"dbo.prc_NetMan_GetNetworkServiceVSEM(ID=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0040110] }, { Q:"dbo.prc_NetMan_NetworkSwitchPort_GetAllIdsByNetworkSwitch(NetworkSwitchId=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0010011] }, { Q:"dbo.prc_NetMan_FabricRole_GetByNetworkServiceID(NetworkServiceId=ff26876f-4aa5-4fe8-9111-52c83a370206)", @8/26/2019 11:00:39 AM [+00:00:00.0020059] } } , conn = (SqlConnection#14c3e3d) { State: Closed } }, behavior = Default, failFast = (bool) False }, expectedDuration: (TimeSpan#23c34600) 00:01:00, enablePerfLogging: (Boolean#1) True) in s:\btvsts\25562\private\product\common\Utils\Db\SqlRetryCommand_pp.cs:line 442


---

The original (2012 R2 related) question was never answered. Can someone please help me finding a (starting point to find the) solution?

Regards,

Stephan


You know you're an engineer when you have no life and can prove it mathematically


Viewing all articles
Browse latest Browse all 2770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>