Skip to content

Commit

Permalink
Add validation to MG scoped deployment stack New/Set cmdlets. (Azure#…
Browse files Browse the repository at this point in the history
…25351)

* Add validation to MG scoped deployment stack New/Set cmdlets.

* Update ChangeLog.md

---------

Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
  • Loading branch information
dantedallag and NoriZC authored Jun 24, 2024
1 parent 98fe50d commit 231a2c5
Show file tree
Hide file tree
Showing 14 changed files with 12,252 additions and 264,147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,7 @@ bool bypassStackOutOfSyncError
bypassStackOutOfSyncError
);

// TODO: Enable validation of MG scoped stacks before Create.
// ValidateDeploymentStack(deploymentStackModel, deploymentStackName, DeploymentStackScope.ManagementGroup, managementGroupId);
ValidateDeploymentStack(deploymentStackModel, deploymentStackName, DeploymentStackScope.ManagementGroup, managementGroupId);

var deploymentStack = DeploymentStacksClient.DeploymentStacks.BeginCreateOrUpdateAtManagementGroup(managementGroupId,
deploymentStackName, deploymentStackModel);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

152,550 changes: 1,581 additions & 150,969 deletions ...narioTests.DeploymentStackTests/TestSetManagementGroupDeploymentStackUnmanageActions.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Resources/Resources/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Introduced validation of MG scoped deployment stack during New/Set cmdlet execution.
* Updated Remove/New stack cmdlets with warnings for management groups ActionOnUnmanage and removed DeleteResourcesAndResourceGroups as valid ActionOnUnmanage value.
* Supported get and assign versioned policy definitions and sets
* Fixed syntax incompatible with windows powershell [#24971]
Expand Down

0 comments on commit 231a2c5

Please sign in to comment.