364 questions with SQL Server on Azure Virtual Machines tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Unable to connect to Azure SQL database from SSMS

Hi, I followed this blog to create SQL Virtual Machine. I am able to connect to the default DB within the VM itself, but Not able to connect through my ocal workstation(Laptop). TITLE: Connect to Server …

SQL Server on Azure Virtual Machines
asked 2021-10-27T11:39:21.447+00:00
Rajesh Swarnkar 851 Reputation points
edited the question 2023-01-18T04:05:04.14+00:00
vipullag-MSFT 25,366 Reputation points
1 answer One of the answers was accepted by the question author.

KQL to monitor Sql Server Performance for Azure SQLVM

All, I'm looking KQL query to monitor SQL Server performance for Azure SQLVm using Log analytics workspace. Thanks.

SQL Server on Azure Virtual Machines
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,921 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,362 questions
asked 2023-01-06T13:07:58.863+00:00
Rahul 276 Reputation points
commented 2023-01-11T11:02:33.1366667+00:00
Rahul 276 Reputation points
2 answers One of the answers was accepted by the question author.

How to expand sql datadisk

Hello everyone. I have an VM sql server with a DATADISK of 128GB I need to extend the disk and I see this: When I try to add for example 32Gb I obtain an error: So...I need first to modify my Datadisk 128GB to 256gb? (not possible to add only 32…

SQL Server on Azure Virtual Machines
asked 2023-01-10T18:16:22.473+00:00
Oscar Moyano 66 Reputation points
answered 2023-01-10T19:24:50.907+00:00
Oscar Moyano 66 Reputation points
1 answer One of the answers was accepted by the question author.

Does Get-AzSqlDatabase pull info from a SQL instance on a Azure VM ? I get this when i try.

Get-AzSqlDatabase : Can not perform requested operation on nested resource. Parent resource 'SQLInstance' not found. At S:\BackupStatus\All SQLServers.ps1:13 char:9 Get-AzSqlDatabase -ResourceGroupName $server.ResourceGroupNam ... …

SQL Server on Azure Virtual Machines
asked 2023-01-05T16:04:40.077+00:00
Narasimhan, Ranga 26 Reputation points
accepted 2023-01-05T19:31:15.24+00:00
Narasimhan, Ranga 26 Reputation points
5 answers

Azure VM Type

Hi Team, While calculating cost of the Azure VM (through Azure calculator) on which SQL Server Standard 2019 is to be installed, for Type dropdown, what is the difference between OS only and SQL Server? Does this means for calculating cost of an…

SQL Server on Azure Virtual Machines
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,362 questions
asked 2022-12-04T15:28:31.447+00:00
salilsingh-9961 346 Reputation points
answered 2023-01-02T02:04:12.567+00:00
Łukasz Przyjemski 11 Reputation points
1 answer One of the answers was accepted by the question author.

Backup PostgreSQL

Hi All i have Azure Database for PostgreSQL server(Resource Type: Azure Database for PsotgreSQL flexible server). I want to take the backup as application team is performing an upgrade.

SQL Server on Azure Virtual Machines
Azure Database for PostgreSQL
asked 2022-12-28T05:45:08.29+00:00
Glenn Maxwell 10,551 Reputation points
accepted 2022-12-28T11:05:52.737+00:00
Glenn Maxwell 10,551 Reputation points
3 answers One of the answers was accepted by the question author.

Connect SQLCMD in Linux using root user

Hi, how to connect SQLCMD in Linux using root user? We have SA account which got automatically disabled and there is no other login available to enable the SA Account or login to SQL Server SSMS. So, is there any way to login to SQL Server using…

SQL Server on Azure Virtual Machines
Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,046 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,575 questions
asked 2022-12-25T11:52:10.307+00:00
Gnana Balaji Kanagaraj 41 Reputation points
answered 2022-12-26T09:26:27.503+00:00
Gnana Balaji Kanagaraj 41 Reputation points
1 answer One of the answers was accepted by the question author.

do we have option to retsore sqldb in azure sql backup to different subscription

Hi Team, Do we have option to restore sql db from one subscription to another one like azure vm backup? From azure portal, we are unable to see the selection if different subscription during the sqldb restore Can you please check and update?…

SQL Server on Azure Virtual Machines
Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,152 questions
Azure SQL Database
asked 2022-11-25T10:59:08.643+00:00
Siva 646 Reputation points
accepted 2022-12-26T03:29:28.193+00:00
Siva 646 Reputation points
1 answer

Azure Script to find IAAS disk configurations

Hi All, I am trying to use below PS script to find out azure IAAS disk configuration including (LUN,Data Caching,IO,Bandwidth). Connect-AzAccount Set-AzContext -Subscription 'SubName' $vm=Get-AzVM -ResourceGroupName ReGrpNAME -Name…

SQL Server on Azure Virtual Machines
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,362 questions
asked 2022-12-20T21:39:39.127+00:00
ACDBA 416 Reputation points
commented 2022-12-21T00:13:25.677+00:00
ACDBA 416 Reputation points
1 answer One of the answers was accepted by the question author.

Azure IAAS VM's comparison

Hi All, I have two node identical replicas having AG's. They are lifted to Azure from On-prem. I found similar difference in configuration. They dont match the sku's and disk configurations. Eg:- Data drive is Standard SSD in one VM and Premium…

SQL Server on Azure Virtual Machines
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,362 questions
asked 2022-12-12T21:50:42.627+00:00
ACDBA 416 Reputation points
accepted 2022-12-16T20:27:24.123+00:00
ACDBA 416 Reputation points
1 answer One of the answers was accepted by the question author.

Minimum SQL Server role to check SQL Agent status with PowerShell?

I need to execute the PowerShell to remotely check the SQL backup job status on each SQL Database instance across multiple SQL servers but as a Read Only user account. What are the minimum credentials or SQL Server role that I can use to query the…

SQL Server on Azure Virtual Machines
Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,046 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,427 questions
asked 2022-12-08T13:06:01.163+00:00
EnterpriseArchitect 4,916 Reputation points
commented 2022-12-08T14:09:40.457+00:00
Alberto Morillo 33,176 Reputation points MVP
1 answer

SQL Renaming a column of a temp table

I can't get what is not working in the below bold highlighted line. I would be grateful to anyone who could help me! DECLARE @AssetWithDrawStartDate DATE; DECLARE @AssetWithDrawDate DATE; DECLARE @TradeStartDate DATE; DECLARE @TradeDate …

SQL Server on Azure Virtual Machines
Azure SQL Database
asked 2022-11-29T11:56:34.63+00:00
SamBa1927 1 Reputation point
commented 2022-12-02T05:08:04.287+00:00
ShaktiSingh-MSFT 14,166 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Restore TDE-Encrypted DataBase with BYOK in Azure Managed Instance to another Subscription

Is it Possible to Restore TDE-Encrypted Database with BYOK in Azure Managed Instance to another Subscription?

SQL Server on Azure Virtual Machines
Azure SQL Database
asked 2022-11-23T08:55:10.767+00:00
Youssef, Ghadeer 41 Reputation points
commented 2022-11-29T17:03:31.42+00:00
GeethaThatipatri-MSFT 28,462 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Migrate SQL Server on a VM to Azure SQL Databases

Hi everyone, I hope you are very well! I need to migrate a SQL Server database that we have in a virtual machine to a running SQL Database in a SQL Server and I don't know how to do it. Some help please?

SQL Server on Azure Virtual Machines
Azure SQL Database
Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
736 questions
asked 2022-11-23T12:52:01.837+00:00
juani 26 Reputation points
accepted 2022-11-24T11:29:46.157+00:00
juani 26 Reputation points
2 answers One of the answers was accepted by the question author.

On premise SQL server Licencing

Hi Team , Currently , We have an on-premise prod VM with SQL server along with BI tools (SSRS). Now, we are planning to provision two azure vm's for prod and dev environment on cloud. We are planning to use Azure SQL MI to host the Report databases. …

SQL Server on Azure Virtual Machines
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,849 questions
asked 2022-11-22T07:23:07.367+00:00
Thyagarajulu B M 121 Reputation points
accepted 2022-11-23T08:03:14.447+00:00
Thyagarajulu B M 121 Reputation points
3 answers

how to export bacpac file to azure blob storage from sql server using sqlpackage

I have some databases in the SQL server and I want to migrate them to the Azure SQL database for this I am using sqlpackage.exe for exporting and importing the databases. the issue is while exporting the database bacpac files are made in local disk, not…

SQL Server on Azure Virtual Machines
Azure SQL Database
asked 2021-09-07T08:57:13.73+00:00
Shubhi Jain 21 Reputation points
answered 2022-11-22T10:56:08.28+00:00
Danial Raj 1 Reputation point
0 answers

Manually run a SQL Policy in Azure Backup

I created a SQL policy in Azure backup that performs a Full DB backup every night at 11PM and also runs Hourly Log Backups. The target SQL server has 14 databases on it, and I want to manually run a backup of the entire server. It seems like I…

SQL Server on Azure Virtual Machines
Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,152 questions
asked 2022-11-03T15:25:47.923+00:00
Joe Correia 1 Reputation point
commented 2022-11-21T11:01:01.55+00:00
SadiqhAhmed-MSFT 39,726 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Restore .bak into SQL Managed Instance

We have a requirement where a third-party vendor sends us .bak files every day and I have managed to find a way to restore the .bak into SQL managed instance using the Restore command. I need to know how much it will cost to restore and drop…

SQL Server on Azure Virtual Machines
asked 2022-07-29T09:11:48.057+00:00
Siva B 226 Reputation points
commented 2022-11-10T23:05:21.347+00:00
Siva B 226 Reputation points
2 answers

Azure App service failing to connect to the Azure SQL VM Server

The connection string of my .NET application to connect to the database has been provided in the configuration of an Azure App service and the database is present in an Azure SQL Virtual Machine, when trying to access the APIs of my application I see the…

SQL Server on Azure Virtual Machines
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
211 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,575 questions
asked 2022-11-07T08:29:56.457+00:00
VAMSY KRISHNA REDDY 6 Reputation points
answered 2022-11-07T08:52:27.983+00:00
Manu Philip 17,021 Reputation points MVP
1 answer One of the answers was accepted by the question author.

Azure Virtual machine SQL web database limit per license

What is the number of databases you can have on a standard SQL web license on azure VM

SQL Server on Azure Virtual Machines
Azure SQL Database
asked 2022-11-02T11:41:03.423+00:00
Janco De Wet 21 Reputation points
accepted 2022-11-02T11:48:20.013+00:00
Janco De Wet 21 Reputation points