Bootstrap Az.ResilienceManagement module for AzureResilienceManagemen… - #30114
Bootstrap Az.ResilienceManagement module for AzureResilienceManagemen…#30114krtcodee wants to merge 1 commit into
Conversation
…t RP
Generated with AutoRest v3.10.9 + @autorest/powershell@4.0.674 following the
same Az.Modern layout as the recently-added Mission module.
Layout (matches src/Mission/):
src/ResilienceManagement/
ResilienceManagement.sln
ResilienceManagement/ - handcrafted wrapper module
Az.ResilienceManagement.psd1
ChangeLog.md
ResilienceManagement.csproj
Properties/AssemblyInfo.cs
ResilienceManagement.Autorest/ - autorest-generated + committed docs
README.md - autorest config
docs/*.md - per-cmdlet reference (72 cmdlets)
examples/*.md - per-cmdlet example stubs
test/*.Tests.ps1 - per-cmdlet Pester stubs
UX/ - portal metadata
custom/, resources/, utils/ - customization hooks
Swagger source: krtcodee/azure-rest-api-specs branch krt/pwsh-cmd
(preview/2026-08-31-preview/openapi.json). Will switch to a
"commit:" + repo-var reference once the swagger merges upstream.
Directives handle three sets of AutoRest naming collisions:
- DrillProperties.errorDetails dropped (breaks discriminated subtypes)
- UsagePlan._List1 renamed to ListByResourceGroup
- RecoveryPlanActions_* and DrillRuns_FailOver/Reprotect renamed per operation
to avoid Body-parameter type collisions in Export-ProxyCmdlet
No compiled binaries, generated C#, or exports/ scaffolding committed - all
regenerable via 'autorest' + 'build-module.ps1'.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767a9cf-1c92-4d5d-827b-a71750e397e3
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Thank you for your contribution krtcodee! We will review the pull request and get back to you soon. |
|
krtcodee please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
There was a problem hiding this comment.
🟡 Changes recommended
The AutoRest spec reference is not pinned to an immutable commit and the test environment loader has a concrete path/JSON-loading bug that can break record/playback setup.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Bootstraps a new Az.ResilienceManagement module following the “Az.Modern” layout (handcrafted wrapper + AutoRest-generated project), including AutoRest configuration, UX metadata, generated cmdlet docs/examples, and Pester test stubs.
Changes:
- Added the wrapper project (
ResilienceManagement.csproj,AssemblyInfo.cs, module ChangeLog) to build/package the module underAz.ResilienceManagement. - Added the AutoRest project scaffolding (
ResilienceManagement.Autorest) including AutoRestREADME.mdconfiguration and UX metadata JSON. - Added generated documentation (
docs/exports), example stubs (examples), and Pester stubs (test) for the generated cmdlets.
File summaries
| File | Description |
|---|---|
| src/ResilienceManagement/ResilienceManagement.sln | New solution for the module. |
| src/ResilienceManagement/ResilienceManagement/ResilienceManagement.csproj | Wrapper build output configuration for Az.ResilienceManagement. |
| src/ResilienceManagement/ResilienceManagement/Properties/AssemblyInfo.cs | Wrapper assembly metadata and versioning. |
| src/ResilienceManagement/ResilienceManagement/ChangeLog.md | Module changelog scaffold + initial preview entry. |
| src/ResilienceManagement/ResilienceManagement/Az.ResilienceManagement.psd1 | Wrapper module manifest for packaging/import. |
| src/ResilienceManagement/ResilienceManagement.Autorest/README.md | AutoRest configuration for generating cmdlets from the RP spec. |
| src/ResilienceManagement/ResilienceManagement.Autorest/.gitignore | Ignores build outputs/generated artifacts under the AutoRest folder. |
| src/ResilienceManagement/ResilienceManagement.Autorest/.gitattributes | Text normalization settings for the AutoRest folder. |
| src/ResilienceManagement/ResilienceManagement.Autorest/generate-info.json | Generation metadata for the AutoRest output. |
| src/ResilienceManagement/ResilienceManagement.Autorest/how-to.md | Development workflow documentation for the module. |
| src/ResilienceManagement/ResilienceManagement.Autorest/custom/README.md | Guidance for adding custom cmdlets/customizations. |
| src/ResilienceManagement/ResilienceManagement.Autorest/custom/Az.ResilienceManagement.custom.psm1 | Custom module loader/export wiring for custom cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/resources/README.md | Repository-only resources folder documentation. |
| src/ResilienceManagement/ResilienceManagement.Autorest/docs/README.md | Documentation generation guidance for committed cmdlet docs. |
| src/ResilienceManagement/ResilienceManagement.Autorest/utils/Unprotect-SecureString.ps1 | Standard helper utility script used across AutoRest modules. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.AzureResilienceManagement/locations-operationStatuses.json | Portal UX metadata for operation status cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.AzureResilienceManagement/usagePlans.json | Portal UX metadata for usage plan cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.AzureResilienceManagement/usagePlans-enrollments.json | Portal UX metadata for enrollment cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-unifiedResilienceItems.json | Portal UX metadata for service group unified resilience item cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-goalTemplates.json | Portal UX metadata for goal template cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-goalAssignments.json | Portal UX metadata for goal assignment cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-goalAssignments-goalResources.json | Portal UX metadata for goal resource cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-recoveryPlans-recoveryResources.json | Portal UX metadata for recovery resource cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-recoveryPlans-recoveryJobs.json | Portal UX metadata for recovery job + retry action cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-recoveryPlans-recoveryJobs-recoveryJobResources.json | Portal UX metadata for recovery job resource cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-drills-drillResources.json | Portal UX metadata for drill resource cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-drills-drillRuns.json | Portal UX metadata for drill run + resume action cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/UX/Microsoft.Management/serviceGroups-drills-drillRuns-drillRunResources.json | Portal UX metadata for drill run resource cmdlets. |
| src/ResilienceManagement/ResilienceManagement.Autorest/test/README.md | Test harness documentation for live/record/playback modes. |
| src/ResilienceManagement/ResilienceManagement.Autorest/test/utils.ps1 | Test utilities and env capture helpers. |
| src/ResilienceManagement/ResilienceManagement.Autorest/test/loadEnv.ps1 | Test environment loader + default parameter injection. |
| src/ResilienceManagement/ResilienceManagement.Autorest/test/*.Tests.ps1 | Generated Pester stubs per cmdlet/operation (skipped placeholders). |
| src/ResilienceManagement/ResilienceManagement.Autorest/examples/*.md | Generated example stub markdown per cmdlet. |
| src/ResilienceManagement/ResilienceManagement.Autorest/docs/exports/*.md | Generated cmdlet reference markdown for the module. |
Review details
- Files reviewed: 86/244 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # NOTE: Swagger is still on krtcodee/azure-rest-api-specs branch krt/pwsh-cmd until it | ||
| # merges into Azure/azure-rest-api-specs. Once merged, replace `input-file` with a | ||
| # `commit:` pin + `$(repo)/specification/...` reference (see other modules). | ||
| require: | ||
| - $(this-folder)/../../readme.azure.noprofile.md | ||
| input-file: | ||
| - https://raw.githubusercontent.com/krtcodee/azure-rest-api-specs/krt/pwsh-cmd/specification/azureresiliencemanagement/resource-manager/Microsoft.AzureResilienceManagement/AzureResilienceManagement/preview/2026-08-31-preview/openapi.json |
| Describe 'Update-AzResilienceManagementUsagePlan' { | ||
| It 'UpdateExpanded' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } |
| if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { | ||
| $envFilePath = Join-Path $PSScriptRoot $envFile | ||
| } else { | ||
| $envFilePath = Join-Path $PSScriptRoot '..\$envFile' | ||
| } | ||
| $env = @{} | ||
| if (Test-Path -Path $envFilePath) { | ||
| $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json | ||
| $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} | ||
| } |
…t RP
Generated with AutoRest v3.10.9 + @autorest/powershell@4.0.674 following the same Az.Modern layout as the recently-added Mission module.
Layout (matches src/Mission/):
src/ResilienceManagement/
ResilienceManagement.sln
ResilienceManagement/ - handcrafted wrapper module
Az.ResilienceManagement.psd1
ChangeLog.md
ResilienceManagement.csproj
Properties/AssemblyInfo.cs
ResilienceManagement.Autorest/ - autorest-generated + committed docs
README.md - autorest config
docs/.md - per-cmdlet reference (72 cmdlets)
examples/.md - per-cmdlet example stubs
test/*.Tests.ps1 - per-cmdlet Pester stubs
UX/ - portal metadata
custom/, resources/, utils/ - customization hooks
Swagger source: krtcodee/azure-rest-api-specs branch krt/pwsh-cmd (preview/2026-08-31-preview/openapi.json). Will switch to a "commit:" + repo-var reference once the swagger merges upstream.
Directives handle three sets of AutoRest naming collisions:
No compiled binaries, generated C#, or exports/ scaffolding committed - all regenerable via 'autorest' + 'build-module.ps1'.
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.