Is there a way to use the Snapshot Debugger against Azure AppService WebJobs?
I know it works with AppService HTTP applications but I would also like to use it with .NET executables running as Azure App Service WebJobs.
It really has the default supported scope:
https://learn.microsoft.com/en-us/azure/application-insights/app-insights-snapshot-debugger
Snapshot collection is available for:
.NET Framework and ASP.NET applications running .NET Framework 4.5 or
later.
.NET Core 2.0 and ASP.NET Core 2.0 applications running on Windows.
The following environments are supported:
Azure App Service.
Azure Cloud Service running OS family 4 or later.
Azure Service Fabric services running on Windows Server 2012 R2 or
later.
Azure Virtual Machines running Windows Server 2012 R2 or later.
On-premise virtual or physical machines running Windows Server 2012 R2
or later.
So it was not in above list, I suggest you submit a feature request to the product team:
http://visualstudio.uservoice.com/forums/121579-visual-studio
Related
A micro-services architecture based solution developed in .NET Core 3.1 / EF Core 3.1 / OpenIddict 2.1, works fine in development environment.
But in the client environment (Windows Server 2012 R2, with Server Hardening), Identity micro service couldn't able to connect to the SQL Server 2014 database server, and LINQ code which fetches data from the database does not throw any exception.
Startup.cs, database connection code
services.AddDbContext<IdentityDbContext>(options =>
{
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"));
options.UseOpenIddict();
});
Using a sample console app (developed in .NET Core 3.1 / EF Core 3.1) able to connect to the client database, this is to verify whether server hardening causes any problem on Windows Server 2012 R2/.NET Core 3.1/EF Core 3.1.
What is causing the database connect problem in Identity micro services? Any help would be greatly appreciated, thanks.
Basically, a named instance caused the problem, had to uninstall and reinstall the named instance.
I have an Azure SQL Database that I currently connect to from my on-premises laptop computer. I would like to install SSMS on an Azure Virtual Machine and have my complete stack in the Azure Cloud. Is it possible to install SSMS (or comparable tool) on an Azure VM and connect to an Azure SQL Database and Azure Data Warehouse?
I looked in the Azure Marketplace and don't see any images for SSMS. I'm assuming I'm just missing something so I would appreciate it if you can set me straight.
Yes, you can install SSMS on Azure VM (assuming it is a windows VM or any other OS where you can install SSMS).
An Azure VM is just like any other on-premise VM or Physical machine. In the Azure VM you can do anything that you can do in an on-premise VM or Physical machine.
Just like for your on-premise VM or Physical machine you would also need to create a firewall rule on your SQL Azure DB for your Azure VM before you can connect to the Azure DB from your SSMS in the Azure VM.
Please keep the accept answer as the accepted answer.
But I wanted to add that Azure has some 'pre canned' virtual machine images.
For example:
Visual Studio Community 2017 on Windows 10 Enterprise N
Visual Studio Community is our free, full featured and extensible IDE
for non-enterprise application development. This image contains the
recommended product install of the originally released (or 'RTW')
version of Visual Studio Community 2017 on the Windows 10 Enterprise N
(version 1809), including the Universal Windows app development tools
and the latest Windows 10 SDK. It allows you to quickly setup
environment in Azure to develop and test applications targeting the
Universal Windows Platform
So (even if I had to manually install SSMS) I might start with one of these pre-canned-VM designed for doing developer work.
So my answer is that you don't have to start with a plain-jane-windows-OS-VM...you might check the market place for something more featured.
Note the above VS version is "community". Obviously, if you need something more robust, you're gonna have to bring-your-own-license and do a self-install on the VM.
I developed UWP application and deployed this application in one of my IOT device. But I want to connect to local SQL database from UWP application that can run in the IOT device.
For that I created WCF web service project to connect to local database. But my application run In IoT device and database available in my local machine.
Can you please tell me how to connect local SQL database from UWP application that can run in Raspberry PI3 device.
With the Windows 10 Fall Creators Update we have added support for .NET Standard 2.0 to UWP. With this you can now use SqlClient APIs to enable this scenario.
For this scenario to work, you need the following configuration: - Visual Studio 2017 Update 4 (or later) - Min version in your UWP project 16299 (=Fall Creators Update) - NETCore version 6.0.1 (or later)
Here is a sample app: https://github.com/StefanWickDev/IgniteDemos/tree/master/NorthwindDemo
Here is the session at Microsoft Ignite 2017 where we demo'ed it: https://myignite.microsoft.com/videos/53541
The is no way to connect to a sql server database directly from a UWP app. You need to create a web service to connect to the sql server and pass the info to the UWP app. You can use databases like SQLite with a uwp app. To use the sqlite database with a uwp app you can use the entity framework core or sqlite-net to get data to and from it
I just started developing in Azure and I bump in to a lot of questions that might help others as well.
My goal is to learn more about:
azure
html5
jquery
ASP.NET MVC4
entityframework
My first steps:
subscribing to Azure. (5 minutes)
create a website, and added a database to my azure account. (5 minutes)
create a TFS environment (5 minutes)
download the publish settings file that can be used in visual studio to publish directly into azure (1 minute)
installed visual studio 2012 (2 hours) (required)
installed azure SDK for .NET (30 minutes) (required)
installed resharper (30 minutes) (optional)
installed SQL server 2012 (still downloading, 1 hour and counting) (needed?)
I started in parallel and began with this great tutorial for getting hands-on experience with website, html5, azure.
Since I deviated from the tutorial by adding my entity classes in a different project I ran into errors running enable-migrations. Here you can read the answer to that problem.
Now the "toughest" part for me until now: tha world of databases.
I am no expert on database development so I was wondering how deep do I need to dive. The goal remains the same: I want to build a webapp where I store and retrieve data from a database. So far the azure experience is quite easy going and everything integrates pretty easily.
I kinda liked the idea that I only need visual studio to work from, and that I can get addins that help me develop the things that I need.
Does that end when you get to database development?
Is SQL server 2012 the way to go?
Or are there "more easy" alternatives?
Is it a lot of work to update the database in the cloud with the stuff that I changed locally?
I do want to store stuff in the database in azure in the end.
Can you folks shed some light on the possibilities there are out there with its cons and pros?
When you work with windows azure environment in emulated environment (local development) You can use desk top version of SQL server 2012.But at the end you have to store your data schema on Azure SQL Database when you publish your cloud Application for production.
What is Windows Azure SQL Database ?
Microsoft Windows Azure SQL Database is a cloud-based relational
database service that is built on SQL Server technologies and runs in
Microsoft data centers on hardware that is owned, hosted, and
maintained by Microsoft.
Similarities and Differences
Similar to an instance of SQL Server on your premises, Windows Azure SQL Database exposes a tabular data stream (TDS) interface for Transact-SQL-based database access.
This allows your database applications to use Windows Azure SQL Database in the same way that they use SQL Server.
Because Windows Azure SQL Database is a service, administration in Windows Azure SQL Database is slightly different.
Unlike administration for an on-premise instance of SQL Server, Windows Azure SQL Database abstracts the logical administration from the physical administration; you continue to administer databases, logins, users, and roles, but Microsoft administers the physical hardware such as hard drives, servers, and storage.
This approach helps Windows Azure SQL Database provide a large-scale multi-tenant database service that offers enterprise-class availability, scalability, security, and self-healing.
Because Microsoft handles all of the physical administration, there are some differences between Windows Azure SQL Database and an on-premise instance of SQL Server in terms of administration, provisioning, Transact-SQL support, programming model, and features.
Features and Types
Windows Azure SQL Database does not support all of the features and data types found in SQL Server.
Analysis Services, Replication, and Service Broker are not currently provided as services on the Windows Azure platform.
Because Windows Azure SQL Database performs the physical administration, any statements and options that attempt to directly manipulate physical resources will be blocked, such as Resource Governor, file group references, and some physical server DDL statements.
It is also not possible to set server options and SQL trace flags or use the SQL Server Profiler or the Database Tuning Advisor utilities.
Windows Azure SQL Database supports many SQL Server 2008 data types; it does not support data types that have been deprecated from SQL Server 2008.
For more details you can follow below mentioned links.
Windows Azure SQL Database Overview
Tools and Utilities Support (Windows Azure SQL Database)
Guidelines and Limitations (Windows Azure SQL Database)
Deploying an ASP.NET Web Application to a Windows Azure Cloud Service and SQL Database
I hope this will help to you.
I realize that a local SQL Server instance is not accessible to my Windows 8 app. Instead, I have a SQL Server in Azure. In SQL Server Management Studio, I just change the querystring and interact with the Azure database like any other. How can I reference that database in my Windows 8 app?
This is what the Azure Mobile Services SDK is for. Scott Guthrie did a writeup on it a while back.
Undoubtedly you're aware that both ado.net and Entity Framework are missing from WinRT... Notice the glaring absence of support for System.Data.
You can't access directly on sql databases.. Because Windows 8 Apps different from windows forms.
But you can be used web services or azure, amazon services, storage files etc.
sounds like you want to develop a web service talking to your database, deploy it to IIS on your Azure instance and then consume it from your Windows 8 application (by adding a web reference to your web service in Visual Studio).
You can also place an OData head on the database, then use various OData client-side libraries to talk to it via REST. See http://www.odata.org/libraries for both client and server libraries. SQL Server on Azure is definitely supported, as is .NET, JavaScript, and other platforms on the client side.