Skip to content

Commit 20b9d13

Browse files
yangyuanVeryEarly
andauthored
Remove Face attestation and Bing notice. (Azure#21209)
* Remove Face attestation and Bing notice. * Add change log * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 8e5b2a4 commit 20b9d13

File tree

4 files changed

+1
-56
lines changed

4 files changed

+1
-56
lines changed

src/CognitiveServices/CognitiveServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Removed notice and attestation from `New-AzCognitiveServicesAccount`.
2122

2223
## Version 1.13.0
2324
* Updated CognitiveServices PowerShell to use 2022-12-01 version.

src/CognitiveServices/CognitiveServices/CognitiveServicesAccount/NewAzureCognitiveServicesAccount.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -311,38 +311,6 @@ public override void ExecuteCmdlet()
311311
if (ShouldProcess(
312312
Name, string.Format(CultureInfo.CurrentCulture, Resources.NewAccount_ProcessMessage, Name, Type, SkuName, Location)))
313313
{
314-
if (Type.StartsWith("Bing.", StringComparison.InvariantCultureIgnoreCase))
315-
{
316-
if (Force.IsPresent)
317-
{
318-
WriteWarning(Resources.NewAccount_Notice);
319-
}
320-
else
321-
{
322-
bool yesToAll = false, noToAll = false;
323-
if (!ShouldContinue(Resources.NewAccount_Notice, "Notice", true, ref yesToAll, ref noToAll))
324-
{
325-
return;
326-
}
327-
}
328-
}
329-
330-
if (Type.Equals("Face", StringComparison.InvariantCultureIgnoreCase) || Type.Equals("CognitiveServices", StringComparison.InvariantCultureIgnoreCase))
331-
{
332-
if (Force.IsPresent)
333-
{
334-
WriteWarning(Resources.NewAccount_LegalTerm_NotPolice);
335-
}
336-
else
337-
{
338-
bool yesToAll = false, noToAll = false;
339-
if (!ShouldContinue(Resources.NewAccount_LegalTerm_NotPolice, "Notice", true, ref yesToAll, ref noToAll))
340-
{
341-
return;
342-
}
343-
}
344-
}
345-
346314
var createAccountResponse = CognitiveServicesClient.Accounts.Create(
347315
ResourceGroupName,
348316
Name,

src/CognitiveServices/CognitiveServices/Properties/Resources.Designer.cs

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CognitiveServices/CognitiveServices/Properties/Resources.resx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@
120120
<data name="NewAccountKey_ProcessMessage" xml:space="preserve">
121121
<value>Regenerating Key {0} for account {1}.</value>
122122
</data>
123-
<data name="NewAccount_LegalTerm_NotPolice" xml:space="preserve">
124-
<value>I certify that use of this service is not by or for a police department in the United States.</value>
125-
</data>
126-
<data name="NewAccount_Notice" xml:space="preserve">
127-
<value>Microsoft will use data you send to Bing Search Services to improve Microsoft products and services. Where you send personal data to these Cognitive Services, you are responsible for obtaining sufficient consent from the data subjects. The General Privacy and Security Terms in the Online Services Terms do not apply to these Cognitive Services. Please refer to the Microsoft Cognitive Services section in the Online Services Terms (https://www.microsoft.com/en-us/Licensing/product-licensing/products.aspx) for details. Microsoft offers policy controls that may be used to disable new Cognitive Services deployments (https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account).</value>
128-
</data>
129123
<data name="NewAccount_ProcessMessage" xml:space="preserve">
130124
<value>Creating new Cognitive Services account {0} of type {1}, Sku {2} at location {3}.</value>
131125
</data>

0 commit comments

Comments
 (0)