Skip to content

Commit b7aa7f6

Browse files
committed
adds sample policy set
1 parent 8d6e3a7 commit b7aa7f6

40 files changed

Lines changed: 11251 additions & 0 deletions

File tree

samples/features/epm-framework/sample-policies/Asymmetric Key Encryption Algorithm.xml

Lines changed: 352 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--Copyright (c) Microsoft Corporation.-->
3+
<!--Licensed under the MIT License-->
4+
<model xmlns="smlif.xsd">
5+
<_locDefinition xmlns="urn:locstudio">
6+
<_locDefault _loc="locNone" />
7+
<_locTag _loc="locData">DMF:Name</_locTag>
8+
<_locTag _loc="locData">DMF:Description</_locTag>
9+
<_locTag _loc="locData">DMF:Condition</_locTag>
10+
<_locTag _loc="locData">DMF:ObjectSet</_locTag>
11+
<_locTag _loc="locData">DMF:RootCondition</_locTag>
12+
<_locTag _loc="locData">DMF:PolicyCategory</_locTag>
13+
<_locTag _loc="locData">DMF:HelpText</_locTag>
14+
</_locDefinition>
15+
<identity>
16+
<name>urn:uuid:96fe1236-abf6-4a57-b54d-e9baab394fd1</name>
17+
<baseURI>http://documentcollection/</baseURI>
18+
</identity>
19+
<xs:bufferSchema xmlns:xs="http://www.w3.org/2001/XMLSchema">
20+
<definitions xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08">
21+
<document>
22+
<docinfo>
23+
<aliases>
24+
<alias>/system/schema/DMF</alias>
25+
</aliases>
26+
<sfc:version DomainVersion="3" />
27+
</docinfo>
28+
<data>
29+
<xs:schema targetNamespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
30+
<xs:element name="Policy">
31+
<xs:complexType>
32+
<xs:sequence>
33+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
34+
</xs:sequence>
35+
</xs:complexType>
36+
</xs:element>
37+
<xs:element name="ObjectSet">
38+
<xs:complexType>
39+
<xs:sequence>
40+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
41+
</xs:sequence>
42+
</xs:complexType>
43+
</xs:element>
44+
<xs:element name="Condition">
45+
<xs:complexType>
46+
<xs:sequence>
47+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
48+
</xs:sequence>
49+
</xs:complexType>
50+
</xs:element>
51+
<xs:element name="PolicyCategory">
52+
<xs:complexType>
53+
<xs:sequence>
54+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
55+
</xs:sequence>
56+
</xs:complexType>
57+
</xs:element>
58+
<xs:element name="TargetSet">
59+
<xs:complexType>
60+
<xs:sequence>
61+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
62+
</xs:sequence>
63+
</xs:complexType>
64+
</xs:element>
65+
<xs:element name="TargetSetLevel">
66+
<xs:complexType>
67+
<xs:sequence>
68+
<xs:any namespace="http://schemas.microsoft.com/sqlserver/DMF/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
69+
</xs:sequence>
70+
</xs:complexType>
71+
</xs:element>
72+
<DMF:bufferData xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08">
73+
<instances xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08">
74+
<document>
75+
<docinfo>
76+
<aliases>
77+
<alias>/PolicyStore/Policy/Backup and Data File Location</alias>
78+
</aliases>
79+
<sfc:version DomainVersion="3" />
80+
</docinfo>
81+
<data>
82+
<DMF:Policy xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
83+
<DMF:Parent>
84+
<sfc:Reference sml:ref="true">
85+
<sml:Uri>/PolicyStore</sml:Uri>
86+
</sfc:Reference>
87+
</DMF:Parent>
88+
<DMF:PolicyCondition>
89+
<sfc:Reference sml:ref="true">
90+
<sml:Uri>/PolicyStore/Condition/Data and Backup on Separate Drive</sml:Uri>
91+
</sfc:Reference>
92+
</DMF:PolicyCondition>
93+
<DMF:PolicyObjectSet>
94+
<sfc:Reference sml:ref="true">
95+
<sml:Uri>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet</sml:Uri>
96+
</sfc:Reference>
97+
</DMF:PolicyObjectSet>
98+
<DMF:PolicyPolicyCategory>
99+
<sfc:Reference sml:ref="true">
100+
<sml:Uri>/PolicyStore/PolicyCategory/Microsoft Best Practices_b Maintenance</sml:Uri>
101+
</sfc:Reference>
102+
</DMF:PolicyPolicyCategory>
103+
<DMF:Name type="string">Backup and Data File Location</DMF:Name>
104+
<DMF:Description type="string">Checks if database and the backups are on separate backup devices. If they are on the same backup device, and the device that contains the database fails, your backups will be unavailable. Also, putting the data and backups on separate devices optimizes the I/O performance for both the production use of the database and writing the backups.&lt;?char 13?&gt;
105+
&lt;?char 13?&gt;
106+
Note: This policy cannot detect separate physical devices through mount points.</DMF:Description>
107+
<DMF:Condition type="string">Data and Backup on Separate Drive</DMF:Condition>
108+
<DMF:ObjectSet type="string">Backup and Data File Location_ObjectSet</DMF:ObjectSet>
109+
<DMF:PolicyCategory type="string">Microsoft Best Practices: Maintenance</DMF:PolicyCategory>
110+
<DMF:Enabled type="boolean">false</DMF:Enabled>
111+
<DMF:AutomatedPolicyEvaluationMode type="AutomatedPolicyEvaluationMode">None</DMF:AutomatedPolicyEvaluationMode>
112+
<DMF:HelpText type="string" />
113+
<DMF:HelpLink type="string">http://go.microsoft.com/fwlink/?LinkId=116373</DMF:HelpLink>
114+
<DMF:ActiveEndDate type="dateTime">0001-01-01T00:00:00</DMF:ActiveEndDate>
115+
<DMF:ActiveStartDate type="dateTime">0001-01-01T00:00:00</DMF:ActiveStartDate>
116+
</DMF:Policy>
117+
</data>
118+
</document>
119+
<document>
120+
<docinfo>
121+
<aliases>
122+
<alias>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet</alias>
123+
</aliases>
124+
<sfc:version DomainVersion="3" />
125+
</docinfo>
126+
<data>
127+
<DMF:ObjectSet xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
128+
<DMF:TargetSets>
129+
<sfc:Collection>
130+
<sfc:Reference sml:ref="true">
131+
<sml:Uri>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet/TargetSet/Server_/Database</sml:Uri>
132+
</sfc:Reference>
133+
</sfc:Collection>
134+
</DMF:TargetSets>
135+
<DMF:Parent>
136+
<sfc:Reference sml:ref="true">
137+
<sml:Uri>/PolicyStore</sml:Uri>
138+
</sfc:Reference>
139+
</DMF:Parent>
140+
<DMF:Name type="string">Backup and Data File Location_ObjectSet</DMF:Name>
141+
<DMF:Facet type="string">IDatabaseMaintenanceFacet</DMF:Facet>
142+
</DMF:ObjectSet>
143+
</data>
144+
</document>
145+
<document>
146+
<docinfo>
147+
<aliases>
148+
<alias>/PolicyStore/Condition/Data and Backup on Separate Drive</alias>
149+
</aliases>
150+
<sfc:version DomainVersion="3" />
151+
</docinfo>
152+
<data>
153+
<DMF:Condition xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
154+
<DMF:Parent>
155+
<sfc:Reference sml:ref="true">
156+
<sml:Uri>/PolicyStore</sml:Uri>
157+
</sfc:Reference>
158+
</DMF:Parent>
159+
<DMF:Expression type="string">&lt;Operator&gt;&lt;?char 13?&gt;
160+
&lt;TypeClass&gt;Bool&lt;/TypeClass&gt;&lt;?char 13?&gt;
161+
&lt;OpType&gt;EQ&lt;/OpType&gt;&lt;?char 13?&gt;
162+
&lt;Count&gt;2&lt;/Count&gt;&lt;?char 13?&gt;
163+
&lt;Attribute&gt;&lt;?char 13?&gt;
164+
&lt;TypeClass&gt;Bool&lt;/TypeClass&gt;&lt;?char 13?&gt;
165+
&lt;Name&gt;DataAndBackupOnSeparateLogicalVolumes&lt;/Name&gt;&lt;?char 13?&gt;
166+
&lt;/Attribute&gt;&lt;?char 13?&gt;
167+
&lt;Function&gt;&lt;?char 13?&gt;
168+
&lt;TypeClass&gt;Bool&lt;/TypeClass&gt;&lt;?char 13?&gt;
169+
&lt;FunctionType&gt;True&lt;/FunctionType&gt;&lt;?char 13?&gt;
170+
&lt;ReturnType&gt;Bool&lt;/ReturnType&gt;&lt;?char 13?&gt;
171+
&lt;Count&gt;0&lt;/Count&gt;&lt;?char 13?&gt;
172+
&lt;/Function&gt;&lt;?char 13?&gt;
173+
&lt;/Operator&gt;</DMF:Expression>
174+
<DMF:Name type="string">Data and Backup on Separate Drive</DMF:Name>
175+
<DMF:Description type="string">Confirms that the database and the database backups are on separate drives.</DMF:Description>
176+
<DMF:Facet type="string">IDatabaseMaintenanceFacet</DMF:Facet>
177+
</DMF:Condition>
178+
</data>
179+
</document>
180+
<document>
181+
<docinfo>
182+
<aliases>
183+
<alias>/PolicyStore/PolicyCategory/Microsoft Best Practices_b Maintenance</alias>
184+
</aliases>
185+
<sfc:version DomainVersion="3" />
186+
</docinfo>
187+
<data>
188+
<DMF:PolicyCategory xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
189+
<DMF:Parent>
190+
<sfc:Reference sml:ref="true">
191+
<sml:Uri>/PolicyStore</sml:Uri>
192+
</sfc:Reference>
193+
</DMF:Parent>
194+
<DMF:Name type="string">Microsoft Best Practices: Maintenance</DMF:Name>
195+
</DMF:PolicyCategory>
196+
</data>
197+
</document>
198+
<document>
199+
<docinfo>
200+
<aliases>
201+
<alias>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet/TargetSet/Server_/Database</alias>
202+
</aliases>
203+
<sfc:version DomainVersion="3" />
204+
</docinfo>
205+
<data>
206+
<DMF:TargetSet xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
207+
<DMF:Levels>
208+
<sfc:Collection>
209+
<sfc:Reference sml:ref="true">
210+
<sml:Uri>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet/TargetSet/Server_/Database/TargetSetLevel/Server_/Database</sml:Uri>
211+
</sfc:Reference>
212+
</sfc:Collection>
213+
</DMF:Levels>
214+
<DMF:Parent>
215+
<sfc:Reference sml:ref="true">
216+
<sml:Uri>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet</sml:Uri>
217+
</sfc:Reference>
218+
</DMF:Parent>
219+
<DMF:TargetTypeSkeleton type="string">Server/Database</DMF:TargetTypeSkeleton>
220+
<DMF:Enabled type="boolean">true</DMF:Enabled>
221+
</DMF:TargetSet>
222+
</data>
223+
</document>
224+
<document>
225+
<docinfo>
226+
<aliases>
227+
<alias>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet/TargetSet/Server_/Database/TargetSetLevel/Server_/Database</alias>
228+
</aliases>
229+
<sfc:version DomainVersion="3" />
230+
</docinfo>
231+
<data>
232+
<DMF:TargetSetLevel xmlns:DMF="http://schemas.microsoft.com/sqlserver/DMF/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="sml.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
233+
<DMF:Parent>
234+
<sfc:Reference sml:ref="true">
235+
<sml:Uri>/PolicyStore/ObjectSet/Backup and Data File Location__ObjectSet/TargetSet/Server_/Database</sml:Uri>
236+
</sfc:Reference>
237+
</DMF:Parent>
238+
<DMF:TargetTypeSkeleton type="string">Server/Database</DMF:TargetTypeSkeleton>
239+
<DMF:LevelName type="string">Database</DMF:LevelName>
240+
<DMF:Condition type="string" />
241+
</DMF:TargetSetLevel>
242+
</data>
243+
</document>
244+
</instances>
245+
</DMF:bufferData>
246+
</xs:schema>
247+
</data>
248+
</document>
249+
</definitions>
250+
</xs:bufferSchema>
251+
</model>

0 commit comments

Comments
 (0)