Skip to content

Commit 6b0dde4

Browse files
authored
Merge pull request #275392 from mumian/0514-stacks-deny-permissions
Stacks - deny permissions
2 parents e0fbf05 + 03b84cb commit 6b0dde4

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

articles/azure-resource-manager/bicep/deployment-stacks.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Create & deploy deployment stacks in Bicep
33
description: Describes how to create deployment stacks in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-azurecli, devx-track-azurepowershell, devx-track-bicep
6-
ms.date: 04/11/2024
6+
ms.date: 05/14/2024
77
---
88

9-
# Deployment stacks (Preview)
9+
# Deployment stacks
1010

11-
An Azure deployment stack is a type of Azure resource that enables the management of a group of Azure resources as an atomic unit. When a Bicep file or an ARM JSON template is submitted to a deployment stack, it defines the resources that are managed by the stack. If a resource that was previously included in the template is removed, it will either be detached or deleted based on the specified _actionOnUnmanage_ behavior of the deployment stack. Similar to other Azure resources, access to the deployment stack can be restricted using Azure role-based access control (Azure RBAC).
11+
An Azure deployment stack is a type of Azure resource that enables the management of a group of Azure resources as an atomic unit. When a Bicep file or an ARM JSON template is submitted to a deployment stack, it defines the resources that are managed by the stack. If a resource that was previously included in the template is removed, it will either be detached or deleted based on the specified _actionOnUnmanage_ behavior of the deployment stack. Similar to other Azure resources, access to the deployment stack can be restricted using Azure role-based access control (Azure RBAC).
1212

1313
To create and update a deployment stack, you can utilize Azure CLI, Azure PowerShell, or the Azure portal along with Bicep files. These Bicep files are transpiled into ARM JSON templates, which are then deployed as a deployment object by the stack. The deployment stack offers additional capabilities beyond the [familiar deployment resources](./deploy-cli.md), serving as a superset of those capabilities.
1414

@@ -42,6 +42,13 @@ Deployment stacks provide the following benefits:
4242
- [What-if](./deploy-what-if.md) isn't available in the preview.
4343
- A management group-scoped stack is restricted from deploying to another management group. It can only deploy to the management group of the stack itself or to a child subscription.
4444

45+
## Built-in roles
46+
47+
There are two built-in roles for deployment stack:
48+
49+
- **Azure Deployment Stack Contributor**: Allows users to manage deployment stacks, but cannot create or delete deny assignments within the deployment stacks.
50+
- **Azure Deployment Stack Owner**: Allows users to manage deployment stacks, including those with deny assignments.
51+
4552
## Create deployment stacks
4653

4754
A deployment stack resource can be created at resource group, subscription, or management group scope. The template passed into a deployment stack defines the resources to be created or updated at the target scope specified for the template deployment.
@@ -594,6 +601,14 @@ To delete a managed resource, remove the resource definition from the underlying
594601

595602
When creating a deployment stack, it's possible to assign a specific type of permissions to the managed resources, which prevents their deletion by unauthorized security principals. These settings are referred to as deny settings. You want to store the stack at a parent scope.
596603

604+
> [!NOTE]
605+
> The latest release requires specific permissions at the stack scope in order to:
606+
>
607+
> - Create or update a deployment stack and set the deny setting to a value other than "None".
608+
> - Update or delete a deployment stack with an existing deny setting of something other than "None"
609+
>
610+
> Use the [built-in roles](#built-in-roles) to grant the permissions.
611+
597612
# [PowerShell](#tab/azure-powershell)
598613

599614
The Azure PowerShell includes these parameters to customize the deny assignment:

articles/azure-resource-manager/bicep/quickstart-create-deployment-stacks-template-specs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Create and deploy a deployment stack with Bicep from template specs
33
description: Learn how to use Bicep to create and deploy a deployment stack from template specs.
4-
ms.date: 07/06/2023
4+
ms.date: 05/14/2024
55
ms.topic: quickstart
66
ms.custom: mode-api, devx-track-azurecli, devx-track-azurepowershell, devx-track-bicep
77
# Customer intent: As a developer I want to use Bicep to create a deployment stack from a template spec.
88
---
99

10-
# Quickstart: Create and deploy a deployment stack with Bicep from template specs (Preview)
10+
# Quickstart: Create and deploy a deployment stack with Bicep from template specs
1111

1212
This quickstart describes how to create a [deployment stack](deployment-stacks.md) from a template spec.
1313

articles/azure-resource-manager/bicep/quickstart-create-deployment-stacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Create and deploy a deployment stack with Bicep (Preview)
2+
title: Create and deploy a deployment stack with Bicep
33
description: Learn how to use Bicep to create and deploy a deployment stack in your Azure subscription.
4-
ms.date: 07/06/2023
4+
ms.date: 05/14/2024
55
ms.topic: quickstart
66
ms.custom: mode-api, devx-track-azurecli, devx-track-azurepowershell, devx-track-bicep
77
# Customer intent: As a developer I want to use Bicep to create a deployment stack.

articles/azure-resource-manager/bicep/tutorial-use-deployment-stacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Use deployment stack with Bicep
33
description: Learn how to use Bicep to create and deploy a deployment stack.
4-
ms.date: 07/06/2023
4+
ms.date: 05/14/2024
55
ms.topic: tutorial
66
ms.custom: mode-api, devx-track-azurecli, devx-track-azurepowershell, devx-track-bicep
77
---
88

9-
# Tutorial: use deployment stack with Bicep (Preview)
9+
# Tutorial: use deployment stack with Bicep
1010

1111
In this tutorial, you learn the process of creating and managing a deployment stack. The tutorial focuses on creating the deployment stack at the resource group scope. However, you can also create deployment stacks at either the subscription scope. To gain further insights into creating deployment stacks, see [Create deployment stacks](./deployment-stacks.md).
1212

0 commit comments

Comments
 (0)