Skip to content

MimSyncMVDeletionRule

Craig Martin edited this page Feb 18, 2019 · 1 revision

This resource is for MIM Sync MV deletion rules.

The DSC resource configuration below validates the MIM Sync configuration by inspecting the XML below. TODO - include screen shots of the MIM Sync UI

DSC Configuration

This is a sample DSC configuration including just the Import Attribute Flow Rule resource type.

Configuration TestMimSyncMVDeletionRule 
{ 
    Import-DscResource -ModuleName MimSyncDsc

    Node (hostname) 
    { 
        MVDeletionRule TestMimSyncMVDeletionRule
        {
            MVObjectType = 'SyncObject'
            Type         = 'scripted'
        }
    }
} 

MIM Sync XML

This is the XML exported from the Sync Service, which is what the DSC resource validates.

<mv-data>
    <mv-deletion>
        <mv-deletion-rule mv-object-type="Contact" id="{AC35E2BD-21DE-4C05-B381-1E82AA46A528}" type="declared-any">
            <src-ma>{9C3614F6-F975-4F32-9504-C821CBE36471}</src-ma>
        </mv-deletion-rule>
        <mv-deletion-rule mv-object-type="SyncObject" id="{AFED6EEB-A7A2-4D5B-B24B-1E2892932EFF}" type="scripted" />
    </mv-deletion>
</mv-data>

DSC Verbose Output

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 ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]
VERBOSE: [CMARTBOOK]: LCM:  [ Start  Test     ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] Using CacheLocation: C:\ProgramData\MimSyncDsc\Svrexport
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] Using CacheAge:      1440 (in minutes)
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] Cache still valid, leave it
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] Finding the MV Deletion Rule for MV Object Type 'SyncObject' ...
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule]   Using XPath: //mv-data/mv-deletion/mv-deletion-rule[@mv-object-type='SyncObject']
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] MV Deletion Rules found, diffing the properties...
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule]   Comparing property 'type'
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule]     From DSC: declared
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule]     From FIM: scripted
WARNING: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule]   'type' property is not the same.
VERBOSE: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] Returning: False
VERBOSE: [CMARTBOOK]: LCM:  [ End    Test     ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]  in 0.4410 seconds.
VERBOSE: [CMARTBOOK]: LCM:  [ Start  Set      ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]
WARNING: [CMARTBOOK]:                            [[MVDeletionRule]TestMimSyncMVDeletionRule] DSC resources for the Synchronization Service are not able to update the Synchronization configuration.
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]  in 0.0080 seconds.
VERBOSE: [CMARTBOOK]: LCM:  [ End    Resource ]  [[MVDeletionRule]TestMimSyncMVDeletionRule]
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]
VERBOSE: [CMARTBOOK]: LCM:  [ End    Set      ]    in  0.6720 seconds.