Azure / Azure/terraform-provider-azapi

PATCH option for resource azapi_update_resource

Open
#693 7 comments 1 reaction 0 assignees View on GitHub
enhancement triaged
Dominant language
Go
Stars
244
Forks
97
Avg merge
5d 9h
Merged PRs (30d)
9

Description

I know after dumpster diving in closed issues that azapi_resource_action is available.

However it seems documented pretty obscurely when you also have `azapi_update_resource` available. The example doesn't represent the same features that you would use update_resource for.

The name of the resource is important since when you first arrive you see update and think thats what I want. Then spend an a few hours battling why it doesn't work and tries to change everything. resource_action doesn't really sign "I change things" when you first read it.

That is how I interpreted whats going on in docs.

Is it possible that `azapi_update_resource` could just have a `http_method` option that is defaulted to "PUT" but at least allows the user to change it to match what the documentation requires.

Contributor guide

Open the contributing guide

Research direction

Start by locating the azapi_update_resource implementation and its documentation example, then compare them with azapi_resource_action, which the issue identifies as the existing alternative. Check how the resource defines its HTTP behavior and document what done means: an optional http_method defaults to PUT and supports the PATCH operation described in the documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, terraform
Domain
cloud, infrastructure, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.