Azure / Azure/arm-template-whatif

Use names rather than guids in whatif output

Open
#338 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
101
Forks
21
Avg merge
3h 35m
Merged PRs (30d)
1

Description

The usability of WhatIf outputs is too low because it uses only oject id or guid in the output and does not inform the reader of the assoicated human readable name of the object. If the name of the objects is too hard to handle, because perf, then you could generate a link for us to follow to the object in Entra ID or in Azure.

WhatIf is specifically targeted to human readers to validate the potential outcome of a deployment, and so it should be useful to human readers. Is there not room for improvement here?

**To Reproduce**
Any whatif output for example the one assigning a role below.

**Expected behavior**
The same out put but that has (Display Name) of the Entra ID object or the Azure resource appended after the IDs below.

Sample whatif output:
--------------------------------------------------------------------------------------
Note: The result may contain false positive predictions (noise).
You can help us improve the accuracy of the result by opening an issue here: https://aka.ms/WhatIfIssues.

Resource and property changes are indicated with this symbol:
+ Create

The deployment will update the following scope:

Scope: /subscriptions/9ea89304-c5ac-4f52-8d3d-6c79243b4925

+ Microsoft.Authorization/roleAssignments/13dbc359-34be-59fb-9450-aa3f765981b6 [2022-04-01]

apiVersion: "2022-04-01"
id: "/subscriptions/9ea89304-c5ac-4f52-8d3d-6c79243b4925/providers/Microsoft.Authorization/roleAssignments/13dbc359-34be-59fb-9450-aa3f765981b6"
name: "13dbc359-34be-59fb-9450-aa3f765981b6"
properties.principalId: "fbb0e181-4499-4132-8f4e-3c09604cef57"
properties.roleDefinitionId: "/subscriptions/9ea89304-c5ac-4f52-8d3d-6c79243b4925/providers/Microsoft.Authorization/roleDefinitions/17a0db50-bcaf-5c43-be28-30fae5261b03"
type: "Microsoft.Authorization/roleAssignments"
--------------------------------------------------------------------------------------

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides a sample WhatIf output for an Azure role assignment, but names no repository files, tests, or entry points. Start by locating the WhatIf output generation and role-assignment formatting, then determine how display names or Azure links could be obtained without unacceptable performance costs. Done means the output identifies the relevant Entra ID or Azure objects in addition to their IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
authorization, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.