Azure / Azure/bicep-types-az

[`Microsoft.Relationships/serviceGroupMember`]: read-only properties being flagged by BCP035 (`metadata`, `originInformation`, `sourceId`)

Open
#2,589 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

inaccuracy
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

Resource Type

Microsoft.Relationships/serviceGroupMember

Api Version

2023-09-01-preview

Issue Type

Property(s) should be marked as read-only/write-only

Other Notes

Warning BCP035: The specified "object" declaration is missing the following required properties: "metadata", "originInformation", "sourceId". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP035]

Bicep Repro
@description('Required. The resource ID of the service group to which the resource group will be associated to.')
param serviceGroupResourceId resourceInput<'Microsoft.Relationships/serviceGroupMember@2023-09-01-preview'>.properties.targetId

resource serviceGroup_subscriptionMember 'Microsoft.Relationships/serviceGroupMember@2023-09-01-preview' = {
  name: uniqueString(resourceGroup().id)
  properties: {
    targetId: serviceGroupResourceId
  }
  scope: resourceGroup()
}
Confirm
  • I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

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 Microsoft.Relationships/serviceGroupMember resource type at API version 2023-09-01-preview and reproduce the BCP035 warning using the Bicep example in the issue. The work is done when metadata, originInformation, and sourceId are correctly treated as read-only or write-only and the shown resource input no longer reports them as required.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.