Azure / Azure/azure-powershell

[Feature]: get-azapimanagementpolicy support for Policy Fragments

Open
#26,561 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad API Management customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

As of Powershell Module Az.ApiManagment v12.4.0 the [get-azapimanagementpolicy](https://learn.microsoft.com/en-us/powershell/module/az.apimanagement/get-azapimanagementpolicy?view=azps-12.4.0) command doesn't support retrieval of Policy Fragments. Please add parameters similar to the existing (-ProductId, -ApiId etc) ones that will enable retrieval of Policy Fragments.

### Proposed implementation details (optional)

Add a new parameter -FragmentId to the relevant commands to enable retrieval of a policy fragment presumably via the [Policy Fragment Resource Management API](https://learn.microsoft.com/en-us/rest/api/apimanagement/policy-fragment/get?view=rest-apimanagement-2024-05-01&tabs=HTTP)

Contributor guide

Open the contributing guide

Research direction

Start with the Get-AzApiManagementPolicy command in the Az.ApiManagement module and compare its existing ProductId and ApiId parameters with the Policy Fragment Resource Management API documentation linked in the issue. Add FragmentId support for retrieving policy fragments, then verify that the command returns the requested fragment.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
api, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.