Skip to content

Commit 3fa8421

Browse files
authored
Merge pull request #204296 from mumian/0711-whatif-permission
add what-if permissions
2 parents 4bd8cd6 + 746c8c1 commit 3fa8421

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

articles/azure-resource-manager/bicep/deploy-what-if.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep deployment what-if
33
description: Determine what changes will happen to your resources before deploying a Bicep file.
44
author: tfitzmac
55
ms.topic: conceptual
6-
ms.date: 09/02/2021
6+
ms.date: 07/11/2022
77
ms.author: tomfitz
88
---
99
# Bicep deployment what-if operation
@@ -16,6 +16,8 @@ You can use the what-if operation with Azure PowerShell, Azure CLI, or REST API
1616

1717
If you would rather learn about the what-if operation through step-by-step guidance, see [Preview Azure deployment changes by using what-if](/learn/modules/arm-template-whatif/) on **Microsoft Learn**.
1818

19+
[!INCLUDE [permissions](../../../includes/template-deploy-permissions.md)]
20+
1921
## Install Azure PowerShell module
2022

2123
To use what-if in PowerShell, you must have version **4.2 or later of the Az module**.

articles/azure-resource-manager/templates/deploy-what-if.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Template deployment what-if
33
description: Determine what changes will happen to your resources before deploying an Azure Resource Manager template.
44
author: tfitzmac
55
ms.topic: conceptual
6-
ms.date: 03/09/2021
6+
ms.date: 07/11/2022
77
ms.author: tomfitz
8-
ms.custom: devx-track-azurepowershell, devx-track-azurecli
8+
ms.custom: devx-track-azurepowershell, devx-track-azurecli
99
ms.devlang: azurecli
1010
---
1111
# ARM template deployment what-if operation
@@ -18,6 +18,8 @@ You can use the what-if operation with Azure PowerShell, Azure CLI, or REST API
1818

1919
To learn more about what-if, and for hands-on guidance, see [Preview Azure deployment changes by using what-if](/learn/modules/arm-template-whatif) on **Microsoft Learn**.
2020

21+
[!INCLUDE [permissions](../../../includes/template-deploy-permissions.md)]
22+
2123
## Install Azure PowerShell module
2224

2325
To use what-if in PowerShell, you must have version **4.2 or later of the Az module**.

includes/template-deploy-permissions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
ms.author: daphnemamsft
44
ms.service: bicep, arm-templates
55
ms.topic: include
6-
ms.date: 1/07/2022
6+
ms.date: 7/11/2022
77

88
---
99

10-
## Required permissions
10+
## Required permissions
1111

12-
To deploy a Bicep file or ARM template, you need write access on the resources you're deploying and access to all operations on the Microsoft.Resources/deployments resource type. For example, to deploy a virtual machine, you need `Microsoft.Compute/virtualMachines/write` and `Microsoft.Resources/deployments/*` permissions.
12+
To deploy a Bicep file or ARM template, you need write access on the resources you're deploying and access to all operations on the Microsoft.Resources/deployments resource type. For example, to deploy a virtual machine, you need `Microsoft.Compute/virtualMachines/write` and `Microsoft.Resources/deployments/*` permissions. The what-if operation has the same permission requirements.
1313

1414
For a list of roles and permissions, see [Azure built-in roles](../articles/role-based-access-control/built-in-roles.md).

0 commit comments

Comments
 (0)