Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property extendedLocation is not identified as an allowed resource envelope property #183

Closed
witemple-msft opened this issue Jan 29, 2024 · 2 comments
Assignees
Milestone

Comments

@witemple-msft
Copy link
Member

Some Azure services use a property extendedLocation in their resource envelope. As far as I can tell, this is a valid resource envelope property for Azure RPs, but the TypeSpec Azure Core doesn't recognize it:

@singleton
model VirtualMachineInstance
  is ExtensionResource<VirtualMachineInstanceProperties> {
  /** Name of the virtual machine instance. */
  @key
  @segment("virtualMachineInstances")
  @visibility("read")
  @path
  name: string;

  /** Gets or sets the extended location. */
  extendedLocation: ExtendedLocation;
}

This produces a warning:

Property "extendedLocation" is not valid in the resource envelope.  Please remove this property, or add it to the resource-specific property bag.TypeSpec(@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property)

The workaround is to suppress the warning, but ideally we would recognize this property and provide a common definition of ExtendedLocation if appropriate.

@markcowl
Copy link
Member

@markcowl Look for dup issue

@markcowl markcowl removed their assignment Jan 29, 2024
@markcowl markcowl added this to the [2024] March milestone Jan 29, 2024
@allenjzhang allenjzhang self-assigned this Mar 5, 2024
@markcowl markcowl modified the milestones: [2024] March, [2024] April Mar 11, 2024
@markcowl markcowl modified the milestones: [2024] April, [2024] May Apr 6, 2024
@allenjzhang
Copy link
Member

#736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants