Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 5.96 KB

changes.md

File metadata and controls

68 lines (54 loc) · 5.96 KB

Breaking Change Policy

Customers and MVPs have told us many times in emphatic terms that breaking changes are a continuing problem in Azure PowerShell releases. These changes cause an undue burden on users maintaining scripts to manage their Azure assets, and this causes reluctance in picking up the later versions of Azure PowerShell. It is clear that continuing, unmanaged breaking changes are unnacceptable to customers.

To address customer concerns, Azure PowerShell is committing to limit breaking changes to one release per year and to treat any unplanned breaking change that ships as a showstopper bug requiring a hotfix.

At the same time, we are introducing a new mechanism for Pre-release AzureRM modules. This is detailed in the section here.

This proposed policy is meant to apply to all stable Azure modules, starting with the 2.0 release. Details of the policy are as follows.

  • Each module in Azure PowerShell is versioned using semantic versioning.
  • Non-breaking changes and associated version updates are handled independently by module owners. Breaking changes are scheduled for once a year and coordinated with the Azure SDK Team.
  • Each breaking change release will be preceded by 3-months notice of the break to customers. The SDK Team will coordinate the notice of breaking changes.
  • It is the responsibility of the service teams to introduce no breaking changes in their cmdlet external interfaces. A definition of breaking changes is provided here. It is the responsibility of the SDK Team to introduce no breaking changes in SDK cmdlets, and in the public types in common code used as parameters or returned by cmdlets.
    • The SDK Team will provide tools in the October release to automatically detect and prevent breaking changes
    • Until breaking change detection tools are available, the feature teams and SDK team will use code reviews to prevent breaking changes
  • In the event that a breaking change is released outside of a planned breaking change release, the cmdlet owner must coordinate with the SDK team to create a hotfix that mitigates the impact of the breaking changes on existing scripts.
  • The release notes for any breaking change version will contain a complete description of the changes and a migration guide, explaining how scripts should be updated to accomodate the breaking changes.
    • Service Teams must provide a list of breaking changes and the migration guide at the start of the sprint containing the breaking changes
    • The SDK Team will coordinate the breaking change documentation and assemble a migration guide from the feature team submissions
    • A sample migration guide for the 2.0 release is provided here
    • The breaking change list and migration guide will be distributed to customers in the github release, in an azure.com blog post, and in powershell help topics

Exceptions

The majority of cmdlet enhancement and fixes should not require breaking changes. However, to accomodate extraordinary circumstances, exceptions to the breaking change policy can be made for the following reasons:

  • High impact security bugs, data loss, or other severe functionality issues that can only be resolved through a breaking change
  • Important fixes and new features that require a breaking change, for which usage data or extensive customer outreach shows extremely low impact on customer scripts

Preview Modules

The breaking change policy should not prevent providing cmdlet support for non-GA services or experimenting with new cmdlets for existing services. To satisfy these two needs, Azure PowerShell will begin supporting Preview modules in the October release.

Note that, participation in Preview modules is entirely volunatry for feature teams. If cmdlets for an Azure service remain stable, the service team may decide not to support a preview module.

  • Preview modules use the suffix Preview in their module name, as in 'AzureRM.Compute.Preview'
  • Preview modules will not be included in the AzureRM module in the PowerShell Gallery, or in the released PowerShell MSI.
  • A new roll-up module, AzureRM.Preview will reference the existing set of preview modules, allowing uses to download all of them at once.
  • Non-GA services will automatically begin as Preview modules. However, a full set of non-preview cmdlets must be available in the PowerShell Gallery and PowerShell msi within 3 months of service GA.
  • GA Services may also have a preview module to use when experimenting with new cmdlets
  • Preview modules will not use semantic versioning

Breaking Change Definition

Breaking changes in cmdlets are defined as follows:

  • Cmdlets:
    • Removing a cmdlet
    • Changing a cmdlet name without an alias to the original name
    • Removing or changing a cmdlet alias
    • Removing a Cmdlet attribute option (SupportShouldProcess, SupportsPaging)
    • Breaking change in OutputType or removal of OutputType attribute
  • Parameters
    • Removing a parameter
    • Changing the name of a parameter without an alias to the original parameter name
    • Breaking change in parameter type
    • Adding a required parameter to an existing parameter set (adding new parameter sets, or adding additional optional parameters is not breaking)
    • Changing parameter order for parameter sets with ordered parameters
    • Removing or changing a parameter alias
    • Removing or changing existing parameter attribute values
    • Making parameter validation more exclusive (for example: removing values from a ValidateSet)
  • Output and Parameter Types
    • Changing property names without an accompanying alias to the original name
    • Removing properties
    • Adding additional required properties
    • Adding required parameters, changing parameter names, or parameter types for methods or constructors
    • Changing return types of methods