Azure / Azure/azure-rest-api-specs

Storage: Allow to create storage management policy with no rule

Open
#21,654 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Service Attention Storage
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 21h
Merged PRs (30d)
432

Description

Currently, the storage management policy resource is required to be created with at least one rule. However, there are customers want to manage rules seprately by updating the policy resource.

One such ask can be found at https://github.com/hashicorp/terraform-provider-azurerm/issues/6935, where users want to create an empty storage management policy and then manage storage management policy rules externally. The fact that a storage management policy has to be created with at least one rule inline makes it hard to use it correctly by users, see the comment here: https://github.com/hashicorp/terraform-provider-azurerm/pull/19383#issuecomment-1326695657.

This issue asks the service team to allow creating a storage management policy with no rule specified.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the storage management policy definition in specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/storage.json, especially the referenced resource schema. Review the linked Terraform issue and pull request for the expected empty-policy behavior. Done means the service contract permits creating a policy with no rules while preserving separate rule management.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.