Skip to content

Commit a4f3b85

Browse files
committed
resolving merge conflicts
2 parents a21efac + a1946d4 commit a4f3b85

File tree

5,923 files changed

+605044
-349990
lines changed

Some content is hidden

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

5,923 files changed

+605044
-349990
lines changed

.github/CODEOWNERS

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
# Instructions for CODEOWNERS file format and automatic build failure notifications:
22
# https://github.com/Azure/azure-sdk/blob/main/docs/policies/opensource.md#codeowners
33

4-
################
5-
# Orphaned paths
6-
################
7-
# As of 1/26/2023 these paths have no owners:
8-
9-
# /**
10-
# /.devcontainer/
11-
# /.vscode/
12-
# /conda-releaselogs/
13-
# /doc/
14-
# /scripts/
15-
# /tools/
16-
174
###########
185
# SDK
196
###########
@@ -76,7 +63,7 @@
7663
# PRLabel: %Storage
7764
/sdk/storage/ @annatisch @jalauzon-msft @vincenttran-msft @weirongw23-msft
7865

79-
# AzureSdkOwners: @YalinLi0312
66+
# AzureSdkOwners: @xiangyan99
8067
# ServiceLabel: %App Configuration
8168
# ServiceOwners: @albertofori @avanigupta @mrm9084
8269

@@ -162,8 +149,8 @@
162149
# PRLabel: %Defender EASM
163150
/sdk/easm/ @nathanfalke
164151

165-
# ServiceLabel: %Face
166-
# PRLabel: %Face
152+
# ServiceLabel: %FaceAPI
153+
# PRLabel: %FaceAPI
167154
/sdk/face/ @zihyunting
168155

169156
# ServiceLabel: %Cognitive - Health Insights
@@ -202,11 +189,11 @@
202189

203190
# ServiceLabel: %Monitor - Distro
204191
# PRLabel: %Monitor - Distro
205-
/sdk/monitor/azure-monitor-opentelemetry/ @lzchen @jeremydvoss
192+
/sdk/monitor/azure-monitor-opentelemetry/ @lzchen @jeremydvoss @hectorhdzg @rads-1996 @Karlie-777 @MSNev @JacksonWeber
206193

207194
# ServiceLabel: %Monitor - Exporter
208195
# PRLabel: %Monitor - Exporter
209-
/sdk/monitor/azure-monitor-opentelemetry-exporter/ @lzchen @hectorhdzg @jeremydvoss
196+
/sdk/monitor/azure-monitor-opentelemetry-exporter/ @lzchen @jeremydvoss @hectorhdzg @rads-1996 @Karlie-777 @MSNev @JacksonWeber
210197

211198
# ServiceLabel: %Consumption
212199
# PRLabel: %Consumption
@@ -216,10 +203,10 @@
216203
# PRLabel: %Container Instances
217204
/sdk/containerinstance/ @samkreter @xizhamsft
218205

219-
# AzureSdkOwners: @YalinLi0312
206+
# AzureSdkOwners: @lmazuel
220207
# ServiceLabel: %Container Registry
221208
# PRLabel: %Container Registry
222-
/sdk/containerregistry/ @YalinLi0312
209+
/sdk/containerregistry/ @lmazuel
223210

224211
# ServiceLabel: %Container Service
225212
# PRLabel: %Container Service
@@ -262,6 +249,15 @@
262249
# ServiceLabel: %AI Model Inference %Service Attention
263250
/sdk/ai/azure-ai-inference/ @dargilco @trangevi @jhakulin
264251

252+
# PRLabel: %AI Agents
253+
# ServiceLabel: %AI Agents %Service Attention
254+
/sdk/ai/azure-ai-agents/ @dargilco @jhakulin @trangevi @glharper @nick863 @howieleung
255+
256+
# PRLabel: %AI Projects
257+
# ServiceLabel: %AI Projects %Service Attention
258+
/sdk/ai/azure-ai-projects/ @dargilco @jhakulin
259+
260+
265261
# PRLabel: %HDInsight
266262
/sdk/hdinsight/ @idear1203
267263

@@ -310,6 +306,10 @@
310306
/sdk/mixedreality/azure-mixedreality-authentication/ @RamonArguelles
311307
/sdk/remoterendering/ @FlorianBorn71
312308

309+
# ServiceLabel: %Online Experimentation
310+
# PRLabel: %Online Experimentation
311+
/sdk/onlineexperimentation/ @Azure/azure-sdk-write-onlineexperimentation
312+
313313
# ServiceLabel: %OpenAI
314314
# ServiceOwners: @trrwilson
315315

@@ -329,7 +329,7 @@
329329

330330
# ServiceLabel: %Purview
331331
# PRLabel: %Purview
332-
/sdk/purview/ @saxenarahulMs @adyabansal-ms
332+
/sdk/purview/ @adyabansal-ms
333333

334334
# ServiceLabel: %Recovery Services
335335
# ServiceOwners: @Daya-Patil @Sharmistha-Rai
@@ -381,12 +381,12 @@
381381
# PRLabel: %Health Deidentification
382382
/sdk/healthdataaiservices/ @alexathomases @Azure/healthdatadeidentification
383383

384-
# AzureSdkOwners: @YalinLi0312
384+
# AzureSdkOwners: @catalinaperalta
385385
# ServiceLabel: %Cognitive - Form Recognizer
386386
# ServiceOwners: @bojunehsu @vkurpad
387387

388388
# PRLabel: %Cognitive - Form Recognizer
389-
/sdk/formrecognizer/ @YalinLi0312
389+
/sdk/formrecognizer/ @catalinaperalta
390390

391391
# AzureSdkOwners: @YalinLi0312
392392
# ServiceLabel: %Document Intelligence
@@ -828,9 +828,8 @@
828828
# Management Plane
829829
/**/*mgmt*/ @ChenxiJiang333 @msyyc
830830

831-
832831
###########
833-
# Eng Sys
832+
# Eng Sys and other
834833
###########
835834
/eng/ @scbedd @weshaggard @benbp
836835
/eng/common/ @Azure/azure-sdk-eng
@@ -839,8 +838,13 @@
839838
/sdk/pullrequest.yml @scbedd @weshaggard @benbp
840839

841840
/.config/1espt/ @benbp @weshaggard
841+
/.devcontainer/ @scbedd @mccoyp @benbp @weshaggard
842+
/.vscode/ @scbedd @mccoyp @benbp @weshaggard
842843

843844
/tools/ @scbedd @mccoyp
845+
/scripts/ @scbedd @mccoyp
846+
/doc/ @scbedd @mccoyp
847+
/conda/ @scbedd @xiangyan99 @lmazuel
844848

845849
# Add owners for notifications for specific pipelines
846850
/eng/pipelines/templates/jobs/tests-nightly-python.yml @lmazuel @mccoyp
@@ -851,5 +855,5 @@
851855
/eng/emitter-package.json @mccoyp @catalinaperalta @kristapratico @iscai-msft
852856
/eng/emitter-package-lock.json @mccoyp @catalinaperalta @kristapratico @iscai-msft
853857

854-
/pylintrc @l0lawrence
858+
/pylintrc @l0lawrence @scbedd @mccoyp
855859
/sdk/**/ci.yml @msyyc @lmazuel

.vscode/cspell.json

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
"sdk/ai/azure-ai-generative/tests/**",
3636
"sdk/ai/azure-ai-inference/samples/hello_how_are_you.mp3",
3737
"sdk/ai/azure-ai-inference/tests/hello_how_are_you.mp3",
38-
"sdk/ai/azure-ai-projects/samples/agents/nifty_500_quarterly_results.csv",
39-
"sdk/ai/azure-ai-projects/samples/agents/tripadvisor_openapi.json",
40-
"/sdk/ai/azure-ai-projects/samples/evaluations/async_samples/data/**",
41-
"/sdk/ai/azure-ai-projects/samples/evaluations/data/**",
4238
"sdk/ai/azure-ai-resources/azure/ai/resources/_index/_langchain/vendor/**",
4339
"sdk/ai/azure-ai-resources/azure/ai/resources/_restclient/**",
4440
"sdk/cognitiveservices/azure-cognitiveservices-search-autosuggest/**",
@@ -75,6 +71,7 @@
7571
"sdk/eventhub/azure-eventhub/**",
7672
"sdk/easm/azure-defender-easm/azure/defender/easm/**",
7773
"sdk/graphrbac/azure-graphrbac/**",
74+
"sdk/healthdataaiservices/azure-health-deidentification/tests/data/**/*",
7875
"sdk/healthinsights/azure-healthinsights-cancerprofiling/azure/**",
7976
"sdk/healthinsights/azure-healthinsights-clinicalmatching/azure/**",
8077
"sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_forms/**",
@@ -227,6 +224,8 @@
227224
"dateutil",
228225
"ddos",
229226
"decryptor",
227+
"deidentification",
228+
"deidservice",
230229
"delenv",
231230
"dependened",
232231
"deque",
@@ -343,6 +342,7 @@
343342
"mynewpackage",
344343
"mypackage",
345344
"myvault",
345+
"myservice",
346346
"mytable",
347347
"nazsdk",
348348
"nbytes",
@@ -391,6 +391,7 @@
391391
"pyright",
392392
"pyrightconfig",
393393
"parameterizing",
394+
"pypirc",
394395
"pyrit",
395396
"pytyped",
396397
"pytz",
@@ -430,6 +431,7 @@
430431
"struct",
431432
"STRUCT",
432433
"substringof",
434+
"surrogated",
433435
"systemperf",
434436
"tenvparallel",
435437
"Teradata",
@@ -1389,24 +1391,6 @@
13891391
"smirnov"
13901392
]
13911393
},
1392-
{
1393-
"filename": "sdk/ai/azure-ai-projects/**",
1394-
"words": [
1395-
"coso",
1396-
"longtitude",
1397-
"abbrev",
1398-
"accommodations",
1399-
"ENTRAID",
1400-
"entraid",
1401-
"aiservices",
1402-
"OTEL",
1403-
"GENAI",
1404-
"fspath",
1405-
"myindexname",
1406-
"wttr",
1407-
"azureopenai"
1408-
]
1409-
},
14101394
{
14111395
"filename": "sdk/ai/azure-ai-inference/**",
14121396
"words": [

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,41 @@ Management libraries can be identified by namespaces that start with `azure-mgmt
5252
* File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-python/issues)
5353
* Check [previous questions](https://stackoverflow.com/questions/tagged/azure+python) or ask new ones on StackOverflow using `azure` and `python` tags.
5454

55+
56+
## Data Collection
57+
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described below. You can learn more about data collection and use in the help documentation and Microsoft’s [privacy statement](https://go.microsoft.com/fwlink/?LinkID=824704). For more information on the data collected by the Azure SDK, please visit the [Telemetry Guidelines](https://azure.github.io/azure-sdk/general_azurecore.html#telemetry-policy) page.
58+
59+
### Telemetry Configuration
60+
Telemetry collection is on by default.
61+
62+
To opt out, you can disable telemetry at client construction. Define a `NoUserAgentPolicy` class that is a subclass of `UserAgentPolicy` with an `on_request` method that does nothing. Then pass instance of this class as kwargs `user_agent_policy=NoUserAgentPolicy()` during client creation. This will disable telemetry for all methods in the client. Do this for every new client.
63+
64+
The example below uses the `azure-storage-blob` package. In your code, you can replace `azure-storage-blob` with the package you are using.
65+
66+
```python
67+
import os
68+
from azure.identity import ManagedIdentityCredential
69+
from azure.storage.blob import BlobServiceClient
70+
from azure.core.pipeline.policies import UserAgentPolicy
71+
72+
73+
# Create your credential you want to use
74+
mi_credential = ManagedIdentityCredential()
75+
76+
account_url = "https://<storageaccountname>.blob.core.windows.net"
77+
78+
# Set up user-agent override
79+
class NoUserAgentPolicy(UserAgentPolicy):
80+
def on_request(self, request):
81+
pass
82+
83+
# Create the BlobServiceClient object
84+
blob_service_client = BlobServiceClient(account_url, credential=mi_credential, user_agent_policy=NoUserAgentPolicy())
85+
86+
container_client = blob_service_client.get_container_client(container=<container_name>)
87+
# TODO: do something with the container client like download blob to a file
88+
```
89+
5590
### Reporting security issues and security bugs
5691

5792
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) <[email protected]>. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the [Security TechCenter](https://www.microsoft.com/msrc/faqs-report-an-issue).

doc/dev/code_snippets.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
All code snippets in README should be up to date and runnable. And we want to have single source of truth hence we only need to maintain one copy. To achieve it, we want to have:
44

5-
- [Store samples in samples folder and setup the pipeline to run them to make sure no sample is broken](#create-samples)
6-
- [In README, refer the code snippet from the samples](#refer-samples)
5+
- [Define snippet definitions in the samples folder](#create-samples)
6+
- [In README, refer to the code snippets from the samples](#refer-samples)
77
- [Run `python_snippet_updater.py` to keep them in sync](#python_snippet_updater-tool)
88

99
## Create samples
@@ -29,35 +29,38 @@ https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/samp
2929

3030
Instead of copying the code snippet into README which is hard to maintain and validate, we add reference to the sample snippet in README. We use the annotation `\<!-- SNIPPET:file_name.snippet_name-->` to refer the code snippet in README file.
3131

32-
It is like:
33-
34-
`\<!-- SNIPPET:test_example_async.asyncio -->`
32+
If you have a file in `samples\text_example_async.py` with a snippet named `asyncio`, you can reference it in your README like:
3533

34+
````markdown
35+
<!-- SNIPPET:test_example_async.asyncio -->
3636
```python
37-
from azure.core.pipeline.transport import AsyncioRequestsTransport
38-
39-
async with AsyncPipeline(AsyncioRequestsTransport(), policies=policies) as pipeline:
40-
response = await pipeline.run(request)
4137
```
38+
<!-- END SNIPPET -->
39+
````
4240

43-
`\<!-- END SNIPPET -->`
44-
45-
**Note:** you need to make sure there is
46-
47-
\```python
48-
49-
\```
50-
51-
within `\<!-- SNIPPET:` & `\<!-- END SNIPPET -->` in README.MD to make the annotation valid.
41+
> Make sure you include a Python code fence within the snippet reference!
5242
5343
## Run python_snippet_updater tool
5444

5545
```powershell
5646
python <azure-sdk-for-python>/tools/azure-sdk-tools/ci_tools/snippet_update/python_snippet_updater.py <path_to_the_service>
5747
```
5848

59-
The script scans the snippets in samples folder and auto replace the snippets in README with the one from samples folder.
49+
The script scans the snippets in samples folder and populates snippet references in README with the snippet definitions from samples folder.
50+
51+
The example reference above could become:
52+
53+
````markdown
54+
<!-- SNIPPET:test_example_async.asyncio -->
55+
56+
```python
57+
from azure.core.pipeline.transport import AsyncioRequestsTransport
58+
59+
async with AsyncPipeline(AsyncioRequestsTransport(), policies=policies) as pipeline:
60+
response = await pipeline.run(request)
61+
```
6062

61-
**NOTE: the snippets in README will be overwritten!**
63+
<!-- END SNIPPET -->
64+
````
6265

63-
Now you are all set!
66+
Once you've run the script, you can commit your changes. Now you are all set!

doc/dev/dev_setup.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ or execute the various commands available in the toolbox.
4343
4444
5. Create a .env file to store your secrets.
4545
46-
The recommended place to store your .env file is one directory higher than the `azure-sdk-for-python` location.
47-
This ensures the secrets will be loaded by the interpreter and most importantly not be committed to Git history.
46+
The recommended place to store your .env file in the root of the SDK repository, as it will be gitignored.
4847
4948
## Follow test-running guidance
5049

doc/dev/release.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Release process
22

3-
### Disclaimer
4-
This article assumes you have code on `main` that is ready to publish:
5-
- Version is accurate
6-
- ChangeLog is updated
7-
- Readme is accurate, etc.
3+
## Prerequisites
4+
First, ensure your code on `main` is ready to publish.
85

9-
If you don't, and you are working with Management packages, start with this page:
10-
https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/mgmt_release.md
6+
For management (control plane) packages, start with this page: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/mgmt_release.md
117

8+
For client (data plane) packages, ensure that:
9+
- The version at `sdk/path-to-your-package/_version.py` has been updated following [these guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/package_version/package_version_rule.md).
10+
- The changelog has been updated following [these guidelines](https://azure.github.io/azure-sdk/policies_releases.html#change-logs).
11+
- Package README has been updated following [these guidelines](https://azure.github.io/azure-sdk/python_documentation.html).
12+
- Samples have been updated following [these guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/sample_guide.md).
1213

1314
## Python Package Index
1415

doc/dev/sample_guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Note that the metadata under `products` must match an existing product slug foun
4242

4343
## Capturing code snippets in reference documentation
4444
Code snippets from samples can be captured as [examples][qa_example] in our reference documentation.
45+
See [code snippets documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/code_snippets.md) for more details on how to define and reference code snippets in Markdown files.
46+
4547
To do this, place `# [START <keyword>]` and `# [END <keyword>]` comments which span the lines you want to show up in the reference documentation example.
4648
Note that the <keyword> used should be unique across all sync/async samples added to a client library.
4749

eng/.docsettings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ omitted_paths:
1414
- sdk/**/swagger/*
1515
- sdk/ml/azure-ai-ml/tests/*
1616
- sdk/vision/azure-ai-vision-imageanalysis/tests/*
17+
- sdk/ai/azure-ai-agents/tests/*
1718
- sdk/ai/azure-ai-inference/tests/*
1819
- sdk/ai/azure-ai-projects/tests/*
1920
- sdk/storage/azure-storage-extensions/*

0 commit comments

Comments
 (0)