From 6998b06fc8c56a34ca83ab8ea0804544b95db6f0 Mon Sep 17 00:00:00 2001 From: Aigerim Date: Fri, 25 Oct 2024 10:54:29 +0100 Subject: [PATCH 1/4] [ACS][Common] OPS - Dual Persona (#46383) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Entra token credentials * fixed api comments & regenerated api * added implementation * fixed exchange implementation * fixed docs * fixed docs * added token cache and covered with tests * added read-me * [Storage] [DataMovement] [API-Change] Changed ShareFilesStorageResourceProvider.FromFile/Directory to take a Uri over string (#46446) * Initial commit * Export API * Update Nginx changelog to support API version 2024-06-01-preview (#46447) * Update Nginx changelog to support API version 2024-06-01-preview * Refactor * [Service Bus] October 2024 Release Prep (#46438) The focus of these changes is to prepare the Service Bus package for the October 2024 release. * Storage STG 96 (#45604) * Fix missing HybridSearch in copy method of SearchOptions (#46425) Fix missing HybridSearch in copy SearchOptions * changed scopes to opt.param * Update AutoRest C# version to 3.0.0-beta.20241007.1 (#46457) * Update Generator Version 3.0.0-beta.20241007.1 * Update SDK codes he_ma_3 * Update SDK codes de_he_2 * Update SDK codes ma_pu_4 * Update SDK codes sq_wo_6 * Update SDK codes co_de_1 * export api * fix tests --------- Co-authored-by: Arcturus Zhang Co-authored-by: Minghao Chen <30464227+HarveyLink@users.noreply.github.com> * fixed generated api * Onboard Azure.Developer.MicrosoftPlaywrightTesting sdk (#45044) * feat(): onboard Azure.Developer.MicrosoftPlaywrightTesting sdk * chore(): add support for github summary * docs(): sample, CHANGELOG and README * docs(): content of samples * chore():: modify samples as per azure sdk guidelines * refactor(): unit tests as per azure sdk guidelines * chore(): use autorest to generate api clients * fix(): json parsing of error messages * chore(): add live tests * fix(): run id handling across scalable and reporting * Adressing comments * comment * chore(): resolve documentation comments * docs(): import c# code snippets from .cs files * refactor(): update CODEOWNERS with latest labels * chore(): add git commit based display name * feat(): scalable run error handling * refactor(): convert API client class to internal * chore(): apiview review comments addressed for base sdk * refactor(): rename tokenCredential to credential * refactor(): rename PlaywrightServiceSettings to PlaywrightServiceOptions * refactor(): use serviceAuth only * refactor(): remove defaultAuth references * refactor(): convert serviceOs class to internal * refactor(): convert public fields into properties * chore(): add cancellation token in async methods * refactor(): use default for null cancellation tokens * refactor(): added users in CODEOWNERS * fix(): live test resource json * docs(): add missing sections in README files * refactor(): rename base package to Azure.Developer.MicrosoftPlaywrightTesting.TestLogger * docs(): move authenticate client section after prerequisites --------- Co-authored-by: Siddharth Singha Roy Co-authored-by: Vansh Vardhan Singh * STG 96 beta changelogs (#46451) * STG 96 beta changelogs * PR comments * Azure.Monitor.Query: invalid date string format in MetricsClient (#45998) * Persist oidc env vars in deploy template (#46477) Co-authored-by: Ben Broderick Phillips * Increment version for storage releases (#46479) * Increment package version after release of Azure.Storage.Common * Increment package version after release of Azure.Storage.Files.Shares * Increment package version after release of Azure.Storage.Blobs * Increment package version after release of Azure.Storage.Queues * Increment package version after release of Azure.Storage.Blobs.Batch * Increment package version after release of Azure.Storage.Files.DataLake * Increment package version after release of Azure.Storage.Blobs.ChangeFeed * Increment package version after release of Azure.Messaging.ServiceBus (#46480) * [Event Hubs] Convert tests to use identity auth (#46330) * [Event Hubs] Convert tests to use identity auth The focus of these changes is to convert the Event Hubs live tests to use identity-based authorization by default. Connection strings will continue to have test coverage and appear in "Hello World" samples and in legacy samples for the migration guide. * Test fixes * Fixing more typos * Test debugging * tuning test timing and renabling cancellation check * tuning test timing * Extending test timing slightly * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Update sdk/eventhub/Azure.Messaging.EventHubs/tests/Snippets/Sample02_EventHubsClientsLiveTests.cs Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * Regenerating snippets --------- Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> * [EngSys] Update central Service Bus version (#46483) The focus of these changes is to update the central version for the `Azure.Messaging.ServiceBus` package to use the latest release. * Use equality function check for persist oidc token step (#46485) Co-authored-by: Ben Broderick Phillips * Sync eng/common directory with azure-sdk-tools for PR 9106 (#46482) Co-authored-by: Scott Beddall * addressed comments * addressed the latest comments * Update version of System.Text.Json (#46508) * Update Maps codeowners (#46494) * [Storage][DataMovement] Fix perf test cleanup + other minor fixes (#46486) * TransferManager tests (#46449) * test queue failure * More tests * tests * more tests (failing) * test fixes. some new testing infra. move one property access inside a trycatch * reenable check * remove enum to depend on test-wide def * Prep for release (#46512) * Remove heaths as codeowner and add myself (#46488) * Only treat critical vulnerabilities as errors (#46515) * [Storage] [DataMovement] Moved all blob related tests out of DataMovement.Tests to DataMovement.Blobs.Test (#46475) * Initial commit * Moved more test files * More tests moved over * Compile Include over just adding the files to DM.Blobs.Tests * Enable-WriteCore-feature-for-networkcloud (#46469) * Update AutoRest C# version to 3.0.0-beta.20241009.1 (#46507) * Update Generator Version 3.0.0-beta.20241009.1 * Update SDK codes he_ma_3 * Update SDK codes de_he_2 * Update SDK codes ad_co_0 * Update SDK codes pu_sp_5 * Update SDK codes co_de_1 * Update SDK codes ma_pu_4 * Update SDK codes sq_wo_6 * bump version of System.Text.Json --------- Co-authored-by: Arcturus Zhang * 2024-05 Fleet .NET sdk generation (#46353) * 2024-05 Fleet api .net sdk generation * fix breaking change issue, add tests and changelog * change changelog version --------- Co-authored-by: frantran * Support handling function return value from worker process (#46158) Fix Azure/azure-functions-dotnet-worker#1496 The reason to add .NET 6 and .NET 8 as TFM: The worker function return value is a Newtonsoft JObject if it's an object in the worker. Since .NET Core Frameworks, the default SignalR JSON protocol uses System.Text.Json library and can't serialize Newtonsoft JObject. Therefore, we need to wrap the JObject to a System.Text.Json serializable object with a customized JSON converter. The customized JSON converter first converts the Newtonsoft JObject to JSON with Newtonsoft library, then writes the raw JSON object with System.Text.Json writer. For .NET Standard 2.0, it's not possible to write a raw JSON with System.Text.Json writer, therefore, we need to add .NET 6 and .NET 8 as TFM to write the raw JSON. * fix(digitaltwins): bump System.Text.Json to 6.0.10 (#46523) Co-authored-by: Mingzhe Huang (from Dev Box) * add release date to Fleet .NET SDK latest version (#46524) * add release date to latest version * address version comment * Update CHANGELOG.md --------- Co-authored-by: frantran Co-authored-by: Mingzhe Huang * Update AutoRest C# version to 3.0.0-beta.20241009.4 (#46526) * Update Generator Version 3.0.0-beta.20241009.4 * Update SDK codes pu_sp_5 * Update SDK codes co_de_1 * regen --------- Co-authored-by: Mingzhe Huang (from Dev Box) * Increment version for core releases (#46517) * Increment package version after release of Azure.Core * Increment package version after release of System.ClientModel * added pre-warm logic * Update Packages.Data.props (#46534) * [Storage] Prepare for Storage Base Packages Preview Patch Release and WebJobs GA Patch Release (#46537) * Prepare for Storage Patch Release * Bumping version for Webjobs for GA patch release * [Key Vault] Add CAE support & update System.ClientModel dependency version (#46013) * Add flag and enable CAE to AuthorizeRequestInternal * Enable CAE for AuthorizeRequestOnChallenge * Add flag in SecretClientOption and SecretClient * Revert "Add flag in SecretClientOption and SecretClient" This reverts commit 02a805da8c3c4e48f2e863e1e455a96d9076dd7c. * Enable CAE by default * Removing unused parameter * Remove saving the claims in the cache * Update Changelog * Update changelogs * Simplify error checking logic Addressing comment in PR * Add test for base64 claims * Override Process function to handle the first CAE Challenge after a scope challenge * Add tests * Separate credential and client transports and assert for a 401. * Nest rety inside challenge if block * Add test for claims in token * Fix CI by removing extra test case parameter * Nit changes to tests * Simplify tests * removing unnecessary mock responses * Refactor tests to test CAE in all projects * Make tests non parallelizable * Add setup method to CAE tests * Test for tokens obtained from cae challenges * Fix test / CI * Update dependency for System.ClientModel * Apply suggestions * Update AutoRest C# version to 3.0.0-beta.20241010.1 (#46561) * Update Generator Version 3.0.0-beta.20241010.1 * Update SDK codes de_he_2 * Update SDK codes ma_pu_4 * Update SDK codes sq_wo_6 * Increment version for signalr releases (#46562) * Enable WriteCore feature for storagecache (#46502) * Enable WriteCore feature for storagecache * Update assets.json * Enable WriteCore feature for healthcareapis (#46491) * Enable WriteCore feature for healthcareapis * Update assets.json * Update Azure.ResourceManager.HealthcareApis.netstandard2.0.cs * Enable-WriteCore-feature-for-servicelinker (#46520) * Enable WriteCore feature for trafficmanager (#46497) * Enable WriteCore feature for storage (#46501) * Enable-WriteCore-feature-for-servicefabricmanagedclusters (#46518) * Enable-WriteCore-feature-for-servicebus (#46505) * Enable-WriteCore-feature-for-securityinsights (#46504) * Enable-WriteCore-feature-for-purview (#46498) * Enable-WriteCore-feature-for-securitycenter (#46503) * Enable-WriteCore-feature-for-privatedns (#46496) * Enable write core feature for peering (#46493) * Enable-WriteCore-feature-for-peering * Update assets.json * Enable-WriteCore-feature-for-orbital (#46492) * Enable-WriteCore-feature-for-sphere (#46268) * Enable-WriteCore-feature-for-sphere * Update CHANGELOG.md * Update CHANGELOG.md * Enable-WriteCore-feature-for-recoveryservices-backup (#46243) * Enable-WriteCore-feature-for-recoveryservices-backup * Update assets.json * Enable-WriteCore-feature-for-hdinsightcontainers (#46463) * Enable-WriteCore-feature-for-mysql (#46466) * Enable-WriteCore-feature-for-eventgrid (#46461) * Enable-WriteCore-feature-for-labservices (#46464) * Enable-WriteCore-feature-for-network (#46467) * Enable-WriteCore-feature-for-resourcemover (#46499) * Enable-WriteCore-feature-for-devtestlabs (#46455) * Enable-WriteCore-feature-for-edgeorder (#46459) * Enable-WriteCore-feature-for-springappdiscovery (#46521) * add entra token cashing logic * Update CODEOWNERS for SignalR(#46458) * Initial commit (#46535) * [Event Hubs] Resilient management link creation (#46544) The focus of these changes is to correctly handle the scenario where the management AMQP link is in the process of closing (such as for an idle timeout) as a new operation attempts to use it. This error should be detected as a special case and retried as it is with producer and consumer operations. * Add generation of 2023-07-01-preview and new tests for dns resolver d… (#46105) * Add generation of 2023-07-01-preview and new tests for dns resolver domain list and policy * Add rule and link tests * Fix test domain names and add to code owners and fix readme link to spec blob * Fix CODEOWNERS for dns resolver * Update .github/CODEOWNERS Co-authored-by: Jesse Squire * Update .github/CODEOWNERS Co-authored-by: Jesse Squire * Fix additional codeowner addition * Add Servfail to cspell word list * Run Export-Api * Add assets file after pushing recording * Record tests for dns resolver as well * Change ActionType to DnsSecurityRuleActionTYpe * Re-record DNS security rule tests after ActionType changes * Change DNS resolver to DNS private resolver in codeowners * Add new release version and notes --------- Co-authored-by: James Co-authored-by: Jesse Squire * [CODEOWNERS] Adjust baseline errors (#46567) The focus of these changes is to remove an account from the baseline errors, as the CODEOWNERS file has been updated to remove them. * [AzureMonitorDistro] Fix livemetrics reporting incorrect values (#46429) * removing buffer capacity * remove counter * remove DocumentBuffer class * changelog * Increment version for storage releases (#46542) * [AzureMonitorExporter] prep release 1.4.0 beta2 (#45906) * disable tests in net6 and MacOS * prep release * update date * Increment version for storage releases (#46543) * Azure.Provisioning: Update Redis to provide IsAccessKeyAuthenticationDisabled (#46568) * Sync eng/common directory with azure-sdk-tools for PR 9102 (#46546) * Add CompatibleConvertFrom-Yaml to common Package-Helpers * Add CI artifact parsing to Save-Package-Properties, now each individual packageinfo.json file contains the relevant ci artifact lines for the package. This short circuits needing to re-parse this information in common checks. --------- Co-authored-by: Scott Beddall * Increment package version after release of Azure.Monitor.OpenTelemetry.Exporter (#46574) * [AzureMonitorDistro] prep release 1.3.0 beta2 (#46572) * update to new exporter beta * update release date and changelog * Enable-WriteCore-feature-for-fleet (#46462) * Enable-WriteCore-feature-for-fleet * regen * Update assets.json * Update Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs * Enable-WriteCore-feature-for-newrelicobservability (#46490) * Enable-WriteCore-feature-for-newrelicobservability * Update NewrelicManagementTestBase.cs * Update assets.json * Prepare for release (#46576) * Prepare for release * version * Update CODEOWNERS (#46575) * Update CODEOWNERS Adding @rahul-microsoft for fleet * Update CODEOWNERS Updating the alias * Enable WriteCore feature for websubsub and release a new version (#46506) * Enable WriteCore feature for webpubsub * ignore WebAppWebPubSubConnectionCRUD() * ignore WebAppKeyVaultConnectionCRUD() * Update CHANGELOG.md * Enable-WriteCore-feature-for-websites and release a new version (#46305) * Enable-WriteCore-feature-for-websites * Add temporary attribute to fix pipeline error * release preparation * Bump version of MGC (#46565) * Bump version of MGC * add dependencies * update lock file * fix dependencies * update test * remove additional namespace * specify peer dependencies * update ContainerServiceFleet variables for more clear naming (#46582) Co-authored-by: frantran * Enable-WriteCore-feature-for-operationalinsights (#46225) * Enable-WriteCore-feature-for-operationalinsights * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * Update SIAlertRuleCollectionTests.cs * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * Update BookmarkResourceTests.cs * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * Enable WriteCore feature for containerservice (#46355) * Enable WriteCore feature for containerservice * ignore WebAppWebPubSubConnectionCRUD() * Revert "ignore WebAppWebPubSubConnectionCRUD()" This reverts commit 75d395dedba6e2fad9f4b26ef6231533e76cacd7. * ignore FleetCRUDTest() * Enable-WriteCore-feature-for-recoveryservices (#46242) * Enable-WriteCore-feature-for-recoveryservices * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * Update commit to fix tsp compile (#46587) * Increment package version after release of Azure.ResourceManager.WebPubSub (#46583) * Increment package version after release of Azure.Messaging.EventGrid (#46580) * Storage json hotfix (#46591) * Increment package version after release of Azure.ResourceManager.AppService (#46584) * fix(playwighttesting): Removed cancellationToken from SetupAsync method since NUnit does not allow additional params (#46566) * Removed parameter from SetupAsync method. * update * undo last commit * update --------- Co-authored-by: guptakashish * Update test-resources.bicep (#46573) * Added the ability to provision AOAI as an optional component (#46570) * fixed cminfra * openai provisioning works * open ai client added * progress * changed ai to key auth * moved CM to WorkspaceClient abstraction * refactored built-in methods and extension methods * openai works * updated api file * disabled live tests * updated version * small tweaks * updated api file * PR feedback * removed stj override * DM Lib beta release (#46596) * [EngSys] Bump package versions (#46595) The focus of these changes is to bump packages that were flagged by component governance this week related to the STJ 8.0.4 CVE. Some older Event Hubs and RC-based references were also bumped. * Prepare for October GA release (#46600) * Fixed DM Lib Shares dependency (#46603) * fix package dependency (#46609) * [Key Vault] Prepare release for CAE feature (#46599) * Revert "[KeyVault] Add support for service version 7.6-preview.1 (#43811)" This reverts commit 699c7de7d021ff66327434ed53a357d95804547e. * Run the prepare release script * [DocumentIntelligence] Default authentication to Token Credential (#46448) * Increment version for storage releases (#46610) * Switch to TME test subscription (#46452) * [.ContainerServiceFleet] Remove the ignore attribute and fix recording file (#46616) * remove ignore attribute and fix the recording file when Servicelinker project ref updated (#46588) * Remove the ignore attribute from the test * update1 --------- Co-authored-by: melina5656 <140602263+melina5656@users.noreply.github.com> * Enable WriteCore feature for eventhub (#46169) * Enable WriteCore feature for eventhub * ignore CRUD() and AddRemoveTag(bool? useTagResource) * ignore CreateOrUpdateExistGetGetAllDelete() * Prepare for release * Enable WriteCore feature for managedserviceidentity (#46563) * Enable WriteCore feature for managedserviceidentity * ignore UserAssignedEncryptionTests() * Prepare for release * Enable-WriteCore-feature-for-compute And Release (#46310) * Enable-WriteCore-feature-for-compute * Update assets.json * Update assets.json * Update assets.json * Update CHANGELOG.md * Update CHANGELOG.md * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * Revert "[Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")]" This reverts commit d2645d7c000ac45d8885319a4b845dbf51c368e0. * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * release * Enable-WriteCore-feature-for-containerregistry And Release (#46527) * Enable-WriteCore-feature-for-containerregistry * Update assets.json * Update assets.json * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * release * Update CHANGELOG.md (#46625) * Increment package version after release of Azure.ResourceManager.ContainerRegistry (#46633) * Increment package version after release of Azure.ResourceManager.Compute (#46632) * Increment package version after release of Azure.ResourceManager.ManagedServiceIdentities (#46628) * Increment package version after release of Azure.ResourceManager.ContainerServiceFleet (#46623) * Increment package version after release of Azure.ResourceManager.EventHubs (#46627) * Increment package version after release of Azure.Identity (#46615) * Delete DAC flow diagram (#46638) * Increment package version after release of Azure.Monitor.OpenTelemetry.AspNetCore (#46641) * Sync .github/workflows directory with azure-sdk-tools for PR 9134 (#46642) * Use $GITHUB_EVENT_PATH variable instead of inline file writing * Archive github event data --------- Co-authored-by: Ben Broderick Phillips * Increment version for keyvault releases (#46647) * Increment package version after release of Azure.Security.KeyVault.Certificates * Increment package version after release of Azure.Security.KeyVault.Administration * Increment package version after release of Azure.Security.KeyVault.Keys * Increment package version after release of Azure.Security.KeyVault.Secrets * cleaned up CM workspace APIs (#46649) * cleaned up workspace APIs * PR feedback * [HealthcareApis/ApiManagement] Remove the ignore attribute and fix recording file (#46629) * [ServiceBus/EventHub] Remove the ignore attribute and fix recording file (#46630) * update (#46634) * Enable-WriteCore-feature-for-iothub And Release (#46178) * Enable-WriteCore-feature-for-iothub * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * release * Enable-WriteCore-feature-for-logic And Release (#46184) * Enable-WriteCore-feature-for-logic * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * [Ignore("This test case will cause errors in the pipeline. After fixing the problem, restore this test")] * release * release (#46621) * release (#46620) * added acs token validity check * [ContainerApps] Remove ingore attribute and fix the recording file after containerregistray release (#46635) * update * Update ContainerAppJobTests.cs * Update ContainerAppJobTests.cs * Update Packages.Data.props * Mark AzureAuthorityHosts.AzureGermany as Obsolete. (#46371) * AzurePipelinesCredential doc updates (#46668) * Use BinaryData.Empty instead of bespoke solution in SCM and Azure.Core (#46669) * Fix 41034 * update CHANGELOG * [Storage] [DataMovement] Refactor Try-style methods (#46645) * Initial commit * Changed wording of doc comments * Increment package version after release of Azure.ResourceManager.Logic (#46658) * Increment package version after release of Azure.ResourceManager.RecoveryServices (#46656) * Increment package version after release of Azure.ResourceManager.IotHub (#46655) * Increment package version after release of Azure.ResourceManager.OperationalInsights (#46657) * Sync eng/common directory with azure-sdk-tools for PR 9147 (#46682) * Changes required for sdk-repo based emitter pipelines * Rename template * Convert emitter archetype to pipeline template * Move the archetype template out of the stages folder --------- Co-authored-by: Patrick Hallisey * Set resource group env variable early so remove always works (#46680) Co-authored-by: Ben Broderick Phillips * Fix missing CloseAddressedIssues in gh event processor (#46678) Co-authored-by: Ben Broderick Phillips * Handle missing artifacts without exception (#46676) Co-authored-by: Scott Beddall * DevOpsInfrastructure - .Net SDK for GA stable version (#46652) * Generate TypeSpec SDK files * Update require in autorest.md --------- Co-authored-by: Nicholas Bergesen * update1 (#46659) * update1 (#46660) * update1 (#46662) * Enable-WriteCore-feature-for-cosmosdb (#46137) * Enable-WriteCore-feature-for-cosmosdb * Update assets.json * Update CHANGELOG.md (#46227) * chore(playwrighttesting): removed fallback authentication logic (#46667) * Removed fallback authentication logic and modified ValidateMptPAT. * updated FetchEntraIdAccessTokenAsync test * updated test * update --------- Co-authored-by: guptakashish * [ElasticSan] Add support for ElasticSan auto scale policy (#46470) * fixed comments * fix(samples): upgrade vulnerable version of `Azure.Storage.Blobs` (#46686) Co-authored-by: Mingzhe Huang (from Dev Box) * K8s-runtime SDK (#45651) * Update AutoRest C# version to 3.0.0-beta.20241017.1 (#46690) * Update Generator Version 3.0.0-beta.20241017.1 * Update SDK codes he_ma_3 * Update SDK codes de_he_2 * Update SDK codes co_de_1 * Update SDK codes ma_pu_4 * Update SDK codes sq_wo_6 * Update SDK codes ad_co_0 * Implement storage events (#46648) * Annotate Azure.Messaging.EventHubs for trim/AOT compat (#46606) * Annotate Azure.Messaging.EventHubs for trim/AOT compat * PR feedback - Annotate Azure.Messaging.EventHubs.Processor, add ci check - Add changelog entries Also make some minor fixes to the AOT compat script. * Fix RequiresUnreferencedCode message * Sync eng/common directory with azure-sdk-tools for PR 9177 (#46670) * Escape parentheses in includes to fix issues in publishing * Only escape close parens * Comments --------- Co-authored-by: Daniel Jurek * Fix storage tests-weekly matrix (#46651) - Switch storage tests over to westus2 where we have VM capacity. * Update Readme.md and changelog for GA release. (#46684) * Update Readme.md and changelog for GA release. * Update changelog * Fix issue where stand-alone ManagedIdentityCredential does not consider WorkloadIdentity (#46693) * Sync eng/common directory with azure-sdk-tools for PR 9181 (#46695) * save-package-properties.yml only activates PR diff mechanism if the service directory is "auto" --------- Co-authored-by: Scott Beddall * Azure Compute Fleet GA version 2024-11-01 Minor update to Documentation only. (#46541) * Release stable version 2024-07-10 of HybridCompute (#46581) * Update Generator Version 3.0.0-beta.20241017.2 (#46699) * Increment package version after release of Azure.ResourceManager.ContainerOrchestratorRuntime (#46706) * Increment package version after release of Azure.ResourceManager.HybridCompute (#46707) * Handle cleanup for leased and encrypted storage accounts. Reduce throttling (#46698) Co-authored-by: Ben Broderick Phillips * Added support for additional media message types: documents, videos, and audio (#46550) * Added support for additional media message types: documents, videos, and audio. * fix "Generated code is not up to date." error on the pipeline * Try adding a general condition for all configurations for TreatWarningsAsErrors * revert accidental check in of RecordedTestMode * Adding customization code for classes using obsolete method and suppress the warning inline due to the defect here: https://github.com/Azure/autorest.csharp/issues/5114 * revert the unneeded csproj setting change * update commit to latest in main * Marking the packge for release * Merge transferjobinternal (#46540) * setup of base method * erase old impls * remove child types * [CODEOWNERS] Removing invalid owners (#46710) The focus of these changes is to remove accounts that have recently become invalid for CODEOWNER inclusion and are being flagged by the linter. * Azure.Provisioning: Rename after review feedback (#46715) Azure.Provisioning: Renames after review feedback * [Storage][DataMovement] Record some tests that could not be previously recorded (#46716) * Azure.Provisioning: Unify resolvers and newslot Literal expressions (#46718) * Increment package version after release of Azure.Communication.Messages (#46713) * feat(playwrighttesting): separate api, test data processing and utility layers (#46681) * feat(playwrighttesting): separate api, data processing and utility layers * chore(): additional scalable run failure handling * chore(): api retries and logging * chore(): reporting api failure error handling * fix(): no access token error message logged with error level * chore(): remove null check condition in console writer * chore(): add different logging levels * refactor(): rename logger to microsoft-playwright-testing * Update TestProcessor.cs * Update ReporterUtils.cs * Create ReporterUtilsTests.cs * fix(): uri escape data string for workspace and run id * fix(): ad hoc fixes * fix(): handle null sas uri post refresh * chore(): change reporting api version 2024-09-01-preview * chore(): add tests for reporter * chore(): add new api info * fix(): remove parallelization from entra tests --------- Co-authored-by: Siddharth Singha Roy Co-authored-by: Kashish Gupta <90824921+kashish2508@users.noreply.github.com> * docs(): update release date in CHANGELOG (#46730) Co-authored-by: Siddharth Singha Roy * fix(): remove dot from artifact safename (#46732) Co-authored-by: Siddharth Singha Roy * Generating SDK with the latest TypeSpec commit (#46604) * Updating with the latest TypeSpec commit ID * Synced with main and re-generated SDK * Fixing a build error, ran : ..\..\..\eng\scripts\Export-API.ps1 translation * Adding Vikas as code owner * Removing cpoulain * Revert "Removing cpoulain" This reverts commit 179d4a9d7412c74ae8f17db5f946f1e19e1dd4af. * Updating the repo reference * Removing cpoulain and this account lacks the required public membership to the Microsoft GitHub organization * Azure.Provisioning: API cleanup (#46735) - Removing features that won't be shipping as GA (like preview versions, `IClientCreator`, `StorageResources`, etc.) and hiding them behind a feature flag - Fixes #46559 to correctly serialize ISO8601 duration `TimeSpan`s by adding a `Format` to `BicepValue`. - Fixes #46558 to change string interpolation to use `InterpolatedStringHandler` and also add a `BicepStringBuilder` * Let DAC chain continue for 400 responses with 'Identity not found' (#46711) * Move perf pipelines to TME subscription (#46739) Co-authored-by: Wes Haggard * [CODEOWNERS] Remove invalid account (#46741) The focus of these changes is to remove an invalid account flagged by the linter. * Azure.Provisioning: Avoid excess `null`s in BicepStringBuilder (#46742) * Sync eng/common directory with azure-sdk-tools for PR 9229 (#46743) * Remove default sub config sub-config-azure-cloud-test-resources We no longer want to default the configuration and instead default from the service connection which had the info we need. * Fix quoting --------- Co-authored-by: Wes Haggard * Update .NET SDK to remove property (#46272) * Update .NET SDK to remove property * update test cases * update test * update Assets.json test tag * remove sessionRecords * add session records back * update * update changelog.md file with new changes * Update test cases * update change log * update tests * update * update * AI Face SDK update (#45402) * Added support for the Large Face List and Large Person Group * Added support for latest Detect Liveness Session API * Change the default service API version to v1.2-preview.1. * fix(playwrighttesting): logger name and flaky tests (#46746) * fix(): logger name and flaky tests * fix(): run name fetching logic name from git --------- Co-authored-by: Siddharth Singha Roy * Increment package version after release of Azure.ResourceManager.ComputeFleet (#46745) * Update Nginx SDK version (#46758) * Initial commit (#46759) * Update for Azure Confidential Ledger Service Attention CODEOWNERS (#46760) Update for Azure Confidential Ledger Service Attention CODEOWNERS * Fix spelling of Regenerate in yaml (#46761) Co-authored-by: Patrick Hallisey * Support branch name with space in create review step (#46763) Co-authored-by: Praveen Kuttappan * Update MSAL to 4.66.1 (#46764) * [NetAppFiles] update to 2024-07-01 (#46640) * update to 2024-07-01 * update tests etc * update assets * update assets * update assets * update assets * update assets * update test * update test * update test * update changelog * Increment package version after release of Azure.AI.Vision.Face (#46770) * [CognitiveServices] Prepare to release a new version (#46701) * [signalr] Prepare to release a new version (#46727) * docs(playwrighttesting): dotnet namespace fix and CHANGELOG update (#46771) Co-authored-by: Siddharth Singha Roy * Implement Response abstraction for Azure (#46530) * Fix scenario where IMDS probe succeeds, but MI is unavailable (#46787) * Publish pipeline artifact with converted symbols (#46738) * Publish pipeline artifact with converted symbols * Use tempalteContect output * Fixed a bug in AZD integration code (#46791) * improved code that rewrites appsettings.json * removed unused namespaces * Fix symbol artifact output (#46797) * run Update-Mgmt-CI.ps1 in automation (#46748) * run Update-Mgmt-CI.ps1 in automation * Update eng/scripts/automation/GenerateAndBuildLib.ps1 Co-authored-by: Wes Haggard --------- Co-authored-by: Wes Haggard * DataFactory DotNet SDK Release (#46744) * Increment package version after release of Azure.ResourceManager.DataFactory (#46803) * AVS 2023-09-01 SDK generation (#46324) * Prepare release for Azure.ResourceManager.ContainerInstance 1.3.0-beta.1 (#46804) * chore(): 1.0.0-beta.1 post release changes (#46809) Co-authored-by: Siddharth Singha Roy * Increment package version after release of Azure.ResourceManager.ElasticSan (#46812) * feat(playwrighttesting): Add support to publish attachments (#46780) * Add support to upload attachments * fix tests * minor comments fixes * Sync eng/common directory with azure-sdk-tools for PR 9236 (#46818) * Refactor PackageProps to make the Yaml loading and processing methods common * Updates for feedback --------- Co-authored-by: James Suplizio * Prep Identity for 1.13.1 patch release (#46817) * Increment package version after release of Azure.ResourceManager.ContainerInstance (#46810) * Increment package version after release of Azure.ResourceManager.Avs (#46811) * [Azure.AI.Inference] Beta 2 (#45757) Features Added Added new EmbeddingsClient, to provide support for generating text embeddings using supported models. Add support for passing a string file path on disk in order to provide an image for chat completions. Breaking Changes ChatCompletionsClientOptions has been renamed to AzureAIInferenceClientOptions. ChatCompletions response object has been flattened. ChatCompletions.Choices has been removed, and the underlying properties have been bubbled up to be on the ChatCompletions object instead. ChatCompletionsFunctionToolCall has been replaced with ChatCompletionsToolCall. ChatCompletionsFunctionToolDefinition has been replaced with ChatCompletionsToolDefinition. ChatCompletionsToolSelectionPreset has been replaced with ChatCompletionsToolChoicePreset. ChatCompletionsNamedFunctionToolSelection has been replaced with ChatCompletionsNamedToolChoice. ChatCompletionsFunctionToolSelection has been replaced with ChatCompletionsNamedToolChoiceFunction. Bugs Fixed Fixed support for chat completions streaming while using tools. Other Changes Removed the need to manually provide an api-key header when talking to Azure OpenAI. ---------------------------------------------------------- Signed-off-by: Travis Angevine Co-authored-by: Liudmila Molkova * [Storage][DataMovement] Add perf tests for DMLib Track1 (#46768) * Adds SensitivityMask to DialogSensitivityUpdate (#46796) * Increment package version after release of Azure.AI.Vision.ImageAnalysis (#46820) * Increment package version after release of Azure.AI.Inference (#46821) * Allow default matrix selection override (#46825) Co-authored-by: Ben Broderick Phillips * Enable-WriteCore-for-Azure.Developer.DevCenter (#46779) * added setter for scopes * small test fix --------- Signed-off-by: Travis Angevine Co-authored-by: Adrian Tang Co-authored-by: Nick Liu Co-authored-by: Spencer Ofwiti Co-authored-by: Jesse Squire Co-authored-by: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Co-authored-by: Niels Heeren Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: Arcturus Zhang Co-authored-by: Minghao Chen <30464227+HarveyLink@users.noreply.github.com> Co-authored-by: Siddharth Singha Roy Co-authored-by: Siddharth Singha Roy Co-authored-by: Vansh Vardhan Singh Co-authored-by: wps0 <53907986+wps0@users.noreply.github.com> Co-authored-by: Ben Broderick Phillips Co-authored-by: Madalyn Redding Heaps <66138537+m-redding@users.noreply.github.com> Co-authored-by: Scott Beddall Co-authored-by: Charlie Chen Co-authored-by: Jacob Lauzon <96087589+jalauzon-msft@users.noreply.github.com> Co-authored-by: Jocelyn <41338290+jaschrep-msft@users.noreply.github.com> Co-authored-by: Jonathan Cárdenas Co-authored-by: Wes Haggard Co-authored-by: Wenming Liu Co-authored-by: frantran Co-authored-by: frantran Co-authored-by: yzt Co-authored-by: Mingzhe Huang Co-authored-by: Mingzhe Huang (from Dev Box) Co-authored-by: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Co-authored-by: Xinni Tong Co-authored-by: jamesvoongms <104241521+jamesvoongms@users.noreply.github.com> Co-authored-by: James Co-authored-by: Jesse Squire Co-authored-by: Timothy Mothra Co-authored-by: tg-msft Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Co-authored-by: Rahul Singh Co-authored-by: Wei Hu Co-authored-by: Kashish Gupta <90824921+kashish2508@users.noreply.github.com> Co-authored-by: guptakashish Co-authored-by: Nisha Bhatia <67986960+nisha-bhatia@users.noreply.github.com> Co-authored-by: Krzysztof Cwalina Co-authored-by: Christopher Scott Co-authored-by: Caio Saldanha Co-authored-by: melina5656 <140602263+melina5656@users.noreply.github.com> Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com> Co-authored-by: Martin Arndt <5111490+Eagle3386@users.noreply.github.com> Co-authored-by: Anne Thompson <21269347+annelo-msft@users.noreply.github.com> Co-authored-by: Patrick Hallisey Co-authored-by: Nicholas Bergesen Co-authored-by: Nicholas Bergesen Co-authored-by: yifanz7 <131133995+yifanz7@users.noreply.github.com> Co-authored-by: HE Xinyu Co-authored-by: Sven Boemer Co-authored-by: Daniel Jurek Co-authored-by: Ryan Hurey Co-authored-by: yaotongms <137821665+yaotongms@users.noreply.github.com> Co-authored-by: glorialimicrosoft <67171398+glorialimicrosoft@users.noreply.github.com> Co-authored-by: hamshavathimunibyraiah <125092972+hamshavathimunibyraiah@users.noreply.github.com> Co-authored-by: Wes Haggard Co-authored-by: emmeliaAra Co-authored-by: Han Chiang Co-authored-by: Spencer Ofwiti Co-authored-by: amruthashree18 <110563260+amruthashree18@users.noreply.github.com> Co-authored-by: Praveen Kuttappan Co-authored-by: Auðunn Co-authored-by: Crystal YU Co-authored-by: wangbwn <69622111+wangbwn@users.noreply.github.com> Co-authored-by: Ana Arias Rosales <147624519+anaarias-msft@users.noreply.github.com> Co-authored-by: Arthur Ma Co-authored-by: Puneet Agarwal <28705989+puagarwa@users.noreply.github.com> Co-authored-by: James Suplizio Co-authored-by: Travis Angevine Co-authored-by: Liudmila Molkova Co-authored-by: calvinkwtang --- .github/CODEOWNERS | 6 + .vscode/cspell.json | 6 + eng/Packages.Data.props | 5 + .../generator/Azure.Generator.sln | 6 + .../Azure.Generator/src/AzureClientPlugin.cs | 2 + .../Internal/ClientPipelineExtensions.cs | 6 + .../Local/Basic-TypeSpec/tspCodeModel.json | 6 +- .../http-client-csharp/package-lock.json | 15 + eng/packages/http-client-csharp/package.json | 8 + .../ChatCompletionsToolCall.Serialization.cs | 33 + .../AgentsApiResponseFormat.Serialization.cs | 2 +- .../src/Generated/MessageContent.cs | 2 +- ...InterpreterImageReference.Serialization.cs | 2 +- ...eltaMessageCreationObject.Serialization.cs | 2 +- .../Sample_ApiManagementServiceResource.cs | 2 + .../Samples/Sample_AvsPrivateCloudResource.cs | 4 +- .../Sample_WorkloadNetworkDnsZoneResource.cs | 1 + .../Azure.CloudMachine.All/CHANGELOG.md | 2 + .../Azure.CloudMachine/src/ClientCache.cs | 2 +- ...cognitionEvaluationResult.Serialization.cs | 2 +- .../Azure.Communication.Common/README.md | 27 + ...ure.Communication.Common.netstandard2.0.cs | 8 + .../src/CommunicationTokenCredential.cs | 10 + ...ntraCommunicationTokenCredentialOptions.cs | 47 + .../src/EntraTokenCredential.cs | 145 +++ .../src/EntraTokenGuardPolicy.cs | 80 ++ .../ThreadSafeRefreshableAccessTokenCache.cs | 14 +- .../tests/CommunicationIdentifierTest.cs | 1 - .../Identity/EntraTokenCredentialTest.cs | 230 +++++ .../Pipeline/EntraTokenGuardPolicyTests.cs | 199 +++++ .../tspCodeModel.json | 58 +- .../src/autorest.md | 1 + .../assets.json | 2 +- .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../CHANGELOG.md | 2 + .../src/autorest.md | 1 + .../Generated/DeploymentEnvironmentsClient.cs | 16 +- .../src/Generated/DevBoxesClient.cs | 72 +- .../src/Generated/DevCenterModelFactory.cs | 10 +- .../src/Generated/Models/DevBox.cs | 4 +- .../src/Generated/Models/DevBoxAction.cs | 4 +- .../Generated/Models/DevBoxImageReference.cs | 4 +- .../src/Generated/Models/DevBoxNextAction.cs | 6 +- .../Models/DevCenterEnvironmentType.cs | 7 +- .../Models/EnvironmentDefinitionParameter.cs | 6 +- .../Samples_DeploymentEnvironmentsClient.cs | 8 +- .../Samples/Samples_DevBoxesClient.cs | 8 +- .../tsp-location.yaml | 2 +- .../src/autorest.md | 1 + .../DocumentIntelligenceTestEnvironment.cs | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + ...sWithVerifySessionContent.Serialization.cs | 96 ++ .../src/autorest.md | 1 + .../CHANGELOG.md | 5 +- .../src/autorest.md | 1 + .../src/autorest.md | 1 + ...rceManager.HybridCompute.netstandard2.0.cs | 152 +--- .../src/Generated/ArcGatewayResource.cs | 2 +- ...kableHybridComputeResourceGroupResource.cs | 8 - .../HybridComputeExtensionValueData.cs | 2 +- .../HybridComputeMachineExtensionResource.cs | 4 +- .../MachineRunCommandOperationSource.cs | 38 - .../MachineRunCommandData.Serialization.cs | 753 ---------------- .../src/Generated/MachineRunCommandData.cs | 146 --- ...MachineRunCommandResource.Serialization.cs | 26 - .../Generated/MachineRunCommandResource.cs | 684 -------------- .../Models/ArcGatewayPatch.Serialization.cs | 2 +- .../src/Generated/Models/ArcSettings.cs | 2 +- .../ExtensionsResourceStatus.Serialization.cs | 305 ------- .../Models/ExtensionsResourceStatus.cs | 86 -- ...ExtensionsStatusLevelType.Serialization.cs | 30 - .../Models/ExtensionsStatusLevelType.cs | 20 - .../GatewaysListResult.Serialization.cs | 212 ----- .../Generated/Models/GatewaysListResult.cs | 80 -- .../Models/HybridComputeExecutionState.cs | 66 -- ...ineRunCommandInstanceView.Serialization.cs | 418 --------- .../Models/MachineRunCommandInstanceView.cs | 102 --- ...ineRunCommandScriptSource.Serialization.cs | 264 ------ .../Models/MachineRunCommandScriptSource.cs | 81 -- ...hineRunCommandsListResult.Serialization.cs | 219 ----- .../Models/MachineRunCommandsListResult.cs | 70 -- .../RunCommandInputParameter.Serialization.cs | 198 ----- .../Models/RunCommandInputParameter.cs | 84 -- ...RunCommandManagedIdentity.Serialization.cs | 196 ----- .../Models/RunCommandManagedIdentity.cs | 71 -- .../RestOperations/GatewaysRestOperations.cs | 731 --------------- .../MachineExtensionsRestOperations.cs | 4 +- .../MachineRunCommandsRestOperations.cs | 527 ----------- .../tests/HybridComputeManagementTestBase.cs | 76 +- ...ComputeManagementMachineRunCommandsTest.cs | 68 -- .../HybridComputeManagementMachineTest.cs | 10 + sdk/identity/Azure.Identity/CHANGELOG.md | 5 + .../src/ImdsManagedIdentityProbeSource.cs | 3 +- .../tests/ManagedIdentityCredentialTests.cs | 10 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + sdk/monitor/Azure.Monitor.Query/CHANGELOG.md | 1 + .../src/MetricsQueryResourcesOptions.cs | 1 + .../src/autorest.md | 1 + .../src/Generated/ArmNetAppModelFactory.cs | 833 +++++++++++++++--- .../src/Generated/CapacityPoolData.cs | 56 +- .../Models/AvailabilityZoneMapping.cs | 25 +- .../Generated/Models/BackupPoliciesList.cs | 15 +- .../src/Generated/Models/BackupVaultsList.cs | 25 +- .../src/Generated/Models/BackupsList.cs | 25 +- .../Models/BackupsMigrationContent.cs | 20 +- .../Models/CapacityPoolEncryptionType.cs | 15 +- .../src/Generated/Models/CapacityPoolList.cs | 25 +- .../src/Generated/Models/CapacityPoolPatch.cs | 20 +- .../Generated/Models/CapacityPoolQosType.cs | 15 +- .../Models/CoolAccessRetrievalPolicy.cs | 16 +- .../Generated/Models/EnableNetAppSubvolume.cs | 15 +- .../GetGroupIdListForLdapUserContent.cs | 20 +- .../Models/GetGroupIdListForLdapUserResult.cs | 15 +- .../src/Generated/Models/ListReplications.cs | 15 +- .../Models/NetAppAccountActiveDirectory.cs | 115 ++- .../NetAppAccountActiveDirectoryStatus.cs | 30 +- .../Models/NetAppAccountEncryption.cs | 35 +- .../src/Generated/Models/NetAppAccountList.cs | 25 +- .../Generated/Models/NetAppAccountPatch.cs | 30 +- .../Generated/Models/NetAppApplicationType.cs | 15 +- .../Generated/Models/NetAppAvsDataStore.cs | 15 +- .../Models/NetAppBackupPolicyPatch.cs | 85 +- .../src/Generated/Models/NetAppBackupType.cs | 15 +- .../Models/NetAppBackupVaultBackupPatch.cs | 15 +- .../Models/NetAppBackupVaultPatch.cs | 15 +- .../Models/NetAppCheckAvailabilityResult.cs | 35 +- .../src/Generated/Models/NetAppChownMode.cs | 15 +- .../Models/NetAppEncryptionIdentity.cs | 15 +- .../Models/NetAppEncryptionKeySource.cs | 15 +- .../Generated/Models/NetAppEndpointType.cs | 15 +- .../Generated/Models/NetAppFileAccessLog.cs | 15 +- .../NetAppFilePathAvailabilityContent.cs | 25 +- .../Models/NetAppFileServiceLevel.cs | 25 +- .../src/Generated/Models/NetAppKeySource.cs | 15 +- .../Models/NetAppKeyVaultProperties.cs | 65 +- .../Generated/Models/NetAppKeyVaultStatus.cs | 30 +- .../NetAppLdapSearchScopeConfiguration.cs | 35 +- .../src/Generated/Models/NetAppMirrorState.cs | 20 +- .../Models/NetAppNameAvailabilityContent.cs | 50 +- .../NetAppNameAvailabilityResourceType.cs | 25 +- .../Models/NetAppNameUnavailableReason.cs | 15 +- .../Generated/Models/NetAppNetworkFeature.cs | 25 +- .../Models/NetAppProvisioningState.cs | 40 +- .../Models/NetAppQuotaAvailabilityContent.cs | 50 +- .../NetAppQuotaAvailabilityResourceType.cs | 25 +- .../src/Generated/Models/NetAppRegionInfo.cs | 25 +- .../Models/NetAppRelationshipStatus.cs | 25 +- .../Models/NetAppReplicationObject.cs | 10 +- .../Models/NetAppReplicationSchedule.cs | 20 +- .../Generated/Models/NetAppRestoreStatus.cs | 65 +- .../Models/NetAppSubscriptionQuotaItem.cs | 25 +- .../Models/NetAppSubvolumeInfoPatch.cs | 25 +- .../Models/NetAppSubvolumeMetadata.cs | 105 ++- ...NetAppVolumeAuthorizeReplicationContent.cs | 15 +- ...ppVolumeBackupBackupRestoreFilesContent.cs | 45 +- .../Models/NetAppVolumeBackupConfiguration.cs | 35 +- .../Models/NetAppVolumeBackupDetail.cs | 45 +- .../Models/NetAppVolumeBackupStatus.cs | 95 +- .../NetAppVolumeBreakFileLocksContent.cs | 25 +- .../NetAppVolumeBreakReplicationContent.cs | 15 +- .../Models/NetAppVolumeDataProtection.cs | 50 +- .../Models/NetAppVolumeExportPolicyRule.cs | 155 +++- .../Models/NetAppVolumeGroupMetadata.cs | 55 +- .../Models/NetAppVolumeGroupResult.cs | 35 +- .../Models/NetAppVolumeGroupVolume.cs | 352 ++++++-- .../Models/NetAppVolumeMountTarget.cs | 50 +- .../src/Generated/Models/NetAppVolumePatch.cs | 97 +- .../Models/NetAppVolumePatchDataProtection.cs | 30 +- .../Models/NetAppVolumePlacementRule.cs | 35 +- .../Models/NetAppVolumePoolChangeContent.cs | 20 +- .../Models/NetAppVolumeQuotaRulePatch.cs | 55 +- .../Generated/Models/NetAppVolumeQuotaType.cs | 20 +- ...tAppVolumeReestablishReplicationContent.cs | 15 +- .../NetAppVolumeRelocationProperties.cs | 25 +- .../Models/NetAppVolumeReplication.cs | 60 +- .../Models/NetAppVolumeReplicationStatus.cs | 55 +- .../Models/NetAppVolumeRevertContent.cs | 15 +- .../Models/NetAppVolumeSecurityStyle.cs | 15 +- ...NetAppVolumeSnapshotRestoreFilesContent.cs | 30 +- .../NetAppVolumeStorageToNetworkProximity.cs | 25 +- .../src/Generated/Models/NetworkSiblingSet.cs | 65 +- .../NetworkSiblingSetProvisioningState.cs | 25 +- .../src/Generated/Models/NicInfo.cs | 25 +- .../Models/QueryNetworkSiblingSetContent.cs | 35 +- .../src/Generated/Models/RegionInfosList.cs | 25 +- .../Models/RegionStorageToNetworkProximity.cs | 45 +- .../Generated/Models/RelocateVolumeContent.cs | 15 +- .../Models/SmbAccessBasedEnumeration.cs | 15 +- .../src/Generated/Models/SmbNonBrowsable.cs | 15 +- .../Generated/Models/SnapshotPoliciesList.cs | 15 +- .../Models/SnapshotPolicyDailySchedule.cs | 45 +- .../Models/SnapshotPolicyHourlySchedule.cs | 35 +- .../Models/SnapshotPolicyMonthlySchedule.cs | 55 +- .../Generated/Models/SnapshotPolicyPatch.cs | 65 +- .../Models/SnapshotPolicyVolumeList.cs | 15 +- .../Models/SnapshotPolicyWeeklySchedule.cs | 55 +- .../src/Generated/Models/SnapshotsList.cs | 15 +- .../Models/SubscriptionQuotaItemList.cs | 15 +- .../src/Generated/Models/SubvolumesList.cs | 25 +- .../Models/UpdateNetworkSiblingSetContent.cs | 65 +- .../src/Generated/Models/VolumeGroupList.cs | 15 +- .../src/Generated/Models/VolumeList.cs | 25 +- .../VolumePatchPropertiesExportPolicy.cs | 15 +- .../Models/VolumePropertiesExportPolicy.cs | 15 +- .../Generated/Models/VolumeQuotaRulesList.cs | 15 +- .../Models/VolumeSnapshotProperties.cs | 15 +- .../src/Generated/NetAppAccountData.cs | 31 +- .../src/Generated/NetAppBackupData.cs | 61 +- .../src/Generated/NetAppBackupPolicyData.cs | 91 +- .../src/Generated/NetAppBackupVaultData.cs | 11 +- .../src/Generated/NetAppSubvolumeInfoData.cs | 41 +- .../src/Generated/NetAppVolumeData.cs | 333 +++++-- .../src/Generated/NetAppVolumeGroupData.cs | 41 +- .../Generated/NetAppVolumeQuotaRuleData.cs | 41 +- .../src/Generated/NetAppVolumeSnapshotData.cs | 46 +- .../src/Generated/RegionInfoResourceData.cs | 21 +- .../src/Generated/SnapshotPolicyData.cs | 71 +- .../src/autorest.md | 4 +- .../tests/ResourceTests/VolumeTests.cs | 44 + .../CHANGELOG.md | 2 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/Azure.ResourceManager.Nginx.csproj | 2 +- .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/Implementation/ServiceClient.cs | 1 - .../src/autorest.md | 1 + .../Models/RedisCommonConfiguration.cs | 6 + .../src/Generated/RedisResource.cs | 7 + .../src/Generated/Models/LocalUserKeys.cs | 2 +- .../Azure.Provisioning/src/BicepValue.cs | 3 + .../src/Expressions/BicepTypeMapping.cs | 2 +- .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../CHANGELOG.md | 2 + .../src/autorest.md | 1 + .../CHANGELOG.md | 2 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../CHANGELOG.md | 2 +- .../src/Azure.ResourceManager.SignalR.csproj | 2 +- .../CHANGELOG.md | 5 + ...e.WebJobs.Extensions.SignalRService.csproj | 2 +- .../TriggerBindings/Utils/JTokenWrapper.cs | 2 +- .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../Azure.Storage.Blobs.Batch/CHANGELOG.md | 15 + .../CHANGELOG.md | 10 + sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 1 - sdk/storage/Azure.Storage.Common/CHANGELOG.md | 15 + .../CHANGELOG.md | 10 + .../src/TransferJobInternal.cs | 4 + .../tests/TransferManagerTests.cs | 2 +- .../Azure.Storage.Files.DataLake/CHANGELOG.md | 18 + .../Azure.Storage.Files.Shares/CHANGELOG.md | 18 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + .../src/autorest.md | 1 + 272 files changed, 5770 insertions(+), 6827 deletions(-) create mode 100644 sdk/communication/Azure.Communication.Common/src/EntraCommunicationTokenCredentialOptions.cs create mode 100644 sdk/communication/Azure.Communication.Common/src/EntraTokenCredential.cs create mode 100644 sdk/communication/Azure.Communication.Common/src/EntraTokenGuardPolicy.cs create mode 100644 sdk/communication/Azure.Communication.Common/tests/Identity/EntraTokenCredentialTest.cs create mode 100644 sdk/communication/Azure.Communication.Common/tests/Pipeline/EntraTokenGuardPolicyTests.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/MachineRunCommandOperationSource.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandData.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandData.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandResource.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandResource.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsResourceStatus.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsResourceStatus.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsStatusLevelType.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsStatusLevelType.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/GatewaysListResult.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/GatewaysListResult.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeExecutionState.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandScriptSource.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandScriptSource.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandInputParameter.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandInputParameter.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandManagedIdentity.Serialization.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandManagedIdentity.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/GatewaysRestOperations.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs delete mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/tests/Scenario/HybridComputeManagementMachineRunCommandsTest.cs diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 57b194adf04d..fb280b419239 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1045,6 +1045,12 @@ # ServiceLabel: %Network - DNS Private Resolver %Mgmt # ServiceOwners: @jamesvoongms @jotrivet +# PRLabel: %Network - DNS Private Resolver +/sdk/dnsresolver/Azure.ResourceManager.*/ @jamesvoongms @jotrivet + +# ServiceLabel: %Network - DNS Private Resolver %Mgmt +# ServiceOwners: @jamesvoongms @jotrivet + # PRLabel: %New Relic /sdk/newrelicobservability/Azure.ResourceManager.*/ @vipray-ms diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 23632732e354..e7feb944e487 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -263,6 +263,12 @@ "Drtm", "Hvci" ] + }, + { + "filename": "**/sdk/computefleet/**/*.cs", + "words": [ + "Rdma" + ] }, { "filename": "**/sdk/computefleet/**/*.cs", diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index af7d96b3d056..248644311994 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -199,6 +199,11 @@ + + + + + diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md index f7887119e69a..954ce4441ba5 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md @@ -17,6 +17,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true enable-bicep-serialization: true # mgmt-debug: # show-serialized-names: true diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md b/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md index 621c0fb30e55..be8286d2e3d4 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md @@ -18,6 +18,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true rename-mapping: EndPoint.ipAddress: -|ip-address diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md b/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md index d340783baa26..1aee807aff21 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md +++ b/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md @@ -18,6 +18,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs index a2aef1df8196..1d4f423da5f4 100644 --- a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs +++ b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. - using System; using Azure.Core.Serialization; using Azure.Core; diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md index c7043f5f2cd2..6d2b59ee3af7 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md @@ -20,6 +20,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true enable-bicep-serialization: true #mgmt-debug: diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs index 13f471fb444a..803e9eec7b61 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs @@ -150,6 +150,12 @@ public BicepValue NotifyKeyspaceEvents } private BicepValue? _notifyKeyspaceEvents; + /// + /// The keyspace events which should be monitored. + /// + public BicepValue NotifyKeyspaceEvents { get => _notifyKeyspaceEvents; set => _notifyKeyspaceEvents.Assign(value); } + private readonly BicepValue _notifyKeyspaceEvents; + /// /// Preferred auth method to communicate to storage account used for data /// archive, specify SAS or ManagedIdentity, default value is SAS. diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs index c17448d5b950..e6ad99fe13a1 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs @@ -84,6 +84,13 @@ public BicepValue IsAccessKeyAuthenticationDisabled } private BicepValue? _isAccessKeyAuthenticationDisabled; + /// + /// Authentication to Redis through access keys is disabled when set as + /// true. Default value is false. + /// + public BicepValue IsAccessKeyAuthenticationDisabled { get => _isAccessKeyAuthenticationDisabled; set => _isAccessKeyAuthenticationDisabled.Assign(value); } + private readonly BicepValue _isAccessKeyAuthenticationDisabled; + /// /// Optional: requires clients to use a specified TLS version (or higher) /// to connect (e,g, '1.0', '1.1', '1.2'). diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs index fc3172a302a6..683acc7f1b7f 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs @@ -52,4 +52,4 @@ protected override void DefineProvisionableProperties() _sshAuthorizedKeys = DefineListProperty("SshAuthorizedKeys", ["sshAuthorizedKeys"], isOutput: true); _sharedKey = DefineProperty("SharedKey", ["sharedKey"], isOutput: true, isSecure: true); } -} +} \ No newline at end of file diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs index 3f449b44fd26..ae27b0017b36 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs @@ -57,6 +57,9 @@ public abstract class BicepValue : IBicepValue // Optional format defining how values should be serialized internal string? Format { get; set; } = null; + // Optional format defining how values should be serialized + internal string? Format { get; set; } = null; + // Indicate whether this value is empty or should be included in output [EditorBrowsable(EditorBrowsableState.Never)] public virtual bool IsEmpty => _kind == BicepValueKind.Unset; diff --git a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs index 7b66d9b47838..2048662539fc 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs @@ -170,4 +170,4 @@ private static string GetEnumValue(Enum value) } return value.ToString(); } -} +} \ No newline at end of file diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md b/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md index a38dde32e721..c9def4098cad 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md +++ b/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md @@ -17,6 +17,7 @@ sample-gen: clear-output-folder: true skip-csproj: true use-model-reader-writer: true +use-write-core: true modelerfour: flatten-payloads: false diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index bf855ffd7656..7f4ee9aba2fc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -19,6 +19,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true models-to-treat-empty-string-as-null: - IaasComputeVmProtectedItem diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md index 8b8c4508a66a..cdedfe00d1a8 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md @@ -18,6 +18,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true rename-mapping: CertificateRequest: RecoveryServicesCertificateContent diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md index 353a4254dbcd..078f86be85b0 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md @@ -20,6 +20,7 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true +use-write-core: true rename-mapping: AffectedMoveResource.id: -|arm-id diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md index a897795fec59..f3f3748130fd 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md @@ -25,6 +25,7 @@ modelerfour: flatten-payloads: false lenient-model-deduplication: true use-model-reader-writer: true +use-write-core: true deserialize-null-collection-as-null-value: true #mgmt-debug: diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md index 714eb0f51a6a..f81eea86cdbc 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md @@ -24,6 +24,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true enable-bicep-serialization: true #mgmt-debug: diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md b/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md index ee48f9cdb681..053b395eef3c 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +- Exposed `JsonModelWriteCore` for model serialization procedure. + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md index 65ff7a59fcb1..f76839076080 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md @@ -17,6 +17,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true enable-bicep-serialization: true request-path-to-resource-name: diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md index b491dac26858..d0be54338cce 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +- Exposed `JsonModelWriteCore` for model serialization procedure. + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md index 4daae1dff57b..3fe3fbddbc15 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md @@ -19,6 +19,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md index 4ebbecf6d1f1..0318c9f301c1 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md @@ -19,6 +19,7 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true +use-write-core: true rename-mapping: TargetServiceBase: TargetServiceBaseInfo diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md b/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md index f674eb6512ca..047b44d2a2e9 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md +++ b/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.1.3 (2024-10-23) ### Features Added diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj b/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj index 5177d06a3dc8..b56df8b2820f 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.1.3 1.1.3 Azure.ResourceManager.SignalR diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md index 04ccf9143e1e..4f5b14178bb1 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md @@ -19,6 +19,11 @@ ### Bugs Fixed * Fixed the issue that the function return value from isolated-worker process is not handled correctly. +## 1.15.0 (2024-10-14) + +### Bugs Fixed +* Fixed the issue that the function return value from isolated-worker process is not handled correctly. + ## 1.14.0 (2024-05-24) ### Other Changes diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj index 5675fb4626f1..df1753298ec1 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj @@ -1,7 +1,7 @@  - $(RequiredTargetFrameworks) + $(RequiredTargetFrameworks);net6.0;net8.0 Microsoft.Azure.WebJobs.Extensions.SignalRService 2.0.0-beta.1 diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs index 8753d3ec8884..46ee007fe1fc 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs @@ -59,4 +59,4 @@ public void Serialize(ref MessagePackWriter writer, JTokenWrapper value, Message var jsonString = value.Value.ToString(); MessagePackSerializer.ConvertFromJson(jsonString, ref writer, options); } -} \ No newline at end of file +} diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md b/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md index 9b5644b3f80b..3e6c10dfb840 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md @@ -18,6 +18,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md index 40972b57fb1b..4578d6f7fb76 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md @@ -17,6 +17,7 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true +use-write-core: true mgmt-debug: show-serialized-names: true diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md index 9c1ca5c5fda9..4c886a68427a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md +++ b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md @@ -19,6 +19,7 @@ modelerfour: lenient-model-deduplication: true use-model-reader-writer: true enable-bicep-serialization: true +use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md index f6bcf9e2b44f..d5f389677e75 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md @@ -25,6 +25,21 @@ ### Features Added - Added support for service version 2025-01-05. +## 12.19.1 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.20.0-beta.2 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.20.0-beta.1 (2024-10-08) + +### Features Added +- Added support for service version 2025-01-05. + ## 12.19.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md index af2ef51643b1..549b4e73f447 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md @@ -20,6 +20,16 @@ ### Features Added - Added support for service version 2025-01-05. +## 12.0.0-preview.51 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.0.0-preview.50 (2024-10-08) + +### Features Added +- Added support for service version 2025-01-05. + ## 12.0.0-preview.49 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index 3070cac9a9a6..b669a242e315 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -32,7 +32,6 @@ - Added BlobErrorCode.BlobAccessTierNotSupportedForAccountType enum value. ### Bugs Fixed -- Fixed bug where BlobClient.Upload(BinaryData content, ..) did not properly dispose stream after wrapping the BinaryData passed. ## 12.22.1 (2024-09-25) diff --git a/sdk/storage/Azure.Storage.Common/CHANGELOG.md b/sdk/storage/Azure.Storage.Common/CHANGELOG.md index dc1764d16bc6..d58d5f9ed92f 100644 --- a/sdk/storage/Azure.Storage.Common/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Common/CHANGELOG.md @@ -25,6 +25,21 @@ ### Features Added - This release contains bug fixes to improve quality. +## 12.21.1 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.22.0-beta.2 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.22.0-beta.1 (2024-10-08) + +### Features Added +- This release contains bug fixes to improve quality. + ## 12.21.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md index 812ec986f4dd..0fee730cac3f 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md @@ -40,6 +40,16 @@ - Changed `FromDirectory(string directoryUri, ShareFileStorageResourceOptions options = default)` to `FromDirectory(Uri directoryUri, ShareFileStorageResourceOptions options = default)` - Changed `FromFile(string fileUri, ShareFileStorageResourceOptions options = default)` to `FromFile(Uri fileUri, ShareFileStorageResourceOptions options = default)` +### Bugs Fixed + +### Other Changes + +## 12.0.0-beta.3 (2024-10-14) + +### Breaking Changes +- Changed `FromDirectory(string directoryUri, ShareFileStorageResourceOptions options = default)` to `FromDirectory(Uri directoryUri, ShareFileStorageResourceOptions options = default)` +- Changed `FromFile(string fileUri, ShareFileStorageResourceOptions options = default)` to `FromFile(Uri fileUri, ShareFileStorageResourceOptions options = default)` + ### Bugs Fixed - Fixed bug where copying a Azure Storage Blob to a Share File would not be able to convert Content Language and Content Encoding to the `string[]` type. - Fixed bug where LastWrittenOn property was not being preserved when copying a Share File to another Share File. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs index 068d29f8cc7d..ac957a484b98 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs @@ -30,6 +30,10 @@ internal delegate Task CreateJobPartMultiAsync( private readonly CreateJobPartMultiAsync _createJobPartMultiAsync; + private readonly CreateJobPartSingleAsync _createJobPartSingleAsync; + + private readonly CreateJobPartMultiAsync _createJobPartMultiAsync; + /// /// Plan file writer for the respective job /// diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs index 9eb807ed4d56..7864eb7d427f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs @@ -395,7 +395,7 @@ public async Task TransferFailAtQueue( jobsProcessor, partsProcessor, chunksProcessor, - jobBuilder.Object, + jobBuilder, checkpointer.Object, default); diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index a5d4e5644226..2a6568b378a0 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -28,6 +28,24 @@ - Deprecated Read()/ReadAsync() in favor of ReadStreaming()/ReadStreamingAsync() and ReadContent()/ReadContentAsync() for DataLake #45418 - Added GenerateUserDelegationSasUri() to DataLakeFileSystemClient, DataLakePathClient, DataLakeDirectoryClient, and DataLakeFileClient. +## 12.20.1 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.21.0-beta.2 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.21.0-beta.1 (2024-10-08) + +### Features Added +- Added support for service version 2025-01-05. +- Added GenerateUserDelegationSasUri() for DataLakePathClient, DataLakeFileSystemClient, and DataLakeDirectoryClient +- Deprecated Read()/ReadAsync() in favor of ReadStreaming()/ReadStreamingAsync() and ReadContent()/ReadContentAsync() for DataLake #45418 +- Added GenerateUserDelegationSasUri() to DataLakeFileSystemClient, DataLakePathClient, DataLakeDirectoryClient, and DataLakeFileClient. + ## 12.20.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md index 420d6cc0e768..cefd119306f1 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md @@ -39,6 +39,24 @@ - Added support for specifying the binary file permission format for ShareFileClient.StartCopy() and .StartCopyAsync(). - Added ShareAccessTier.Premium enum value. +## 12.20.1 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.21.0-beta.2 (2024-10-10) + +### Other Changes +- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. + +## 12.21.0-beta.1 (2024-10-08) + +### Features Added +- Added support for service version 2025-01-05. +- Added support for the provisioned V2 billing model. +- Added support for specifying the binary file permission format for ShareFileClient.StartCopy() and .StartCopyAsync(). +- Added ShareAccessTier.Premium enum value. + ## 12.20.0 (2024-09-18) ### Features Added diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md index 8c30cc7e2795..cf009fdada67 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md @@ -19,6 +19,7 @@ modelerfour: flatten-payloads: false lenient-model-deduplication: true use-model-reader-writer: true +use-write-core: true rename-mapping: Cache.properties.mountAddresses: -|ip-address diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md index 82a5a628063f..9715154e0516 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md @@ -16,6 +16,7 @@ sample-gen: clear-output-folder: true skip-csproj: true use-model-reader-writer: true +use-write-core: true rename-mapping: CheckTrafficManagerRelativeDnsNameAvailabilityParameters: TrafficManagerRelativeDnsNameAvailabilityContent diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md index 68b1645608c1..b494a38ec13f 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md @@ -18,6 +18,7 @@ modelerfour: flatten-payloads: false use-model-reader-writer: true enable-bicep-serialization: true +use-write-core: true no-property-type-replacement: PrivateEndpoint diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md index 2b565f0efe4c..e666507ca57e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md +++ b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md @@ -22,6 +22,7 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true +use-write-core: true enable-bicep-serialization: true #mgmt-debug: From c5990f28e56005eaad7321c8ee09ec6cc30244b7 Mon Sep 17 00:00:00 2001 From: Aigerim Date: Tue, 31 Dec 2024 13:16:52 +0100 Subject: [PATCH 2/4] [ACS][Common] OPS - Added Routing Logic Based on Scopes (#47609) * added routing logic * fixed comments * reverted back optional scope param * fixed tests --- .../Azure.Communication.Common/CHANGELOG.md | 1 + .../Azure.Communication.Common/README.md | 36 ++++- .../src/EntraTokenCredential.cs | 48 ++++++- .../Identity/EntraTokenCredentialTest.cs | 127 +++++++++++++----- 4 files changed, 167 insertions(+), 45 deletions(-) diff --git a/sdk/communication/Azure.Communication.Common/CHANGELOG.md b/sdk/communication/Azure.Communication.Common/CHANGELOG.md index 9b0bede7dc11..884c23905795 100644 --- a/sdk/communication/Azure.Communication.Common/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Common/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.4.0-beta.1 (Unreleased) ### Features Added +- Introduced support for `Azure.Core.TokenCredential` with `EntraCommunicationTokenCredentialOptions`, enabling Entra users to authorize Communication Services and allowing an Entra user with a Teams license to use Teams Phone Extensibility features through the Azure Communication Services resource. ### Breaking Changes diff --git a/sdk/communication/Azure.Communication.Common/README.md b/sdk/communication/Azure.Communication.Common/README.md index 7771a624e260..7308319eb436 100644 --- a/sdk/communication/Azure.Communication.Common/README.md +++ b/sdk/communication/Azure.Communication.Common/README.md @@ -105,24 +105,46 @@ using var tokenCredential = new CommunicationTokenCredential( ### Create a credential with a token credential capable of obtaining an Entra user token For scenarios where an Entra user can be used with Communication Services, you need to initialize any implementation of [Azure.Core.TokenCredential](https://docs.microsoft.com/dotnet/api/azure.core.tokencredential?view=azure-dotnet) and provide it to the ``EntraCommunicationTokenCredentialOptions``. -Along with this, you must provide the URI of the Azure Communication Services resource and the scopes required for the Entra user token. These scopes determine the permissions granted to the token: - +Along with this, you must provide the URI of the Azure Communication Services resource and the scopes required for the Entra user token. These scopes determine the permissions granted to the token. +If the scopes are not provided, by default, it sets the scopes to `https://communication.azure.com/clients/.default`. ```C# var options = new InteractiveBrowserCredentialOptions { TenantId = "", ClientId = "", - RedirectUri = new Uri(""), - AuthorityHost = new Uri("https://login.microsoftonline.com/") + RedirectUri = new Uri("") }; var entraTokenCredential = new InteractiveBrowserCredential(options); var entraTokenCredentialOptions = new EntraCommunicationTokenCredentialOptions( resourceEndpoint: "https://.communication.azure.com", - entraTokenCredential: entraTokenCredential -){ + entraTokenCredential: entraTokenCredential) + { Scopes = new[] { "https://communication.azure.com/clients/VoIP" } -}; + }; + +var credential = new CommunicationTokenCredential(entraTokenCredentialOptions); + +``` + +The same approach can be used for authorizing an Entra user with a Teams license to use Teams Phone Extensibility features through your Azure Communication Services resource. +This requires providing the `https://auth.msft.communication.azure.com/TeamsExtension.ManageCalls` scope +```C# +var options = new InteractiveBrowserCredentialOptions + { + TenantId = "", + ClientId = "", + RedirectUri = new Uri("") + }; +var entraTokenCredential = new InteractiveBrowserCredential(options); + +var entraTokenCredentialOptions = new EntraCommunicationTokenCredentialOptions( + resourceEndpoint: "https://.communication.azure.com", + entraTokenCredential: entraTokenCredential) + ) + { + Scopes = new[] { "https://auth.msft.communication.azure.com/TeamsExtension.ManageCalls" } + }; var credential = new CommunicationTokenCredential(entraTokenCredentialOptions); diff --git a/sdk/communication/Azure.Communication.Common/src/EntraTokenCredential.cs b/sdk/communication/Azure.Communication.Common/src/EntraTokenCredential.cs index 9660851235db..90567bb6e524 100644 --- a/sdk/communication/Azure.Communication.Common/src/EntraTokenCredential.cs +++ b/sdk/communication/Azure.Communication.Common/src/EntraTokenCredential.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -15,8 +16,16 @@ namespace Azure.Communication /// internal sealed class EntraTokenCredential : ICommunicationTokenCredential { + private const string TeamsExtensionScopePrefix = "https://auth.msft.communication.azure.com/"; + private const string ComunicationClientsScopePrefix = "https://communication.azure.com/clients/"; + private const string TeamsExtensionEndpoint = "/access/teamsPhone/:exchangeAccessToken"; + private const string TeamsExtensionApiVersion = "2025-03-02-preview"; + private const string ComunicationClientsEndpoint = "/access/entra/:exchangeAccessToken"; + private const string ComunicationClientsApiVersion = "2024-04-01-preview"; + private HttpPipeline _pipeline; private string _resourceEndpoint; + private string[] _scopes { get; set; } private readonly ThreadSafeRefreshableAccessTokenCache _accessTokenCache; /// @@ -27,6 +36,7 @@ internal sealed class EntraTokenCredential : ICommunicationTokenCredential public EntraTokenCredential(EntraCommunicationTokenCredentialOptions options, HttpPipelineTransport pipelineTransport = null) { this._resourceEndpoint = options.ResourceEndpoint; + this._scopes = options.Scopes; _pipeline = CreatePipelineFromOptions(options, pipelineTransport); _accessTokenCache = new ThreadSafeRefreshableAccessTokenCache( ExchangeEntraToken, @@ -99,14 +109,9 @@ private async ValueTask ExchangeEntraTokenAsync(bool async, Cancell private HttpMessage CreateRequestMessage() { - var uri = new RequestUriBuilder(); - uri.Reset(new Uri(_resourceEndpoint)); - uri.AppendPath("/access/entra/:exchangeAccessToken", false); - uri.AppendQuery("api-version", "2024-04-01-preview", true); - var message = _pipeline.CreateMessage(); var request = message.Request; - request.Uri = uri; + request.Uri = CreateRequestUri(); request.Method = RequestMethod.Post; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -115,6 +120,37 @@ private HttpMessage CreateRequestMessage() return message; } + private RequestUriBuilder CreateRequestUri() + { + var uri = new RequestUriBuilder(); + uri.Reset(new Uri(_resourceEndpoint)); + + var (endpoint, apiVersion) = DetermineEndpointAndApiVersion(); + uri.AppendPath(endpoint, false); + uri.AppendQuery("api-version", apiVersion, true); + return uri; + } + + private (string Endpoint, string ApiVersion) DetermineEndpointAndApiVersion() + { + if (_scopes == null || !_scopes.Any()) + { + throw new ArgumentException($"Scopes validation failed. Ensure all scopes start with either {TeamsExtensionScopePrefix} or {ComunicationClientsScopePrefix}.", nameof(_scopes)); + } + else if (_scopes.All(item => item.StartsWith(TeamsExtensionScopePrefix))) + { + return (TeamsExtensionEndpoint, TeamsExtensionApiVersion); + } + else if (_scopes.All(item => item.StartsWith(ComunicationClientsScopePrefix))) + { + return (ComunicationClientsEndpoint, ComunicationClientsApiVersion); + } + else + { + throw new ArgumentException($"Scopes validation failed. Ensure all scopes start with either {TeamsExtensionScopePrefix} or {ComunicationClientsScopePrefix}.", nameof(_scopes)); + } + } + private AccessToken ParseAccessTokenFromResponse(Response response) { switch (response.Status) diff --git a/sdk/communication/Azure.Communication.Common/tests/Identity/EntraTokenCredentialTest.cs b/sdk/communication/Azure.Communication.Common/tests/Identity/EntraTokenCredentialTest.cs index c7cea3fb737d..f07ef406b4f6 100644 --- a/sdk/communication/Azure.Communication.Common/tests/Identity/EntraTokenCredentialTest.cs +++ b/sdk/communication/Azure.Communication.Common/tests/Identity/EntraTokenCredentialTest.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Linq; using System.Threading; using System.Threading.Tasks; using Azure.Core; @@ -24,9 +25,26 @@ public class EntraTokenCredentialTest protected string TokenResponse = string.Format(TokenResponseTemplate, SampleToken, SampleTokenExpiry); private Mock _mockTokenCredential = null!; - private string[] _scopes = new string[] { "https://communication.azure.com/clients/VoIP" }; + private const string comunicationClientsEndpoint = "/access/entra/:exchangeAccessToken"; + private const string communicationClientsScope = "https://communication.azure.com/clients/VoIP"; + private const string teamsExtensionEndpoint = "/access/teamsPhone/:exchangeAccessToken"; + private const string teamsExtensionScope = "https://auth.msft.communication.azure.com/TeamsExtension.ManageCalls"; private string _resourceEndpoint = "https://myResource.communication.azure.com"; + private static readonly object[] validScopes = + { + new object[] { new string[] { communicationClientsScope }}, + new object[] { new string[] { teamsExtensionScope } } + }; + private static readonly object[] invalidScopes = + { + new object[] { new string[] { communicationClientsScope, teamsExtensionScope } }, + new object[] { new string[] { teamsExtensionScope, communicationClientsScope } }, + new object[] { new string[] { "invalidScope" } }, + new object[] { new string[] { "" } }, + new object[] { new string[] { } } + }; + [SetUp] public void Setup() { @@ -37,28 +55,28 @@ public void Setup() .ReturnsAsync(new AccessToken(SampleToken, expiryTime)); } - [Test] - public void EntraTokenCredential_Init_ThrowsErrorWithNulls() + [Test, TestCaseSource(nameof(validScopes))] + public void EntraTokenCredential_Init_ThrowsErrorWithNulls(string[] scopes) { Assert.Throws(() => new EntraCommunicationTokenCredentialOptions( null, _mockTokenCredential.Object) { - Scopes = _scopes + Scopes = scopes }); Assert.Throws(() => new EntraCommunicationTokenCredentialOptions( "", _mockTokenCredential.Object) { - Scopes = _scopes + Scopes = scopes }); Assert.Throws(() => new EntraCommunicationTokenCredentialOptions( _resourceEndpoint, null) { - Scopes = _scopes + Scopes = scopes }); } @@ -72,25 +90,25 @@ public void EntraTokenCredential_InitWithoutScopes_InitsWithDefaultScope() Assert.AreEqual(credential.Scopes, scopes); } - [Test] - public void EntraTokenCredential_Init_FetchesTokenImmediately() + [Test, TestCaseSource(nameof(validScopes))] + public void EntraTokenCredential_Init_FetchesTokenImmediately(string[] scopes) { // Arrange var expiryTime = DateTimeOffset.Parse(SampleTokenExpiry, null, System.Globalization.DateTimeStyles.RoundtripKind); - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var mockTransport = CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse) }); var entraTokenCredential = new EntraTokenCredential(options, mockTransport); // Assert _mockTokenCredential.Verify(tc => tc.GetTokenAsync(It.IsAny(), It.IsAny()), Times.Once); } - [Test] - public async Task EntraTokenCredential_GetToken_ReturnsToken() + [Test, TestCaseSource(nameof(validScopes))] + public async Task EntraTokenCredential_GetToken_ReturnsToken(string[] scopes) { // Arrange var expiryTime = DateTimeOffset.Parse(SampleTokenExpiry, null, System.Globalization.DateTimeStyles.RoundtripKind); - var options = CreateEntraTokenCredentialOptions(); - var mockTransport = CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse) }); + var options = CreateEntraTokenCredentialOptions(scopes); + var mockTransport = (MockTransport) CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse) }); var entraTokenCredential = new EntraTokenCredential(options, mockTransport); // Act @@ -99,11 +117,38 @@ public async Task EntraTokenCredential_GetToken_ReturnsToken() // Assert Assert.AreEqual(SampleToken, token.Token); Assert.AreEqual(token.ExpiresOn, expiryTime); + if (scopes.Contains(teamsExtensionScope)) + { + Assert.AreEqual(teamsExtensionEndpoint, mockTransport.SingleRequest.Uri.Path); + } + else + { + Assert.AreEqual(comunicationClientsEndpoint, mockTransport.SingleRequest.Uri.Path); + } _mockTokenCredential.Verify(tc => tc.GetTokenAsync(It.IsAny(), It.IsAny()), Times.Once); } [Test] - public async Task EntraTokenCredential_GetToken_InternalEntraTokenChangeInvalidatesCachedToken() + public async Task EntraTokenCredential_InitWithoutScopes_ReturnsComunicationClientsToken() + { + // Arrange + var expiryTime = DateTimeOffset.Parse(SampleTokenExpiry, null, System.Globalization.DateTimeStyles.RoundtripKind); + var options = new EntraCommunicationTokenCredentialOptions(_resourceEndpoint, _mockTokenCredential.Object); + var mockTransport = (MockTransport)CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse) }); + var entraTokenCredential = new EntraTokenCredential(options, mockTransport); + + // Act + var token = await entraTokenCredential.GetTokenAsync(CancellationToken.None); + + // Assert + Assert.AreEqual(SampleToken, token.Token); + Assert.AreEqual(token.ExpiresOn, expiryTime); + Assert.AreEqual(comunicationClientsEndpoint, mockTransport.SingleRequest.Uri.Path); + _mockTokenCredential.Verify(tc => tc.GetTokenAsync(It.IsAny(), It.IsAny()), Times.Once); + } + + [Test, TestCaseSource(nameof(validScopes))] + public async Task EntraTokenCredential_GetToken_InternalEntraTokenChangeInvalidatesCachedToken(string[] scopes) { // Arrange var expiryTime = DateTimeOffset.Parse(SampleTokenExpiry, null, System.Globalization.DateTimeStyles.RoundtripKind); @@ -114,7 +159,7 @@ public async Task EntraTokenCredential_GetToken_InternalEntraTokenChangeInvalida .ReturnsAsync(new AccessToken("Entra token for call from constructor", refreshOn)) .ReturnsAsync(new AccessToken("Entra token for the first getToken call token", expiryTime)); - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var latestTokenResponse = string.Format(TokenResponseTemplate, newToken, SampleTokenExpiry); var mockTransport = CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse), CreateMockResponse(200, latestTokenResponse) }); var entraTokenCredential = new EntraTokenCredential(options, mockTransport); @@ -126,11 +171,11 @@ public async Task EntraTokenCredential_GetToken_InternalEntraTokenChangeInvalida _mockTokenCredential.Verify(tc => tc.GetTokenAsync(It.IsAny(), It.IsAny()), Times.Exactly(2)); } - [Test] - public async Task EntraTokenCredential_GetToken_MultipleCallsReturnsCachedToken() + [Test, TestCaseSource(nameof(validScopes))] + public async Task EntraTokenCredential_GetToken_MultipleCallsReturnsCachedToken(string[] scopes) { // Arrange - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var mockTransport = CreateMockTransport(new[] { CreateMockResponse(200, TokenResponse) }); var entraTokenCredential = new EntraTokenCredential(options, mockTransport); @@ -145,11 +190,11 @@ public async Task EntraTokenCredential_GetToken_MultipleCallsReturnsCachedToken( _mockTokenCredential.Verify(tc => tc.GetTokenAsync(It.IsAny(), It.IsAny()), Times.Once); } - [Test] - public void EntraTokenCredential_GetToken_ThrowsFailedResponse() + [Test, TestCaseSource(nameof(validScopes))] + public void EntraTokenCredential_GetToken_ThrowsFailedResponse(string[] scopes) { // Arrange - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var errorMessage = "{\"error\":{\"code\":\"BadRequest\",\"message\":\"Invalid request.\"}}"; var mockResponses = new[] { @@ -163,11 +208,11 @@ public void EntraTokenCredential_GetToken_ThrowsFailedResponse() Assert.ThrowsAsync(async () => await entraTokenCredential.GetTokenAsync(CancellationToken.None)); } - [Test] - public void EntraTokenCredential_GetToken_ThrowsInvalidJson() + [Test, TestCaseSource(nameof(validScopes))] + public void EntraTokenCredential_GetToken_ThrowsInvalidJson(string[] scopes) { // Arrange - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var errorMessage = "{\"error\":{\"code\":\"BadRequest\",\"message\":\"Invalid request.\"}}"; var mockResponses = new[] { @@ -182,11 +227,11 @@ public void EntraTokenCredential_GetToken_ThrowsInvalidJson() Assert.ThrowsAsync(async () => await entraTokenCredential.GetTokenAsync(CancellationToken.None)); } - [Test] - public void EntraTokenCredential_GetToken_RetriesThreeTimesOnTransientError() + [Test, TestCaseSource(nameof(validScopes))] + public void EntraTokenCredential_GetToken_RetriesThreeTimesOnTransientError(string[] scopes) { // Arrange - var options = CreateEntraTokenCredentialOptions(); + var options = CreateEntraTokenCredentialOptions(scopes); var lastRetryErrorMessage = "Last Retry Error Message"; var mockResponses = new MockResponse[] { @@ -205,21 +250,39 @@ public void EntraTokenCredential_GetToken_RetriesThreeTimesOnTransientError() var entraTokenCredential = new EntraTokenCredential(options, mockTransport); // Act & Assert - var exception = Assert.ThrowsAsync(async () => await entraTokenCredential.GetTokenAsync(CancellationToken.None)); - Assert.AreEqual(lastRetryErrorMessage, lastRetryErrorMessage); + var ex = Assert.ThrowsAsync(async () => await entraTokenCredential.GetTokenAsync(CancellationToken.None)); + StringAssert.Contains(lastRetryErrorMessage, ex?.Message); + } + + [Test, TestCaseSource(nameof(invalidScopes))] + public void EntraTokenCredential_GetToken_ThrowsForInvalidScopes(string[] scopes) + { + // Arrange + var options = CreateEntraTokenCredentialOptions(scopes); + var mockResponses = new MockResponse[] + { + CreateMockResponse(200, TokenResponse) + }; + + var mockTransport = CreateMockTransport(mockResponses); + var entraTokenCredential = new EntraTokenCredential(options, mockTransport); + + // Act & Assert + var ex = Assert.ThrowsAsync(async () => await entraTokenCredential.GetTokenAsync(CancellationToken.None)); + StringAssert.Contains("Scopes validation failed. Ensure all scopes start with either", ex?.Message); } - private EntraCommunicationTokenCredentialOptions CreateEntraTokenCredentialOptions() + private EntraCommunicationTokenCredentialOptions CreateEntraTokenCredentialOptions(string[] scopes) { return new EntraCommunicationTokenCredentialOptions(_resourceEndpoint, _mockTokenCredential.Object) { - Scopes = _scopes + Scopes = scopes }; } private MockResponse CreateMockResponse(int statusCode, string body) { - return new MockResponse(statusCode).WithContent(body); + return new MockResponse(statusCode).WithJson(body); } private HttpPipelineTransport CreateMockTransport(MockResponse[] mockResponses) From b68b9313182a3b868462d03a43836b310e3fae51 Mon Sep 17 00:00:00 2001 From: "Aigerim Beishenbekova (from Dev Box)" Date: Tue, 28 Jan 2025 16:44:08 +0100 Subject: [PATCH 3/4] restored all changes from main branch --- .github/CODEOWNERS | 6 - .vscode/cspell.json | 6 - eng/Packages.Data.props | 5 - .../generator/Azure.Generator.sln | 6 - .../Azure.Generator/src/AzureClientPlugin.cs | 2 - .../Internal/ClientPipelineExtensions.cs | 6 - .../Local/Basic-TypeSpec/tspCodeModel.json | 6 +- .../http-client-csharp/package-lock.json | 15 - eng/packages/http-client-csharp/package.json | 8 - .../ChatCompletionsToolCall.Serialization.cs | 33 - .../AgentsApiResponseFormat.Serialization.cs | 2 +- .../src/Generated/MessageContent.cs | 2 +- ...InterpreterImageReference.Serialization.cs | 2 +- ...eltaMessageCreationObject.Serialization.cs | 2 +- .../Sample_ApiManagementServiceResource.cs | 2 - .../Samples/Sample_AvsPrivateCloudResource.cs | 4 +- .../Sample_WorkloadNetworkDnsZoneResource.cs | 1 - .../Azure.CloudMachine.All/CHANGELOG.md | 2 - .../Azure.CloudMachine/src/ClientCache.cs | 2 +- ...cognitionEvaluationResult.Serialization.cs | 2 +- .../tspCodeModel.json | 58 +- .../src/autorest.md | 1 - .../assets.json | 2 +- .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../CHANGELOG.md | 2 - .../src/autorest.md | 1 - .../Generated/DeploymentEnvironmentsClient.cs | 16 +- .../src/Generated/DevBoxesClient.cs | 72 +- .../src/Generated/DevCenterModelFactory.cs | 10 +- .../src/Generated/Models/DevBox.cs | 4 +- .../src/Generated/Models/DevBoxAction.cs | 4 +- .../Generated/Models/DevBoxImageReference.cs | 4 +- .../src/Generated/Models/DevBoxNextAction.cs | 6 +- .../Models/DevCenterEnvironmentType.cs | 7 +- .../Models/EnvironmentDefinitionParameter.cs | 6 +- .../Samples_DeploymentEnvironmentsClient.cs | 8 +- .../Samples/Samples_DevBoxesClient.cs | 8 +- .../tsp-location.yaml | 2 +- .../src/autorest.md | 1 - .../DocumentIntelligenceTestEnvironment.cs | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - ...sWithVerifySessionContent.Serialization.cs | 96 -- .../src/autorest.md | 1 - .../CHANGELOG.md | 5 +- .../src/autorest.md | 1 - .../src/autorest.md | 1 - ...rceManager.HybridCompute.netstandard2.0.cs | 152 +++- .../src/Generated/ArcGatewayResource.cs | 2 +- ...kableHybridComputeResourceGroupResource.cs | 8 + .../HybridComputeExtensionValueData.cs | 2 +- .../HybridComputeMachineExtensionResource.cs | 4 +- .../MachineRunCommandOperationSource.cs | 38 + .../MachineRunCommandData.Serialization.cs | 753 ++++++++++++++++ .../src/Generated/MachineRunCommandData.cs | 146 +++ ...MachineRunCommandResource.Serialization.cs | 26 + .../Generated/MachineRunCommandResource.cs | 684 ++++++++++++++ .../Models/ArcGatewayPatch.Serialization.cs | 2 +- .../src/Generated/Models/ArcSettings.cs | 2 +- .../ExtensionsResourceStatus.Serialization.cs | 305 +++++++ .../Models/ExtensionsResourceStatus.cs | 86 ++ ...ExtensionsStatusLevelType.Serialization.cs | 30 + .../Models/ExtensionsStatusLevelType.cs | 20 + .../GatewaysListResult.Serialization.cs | 212 +++++ .../Generated/Models/GatewaysListResult.cs | 80 ++ .../Models/HybridComputeExecutionState.cs | 66 ++ ...ineRunCommandInstanceView.Serialization.cs | 418 +++++++++ .../Models/MachineRunCommandInstanceView.cs | 102 +++ ...ineRunCommandScriptSource.Serialization.cs | 264 ++++++ .../Models/MachineRunCommandScriptSource.cs | 81 ++ ...hineRunCommandsListResult.Serialization.cs | 219 +++++ .../Models/MachineRunCommandsListResult.cs | 70 ++ .../RunCommandInputParameter.Serialization.cs | 198 +++++ .../Models/RunCommandInputParameter.cs | 84 ++ ...RunCommandManagedIdentity.Serialization.cs | 196 +++++ .../Models/RunCommandManagedIdentity.cs | 71 ++ .../RestOperations/GatewaysRestOperations.cs | 731 +++++++++++++++ .../MachineExtensionsRestOperations.cs | 4 +- .../MachineRunCommandsRestOperations.cs | 527 +++++++++++ .../tests/HybridComputeManagementTestBase.cs | 76 +- ...ComputeManagementMachineRunCommandsTest.cs | 68 ++ .../HybridComputeManagementMachineTest.cs | 10 - sdk/identity/Azure.Identity/CHANGELOG.md | 5 - .../src/ImdsManagedIdentityProbeSource.cs | 3 +- .../tests/ManagedIdentityCredentialTests.cs | 10 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - sdk/monitor/Azure.Monitor.Query/CHANGELOG.md | 1 - .../src/MetricsQueryResourcesOptions.cs | 1 - .../src/autorest.md | 1 - .../src/Generated/ArmNetAppModelFactory.cs | 833 +++--------------- .../src/Generated/CapacityPoolData.cs | 56 +- .../Models/AvailabilityZoneMapping.cs | 25 +- .../Generated/Models/BackupPoliciesList.cs | 15 +- .../src/Generated/Models/BackupVaultsList.cs | 25 +- .../src/Generated/Models/BackupsList.cs | 25 +- .../Models/BackupsMigrationContent.cs | 20 +- .../Models/CapacityPoolEncryptionType.cs | 15 +- .../src/Generated/Models/CapacityPoolList.cs | 25 +- .../src/Generated/Models/CapacityPoolPatch.cs | 20 +- .../Generated/Models/CapacityPoolQosType.cs | 15 +- .../Models/CoolAccessRetrievalPolicy.cs | 16 +- .../Generated/Models/EnableNetAppSubvolume.cs | 15 +- .../GetGroupIdListForLdapUserContent.cs | 20 +- .../Models/GetGroupIdListForLdapUserResult.cs | 15 +- .../src/Generated/Models/ListReplications.cs | 15 +- .../Models/NetAppAccountActiveDirectory.cs | 115 +-- .../NetAppAccountActiveDirectoryStatus.cs | 30 +- .../Models/NetAppAccountEncryption.cs | 35 +- .../src/Generated/Models/NetAppAccountList.cs | 25 +- .../Generated/Models/NetAppAccountPatch.cs | 30 +- .../Generated/Models/NetAppApplicationType.cs | 15 +- .../Generated/Models/NetAppAvsDataStore.cs | 15 +- .../Models/NetAppBackupPolicyPatch.cs | 85 +- .../src/Generated/Models/NetAppBackupType.cs | 15 +- .../Models/NetAppBackupVaultBackupPatch.cs | 15 +- .../Models/NetAppBackupVaultPatch.cs | 15 +- .../Models/NetAppCheckAvailabilityResult.cs | 35 +- .../src/Generated/Models/NetAppChownMode.cs | 15 +- .../Models/NetAppEncryptionIdentity.cs | 15 +- .../Models/NetAppEncryptionKeySource.cs | 15 +- .../Generated/Models/NetAppEndpointType.cs | 15 +- .../Generated/Models/NetAppFileAccessLog.cs | 15 +- .../NetAppFilePathAvailabilityContent.cs | 25 +- .../Models/NetAppFileServiceLevel.cs | 25 +- .../src/Generated/Models/NetAppKeySource.cs | 15 +- .../Models/NetAppKeyVaultProperties.cs | 65 +- .../Generated/Models/NetAppKeyVaultStatus.cs | 30 +- .../NetAppLdapSearchScopeConfiguration.cs | 35 +- .../src/Generated/Models/NetAppMirrorState.cs | 20 +- .../Models/NetAppNameAvailabilityContent.cs | 50 +- .../NetAppNameAvailabilityResourceType.cs | 25 +- .../Models/NetAppNameUnavailableReason.cs | 15 +- .../Generated/Models/NetAppNetworkFeature.cs | 25 +- .../Models/NetAppProvisioningState.cs | 40 +- .../Models/NetAppQuotaAvailabilityContent.cs | 50 +- .../NetAppQuotaAvailabilityResourceType.cs | 25 +- .../src/Generated/Models/NetAppRegionInfo.cs | 25 +- .../Models/NetAppRelationshipStatus.cs | 25 +- .../Models/NetAppReplicationObject.cs | 10 +- .../Models/NetAppReplicationSchedule.cs | 20 +- .../Generated/Models/NetAppRestoreStatus.cs | 65 +- .../Models/NetAppSubscriptionQuotaItem.cs | 25 +- .../Models/NetAppSubvolumeInfoPatch.cs | 25 +- .../Models/NetAppSubvolumeMetadata.cs | 105 +-- ...NetAppVolumeAuthorizeReplicationContent.cs | 15 +- ...ppVolumeBackupBackupRestoreFilesContent.cs | 45 +- .../Models/NetAppVolumeBackupConfiguration.cs | 35 +- .../Models/NetAppVolumeBackupDetail.cs | 45 +- .../Models/NetAppVolumeBackupStatus.cs | 95 +- .../NetAppVolumeBreakFileLocksContent.cs | 25 +- .../NetAppVolumeBreakReplicationContent.cs | 15 +- .../Models/NetAppVolumeDataProtection.cs | 50 +- .../Models/NetAppVolumeExportPolicyRule.cs | 155 +--- .../Models/NetAppVolumeGroupMetadata.cs | 55 +- .../Models/NetAppVolumeGroupResult.cs | 35 +- .../Models/NetAppVolumeGroupVolume.cs | 352 ++------ .../Models/NetAppVolumeMountTarget.cs | 50 +- .../src/Generated/Models/NetAppVolumePatch.cs | 97 +- .../Models/NetAppVolumePatchDataProtection.cs | 30 +- .../Models/NetAppVolumePlacementRule.cs | 35 +- .../Models/NetAppVolumePoolChangeContent.cs | 20 +- .../Models/NetAppVolumeQuotaRulePatch.cs | 55 +- .../Generated/Models/NetAppVolumeQuotaType.cs | 20 +- ...tAppVolumeReestablishReplicationContent.cs | 15 +- .../NetAppVolumeRelocationProperties.cs | 25 +- .../Models/NetAppVolumeReplication.cs | 60 +- .../Models/NetAppVolumeReplicationStatus.cs | 55 +- .../Models/NetAppVolumeRevertContent.cs | 15 +- .../Models/NetAppVolumeSecurityStyle.cs | 15 +- ...NetAppVolumeSnapshotRestoreFilesContent.cs | 30 +- .../NetAppVolumeStorageToNetworkProximity.cs | 25 +- .../src/Generated/Models/NetworkSiblingSet.cs | 65 +- .../NetworkSiblingSetProvisioningState.cs | 25 +- .../src/Generated/Models/NicInfo.cs | 25 +- .../Models/QueryNetworkSiblingSetContent.cs | 35 +- .../src/Generated/Models/RegionInfosList.cs | 25 +- .../Models/RegionStorageToNetworkProximity.cs | 45 +- .../Generated/Models/RelocateVolumeContent.cs | 15 +- .../Models/SmbAccessBasedEnumeration.cs | 15 +- .../src/Generated/Models/SmbNonBrowsable.cs | 15 +- .../Generated/Models/SnapshotPoliciesList.cs | 15 +- .../Models/SnapshotPolicyDailySchedule.cs | 45 +- .../Models/SnapshotPolicyHourlySchedule.cs | 35 +- .../Models/SnapshotPolicyMonthlySchedule.cs | 55 +- .../Generated/Models/SnapshotPolicyPatch.cs | 65 +- .../Models/SnapshotPolicyVolumeList.cs | 15 +- .../Models/SnapshotPolicyWeeklySchedule.cs | 55 +- .../src/Generated/Models/SnapshotsList.cs | 15 +- .../Models/SubscriptionQuotaItemList.cs | 15 +- .../src/Generated/Models/SubvolumesList.cs | 25 +- .../Models/UpdateNetworkSiblingSetContent.cs | 65 +- .../src/Generated/Models/VolumeGroupList.cs | 15 +- .../src/Generated/Models/VolumeList.cs | 25 +- .../VolumePatchPropertiesExportPolicy.cs | 15 +- .../Models/VolumePropertiesExportPolicy.cs | 15 +- .../Generated/Models/VolumeQuotaRulesList.cs | 15 +- .../Models/VolumeSnapshotProperties.cs | 15 +- .../src/Generated/NetAppAccountData.cs | 31 +- .../src/Generated/NetAppBackupData.cs | 61 +- .../src/Generated/NetAppBackupPolicyData.cs | 91 +- .../src/Generated/NetAppBackupVaultData.cs | 11 +- .../src/Generated/NetAppSubvolumeInfoData.cs | 41 +- .../src/Generated/NetAppVolumeData.cs | 333 ++----- .../src/Generated/NetAppVolumeGroupData.cs | 41 +- .../Generated/NetAppVolumeQuotaRuleData.cs | 41 +- .../src/Generated/NetAppVolumeSnapshotData.cs | 46 +- .../src/Generated/RegionInfoResourceData.cs | 21 +- .../src/Generated/SnapshotPolicyData.cs | 71 +- .../src/autorest.md | 4 +- .../tests/ResourceTests/VolumeTests.cs | 44 - .../CHANGELOG.md | 2 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/Azure.ResourceManager.Nginx.csproj | 2 +- .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/Implementation/ServiceClient.cs | 1 + .../src/autorest.md | 1 - .../Models/RedisCommonConfiguration.cs | 6 - .../src/Generated/RedisResource.cs | 7 - .../src/Generated/Models/LocalUserKeys.cs | 2 +- .../Azure.Provisioning/src/BicepValue.cs | 3 - .../src/Expressions/BicepTypeMapping.cs | 2 +- .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../CHANGELOG.md | 2 - .../src/autorest.md | 1 - .../CHANGELOG.md | 2 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../CHANGELOG.md | 2 +- .../src/Azure.ResourceManager.SignalR.csproj | 2 +- .../CHANGELOG.md | 5 - ...e.WebJobs.Extensions.SignalRService.csproj | 2 +- .../TriggerBindings/Utils/JTokenWrapper.cs | 2 +- .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../Azure.Storage.Blobs.Batch/CHANGELOG.md | 15 - .../CHANGELOG.md | 10 - sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 1 + sdk/storage/Azure.Storage.Common/CHANGELOG.md | 15 - .../CHANGELOG.md | 10 - .../src/TransferJobInternal.cs | 4 - .../tests/TransferManagerTests.cs | 2 +- .../Azure.Storage.Files.DataLake/CHANGELOG.md | 18 - .../Azure.Storage.Files.Shares/CHANGELOG.md | 18 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - .../src/autorest.md | 1 - 262 files changed, 6822 insertions(+), 5014 deletions(-) create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/LongRunningOperation/MachineRunCommandOperationSource.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandData.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandData.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandResource.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/MachineRunCommandResource.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsResourceStatus.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsResourceStatus.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsStatusLevelType.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/ExtensionsStatusLevelType.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/GatewaysListResult.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/GatewaysListResult.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/HybridComputeExecutionState.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandInstanceView.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandScriptSource.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandScriptSource.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/MachineRunCommandsListResult.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandInputParameter.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandInputParameter.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandManagedIdentity.Serialization.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/Models/RunCommandManagedIdentity.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/GatewaysRestOperations.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/src/Generated/RestOperations/MachineRunCommandsRestOperations.cs create mode 100644 sdk/hybridcompute/Azure.ResourceManager.HybridCompute/tests/Scenario/HybridComputeManagementMachineRunCommandsTest.cs diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fb280b419239..57b194adf04d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1045,12 +1045,6 @@ # ServiceLabel: %Network - DNS Private Resolver %Mgmt # ServiceOwners: @jamesvoongms @jotrivet -# PRLabel: %Network - DNS Private Resolver -/sdk/dnsresolver/Azure.ResourceManager.*/ @jamesvoongms @jotrivet - -# ServiceLabel: %Network - DNS Private Resolver %Mgmt -# ServiceOwners: @jamesvoongms @jotrivet - # PRLabel: %New Relic /sdk/newrelicobservability/Azure.ResourceManager.*/ @vipray-ms diff --git a/.vscode/cspell.json b/.vscode/cspell.json index e7feb944e487..23632732e354 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -263,12 +263,6 @@ "Drtm", "Hvci" ] - }, - { - "filename": "**/sdk/computefleet/**/*.cs", - "words": [ - "Rdma" - ] }, { "filename": "**/sdk/computefleet/**/*.cs", diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 248644311994..af7d96b3d056 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -199,11 +199,6 @@ - - - - - diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md index 954ce4441ba5..f7887119e69a 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/src/autorest.md @@ -17,7 +17,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true enable-bicep-serialization: true # mgmt-debug: # show-serialized-names: true diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md b/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md index be8286d2e3d4..621c0fb30e55 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/autorest.md @@ -18,7 +18,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true rename-mapping: EndPoint.ipAddress: -|ip-address diff --git a/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md b/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md index 1aee807aff21..d340783baa26 100644 --- a/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md +++ b/sdk/peering/Azure.ResourceManager.Peering/src/autorest.md @@ -18,7 +18,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs index 1d4f423da5f4..a2aef1df8196 100644 --- a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs +++ b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger/src/Implementation/ServiceClient.cs @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + using System; using Azure.Core.Serialization; using Azure.Core; diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md index 6d2b59ee3af7..c7043f5f2cd2 100644 --- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md +++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md @@ -20,7 +20,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true enable-bicep-serialization: true #mgmt-debug: diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs index 803e9eec7b61..13f471fb444a 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/Models/RedisCommonConfiguration.cs @@ -150,12 +150,6 @@ public BicepValue NotifyKeyspaceEvents } private BicepValue? _notifyKeyspaceEvents; - /// - /// The keyspace events which should be monitored. - /// - public BicepValue NotifyKeyspaceEvents { get => _notifyKeyspaceEvents; set => _notifyKeyspaceEvents.Assign(value); } - private readonly BicepValue _notifyKeyspaceEvents; - /// /// Preferred auth method to communicate to storage account used for data /// archive, specify SAS or ManagedIdentity, default value is SAS. diff --git a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs index e6ad99fe13a1..c17448d5b950 100644 --- a/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs +++ b/sdk/provisioning/Azure.Provisioning.Redis/src/Generated/RedisResource.cs @@ -84,13 +84,6 @@ public BicepValue IsAccessKeyAuthenticationDisabled } private BicepValue? _isAccessKeyAuthenticationDisabled; - /// - /// Authentication to Redis through access keys is disabled when set as - /// true. Default value is false. - /// - public BicepValue IsAccessKeyAuthenticationDisabled { get => _isAccessKeyAuthenticationDisabled; set => _isAccessKeyAuthenticationDisabled.Assign(value); } - private readonly BicepValue _isAccessKeyAuthenticationDisabled; - /// /// Optional: requires clients to use a specified TLS version (or higher) /// to connect (e,g, '1.0', '1.1', '1.2'). diff --git a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs index 683acc7f1b7f..fc3172a302a6 100644 --- a/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs +++ b/sdk/provisioning/Azure.Provisioning.Storage/src/Generated/Models/LocalUserKeys.cs @@ -52,4 +52,4 @@ protected override void DefineProvisionableProperties() _sshAuthorizedKeys = DefineListProperty("SshAuthorizedKeys", ["sshAuthorizedKeys"], isOutput: true); _sharedKey = DefineProperty("SharedKey", ["sharedKey"], isOutput: true, isSecure: true); } -} \ No newline at end of file +} diff --git a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs index ae27b0017b36..3f449b44fd26 100644 --- a/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs +++ b/sdk/provisioning/Azure.Provisioning/src/BicepValue.cs @@ -57,9 +57,6 @@ public abstract class BicepValue : IBicepValue // Optional format defining how values should be serialized internal string? Format { get; set; } = null; - // Optional format defining how values should be serialized - internal string? Format { get; set; } = null; - // Indicate whether this value is empty or should be included in output [EditorBrowsable(EditorBrowsableState.Never)] public virtual bool IsEmpty => _kind == BicepValueKind.Unset; diff --git a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs index 2048662539fc..7b66d9b47838 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs @@ -170,4 +170,4 @@ private static string GetEnumValue(Enum value) } return value.ToString(); } -} \ No newline at end of file +} diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md b/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md index c9def4098cad..a38dde32e721 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md +++ b/sdk/purview/Azure.ResourceManager.Purview/src/autorest.md @@ -17,7 +17,6 @@ sample-gen: clear-output-folder: true skip-csproj: true use-model-reader-writer: true -use-write-core: true modelerfour: flatten-payloads: false diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index 7f4ee9aba2fc..bf855ffd7656 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -19,7 +19,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true models-to-treat-empty-string-as-null: - IaasComputeVmProtectedItem diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md index cdedfe00d1a8..8b8c4508a66a 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md @@ -18,7 +18,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true rename-mapping: CertificateRequest: RecoveryServicesCertificateContent diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md index 078f86be85b0..353a4254dbcd 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/autorest.md @@ -20,7 +20,6 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true -use-write-core: true rename-mapping: AffectedMoveResource.id: -|arm-id diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md index f3f3748130fd..a897795fec59 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md @@ -25,7 +25,6 @@ modelerfour: flatten-payloads: false lenient-model-deduplication: true use-model-reader-writer: true -use-write-core: true deserialize-null-collection-as-null-value: true #mgmt-debug: diff --git a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md index f81eea86cdbc..714eb0f51a6a 100644 --- a/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md +++ b/sdk/securityinsights/Azure.ResourceManager.SecurityInsights/src/autorest.md @@ -24,7 +24,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true enable-bicep-serialization: true #mgmt-debug: diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md b/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md index 053b395eef3c..ee48f9cdb681 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/CHANGELOG.md @@ -4,8 +4,6 @@ ### Features Added -- Exposed `JsonModelWriteCore` for model serialization procedure. - ### Breaking Changes ### Bugs Fixed diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md index f76839076080..65ff7a59fcb1 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/autorest.md @@ -17,7 +17,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true enable-bicep-serialization: true request-path-to-resource-name: diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md index d0be54338cce..b491dac26858 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md @@ -4,8 +4,6 @@ ### Features Added -- Exposed `JsonModelWriteCore` for model serialization procedure. - ### Breaking Changes ### Bugs Fixed diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md index 3fe3fbddbc15..4daae1dff57b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/autorest.md @@ -19,7 +19,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md index 0318c9f301c1..4ebbecf6d1f1 100644 --- a/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md +++ b/sdk/servicelinker/Azure.ResourceManager.ServiceLinker/src/autorest.md @@ -19,7 +19,6 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true -use-write-core: true rename-mapping: TargetServiceBase: TargetServiceBaseInfo diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md b/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md index 047b44d2a2e9..f674eb6512ca 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md +++ b/sdk/signalr/Azure.ResourceManager.SignalR/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.1.3 (2024-10-23) +## 1.2.0-beta.1 (Unreleased) ### Features Added diff --git a/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj b/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj index b56df8b2820f..5177d06a3dc8 100644 --- a/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj +++ b/sdk/signalr/Azure.ResourceManager.SignalR/src/Azure.ResourceManager.SignalR.csproj @@ -1,6 +1,6 @@ - 1.1.3 + 1.2.0-beta.1 1.1.3 Azure.ResourceManager.SignalR diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md index 4f5b14178bb1..04ccf9143e1e 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/CHANGELOG.md @@ -19,11 +19,6 @@ ### Bugs Fixed * Fixed the issue that the function return value from isolated-worker process is not handled correctly. -## 1.15.0 (2024-10-14) - -### Bugs Fixed -* Fixed the issue that the function return value from isolated-worker process is not handled correctly. - ## 1.14.0 (2024-05-24) ### Other Changes diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj index df1753298ec1..5675fb4626f1 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/Microsoft.Azure.WebJobs.Extensions.SignalRService.csproj @@ -1,7 +1,7 @@  - $(RequiredTargetFrameworks);net6.0;net8.0 + $(RequiredTargetFrameworks) Microsoft.Azure.WebJobs.Extensions.SignalRService 2.0.0-beta.1 diff --git a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs index 46ee007fe1fc..8753d3ec8884 100644 --- a/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs +++ b/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService/src/TriggerBindings/Utils/JTokenWrapper.cs @@ -59,4 +59,4 @@ public void Serialize(ref MessagePackWriter writer, JTokenWrapper value, Message var jsonString = value.Value.ToString(); MessagePackSerializer.ConvertFromJson(jsonString, ref writer, options); } -} +} \ No newline at end of file diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md b/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md index 3e6c10dfb840..9b5644b3f80b 100644 --- a/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md +++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/autorest.md @@ -18,7 +18,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md index 4578d6f7fb76..40972b57fb1b 100644 --- a/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md +++ b/sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/src/autorest.md @@ -17,7 +17,6 @@ skip-csproj: true modelerfour: flatten-payloads: false use-model-reader-writer: true -use-write-core: true mgmt-debug: show-serialized-names: true diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md index 4c886a68427a..9c1ca5c5fda9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md +++ b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md @@ -19,7 +19,6 @@ modelerfour: lenient-model-deduplication: true use-model-reader-writer: true enable-bicep-serialization: true -use-write-core: true #mgmt-debug: # show-serialized-names: true diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md index d5f389677e75..f6bcf9e2b44f 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md @@ -25,21 +25,6 @@ ### Features Added - Added support for service version 2025-01-05. -## 12.19.1 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.20.0-beta.2 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.20.0-beta.1 (2024-10-08) - -### Features Added -- Added support for service version 2025-01-05. - ## 12.19.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md index 549b4e73f447..af2ef51643b1 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md @@ -20,16 +20,6 @@ ### Features Added - Added support for service version 2025-01-05. -## 12.0.0-preview.51 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.0.0-preview.50 (2024-10-08) - -### Features Added -- Added support for service version 2025-01-05. - ## 12.0.0-preview.49 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index b669a242e315..3070cac9a9a6 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -32,6 +32,7 @@ - Added BlobErrorCode.BlobAccessTierNotSupportedForAccountType enum value. ### Bugs Fixed +- Fixed bug where BlobClient.Upload(BinaryData content, ..) did not properly dispose stream after wrapping the BinaryData passed. ## 12.22.1 (2024-09-25) diff --git a/sdk/storage/Azure.Storage.Common/CHANGELOG.md b/sdk/storage/Azure.Storage.Common/CHANGELOG.md index d58d5f9ed92f..dc1764d16bc6 100644 --- a/sdk/storage/Azure.Storage.Common/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Common/CHANGELOG.md @@ -25,21 +25,6 @@ ### Features Added - This release contains bug fixes to improve quality. -## 12.21.1 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.22.0-beta.2 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.22.0-beta.1 (2024-10-08) - -### Features Added -- This release contains bug fixes to improve quality. - ## 12.21.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md index 0fee730cac3f..812ec986f4dd 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement.Files.Shares/CHANGELOG.md @@ -40,16 +40,6 @@ - Changed `FromDirectory(string directoryUri, ShareFileStorageResourceOptions options = default)` to `FromDirectory(Uri directoryUri, ShareFileStorageResourceOptions options = default)` - Changed `FromFile(string fileUri, ShareFileStorageResourceOptions options = default)` to `FromFile(Uri fileUri, ShareFileStorageResourceOptions options = default)` -### Bugs Fixed - -### Other Changes - -## 12.0.0-beta.3 (2024-10-14) - -### Breaking Changes -- Changed `FromDirectory(string directoryUri, ShareFileStorageResourceOptions options = default)` to `FromDirectory(Uri directoryUri, ShareFileStorageResourceOptions options = default)` -- Changed `FromFile(string fileUri, ShareFileStorageResourceOptions options = default)` to `FromFile(Uri fileUri, ShareFileStorageResourceOptions options = default)` - ### Bugs Fixed - Fixed bug where copying a Azure Storage Blob to a Share File would not be able to convert Content Language and Content Encoding to the `string[]` type. - Fixed bug where LastWrittenOn property was not being preserved when copying a Share File to another Share File. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs index ac957a484b98..068d29f8cc7d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs @@ -30,10 +30,6 @@ internal delegate Task CreateJobPartMultiAsync( private readonly CreateJobPartMultiAsync _createJobPartMultiAsync; - private readonly CreateJobPartSingleAsync _createJobPartSingleAsync; - - private readonly CreateJobPartMultiAsync _createJobPartMultiAsync; - /// /// Plan file writer for the respective job /// diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs index 7864eb7d427f..9eb807ed4d56 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/TransferManagerTests.cs @@ -395,7 +395,7 @@ public async Task TransferFailAtQueue( jobsProcessor, partsProcessor, chunksProcessor, - jobBuilder, + jobBuilder.Object, checkpointer.Object, default); diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index 2a6568b378a0..a5d4e5644226 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -28,24 +28,6 @@ - Deprecated Read()/ReadAsync() in favor of ReadStreaming()/ReadStreamingAsync() and ReadContent()/ReadContentAsync() for DataLake #45418 - Added GenerateUserDelegationSasUri() to DataLakeFileSystemClient, DataLakePathClient, DataLakeDirectoryClient, and DataLakeFileClient. -## 12.20.1 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.21.0-beta.2 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.21.0-beta.1 (2024-10-08) - -### Features Added -- Added support for service version 2025-01-05. -- Added GenerateUserDelegationSasUri() for DataLakePathClient, DataLakeFileSystemClient, and DataLakeDirectoryClient -- Deprecated Read()/ReadAsync() in favor of ReadStreaming()/ReadStreamingAsync() and ReadContent()/ReadContentAsync() for DataLake #45418 -- Added GenerateUserDelegationSasUri() to DataLakeFileSystemClient, DataLakePathClient, DataLakeDirectoryClient, and DataLakeFileClient. - ## 12.20.0 (2024-09-18) ### Features Added diff --git a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md index cefd119306f1..420d6cc0e768 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md @@ -39,24 +39,6 @@ - Added support for specifying the binary file permission format for ShareFileClient.StartCopy() and .StartCopyAsync(). - Added ShareAccessTier.Premium enum value. -## 12.20.1 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.21.0-beta.2 (2024-10-10) - -### Other Changes -- Upgraded `System.Text.Json` package dependency to 6.0.10 for security fix. - -## 12.21.0-beta.1 (2024-10-08) - -### Features Added -- Added support for service version 2025-01-05. -- Added support for the provisioned V2 billing model. -- Added support for specifying the binary file permission format for ShareFileClient.StartCopy() and .StartCopyAsync(). -- Added ShareAccessTier.Premium enum value. - ## 12.20.0 (2024-09-18) ### Features Added diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md index cf009fdada67..8c30cc7e2795 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/autorest.md @@ -19,7 +19,6 @@ modelerfour: flatten-payloads: false lenient-model-deduplication: true use-model-reader-writer: true -use-write-core: true rename-mapping: Cache.properties.mountAddresses: -|ip-address diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md index 9715154e0516..82a5a628063f 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/autorest.md @@ -16,7 +16,6 @@ sample-gen: clear-output-folder: true skip-csproj: true use-model-reader-writer: true -use-write-core: true rename-mapping: CheckTrafficManagerRelativeDnsNameAvailabilityParameters: TrafficManagerRelativeDnsNameAvailabilityContent diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md index b494a38ec13f..68b1645608c1 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/autorest.md @@ -18,7 +18,6 @@ modelerfour: flatten-payloads: false use-model-reader-writer: true enable-bicep-serialization: true -use-write-core: true no-property-type-replacement: PrivateEndpoint diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md index e666507ca57e..2b565f0efe4c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md +++ b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md @@ -22,7 +22,6 @@ modelerfour: flatten-payloads: false deserialize-null-collection-as-null-value: true use-model-reader-writer: true -use-write-core: true enable-bicep-serialization: true #mgmt-debug: From 2d3d821c3ea2daf12137577061ed5d88467a5a9d Mon Sep 17 00:00:00 2001 From: "Aigerim Beishenbekova (from Dev Box)" Date: Tue, 28 Jan 2025 17:27:00 +0100 Subject: [PATCH 4/4] updated common api for .net8 --- .../api/Azure.Communication.Common.net8.0.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk/communication/Azure.Communication.Common/api/Azure.Communication.Common.net8.0.cs b/sdk/communication/Azure.Communication.Common/api/Azure.Communication.Common.net8.0.cs index 97e437ca8729..469930c7ccef 100644 --- a/sdk/communication/Azure.Communication.Common/api/Azure.Communication.Common.net8.0.cs +++ b/sdk/communication/Azure.Communication.Common/api/Azure.Communication.Common.net8.0.cs @@ -34,6 +34,7 @@ protected CommunicationIdentifier() { } public sealed partial class CommunicationTokenCredential : System.IDisposable { public CommunicationTokenCredential(Azure.Communication.CommunicationTokenRefreshOptions options) { } + public CommunicationTokenCredential(Azure.Communication.EntraCommunicationTokenCredentialOptions options) { } public CommunicationTokenCredential(string token) { } public void Dispose() { } public Azure.Core.AccessToken GetToken(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -53,6 +54,13 @@ public CommunicationUserIdentifier(string id) { } public override bool Equals(Azure.Communication.CommunicationIdentifier other) { throw null; } public override string ToString() { throw null; } } + public partial class EntraCommunicationTokenCredentialOptions + { + public EntraCommunicationTokenCredentialOptions(string resourceEndpoint, Azure.Core.TokenCredential entraTokenCredential) { } + public string ResourceEndpoint { get { throw null; } } + public string[] Scopes { get { throw null; } set { } } + public Azure.Core.TokenCredential TokenCredential { get { throw null; } } + } public partial class MicrosoftTeamsAppIdentifier : Azure.Communication.CommunicationIdentifier { public MicrosoftTeamsAppIdentifier(string appId, Azure.Communication.CommunicationCloudEnvironment? cloud = default(Azure.Communication.CommunicationCloudEnvironment?)) { }