Skip to content

Conversation

@ericsuh
Copy link
Member

@ericsuh ericsuh commented Nov 24, 2025

This updates Azure.Provisioning.CognitiveServices to use a newer version of Azure.ResourceManager.CognitiveServices that have the newer Foundry APIs launched at Ignite.

This also fixes some code that consumes Azure.Provisioning.CognitiveServices, where the consuming code had a "floating" default resource version but the test assumed a fixed version.

  • Update package version for Azure.ResourceManager.CognitiveServices
  • Regenerate Azure.Provisioning.CognitiveServices

@ericsuh
Copy link
Member Author

ericsuh commented Nov 24, 2025

@ericsuh please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Azure.Provisioning.CognitiveServices
Azure.Provisioning

@ericsuh ericsuh force-pushed the ericsuh/provisioning-cogser-update branch 6 times, most recently from 22e7f40 to 0ef689b Compare November 26, 2025 04:19
Eric Suh added 4 commits November 26, 2025 14:59
This fixees the error that showed up when running `eng\scripts\CodeChecks.ps1 -ServiceDirectory core` on the `main` branch merge base with this PR.
@ericsuh ericsuh force-pushed the ericsuh/provisioning-cogser-update branch from 0ef689b to 4874214 Compare November 26, 2025 23:00
@ericsuh ericsuh marked this pull request as ready for review November 27, 2025 08:01
Copilot AI review requested due to automatic review settings November 27, 2025 08:01
Copilot finished reviewing on behalf of ericsuh November 27, 2025 08:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request regenerates Azure.Provisioning.CognitiveServices to use version 1.5.2 of Azure.ResourceManager.CognitiveServices, which includes the newer Foundry APIs announced at Ignite. The changes update default API versions and add new resource types and models for AI Foundry capabilities.

Key Changes

  • Updated default resource versions: CognitiveServices resources from 2024-10-01 to 2025-09-01, Authorization resources from 2025-01-01 to 2025-03-01
  • Added new AI Foundry resource types: CognitiveServicesProject, CognitiveServicesConnection, CognitiveServicesCapabilityHost, and their project-level variants
  • Added extensive connection property types supporting various authentication methods (AAD, OAuth2, AccessKey, ServicePrincipal, etc.)
  • Fixed consuming code to explicitly specify resource versions where tests assumed fixed versions

Reviewed changes

Copilot reviewed 10 out of 62 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/*.cs Updated resource versions to 2025-09-01, added new AI Foundry resource types and models
sdk/provisioning/Azure.Provisioning/src/Generated/*.cs Updated Authorization resource versions to 2025-03-01
sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs Updated expected Bicep template version from 2024-10-01 to 2025-09-01
sdk/cloudmachine/Azure.Projects.AI/src//.cs Fixed by explicitly specifying resourceVersion: "2024-10-01" to maintain compatibility
eng/Packages.Data.props Added version constraint for Azure.ResourceManager.CognitiveServices 1.5.2 in Generator projects
sdk/provisioning/Azure.Provisioning.CognitiveServices/api/*.cs Updated API surface files with new types and version constants
.editorconfig Added exception for bicep test files to not insert final newline

<PackageReference Update="Humanizer.Core" Version="2.14.1" />
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.StartsWith('Generator'))">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain this entry. The condition is overly generalized and I'd like to understand the scenario where this reference is needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is targeting just the Generator package under Azure.Provisioning, which seems to just be named Generator.

I'm happy to try to target it even more granularly, but I would appreciate some help in how to do that, as I'm new to .NET/C#.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Resource Manager libraries are generally approved for current generation libraries, as they're known safe and under our control. I'd suggest just adding this in this section unconditionally, in alphabetical order by package name.

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert. There's no reason this file should be in this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were failing without this for me

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line exists already, and this looks like a noop change. Was there a non-printable in there? Can you share the error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants