can I put a customized windows server core in azure instance? - azure-virtual-machine

I am a dot net developer.I am using azure students subscription. I am running a windows service app which compile cpp file, run and collect output and store in database. It uses mingw for compiling. the software hosted in a windows vm. But windows vm cost for student but container instance does'nt.Now I want to run windows server core on azure container and host the service app with remote desktop in windows server core . Is it possible? if possible what is the procedure?

Yes, now you can install Windows Server 2016 Datacenter - Server Core:
https://portal.azure.com/#create/Microsoft.WindowsServer2016DatacenterServerCore-ARM

Related

Is it possible to run an oracle container image in local machine without docker desktop?

I have oracle container images in Oracle Container Registry in OCI cloud. The image can be from anywhere.
I need to execute/run those images in my local machine but my requirement is I cannot use Docker Desktop currently.
I see there are a few alternatives are there like podman, rocket where I can run these images in the local machine.
I need to know from the experts the best way to run the images in the local machine without the Docker Desktop.
Advance Thanks.
Docker containers run natively in Windows Server 2016, Windows Server 2019 and Windows 10. These labs are based on the latest releases of Windows and Docker which provide the best experience for containerized Windows applications.
The minimum requirements are:
Windows 10 Professional or Enterprise, with Windows update 1809 or
Windows Server 2019
You can install a native Windows binary which allows you to develop and run Windows containers without Docker Desktop. For more information about running Windows containers on Windows Server in Getting Started with Windows Containers.
To answer this question it really depends on what sort of instances you're running within your tenancy to interact with Oracle Cloud Container Registry. (You mention Oracle Container Registry in your question but that's actually the Oracle publishing platform for Oracle container images, but I think you mean the registry as a service in Oracle Cloud Infrastructure which is Oracle Cloud Container Registry.)
Most people that I know use Oracle Linux within OCI as it's the preferred OS for deploying instances. As such, my answer is based on that.
If you're using Oracle Linux 7, then the native docker that you would install on your instances would not be Docker Desktop, but instead a version of the docker ecosystem built for Oracle Linux systems. It's completely free to use (vs Docker Desktop).
If you're using Oracle Linux 8, then the native container client is podman which functions very much similarly to docker client, but some subtle differences.
In either case, you could choose to run other container runtimes, none of which would be Docker Desktop.

Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5 Error: "Make sure that Web Deploy is installed"

I installed IIS, Started Web Management Service, and Installed Web Platform Installer, checked the port, windows firewall is not enabled, shut down and started up, but still get the error that web deploy isn't installed when I try to publish with Web deploY in Visual Studio. What other configuration can I check to get the Web Deploy to complete?
Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5, ASP.net 4.6
Could not connect to the remote computer ("aspnet-dev"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found
Could not connect to the remote computer ("aspnet-dev"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found
According to your error message, it seems you used the wrong server address. The web deploy could find the remote server("aspnet-dev").
Could you please tell me which server named "aspnet-dev"? On your current server or remote server?
If you just want to publish the web application to current server (VS is installed in the IIS server) ,I suggest you could firstly open the current IIS management console to make sure you have used the right server name and IIS web applicatio name.
Like below:
Then I suggest you could open the Web Platform Installer to check you have installed the web deploy.
If you want to publish the web application to remote server (VS isn't installed in the IIS server), I suggest you could use the server's IP address or domain instead of the server name like below:
https://yourhostname:8172/
Besides, I suggest you could refer to below article to generate the web deploy publish setting and use it to publish the web application to remote server.
https://learn.microsoft.com/en-us/visualstudio/deployment/tutorial-import-publish-settings-iis?view=vs-2017
More details about how to use web deploy to publish web application to remote server ,I suggest you could refer to below article:
https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-web-deploy-handler

How can I connect web app with azure virtual linux macine on same azure account?

In my project I have to get two files (fastq it's Bioinformatics file) from user through HTML form and analyse it through some UNIX program (I used PHP in server side scripting) which is supported only in UNIX OS (I'm just using shell_exec() to run all UNIX program). For now I have implemented it in local host and every thing is working fine.
Now I have to do the same in Azure. I have created a webpage in Azure Web app and I have a UNIX VM in the same account. I want to know how i can connect both for free (I have already seen Integrate your app with an Azure Virtual Network but they are implementing additional charges).
According to your description, based on my understanding, I think you want to deploy your app on Azure WebApps & VM based on Linux and make it works as well as on your local host, which is a PHP app and call some UNIX-like program in shell via PHP method shell_exec.
Per my experience, there are two ways to do your deployment.
You need to create an instance of Azure WebApps for Linux, which is a Docker container based on Ubuntu. Then, you can install any services you want to deploy your PHP app and directly call the UNIX-like programs via PHP method shell_exec without any instance of Azure Linux VM to run the UNIX-like programs.
You can use an instance of Azure WebApps which is based on Windows, but it's impossible to run the UNIX-like programs hosted on Azure Linux VM via shell_exec method. For calling remote UNIX-like programs on Azure Linux VM, there are two ways to change your PHP app as below.
2.1. Via PHP methods ssh2_connect/ssh2_auth_password/ssh2_exec to create a ssh session to connect the remote Linux VM and do the SSH authentication to run the UNIX-like program via ssh2_exec method, if you had installed PHP extension package ssh2 on Windows for Azure WebApps. My sample code is as below.
<?php
$host = '<your Azure linux vm host>';
$port = 22; // First enable the 22 port for Azure Linux VM
$user='<ssh user>';
$passwd='<ssh password>';
$session=ssh2_connect($host, $port);
if($session)
echo "connect successfully.\n";
if(ssh2_auth_password($session, $user, $passwd)) {
echo $user." login OK.\n";
$stream=ssh2_exec($session, "pwd");
stream_set_blocking($stream, true);
if ($stream === FALSE) die("pwd failed");
echo 'pwd: '.stream_get_contents($stream).'<br/>';
}
?>
2.2. Or you can create a new PHP app to call the UNIX-like programs on Azure Linux VM to publish a WebService API or a RESTful API for being called by your PHP app on Azure WebApps.
Hope it helps.

Doubts with Amazon workspaces and EC2

I need to rent/buy a server service in which I can run windows 7 with the following purpose: to install 4 programs. I need to work with them regularly but I cant install these programs from my PC, I have to be on the cloud server.
So my question, because the FAQ of each services do not state it clearly, if I rent workspace with windows 7 can I install any program I want? Can I do this as installation is done on a regular PC with windows 7 ??
I already tested the 4 programs I need to use on my windows 7 machine locally and they work perfectly. I only need to be sure they can work in Amazon web service as well.
Thanks in advance.
AWS Workspaces does not actually run Windows 7, it runs Windows Server 2008 R2, with a Windows 7 theme. (see "What Operating System does a WorkSpace run?")
Due to Windows client licensing restrictions it is not possible to run an MS client OS in a cloud environment.
While Windows Server 2008 R2 should run anything that Win7 can, there are a few apps that don't allow themselves to be run on a server OS.
you can install softwares on your workspace, you are admin by default. But Workspace pricing is a monthly cost, so if you need only few usage of this machine you may want to consider using a windows ec2 instance instead

Can you install vmware server 2 on the Windows 8 preview?

Apologies if this has been asked already, searching the web reveals lots and lots of threads about installing the Win8 beta on VMware but not the other way around.
I am trying to install VMware Server 2.0.2 on a Windows 8 Preview machine. It appears to install correctly but I cannot then reach the web based homepage to configure virtual machines, i.e.
https://localhost:8333/ui/
gives the error that the "connection attempt to localhost was rejected. The website may be down or your network may not be properly configured".
Has anyone had any success running VMware Server 2.0.2 on Windows 8 Preview? If so were there any gotchas you needed to avoid?
I don't think it will ever be resolved. VMware Server was declared End Of Availability in January 2010; There will be no support for Windows 8.
Your best try would be trying launching the services in compatibility mode, but why would you do that? Why not use the much more advanced VMware Player or VMware Workstation products?
I've found a way to run it on Windows 8.
On my PC with a x64 version of Windows 8, when I installed VMware Server 2, I found there was a service called VMware Host Agent that cannot be run. When I opened the system Service Manager and clicked to launch this service, it gave me the error.
My solution is to create a service with the same command string and set it to start automatically by using the "sc create" command in cmd.exe. And it worked for me!