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.

autoBackupSettings not found on Microsoft.SqlVirtualMachine/sqlVirtualMachines

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

SQLVirtualMachine.autoBackupSettings is not present. I provisioned a test Azure SQL server on VMs and can see my SQL VM using await sqlVMClient.sqlVirtualMachines.listByResourceGroup(resourceGroupName).

I configured the VM’s auto backup like this:

Screen Shot 2020-09-11 at 1 02 21 AM

I’m unable to see this info from the API results.

To Reproduce Steps to reproduce the behavior:

  1. Provision a new Azure SQL server for Virtual Machines
  2. Set the the client
  3. Get a list of VMs (using listByResourceGroup)
  4. See that autoBackupSettings is not a property on the returned results:
{
  "id": "/subscriptions/<REDACTED>/resourceGroups/<REDACTED>_group/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/<REDACTED>",
  "location": "westus",
  "name": "<REDACTED>",
  "provisioningState": "Succeeded",
  "sqlImageOffer": "SQL2019-WS2019",
  "sqlImageSku": "Developer",
  "sqlManagement": "Full",
  "sqlServerLicenseType": "PAYG",
  "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines",
  "virtualMachineResourceId": "/subscriptions/<REDACTED>/resourceGroups/<REDACTED>_group/providers/Microsoft.Compute/virtualMachines/<REDACTED>"
}

Expected behavior A clear and concise description of what you expected to happen.

vm.autoBackupSettings.retentionPeriod should show 20 days.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bluefootedcommented, Apr 12, 2021

@hdavidzhu Yes we have filed an internal tracking item to get the documentation updated.

1reaction
qiaozhacommented, Apr 12, 2021

@bluefooted added need author feedback label. which will automatically close this issue if the issue author doesn’t have any objections in 7 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sql Virtual Machines - Update - REST API (Azure SQL VM)
400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.
Read more >
Sql Virtual Machines - Create Or Update - REST API (Azure ...
Auto backup settings for SQL Server. ... 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in ...
Read more >
Automated Backup v2 for SQL Server 2016/2017 Azure VMs
Automated Backup v2 automatically configures Managed Backup to Microsoft Azure for all existing and new databases on an Azure VM running SQL ...
Read more >
Sql Virtual Machines - Start Assessment - REST API (Azure ...
400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.
Read more >
Sql Virtual Machines - List By Resource Group - Microsoft Learn
Learn more about SQL VM service - Gets all SQL virtual machines in a resource group.
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