Skip to content

Commit 231a2c5

Browse files
dantedallagNoriZC
andauthored
Add validation to MG scoped deployment stack New/Set cmdlets. (#25351)
* Add validation to MG scoped deployment stack New/Set cmdlets. * Update ChangeLog.md --------- Co-authored-by: NoriZC <[email protected]>
1 parent 98fe50d commit 231a2c5

14 files changed

+12252
-264147
lines changed

src/Resources/ResourceManager/SdkClient/DeploymentStacksSdkClient.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,7 @@ bool bypassStackOutOfSyncError
634634
bypassStackOutOfSyncError
635635
);
636636

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

640639
var deploymentStack = DeploymentStacksClient.DeploymentStacks.BeginCreateOrUpdateAtManagementGroup(managementGroupId,
641640
deploymentStackName, deploymentStackModel);

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestGetManagementGroupDeploymentStack.json

Lines changed: 357 additions & 12864 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewAndSetAndSaveManagementGroupDeploymentStackWithTemplateSpec.json

Lines changed: 887 additions & 473 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewAndSetManagementGroupDeploymentStackDenySettings.json

Lines changed: 653 additions & 377 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewAndSetManagementGroupDeploymentStackWithBicep.json

Lines changed: 845 additions & 52958 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewAndSetManagementGroupDeploymentStackWithTags.json

Lines changed: 998 additions & 308 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewManagementGroupDeploymentStack.json

Lines changed: 626 additions & 20156 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestNewManagementGroupDeploymentStackUnmanageActions.json

Lines changed: 2444 additions & 1133 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestRemoveManagementGroupDeploymentStack.json

Lines changed: 1189 additions & 703 deletions
Large diffs are not rendered by default.

src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentStackTests/TestSaveAndRemoveManagementGroupDeploymentStackWithPipeOperator.json

Lines changed: 284 additions & 23336 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)