question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hirenchalodiya1commented, Jul 19, 2022

@MaryGao @kazrael2119 New package resolves the issue.

1reaction
kazrael2119commented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
hashicorp / terraform-provider-azurerm Public ... Status=400 Code="NotSupported" Message="Operation \"purge\" is not enabled for this vault." #10132.
Read more >
Troubleshoot common problems when using Terraform on Azure
In this article. HashiCorp Terraform specific support channels; Unable to list provider registration status; Error acquiring the state lock ...
Read more >
azurerm_storage_account | Resources | hashicorp/azurerm
resource_group_name - (Required) The name of the resource group in which to ... from Storage to StorageV2 keeping the existing storage account in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found