MimSyncMVAttributeType - microsoft/MIMDSC GitHub Wiki
This resource is for MIM Sync MV attribute type.
The DSC resource configuration below validates the MIM Sync configuration by inspecting the XML below. TODO - include screen shots of the MIM Sync UI
This is a sample DSC configuration including just the Import Attribute Flow Rule resource type.
Configuration TestMimSyncMVAttributeType
{
Import-DscResource -ModuleName MimSyncDsc
Node (hostname)
{
MVAttributeType TestMimSyncMVAttributeTypeItem
{
ID = 'Alias'
SingleValue = $true
Indexable = $true
Indexed = $false
Syntax = '1.3.6.1.4.1.1466.115.121.1.15'
Ensure = 'present'
}
}
}
This is the XML exported from the Sync Service, which is what the DSC resource validates.
<mv-data>
<schema>
<dsml:dsml xmlns:dsml="http://www.dsml.org/DSML"
xmlns:ms-dsml="http://www.microsoft.com/MMS/DSML">
<dsml:directory-schema>
<dsml:attribute-type id="Alias" single-value="true" ms-dsml:indexable="true">
<dsml:name>Alias</dsml:name>
<dsml:syntax>1.3.6.1.4.1.1466.115.121.1.15</dsml:syntax>
</dsml:attribute-type>
<dsml:attribute-type id="CustomAttribute1" single-value="true" ms-dsml:indexable="true">
<dsml:name>CustomAttribute1</dsml:name>
<dsml:syntax>1.3.6.1.4.1.1466.115.121.1.15</dsml:syntax>
</dsml:attribute-type>
<dsml:attribute-type id="CustomAttribute2" single-value="true" ms-dsml:indexable="true">
<dsml:name>CustomAttribute2</dsml:name>
<dsml:syntax>1.3.6.1.4.1.1466.115.121.1.15</dsml:syntax>
</dsml:attribute-type>
<dsml:attribute-type id="CustomAttribute3" single-value="true" ms-dsml:indexable="true">
<dsml:name>CustomAttribute3</dsml:name>
<dsml:syntax>1.3.6.1.4.1.1466.115.121.1.15</dsml:syntax>
</dsml:attribute-type>
This is sample log output showing what DSC does with the resource to validate the configuration.
VERBOSE: [CMARTBOOK]: LCM: [ Start Set ]
VERBOSE: [CMARTBOOK]: LCM: [ Start Resource ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem]
VERBOSE: [CMARTBOOK]: LCM: [ Start Test ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem]
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Using CacheLocation: C:\ProgramData\MimSyncDsc\Svrexport
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Using CacheAge: 1440 (in minutes)
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Cache still valid, leave it
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Finding the MV Attribute Type...
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Using XPath: //mv-data/schema/dsml:dsml/dsml:directory-schema/dsml:attribute-type[@id='Alias']
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] MV Attribute Type found, diffing the properties: C:\ProgramData\MimSyncDsc\Svrexport\mv.xml
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Comparing property 'syntax'
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From DSC: 1.3.6.1.4.1.1466.115.121.1.15
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From FIM: 1.3.6.1.4.1.1466.115.121.1.15
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Comparing property 'syntax'
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From DSC: True
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From FIM: True
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Comparing property 'indexable'
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From DSC: True
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From FIM: True
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Comparing property 'indexed'
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From DSC: True
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] From FIM: False
WARNING: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] 'indexed' property is not the same.
VERBOSE: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] Returning: False
VERBOSE: [CMARTBOOK]: LCM: [ End Test ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem] in 0.8340 seconds.
VERBOSE: [CMARTBOOK]: LCM: [ Start Set ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem]
WARNING: [CMARTBOOK]: [[MVAttributeType]TestMimSyncMVAttributeTypeItem] DSC resources for the Synchronization Service are not able to update the Synchronization configuration.
VERBOSE: [CMARTBOOK]: LCM: [ End Set ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem] in 0.0080 seconds.
VERBOSE: [CMARTBOOK]: LCM: [ End Resource ] [[MVAttributeType]TestMimSyncMVAttributeTypeItem]
VERBOSE: [CMARTBOOK]: LCM: [ End Set ]
VERBOSE: [CMARTBOOK]: LCM: [ End Set ] in 1.3260 seconds.