Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions documentation/azure-powershell-modules.md
Copy link
Copy Markdown
Contributor

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".

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
| BotService | `Az.BotService` | [![BotService]][BotServiceGallery] | [Changelog][BotServiceChangeLog] |
| Content Delivery Network | `Az.Cdn` | [![Cdn]][CdnGallery] | [Changelog][CdnChangeLog] |
| Change Analysis | `Az.ChangeAnalysis` | [![ChangeAnalysis]][ChangeAnalysisGallery] | [Changelog][ChangeAnalysisChangeLog] |
| Change Safety | `Az.ChangeSafety` | [![ChangeSafety]][ChangeSafetyGallery] | [Changelog][ChangeSafetyChangeLog] |
| Cloud Service | `Az.CloudService` | [![CloudService]][CloudServiceGallery] | [Changelog][CloudServiceChangeLog] |
| Cognitive Services | `Az.CognitiveServices` | [![CognitiveServices]][CognitiveServicesGallery] | [Changelog][CognitiveServicesChangeLog] |
| Communication | `Az.Communication` | [![Communication]][CommunicationGallery] | [Changelog][CommunicationChangeLog] |
Expand Down Expand Up @@ -220,6 +221,7 @@
[BotService]: https://img.shields.io/powershellgallery/v/Az.BotService.svg?style=flat-square&label=Az.BotService
[Cdn]: https://img.shields.io/powershellgallery/v/Az.Cdn.svg?style=flat-square&label=Az.Cdn
[ChangeAnalysis]: https://img.shields.io/powershellgallery/v/Az.ChangeAnalysis.svg?style=flat-square&label=Az.ChangeAnalysis
[ChangeSafety]: https://img.shields.io/powershellgallery/v/Az.ChangeSafety.svg?style=flat-square&label=Az.ChangeSafety
[CloudService]: https://img.shields.io/powershellgallery/v/Az.CloudService.svg?style=flat-square&label=Az.CloudService
[CodeSigning]: https://img.shields.io/powershellgallery/v/Az.CodeSigning.svg?style=flat-square&label=Az.CodeSigning
[CognitiveServices]: https://img.shields.io/powershellgallery/v/Az.CognitiveServices.svg?style=flat-square&label=Az.CognitiveServices
Expand Down Expand Up @@ -400,6 +402,7 @@
[BotServiceGallery]: https://www.powershellgallery.com/packages/Az.BotService/
[CdnGallery]: https://www.powershellgallery.com/packages/Az.Cdn/
[ChangeAnalysisGallery]: https://www.powershellgallery.com/packages/Az.ChangeAnalysis/
[ChangeSafetyGallery]: https://www.powershellgallery.com/packages/Az.ChangeSafety/
[CloudServiceGallery]: https://www.powershellgallery.com/packages/Az.CloudService/
[CodeSigningGallery]: https://www.powershellgallery.com/packages/Az.CodeSigning/
[CognitiveServicesGallery]: https://www.powershellgallery.com/packages/Az.CognitiveServices/
Expand Down Expand Up @@ -578,6 +581,7 @@
[BotServiceChangeLog]: ../src/BotService/BotService/ChangeLog.md
[CdnChangeLog]: ../src/Cdn/Cdn/ChangeLog.md
[ChangeAnalysisChangeLog]: ../src/ChangeAnalysis/ChangeAnalysis/ChangeLog.md
[ChangeSafetyChangeLog]: ../src/ChangeSafety/ChangeSafety/ChangeLog.md
[CloudServiceChangeLog]: ../src/CloudService/CloudService/ChangeLog.md
[CodeSigningChangeLog]: ../src/CodeSigning/CodeSigning/ChangeLog.md
[CognitiveServicesChangeLog]: ../src/CognitiveServices/CognitiveServices/ChangeLog.md
Expand Down
1 change: 1 addition & 0 deletions src/ChangeSafety/ChangeSafety.Autorest/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
17 changes: 17 additions & 0 deletions src/ChangeSafety/ChangeSafety.Autorest/.gitignore
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
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 src/ChangeSafety/ChangeSafety.Autorest/Properties/AssemblyInfo.cs
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)]









87 changes: 87 additions & 0 deletions src/ChangeSafety/ChangeSafety.Autorest/README.md
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
```
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]"
}
]
}
]
}
]
}
Loading
Loading