-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[ChangeSafety] First preview release for module Az.ChangeSafety #29651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
henryzdai
wants to merge
5
commits into
Azure:main
Choose a base branch
from
henryzdai:feature/az-changesafety-module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fb0dc26
Add Az.ChangeSafety module with all tests passing
0e100ec
Address PR review feedback: scrub PII, register module, set Prerelease
81231d6
Move v0.1.0 changelog entries under Upcoming Release
4022784
Merge upstream/main into feature/az-changesafety-module
8b35cf2
Fix: add missing Az.ChangeSafety.format.ps1xml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * text=auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| bin | ||
| obj | ||
| .vs | ||
| generated | ||
| internal | ||
| exports | ||
| tools | ||
| test/*-TestResults.xml | ||
| license.txt | ||
| /*.ps1 | ||
| /*.psd1 | ||
| /*.ps1xml | ||
| /*.psm1 | ||
| /*.snk | ||
| /*.csproj | ||
| /*.nuspec | ||
| test/localEnv.json |
5 changes: 5 additions & 0 deletions
5
src/ChangeSafety/ChangeSafety.Autorest/Az.ChangeSafety.format.ps1xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Configuration> | ||
| <ViewDefinitions> | ||
| </ViewDefinitions> | ||
| </Configuration> |
35 changes: 35 additions & 0 deletions
35
src/ChangeSafety/ChangeSafety.Autorest/Properties/AssemblyInfo.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0 (the ""License""); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an ""AS IS"" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code | ||
| // is regenerated. | ||
|
|
||
| using System; | ||
| using System.Reflection; | ||
| using System.Runtime.CompilerServices; | ||
| using System.Runtime.InteropServices; | ||
|
|
||
| [assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] | ||
| [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] | ||
| [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] | ||
| [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ChangeSafety")] | ||
| [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] | ||
| [assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] | ||
| [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] | ||
| [assembly: System.CLSCompliantAttribute(false)] | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| <!-- region Generated --> | ||
| # Az.ChangeSafety | ||
| This directory contains the PowerShell module for the ChangeSafety service. | ||
|
|
||
| --- | ||
| ## Info | ||
| - Modifiable: yes | ||
| - Generated: all | ||
| - Committed: yes | ||
| - Packaged: yes | ||
|
|
||
| --- | ||
| ## Detail | ||
| This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. | ||
|
|
||
| ## Module Requirements | ||
| - [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater | ||
|
|
||
| ## Authentication | ||
| AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. | ||
|
|
||
| ## Development | ||
| For information on how to develop for `Az.ChangeSafety`, see [how-to.md](how-to.md). | ||
| <!-- endregion --> | ||
|
|
||
| ### AutoRest Configuration | ||
| > see https://aka.ms/autorest | ||
|
|
||
| ```yaml | ||
| commit: RPSaaSMaster | ||
| require: | ||
| - $(this-folder)/../../readme.azure.noprofile.md | ||
| input-file: | ||
| - $(repo)/specification/changesafety/resource-manager/Microsoft.ChangeSafety/ChangeControl/preview/2026-01-01-preview/ChangeControl.json | ||
|
|
||
| module-version: 0.1.0 | ||
| title: ChangeSafety | ||
| subject-prefix: $(service-name) | ||
|
|
||
| directive: | ||
| # Following are common directives which are normally required in all the RPs | ||
| # 1. Remove the unexpanded parameter set | ||
| # 2. For New-* cmdlets, ViaIdentity is not required | ||
| - where: | ||
| variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) | ||
| remove: true | ||
| - where: | ||
| variant: ^CreateViaIdentity.*$ | ||
| remove: true | ||
| # Remove the Set-* cmdlet | ||
| - where: | ||
| verb: Set | ||
| remove: true | ||
| # Hide internal operations | ||
| - where: | ||
| subject: Operation | ||
| hide: true | ||
| # Default subscription parameter | ||
| - where: | ||
| parameter-name: SubscriptionId | ||
| set: | ||
| default: | ||
| script: '(Get-AzContext).Subscription.Id' | ||
| # Remove ChangeState and its child StageProgression cmdlets | ||
| - where: | ||
| subject: ChangeState.* | ||
| remove: true | ||
| - where: | ||
| subject: ^StageProgression.*$ | ||
| remove: true | ||
| # Remove Test-* cmdlets (VerifyChangeValidity POST operations) | ||
| - where: | ||
| verb: Test | ||
| remove: true | ||
| # Rename ChangeRecordStageProgression to StageProgression | ||
| - where: | ||
| subject: ChangeRecordStageProgression(.*) | ||
| set: | ||
| subject: StageProgression$1 | ||
| # Remove AuditTrail and NextStage cmdlets | ||
| - where: | ||
| subject: .*AuditTrail$ | ||
| remove: true | ||
| - where: | ||
| subject: .*NextStage$ | ||
| remove: true | ||
| ``` |
143 changes: 143 additions & 0 deletions
143
...fety/ChangeSafety.Autorest/UX/Microsoft.ChangeSafety/changeRecords-stageProgressions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| { | ||
| "resourceType": "changeRecords/stageProgressions", | ||
| "apiVersion": "2026-01-01-preview", | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.changesafety" | ||
| }, | ||
| "commands": [ | ||
| { | ||
| "name": "Get-AzChangeSafetyStageProgression", | ||
| "description": "Get a ChangeRecordStageProgression", | ||
| "path": "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeSafety/changeRecords/{changeRecordName}/stageProgressions/{stageProgressionName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.changesafety/get-azchangesafetystageprogression" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-ChangeRecordName <String>", | ||
| "-StageProgressionName <String>", | ||
| "[-SubscriptionId <String[]>]" | ||
| ] | ||
| }, | ||
| { | ||
| "parameters": [ | ||
| "-ChangeRecordName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "-StageProgressionName <String>", | ||
| "[-SubscriptionId <String[]>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Get a ChangeRecordStageProgression", | ||
| "parameters": [ | ||
| { | ||
| "name": "-ChangeRecordName", | ||
| "value": "[Path.changeRecordName]" | ||
| }, | ||
| { | ||
| "name": "-StageProgressionName", | ||
| "value": "[Path.stageProgressionName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "description": "Get a ChangeRecordStageProgression", | ||
| "parameters": [ | ||
| { | ||
| "name": "-ChangeRecordName", | ||
| "value": "[Path.changeRecordName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-StageProgressionName", | ||
| "value": "[Path.stageProgressionName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Remove-AzChangeSafetyStageProgression", | ||
| "description": "Delete a ChangeRecordStageProgression", | ||
| "path": "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeSafety/changeRecords/{changeRecordName}/stageProgressions/{stageProgressionName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.changesafety/remove-azchangesafetystageprogression" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-ChangeRecordName <String>", | ||
| "-StageProgressionName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| }, | ||
| { | ||
| "parameters": [ | ||
| "-ChangeRecordName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "-StageProgressionName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Delete a ChangeRecordStageProgression", | ||
| "parameters": [ | ||
| { | ||
| "name": "-ChangeRecordName", | ||
| "value": "[Path.changeRecordName]" | ||
| }, | ||
| { | ||
| "name": "-StageProgressionName", | ||
| "value": "[Path.stageProgressionName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "description": "Delete a ChangeRecordStageProgression", | ||
| "parameters": [ | ||
| { | ||
| "name": "-ChangeRecordName", | ||
| "value": "[Path.changeRecordName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-StageProgressionName", | ||
| "value": "[Path.stageProgressionName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sync with main branch and only update the files under folers whose names contain "ChangeSafety".