Migrate DurableTask module to TypeSpec - #29971
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 53a680b3-e007-4d4d-9fd2-448f9dd96b4f
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Az.DurableTask module to support TypeSpec-based generation (replacing/removing prior AutoRest configuration artifacts) and refreshes associated generated metadata (manifest, solution references, and docs) accordingly.
Changes:
- Added TypeSpec generation configuration (
tspconfig.yaml,tsp-location.yaml) for DurableTask. - Updated module packaging/metadata files (module manifest, solution project GUID, generate-info).
- Removed the prior AutoRest configuration block from the module README and updated help metadata.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/DurableTask/DurableTask/ChangeLog.md | Adds an Upcoming Release entry noting the generator migration. |
| src/DurableTask/DurableTask/Az.DurableTask.psd1 | Updates manifest metadata (generation date, Az.Accounts requirement, tags formatting, etc.). |
| src/DurableTask/DurableTask.sln | Updates the Az.DurableTask project GUID references in the solution. |
| src/DurableTask/DurableTask.Autorest/tspconfig.yaml | Introduces TypeSpec emitter configuration and generation directives. |
| src/DurableTask/DurableTask.Autorest/tsp-location.yaml | Pins the TypeSpec source location (repo/commit/directory). |
| src/DurableTask/DurableTask.Autorest/README.md | Removes the AutoRest YAML configuration section (needs TypeSpec-aligned replacement). |
| src/DurableTask/DurableTask.Autorest/Properties/AssemblyInfo.cs | Updates assembly metadata but introduces license/header inconsistencies. |
| src/DurableTask/DurableTask.Autorest/generate-info.json | Updates generation identifier. |
| src/DurableTask/DurableTask.Autorest/docs/Az.DurableTaskCmdlet.Design.md | Removes the cmdlet design doc. |
| src/DurableTask/DurableTask.Autorest/docs/Az.DurableTask.md | Updates help metadata (Module Guid). |
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0 (the ""License""); |
| [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MicrosoftDurableTask")] | ||
| [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")] | ||
| [assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")] |
| azure: true | ||
| module-version: 0.2.0 | ||
| prefix: "Az" | ||
| subject-prefix: "DurableTask" |
| directive: | ||
| - where: | ||
| parameter-name: SubscriptionId | ||
| set: | ||
| default: | ||
| script: "(Get-AzContext).Subscription.Id" | ||
| - where: |
| ## Development | ||
| For information on how to develop for `Az.DurableTask`, see [how-to.md](how-to.md). | ||
| <!-- endregion --> |
| --- | ||
| Module Name: Az.DurableTask | ||
| Module Guid: e19fbc46-d4cc-4da2-81d0-45535b1de2a0 | ||
| Module Guid: 486f71cd-8f5a-4d18-b828-e0fd16915a6f | ||
| Download Help Link: https://learn.microsoft.com/powershell/module/az.durabletask |
|
Automated sensitive-information remediation ran on this pull request.
If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment. ✅ Keep the redaction · ❌ Dispute the redaction GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices. Posted by agent-assist (autonomous bug-fix pipeline). |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Co-authored-by: Copilot <[REDACTED:email_address]>
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.