Skip to content

[AutoPR Azure.ResourceManager.MongoDBAtlas]-generated-from-spec-gen-sdk - net-4864281 #50047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
452b102
Configurations: 'specification/liftrmongodb/MongoDB.Atlas.Management…
azure-sdk May 14, 2025
8c63551
Update ci.yml
vikaschoudharycs097 May 14, 2025
f761be9
updating MongoDBAtlas Csharp
ajaykumarmehra May 23, 2025
4bf4ceb
updating mongodbatlas
ajaykumarmehra May 23, 2025
8f9bb1a
adding commit id and fixing mongodbrole
ajaykumarmehra May 23, 2025
3a568a1
Update AutoRest C# version to 3.0.0-beta.20250514.2 (#50055)
azure-sdk May 14, 2025
d3b0d29
HtmlDecode hrefs (#50058)
azure-sdk May 14, 2025
3ddda17
Increment version for identity releases (#50060)
christothes May 14, 2025
366be71
Sync eng/common directory with azure-sdk-tools for PR 10522 (#49791)
azure-sdk May 14, 2025
c38abb1
change the project reference of azure.provisioning to package referen…
ArcturusZhang May 14, 2025
22a0e21
Sync eng/common directory with azure-sdk-tools for PR 10532 (#50063)
azure-sdk May 14, 2025
b09f66d
Add a new sample and re emit the code. (#50064)
nick863 May 14, 2025
73675c3
Add TOC and changelog (#50066)
nick863 May 14, 2025
3a737b7
Changelog update (#50072)
trangevi May 14, 2025
21ee40a
Manually clean up the file purposes (#50071)
nick863 May 14, 2025
e5e9234
Upgrade System.Memory.Data (#49685)
m-redding May 14, 2025
e284cec
[Search] Azure AI Search 2025-05-01-Preview (#49870)
ShivangiReja May 14, 2025
85a7868
Support NoValueResponse. (#50044)
haiyuazhang May 14, 2025
eac0d8a
Increment package version after release of Azure.Search.Documents (#5…
azure-sdk May 15, 2025
871b880
Support `az bicep build` in New-TestResources (#50067)
azure-sdk May 15, 2025
f02e8a5
Rename `mgmt` to `management` on package name, and namespaces (#49994)
ArcturusZhang May 15, 2025
a0b4031
[http-client-csharp-mgmt] Support NoValueResponse. (#50037)
haiyuazhang May 15, 2025
fb6cda4
remove start and Query tests (#50086)
AJ-2017 May 15, 2025
e87db2b
[SQL] Release api version 2024-05-01-preview (#49836)
HarveyLink May 15, 2025
0b4dc3c
Online Experimentation data-plane SDK (#49384)
smichtch May 15, 2025
c7c0c4f
Add Captcha Support for Front-Door (#49664)
Ptnan7 May 15, 2025
a44913a
Docs: Azure -> MicrosoftDocs (#50069)
danieljurek May 15, 2025
cafc94a
Sync eng/common directory with azure-sdk-tools repository (#50094)
azure-sdk May 15, 2025
963d951
Prepare docs for GA (#50099)
nick863 May 15, 2025
dbc09d3
Change PostProcessingOptions Params (#50070)
amariwest-msft May 15, 2025
4f18517
[Storage] [DataMovement] Fixed issue where transfers added concurrent…
amnguye May 15, 2025
2e2f8df
Sync eng/common directory with azure-sdk-tools for PR 10664 (#50102)
azure-sdk May 15, 2025
2725d63
Update Azure.Identity package version (#50093)
christothes May 15, 2025
bb36780
Get commit hash from main branch (#50108)
nick863 May 15, 2025
5a1f42f
Fixes to auto-download/start azsdk mcp (#50109)
azure-sdk May 15, 2025
37d7879
fix the customization code issue (#50088)
ArcturusZhang May 16, 2025
be1b9cc
Assign default name to QueueService (#49672)
kzhen May 16, 2025
9fc8a8e
Bump MTG version and regen (#50087)
live1206 May 16, 2025
257a7b8
Bump MTG for Management (#50114)
live1206 May 16, 2025
bf96440
Update AutoRest C# version to 3.0.0-beta.20250515.1 (#50115)
azure-sdk May 16, 2025
eeff347
Increment package version after release of Azure.AI.Agents.Persistent…
azure-sdk May 16, 2025
7eeb67c
Fix transitive SG issue on project reference replacement (#50116)
m-nash May 16, 2025
4fdb1ef
Sync eng/common directory with azure-sdk-tools for PR 10657 (#50125)
azure-sdk May 16, 2025
fae1930
AuthenticationTokenProvider API feedback (#50128)
christothes May 16, 2025
a674e33
C# Azure AI Projects SDK for new 1DP endpoint (#49432)
sophia-ramsey May 16, 2025
bba1a90
update date and links (#50131)
sophia-ramsey May 16, 2025
7df7772
Increment package version after release of Azure.AI.Projects (#50132)
azure-sdk May 17, 2025
d6628d7
May system events (#50133)
JoshLove-msft May 18, 2025
e6fd373
May system events (#50134)
JoshLove-msft May 18, 2025
6d7cefe
Regenerate repository SDK with TypeSpec build 20250515.2 (#50113)
azure-sdk May 18, 2025
7f838d5
Increment package version after release of Azure.ResourceManager.Sql …
azure-sdk May 19, 2025
4906691
Increment package version after release of Azure.ResourceManager.Fron…
azure-sdk May 19, 2025
0702536
Add Cipher support for cdn (#49668)
Ptnan7 May 19, 2025
6c7d663
Increment package version after release of Azure.AI.Inference (#50073)
azure-sdk May 19, 2025
9396f77
[Azure.Developer.LoadTesting] Update resource region and tests for Lo…
mitsha-microsoft May 19, 2025
b70177e
Added overloads for ProtectKeysWithAzureKeyVault () accepting Uri (#5…
abatishchev May 19, 2025
4a8cee0
[Storage] Attempt to fix nightly live tests for DataMovement (#50100)
amnguye May 19, 2025
cc90c66
Increment version for eventgrid releases (#50144)
azure-sdk May 19, 2025
404e0a9
[Event Hub] PartitionResolver Jenkin3 optimizations (#50068)
danielmarbach May 19, 2025
8e40c8f
Add LRO support (#50126)
JoshLove-msft May 19, 2025
07fe2dc
[Identity] Support Brokered Auth on Linux (#49346)
JonathanCrd May 19, 2025
690b0e9
[Event Hubs] Preserve system property broker types (#50146)
jsquire May 19, 2025
6d54ce7
[Protection.Keys] Release Prep (#50150)
jsquire May 20, 2025
5bc8076
Regenerate repository SDK with TypeSpec build 20250519.1 (#50147)
azure-sdk May 20, 2025
22de159
Default package-name to namespace option (#50149)
JoshLove-msft May 20, 2025
8626015
Update TypeSpec emitter version to prerelease 1.0.0-alpha.20250519.2 …
azure-sdk May 20, 2025
e1ea827
Increment package version after release of Azure.Extensions.AspNetCor…
azure-sdk May 20, 2025
dfade3a
[Service Bus] Fix Batch Delete Limit (#50151)
jsquire May 20, 2025
3fcf033
[Messaging] AMQP Transport Library Version Bump (#50148)
jsquire May 20, 2025
23c899e
[EventGrid] Incremental source generator (#49445)
danielmarbach May 20, 2025
8b950d3
Add Teams CallDetails custom context support (#49784)
v-vkaluri May 20, 2025
b3bb26f
Add generateCode target (#50167)
JoshLove-msft May 21, 2025
f03d547
updating date for planned Pub Preview release date (#50145)
TheDonLuke May 21, 2025
1ffddc0
Switch to the preview version; generate code for preview tools. (#50166)
nick863 May 21, 2025
90ec6c6
Increment package version after release of Azure.ResourceManager.Cdn …
azure-sdk May 21, 2025
fc4f0fe
Add resource scope (emitter part) (#49991)
ArcturusZhang May 21, 2025
a384604
ApiManagement SDK on 2024-05-01 (#46675)
solankisamir May 21, 2025
3871253
Revert "Add generateCode target (#50167)" (#50176)
ArthurMa1978 May 21, 2025
5212b67
Add option to filter release stages to just the artifacts to release …
weshaggard May 21, 2025
d36a23c
Increment package version after release of Azure.ResourceManager.ApiM…
azure-sdk May 21, 2025
93656a8
Increment package version after release of Azure.AI.Agents.Persistent…
azure-sdk May 21, 2025
0d7ccea
Wrap the generateCode import in condition (#50179)
JoshLove-msft May 21, 2025
cb89265
Updating test resources (#50193)
jovinson-ms May 21, 2025
ae8bc52
Create library inventory tool for Swagger to TypeSpec migration plann…
Copilot May 22, 2025
acb7853
[Storage][DataMovement] Hard Link & Symbolic Link for NFS over REST (…
nickliu-msft May 22, 2025
790233f
Release AppContainer 1.4.0 (#50198)
ArthurMa1978 May 22, 2025
4462445
Release NeonPostgres 1.0.0 (#50201)
ArthurMa1978 May 22, 2025
83306c5
Sync eng/common directory with azure-sdk-tools for PR 10286 (#50196)
azure-sdk May 22, 2025
9b38f71
Release Chaos 1.1.0 (#50200)
ArthurMa1978 May 22, 2025
f03e664
Add .NET SDK support for SecretsStoreExtension. (#48591)
locomotiveviaduct May 22, 2025
65acf79
First pr for purestorage sdk (#49960)
deepakmauryams May 22, 2025
91aa33c
Increment package version after release of Azure.ResourceManager.AppC…
azure-sdk May 22, 2025
ba4e103
Increment package version after release of Azure.Provisioning.Storage…
azure-sdk May 22, 2025
21e2c69
Release first beta for Azure.ResourceManager.SecretsStoreExtension (#…
ArthurMa1978 May 22, 2025
0722ed3
Increment package version after release of Azure.ResourceManager.Chao…
azure-sdk May 22, 2025
c77bd92
Increment package version after release of Azure.ResourceManager.Neon…
azure-sdk May 22, 2025
cdf651d
Increment package version after release of Azure.ResourceManager.Pure…
azure-sdk May 22, 2025
e27c34e
Bump MTG version (#50210)
live1206 May 22, 2025
2df6498
Update AutoRest C# version to 3.0.0-beta.20250521.1 (#50202)
azure-sdk May 22, 2025
0ed2de3
Increment package version after release of Azure.ResourceManager.Secr…
azure-sdk May 22, 2025
73a3253
Only convert to json if response content is of json type (#50220)
azure-sdk May 22, 2025
2e8b0bb
Regenerate repository SDK with TypeSpec build 20250522.1 (#50217)
azure-sdk May 22, 2025
1b0966a
Remove temporary trigger exclusion (#50216)
JoshLove-msft May 22, 2025
f49e881
Add mitigation for file names containing non ASCII characters (#50195)
nick863 May 22, 2025
08c95c3
Regenerate repository SDK with TypeSpec build 20250522.2 (#50224)
azure-sdk May 22, 2025
20ef3e1
update changes
ajaykumarmehra May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
23 changes: 19 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,12 @@
# ServiceLabel: %Notification Hub
# ServiceOwners: @tjsomasundaram

# PRLabel: %Online Experimentation
/sdk/onlineexperimentation/ @Azure/azure-sdk-write-onlineexperimentation

# ServiceLabel: %Online Experimentation
# ServiceOwners: @Azure/azure-sdk-write-onlineexperimentation

# PRLabel: %OpenAI
/sdk/openai/ @jpalvarezl @trrwilson @joseharriaga @m-nash @ralph-msft

Expand Down Expand Up @@ -1050,10 +1056,13 @@
# ServiceOwners: @alluri02

# PRLabel: %Network - CDN
/sdk/cdn/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
/sdk/cdn/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978 @Ptnan7

# PRLabel: %Network - Front Door
/sdk/frontdoor/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
/sdk/frontdoor/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978 @Ptnan7

# ServiceLabel: %Network - Front Door %Mgmt
# ServiceOwners: @Ptnan7

# PRLabel: %Network - Mobile
/sdk/mobilenetwork/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
Expand Down Expand Up @@ -1082,6 +1091,12 @@
# ServiceLabel: %Pinecone %Mgmt
# ServiceOwners: @aggarwalsw

# PRLabel: %PureStorage
/sdk/purestorageblock/Azure.ResourceManager.*/ @deepakmauryams

# ServiceLabel: %PureStorage %Mgmt
# ServiceOwners: @deepakmauryams

# PRLabel: %Quota
/sdk/quota/Azure.ResourceManager.*/ @tejasm-microsoft

Expand All @@ -1100,8 +1115,8 @@
# ServiceLabel: %Recovery Services Data-Replication %Mgmt
# ServiceOwners: @helen-afework

# (Remove this when uncommenting path) PRLabel: %Secret Store Extension
#/sdk/edgeworkloadsecurity/Azure.ResourceManager.*/ @cjoprey @locomotiveviaduct
# PRLabel: %Secret Store Extension
/sdk/secretsstoreextension/Azure.ResourceManager.*/ @cjoprey @locomotiveviaduct

# ServiceLabel: %Secret Store Extension %Mgmt
# ServiceOwners: @cjoprey @locomotiveviaduct
Expand Down
10 changes: 9 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,15 @@
{
"filename": "**/sdk/ai/**/*.cs",
"words": [
"Ubinary"
"Ubinary",
"Ansii",
"Atbash",
"Bleu",
"azureai",
"bleu",
"azureai",
"Gleu",
"gleu"
]
},
{
Expand Down
451 changes: 451 additions & 0 deletions doc/GeneratorMigration/Library_Inventory.md

Large diffs are not rendered by default.

362 changes: 362 additions & 0 deletions doc/GeneratorMigration/Library_Inventory.py

Large diffs are not rendered by default.

85 changes: 85 additions & 0 deletions doc/GeneratorMigration/Library_Inventory_Guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Azure SDK for .NET Library Inventory Guide

This document outlines how to generate and maintain the inventory of libraries in the Azure SDK for .NET repository.

## Purpose

The library inventory helps us:

1. Track all libraries in the repository
2. Categorize them as data plane or management plane
3. Identify which generator (Swagger or TypeSpec) they use
4. Plan migrations to newer generators

## Generating the Inventory

To generate the library inventory:

1. Run the `Library_Inventory.py` script from the repository root:

```bash
python doc/GeneratorMigration/Library_Inventory.py
```

2. The script will:
- Scan all libraries in the `sdk/` directory
- Categorize them by type (data plane or management plane)
- Identify the generator used (Swagger or TypeSpec)
- Generate a markdown report (`doc/GeneratorMigration/Library_Inventory.md`)

3. If you need JSON output for programmatic use, use the `--json` flag:

```bash
python doc/GeneratorMigration/Library_Inventory.py --json
```
- This will generate an additional `Library_Inventory.json` file with the raw inventory data
- Note: The JSON file is for temporary analytical use and should not be checked into the repository

## Inventory Classification Logic

The script uses the following logic to categorize libraries:

### Data Plane vs Management Plane

- **Management Plane**: Libraries that contain "Azure.ResourceManager" or ".Management." in their path
- **Data Plane**: All other libraries

### Swagger vs TypeSpec (TSP)

The script looks for evidence of TypeSpec usage in the following order:

1. Direct TypeSpec indicators:
- `tsp-location.yaml` file with an `emitterPackageJsonPath` value
- `src/tspconfig.yaml` file
- `src/tsp` directory
- `.tsp` files in the src directory

2. Swagger indicators:
- Presence of `src/autorest.md` file
- `src/Generated` directory exists
- Files with `<auto-generated/>` comment headers

If none of these TypeSpec indicators are found but there is evidence of code generation
(like a `src/Generated` directory or files with `<auto-generated/>` markers), the script assumes Swagger.

## Understanding the Results

The inventory markdown file provides:

1. Overall summary counts
2. Tables for each category:
- Data Plane libraries using TypeSpec
- Data Plane libraries using Swagger
- Management Plane libraries using TypeSpec
- Management Plane libraries using Swagger
- Libraries with unknown generator

## Updating the Inventory

The inventory should be updated whenever:

1. New libraries are added to the repository
2. Libraries are migrated from Swagger to TypeSpec
3. Preparing for migration planning

Simply run the script again to regenerate the inventory files.
49 changes: 17 additions & 32 deletions eng/CodeGeneration.targets
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
<Project>

<PropertyGroup>
<_AutoRestVersion>https://github.com/Azure/autorest/releases/download/autorest-3.0.6236/autorest-3.0.6236.tgz</_AutoRestVersion>
<_AutoRestCoreVersion>3.0.6306</_AutoRestCoreVersion>
<_AutoRestCSharpVersion>https://github.com/Azure/autorest.csharp/releases/download/3.0.0-dev.20200811.1/autorest-csharp-v3-3.0.0-dev.20200811.1.tgz</_AutoRestCSharpVersion>
<_SupportsCodeGeneration Condition="'$(IsClientLibrary)' == 'true'">true</_SupportsCodeGeneration>
<_DefaultInputName Condition="Exists('$(MSBuildProjectDirectory)/autorest.md')">$(MSBuildProjectDirectory)/autorest.md</_DefaultInputName>
<AutoRestInput Condition="'$(AutoRestInput)' == ''">$(_DefaultInputName)</AutoRestInput>
<!--
Allows passing additional AutoRest command line arguments, for example to run in interactive mode
use the following command line (remove the space between minus minus): dotnet build /t:GenerateCode /p:AutoRestAdditionalParameters="- -interactive"
-->
<AutoRestAdditionalParameters></AutoRestAdditionalParameters>

<_GenerateCode Condition="'$(_SupportsCodeGeneration)' == 'true' AND '$(AutoRestInput)' != ''">true</_GenerateCode>
</PropertyGroup>


<PropertyGroup>
<TypeSpecInput Condition="Exists('$(MSBuildProjectDirectory)/../tsp-location.yaml') and $(MSBuildProjectDirectory.EndsWith('src'))">$(MSBuildProjectDirectory)/../tsp-location.yaml</TypeSpecInput>
<_TypeSpecProjectGenerateCommand>npx --no-install --package=@azure-tools/typespec-client-generator-cli --yes tsp-client generate --no-prompt --output-dir $(MSBuildProjectDirectory)/../</_TypeSpecProjectGenerateCommand>
<_TypeSpecProjectSyncAndGenerateCommand>npx --no-install --package=@azure-tools/typespec-client-generator-cli --yes tsp-client update --no-prompt --output-dir $(MSBuildProjectDirectory)/../</_TypeSpecProjectSyncAndGenerateCommand>
<_SaveInputs Condition="'$(SaveInputs)' == 'true'">--save-inputs</_SaveInputs>
<!-- Here we append the generate-test-project configuration to TypespecAdditionalOptions if it is specified -->
<TypespecAdditionalOptions Condition="'$(GenerateTestProject)' != '' AND '$(TypespecAdditionalOptions)' != ''">$(TypespecAdditionalOptions)%3Bgenerate-test-project=true</TypespecAdditionalOptions>
<TypespecAdditionalOptions Condition="'$(GenerateTestProject)' != '' AND '$(TypespecAdditionalOptions)' == ''">generate-test-project=true</TypespecAdditionalOptions>
<_TypespecAdditionalOptions Condition="'$(TypespecAdditionalOptions)' != ''">--emitter-options "$(TypespecAdditionalOptions)"</_TypespecAdditionalOptions>
<_LocalSpecRepo Condition="'$(LocalSpecRepo)' != ''">--local-spec-repo $(LocalSpecRepo)</_LocalSpecRepo>
</PropertyGroup>

<Target Name="GenerateCode" Condition="'$(_GenerateCode)' == 'true'" >
<ReadLinesFromFile File="$(AutoRestInput)">
<Output TaskParameter="Lines" ItemName="AutoRestInputLines"/>
</ReadLinesFromFile>

<ItemGroup>
<GithubUrls Include="$([System.Text.RegularExpressions.Regex]::Match('%(AutoRestInputLines.Identity)', 'https?://(raw.)?github.+'))" />
<GithubUrlsWithoutIssues Include="%(GithubUrls.Identity)" Condition="! ($([System.Text.RegularExpressions.Regex]::IsMatch('%(GithubUrls.Identity)', '/issues/\d+')))" />
<GithubUrlsWithoutHash Include="%(GithubUrlsWithoutIssues.Identity)" Condition="! ($([System.Text.RegularExpressions.Regex]::IsMatch('%(GithubUrlsWithoutIssues.Identity)', '[\w\d]{40}')))" />
</ItemGroup>

<Error Text="Following GitHub URLs do not contain commit hash: @(GithubUrlsWithoutHash) please use permalinks for code generation inputs (see https://help.github.com/en/github/managing-files-in-a-repository/getting-permanent-links-to-files) " Condition="'@(GithubUrlsWithoutHash)' != ''" />

<RemoveDir Directories="$(MSBuildProjectDirectory)/Generated"/>
<Exec Command="npx autorest@$(_AutoRestVersion) --version=$(_AutoRestCoreVersion) $(AutoRestInput) $(AutoRestAdditionalParameters) --use=$(_AutoRestCSharpVersion) --output-folder=$(MSBuildProjectDirectory) --title=$(RootNamespace) --namespace=$(RootNamespace) --shared-source-folder=$(AutoRestSharedCodeDirectory).." />
<!-- For projects using the new TypeSpec generator, we don't include the Autorest dependency which pulls in the GenerateCode target.
So we need to add it here. -->
<Target Name="GenerateCode" Condition="'$(TypeSpecInput)' != ''">
<Error Text="You used skipped sync but didn't have the TempTypeSpecFiles in your project directory. Please run 'dotnet build /t:GenerateCode /p:SaveInputs=true' without SkipSync first at least once" Condition="'$(SkipSync)' == 'true' AND !Exists('$(MSBuildProjectDirectory)/../TempTypeSpecFiles')" />
<Exec Command="npm install --prefix $(MSBuildProjectDirectory)/../ @azure-tools/typespec-client-generator-cli --no-save" />
<Exec Condition="'$(SkipSync)' == 'true'" Command="$(_TypeSpecProjectGenerateCommand) $(_SaveInputs) $(_TypespecAdditionalOptions) $(_Debug)"/>
<Exec Condition="'$(SkipSync)' != 'true'" Command="$(_TypeSpecProjectSyncAndGenerateCommand) $(_SaveInputs) $(_LocalSpecRepo) $(_TypespecAdditionalOptions) $(_Debug)"/>
</Target>

</Project>
Expand Down
1 change: 1 addition & 0 deletions eng/Directory.Build.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<!-- Client in this context is any library that is following the new Azure SDK guidelines -->
<IsGeneratorLibrary Condition="'$(IsGeneratorLibrary)' == '' and $(MSBuildProjectName.StartsWith('Azure.Generator'))">true</IsGeneratorLibrary>
<IsClientLibrary Condition="'$(IsClientLibrary)' == '' and $(MSBuildProjectName.StartsWith('Azure.'))">true</IsClientLibrary>
<IncludeAutorestDependency Condition="'$(IncludeAutorestDependency)' != 'false' and '$(IsClientLibrary)' == 'true'">true</IncludeAutorestDependency>
<IsFunctionsLibrary Condition="'$(IsFunctionsLibrary)' == '' and $(MSBuildProjectName.StartsWith('Microsoft.Azure.WebJobs.Extensions.'))">true</IsFunctionsLibrary>
<IsSourceGenerator Condition="'$(IsSourceGenerator)' == '' and $(MSBuildProjectName.EndsWith('.SourceGeneration'))">true</IsSourceGenerator>

Expand Down
4 changes: 2 additions & 2 deletions eng/Directory.Build.Common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<!-- Add Client SDK Tools -->
<ItemGroup>
<PackageReference Condition="'$(IsClientLibrary)' == 'true'" Include="Microsoft.Azure.AutoRest.CSharp" PrivateAssets="All" />
<PackageReference Condition="'$(IncludeAutorestDependency)' == 'true'" Include="Microsoft.Azure.AutoRest.CSharp" PrivateAssets="All" />

<PackageReference Condition="'$(GenerateAPIListing)' == 'true'" Include="Microsoft.DotNet.GenAPI" PrivateAssets="All" />

Expand Down Expand Up @@ -172,7 +172,7 @@

<Import Project="CodeCoverage.targets" Condition="'$(CollectCoverage)' == 'true'" />

<Import Project="CodeGeneration.targets" Condition="'$(TemporaryUsePreviousGeneratorVersion)' == 'true'" />
<Import Project="CodeGeneration.targets" Condition="'$(IncludeAutorestDependency)' != 'true'" />

<Import Project="Azure.Management.Test.targets" Condition="'$(IsMgmtLibrary)' == 'true' and '$(IsTestProject)' == 'true'" />

Expand Down
15 changes: 7 additions & 8 deletions eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<PackageReference Update="System.ClientModel" Version="1.4.1" />
<PackageReference Update="System.IO.Hashing" Version="8.0.0" />
<PackageReference Update="System.Memory" Version="4.5.5" />
<PackageReference Update="System.Memory.Data" Version="6.0.1" />
<PackageReference Update="System.Memory.Data" Version="8.0.1" />
<PackageReference Update="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Update="System.Net.Http" Version="4.3.4" />
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
Expand Down Expand Up @@ -166,7 +166,7 @@
<PackageReference Update="Microsoft.Bcl.Numerics" Version="8.0.0" />

<!-- Other approved packages -->
<PackageReference Update="Microsoft.Azure.Amqp" Version="2.6.9" />
<PackageReference Update="Microsoft.Azure.Amqp" Version="2.6.11" />
<PackageReference Update="Microsoft.Azure.WebPubSub.Common" Version="1.4.0" />
<PackageReference Update="Microsoft.Identity.Client" Version="4.71.1" />
<PackageReference Update="Microsoft.Identity.Client.Extensions.Msal" Version="4.71.1" />
Expand Down Expand Up @@ -209,7 +209,6 @@
<PackageReference Update="Microsoft.TypeSpec.Generator.ClientModel" Version="[$(UnbrandedGeneratorVersion)]" />
<PackageReference Update="Microsoft.TypeSpec.Generator.Input" Version="[$(UnbrandedGeneratorVersion)]" />
<PackageReference Update="Azure.Generator" Version="[$(AzureGeneratorVersion)]" />
<PackageReference Update="System.ClientModel" Version="1.4.1" />
</ItemGroup>

<!--
Expand Down Expand Up @@ -277,7 +276,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20250512.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20250521.1" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20250422.1" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="3.2.0" PrivateAssets="All" />
<!-- Note: Upgrading the .NET SDK version needs to be synchronized with the autorest.csharp repository -->
Expand All @@ -301,7 +300,7 @@
<PackageReference Update="ApprovalTests" Version="3.0.22" />
<PackageReference Update="ApprovalUtilities" Version="3.0.22" />
<PackageReference Update="Azure.Core" Version="1.46.1" />
<PackageReference Update="Azure.Identity" Version="1.13.1" />
<PackageReference Update="Azure.Identity" Version="1.14.0" />
<PackageReference Update="Azure.Messaging.EventGrid" Version="4.17.0" />
<PackageReference Update="Azure.Messaging.EventHubs.Processor" Version="5.12.0" />
<PackageReference Update="Azure.Messaging.ServiceBus" Version="7.19.0" />
Expand Down Expand Up @@ -416,7 +415,7 @@
<PackageReference Update="System.IO.Compression" Version="4.3.0" />
<PackageReference Update="System.IO.Pipelines" Version="4.5.1" />
<PackageReference Update="System.Linq.Async" Version="5.0.0" />
<PackageReference Update="System.Memory.Data" Version="6.0.1" />
<PackageReference Update="System.Memory.Data" Version="8.0.1" />
<PackageReference Update="System.Net.WebSockets.Client" Version="4.3.2" />
<PackageReference Update="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Update="System.Runtime.InteropServices" Version="4.3.0" />
Expand All @@ -439,7 +438,7 @@

<PropertyGroup>
<TestProxyVersion>1.0.0-dev.20250501.1</TestProxyVersion>
<UnbrandedGeneratorVersion>1.0.0-alpha.20250509.1</UnbrandedGeneratorVersion>
<AzureGeneratorVersion>1.0.0-alpha.20250508.1</AzureGeneratorVersion>
<UnbrandedGeneratorVersion>1.0.0-alpha.20250522.1</UnbrandedGeneratorVersion>
<AzureGeneratorVersion>1.0.0-alpha.20250522.1</AzureGeneratorVersion>
</PropertyGroup>
</Project>
26 changes: 18 additions & 8 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param (
[ValidatePattern('^[-\w\._\(\)]+$')]
[string] $ResourceGroupName,

[Parameter(Mandatory = $true, Position = 0)]
[Parameter(Position = 0)]
[string] $ServiceDirectory,

[Parameter()]
Expand Down Expand Up @@ -159,10 +159,13 @@ if ($initialContext) {

# try..finally will also trap Ctrl+C.
try {

# Enumerate test resources to deploy. Fail if none found.
$repositoryRoot = "$PSScriptRoot/../../.." | Resolve-Path
$root = [System.IO.Path]::Combine($repositoryRoot, "sdk", $ServiceDirectory) | Resolve-Path
$root = $repositoryRoot = "$PSScriptRoot/../../.." | Resolve-Path

if($ServiceDirectory) {
$root = "$repositoryRoot/sdk/$ServiceDirectory" | Resolve-Path
}

if ($TestResourcesDirectory) {
$root = $TestResourcesDirectory | Resolve-Path
# Add an explicit check below in case ErrorActionPreference is overridden and Resolve-Path doesn't stop execution
Expand All @@ -171,6 +174,7 @@ try {
}
Write-Verbose "Overriding test resources search directory to '$root'"
}

$templateFiles = @()

"$ResourceType-resources.json", "$ResourceType-resources.bicep" | ForEach-Object {
Expand All @@ -192,7 +196,12 @@ try {
exit
}

# returns empty string if $ServiceDirectory is not set
$serviceName = GetServiceLeafDirectoryName $ServiceDirectory

# in ci, random names are used
# in non-ci, without BaseName, ResourceGroupName or ServiceDirectory, all invocations will
# generate the same resource group name and base name for a given user
$BaseName, $ResourceGroupName = GetBaseAndResourceGroupNames `
-baseNameDefault $BaseName `
-resourceGroupNameDefault $ResourceGroupName `
Expand Down Expand Up @@ -296,7 +305,7 @@ try {
}
}

# This needs to happen after we set the TenantId but before we use the ResourceGroupName
# This needs to happen after we set the TenantId but before we use the ResourceGroupName
if ($wellKnownTMETenants.Contains($TenantId)) {
# Add a prefix to the resource group name to avoid flagging the usages of local auth
# See details at https://eng.ms/docs/products/onecert-certificates-key-vault-and-dsms/key-vault-dsms/certandsecretmngmt/credfreefaqs#how-can-i-disable-s360-reporting-when-testing-customer-facing-3p-features-that-depend-on-use-of-unsafe-local-auth
Expand Down Expand Up @@ -364,9 +373,10 @@ try {
$ProvisionerApplicationOid = $sp.Id
}

$tags = @{
Owners = (GetUserName)
ServiceDirectory = $ServiceDirectory
$tags = @{ Owners = (GetUserName) }

if ($ServiceDirectory) {
$tags['ServiceDirectory'] = $ServiceDirectory
}

# Tag the resource group to be deleted after a certain number of hours.
Expand Down
Loading