Azure / Azure/azure-powershell

Different results from Azure portal vs Azure Powershell modules

Open
#25,054 3 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-team-attention question
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

It's entirely possible that this is just user error on my part, but it seems like odd behavior to me. My apologies if this is something dumb. Basically when I run:

get-azroledefinition helpdesk*

I get an error back that states the following:

WARNING: No role definitions were found with those conditions.
WARNING: If the role was created recently keep in mind there's a slight delay between creation and public view.
WARNING: Please try again later.

If I run:

get-azroledefinition | where {$_.name -like "*Help*"} | select name | sort Name

I get a blank return.

I have verified that I am in the correct subscription and tenant and that HelpDesk Administrator is a valid built-in role. Thanks in advance for any help you can provide!

### Script or Debug output

_No response_

### Environment data

_No response_

### Module versions

7.1.0

### Error output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing both Get-AzRoleDefinition commands in the reported Azure subscription and tenant, then compare their results with the Azure portal's Helpdesk Administrator role. Check the behavior against module version 7.1.0. Done means the discrepancy has a confirmed cause and is fixed or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
authorization, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.