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

beginCreateAndWait method is returning operation status instead of tracked resource (@azure/arm-workloads) #22407

Closed
1 task done
hirenchalodiya1 opened this issue Jun 30, 2022 · 7 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team

Comments

@hirenchalodiya1
Copy link
Member

hirenchalodiya1 commented Jun 30, 2022

  • Package Name: @azure/arm-workloads
  • Package Version: 1.0.0-beta.1
  • Operating system: Windows
  • nodejs
    • version: 16.8.0

Describe the bug
While monitor creation beginCreateAndWait function has data type Monitor

const monitor = await client.monitors.beginCreateAndWait(
      resourceGroup,
      monitorName,
      createMonitorPayload as Monitor
    );

image

But response is long running operation and monitor properties are null
image

To Reproduce
Steps to reproduce the behavior:

  1. Create any tracked resource using @azure/arm-workloads package

Expected behavior
Method should return Monitor object. So basically, id would be \subscriptions\<subscriptionId>\resourceGroups\<rgname>\providers\Microsoft.Workloads\monitors, name should be resource name not operation status name

Screenshots
Pasted above

Additional context
Add any other context about the problem here.

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 30, 2022
@azure-sdk
Copy link
Collaborator

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Monitor:0.5532203,ARM:0.043992866,Network - Virtual Network:0.018207463'

@lirenhe lirenhe added the Mgmt This issue is related to a management-plane library. label Jul 1, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jul 1, 2022
@lirenhe lirenhe added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 1, 2022
@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 1, 2022
@qiaozha qiaozha assigned MaryGao and unassigned qiaozha Jul 6, 2022
@qiaozha
Copy link
Member

qiaozha commented Jul 6, 2022

@MaryGao Can you help follow up on this issue ? Thanks

@MaryGao
Copy link
Member

MaryGao commented Jul 13, 2022

Sure I am preparing the package for this fix.

@kazrael2119
Copy link
Contributor

kazrael2119 commented Jul 14, 2022

Hi @hirenchalodiya1
I fixed this issue and regenerated this package. You can use this package to verify whether your problem is solved.
Here is the package:
azure-arm-workloads-1.0.0-beta.2.zip

@MaryGao MaryGao added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Jul 19, 2022
@ghost ghost removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 19, 2022
@hirenchalodiya1
Copy link
Member Author

@MaryGao @kazrael2119
New package resolves the issue.

@ghost ghost added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Jul 19, 2022
@MaryGao
Copy link
Member

MaryGao commented Jul 19, 2022

@qiaozha
Copy link
Member

qiaozha commented Jul 20, 2022

close it as resolved.

@qiaozha qiaozha closed this as completed Jul 20, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team
Projects
None yet
Development

No branches or pull requests

6 participants