Skip to content

Commit 0e699ed

Browse files
author
Melony QIN
authored
Merge pull request #4 from microsoft/master
Update from the master
2 parents 2fb8930 + 7152911 commit 0e699ed

136 files changed

Lines changed: 16980 additions & 425 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](./media/solutions-microsoft-logo-small.png)
1+
![](./media/solutions-microsoft-logo-small.png)
22

33
# Azure Data SQL Samples Repository
44
This GitHub repository contains code samples that demonstrate how to use Microsoft's Azure Data products including SQL Server, Azure SQL Database, Azure Synapse, and Azure SQL Edge. Each sample includes a README file that explains how to run and use the sample.

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller-new.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141

4242
if [ -z "$ARC_DC_REGION" ]
4343
then
44-
read -p "Enter a region for the new Azure Arc Data Controller (eastus, eastus2, centralus, westus2, westeurope or southeastasia): " dc_region
44+
read -p "Enter a region for the new Azure Arc Data Controller (eastus, eastus2, centralus, westus2, westeurope, southeastasia, japaneast, australiaeast, koreacentral, northeurope, uksouth, or francecentral): " dc_region
4545
echo
4646
export ARC_DC_REGION=$dc_region
4747
fi
@@ -80,7 +80,7 @@ export DEBIAN_FRONTEND=noninteractive
8080

8181
# Requirements file.
8282
export OSCODENAME=$(lsb_release -cs)
83-
export AZDATA_PRIVATE_PREVIEW_DEB_PACKAGE="https://aka.ms/jul-2020-arc-azdata-$OSCODENAME"
83+
export AZDATA_PRIVATE_PREVIEW_DEB_PACKAGE="https://aka.ms/aug-2020-arc-azdata-$OSCODENAME"
8484

8585
# Kube version.
8686
#

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)