Skip to content

[typespec/azure-resource-manager] logical result path is undefined in ArmResourceActionAsync #1894

Description

When an async operation is performed using Azure-AsyncOperation, the final result of the operation is returned in the properties property in the ArmOperationStatus model, see the standards on ARM RPCs here

For example, when I write:

model Employee is TrackedResource<EmployeeProperties> {
  ...ResourceNameParameter<Employee>;
}

model EmployeeProperties {
  /** Age of employee */
  age?: int32;
}

model Result {
  /** Result of the action */
  result: string;
}

op actionAsync is ArmResourceActionAsync<Employee, void, Result>;

it now gives us:

finalResult: Result
finalEnvelopeResult: Result
envelopeResult: ArmOperationStatus
finalResultPath: undefined

Should we have finalResultPath as properties here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:neededA design request has been raised that needs a proposallib:azure-resource-managerIssues for @azure-tools/typespec-azure-core library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions