Azure / Azure/azure-powershell

Add -ResourceId parameter for all core Get-Az* commands

Open
#8,704 2 comments 0 reactions 0 assignees View on GitHub
feature-request Generator
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

## Description of the new feature

Allow to retrieve a resource by ResourceId.

There are cases when only Resource Id is known (for instance, Public IP Prefix has an array of Public IP Address resource identifiers). But it is not possible to retrieve a resource directly since many commands require Name / ResourceGroupName parameters.

It means that we either need to call Get-AzResource first and then call Get-AzPublicIpAddress (extra network call). Or implement our own parsing logic of resource identifiers.

I can see this was already discussed in [4366](https://github.com/Azure/azure-powershell/issues/4366). But it looks like it was closed in favor of some other item which is also closed in favor of unknown.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.