When users were creating a new compute in AML environment by default RStudio application was created.
RStudio application
However, from month of July, by default RStudio application is not getting created. Only JupyterLab, Jupyter, VS Code, Terminal, Notebook applications installed not a RStudio.
without RStudio
Is there any way to install RStudio application in azure ML compute instance?
If you want to still use RStudio OpenSource you can do the following:
Follow the steps listed above to Add application when creating your compute instance.
Select Custom Application on the Application dropdown
Configure the Application name you would like to use.
Set up the application to run on Target port 8787 - the docker image for RStudio open source listed below needs to run on this Target port.
Set up the application to be accessed on Published port 8787 - you can configure the application to be accessed on a different Published port if you wish.
Point the Docker image to ghcr.io/azure/rocker-rstudio-ml-verse:latest.
Use Bind mounts to add access to the files in your default storage account:
Specify /home/azureuser/cloudfiles for Host path.
Specify /home/azureuser/cloudfiles for the Container path.
Select Add to add this mounting. Because the files are mounted, changes you make to them will be available in other compute instances and applications.
Select Create to set up RStudio as a custom application on your compute instance.
The compute instances setup was changed. As RStudio workbench is professional edition, we need to get the license from RStudio and then use that workbench license in Compute Instance creation in Advanced settings.
By default, the instances will not have the RStudio. The procedure starts will Add Application under compute instances.
Select CPU or GPU as required and then choose the VM Size. By default, using the Standard_DS12_v2 version of VM. Click on Create
Under Advanced Settings click on Add Application.
Go to RStudio and get the license for workbench.
Get the license from RStudio Workbench
Give the details required and target the port 8787 and published port will be 8787.
Open RStudio which was downloaded with license.
Select Custom Application under Applications
Fill the details of the applications, like Application Name
Set the target port as 8787
Set the publish port as 8787
Set the Docker image as the target.
Under /home/azureuser/cloudfiles set the Host path and Container path
Click on Create
To access the RStudio services, go to the left panel and check with the compute instance which we created.
We can see the rstudio-workbench in the applications.
Related
I am new to Azure and TAS (https://tanzu.vmware.com/application-service) and want to deploy .Net 4.5 web form application using VMWare Tanzu TAS (previously Cloud Foundry) on Azure.
I got Azure trial subscription to try it out but could not any details references for proceeding with the setup and installation.
https://azuremarketplace.microsoft.com/en-us/marketplace/apps/vmware-inc.vmware_tanzu?ocid=GTMRewards_WhatsNewBlog_azure_purview_Vol177&tab=Overview&exp=ubp8
If anyone has experience it before or any reference to start with, it would be great help.
Using VMWare Tanzu
Go to VMware Tanzu Network.
And download the VMware Tanzu Application Service.
And download the Windows FS Injector tool for your workstation OS.
Add the Windows Server container base image to the product file
```
winfs-injector ^
--input-tile PASW-DOWNLOAD-PATH ^
--output-tile PASW-IMPORTABLE-PATH
```
Where:
- `PASW-DOWNLOAD-PATH` is the path and filename to the TAS for VMs [Windows] product file you downloaded.
- `PASW-IMPORTABLE-PATH` is the desired output path for the importable product file.
For example:
C:\Users\admin> winfs-injector ^
--input-tile c:\temp\pas-windows-2.9.0-build.1.pivotal ^
--output-tile c:\temp\pas-windows-2.9.0-build.1-INJECTED.pivotal
Go to the Ops Manager Installation Dashboard and then click on Import a Product.
And to add the TAS for VMs [Windows] tile to the Import a Product product list, select the path PASW-IMPORTABLE-PATH file from your workstation.
To add the TAS for VMs [Windows] tile to your staging area, click + under the VMware Tanzu Application Service for VMs [Windows] product listing.
Once the VM is configured
Deploying .Net Apps
The cf CLI command cf push pushes apps to TAS for VMs. There are two main ways to run the cf push command:
Run cf push APP-NAME to push an app the easiest way, using default settings.
Run the cf push command with flags and helper files to customize.
Default settings:
Choose a name for the app.
The app name must be unique.
Apps running at their default routes need unique names as the default routes are based on app names.
Run the following command:
cf push APP-NAME
Where APP-NAME is the name of the app.
Default Route
Hostname: The name of the app is the one specified in the cf push command.
Domain: The default apps domain for the TAS for VMs installation.
For eg;- An app named my-app-xyz running on TAS for VMs with an apps domain apps.example.com would, by default, run at the URL https://my-app-xyz.apps.example.com.
From azure portal
Choose the VMware Tanzu based on your plan and subscription.
And push your .Net code to Git and from Git you deploy to Tanzu using power shell commands as mentioned above. And for more information please follow the references.
Thanks #Tanzu docs
References taken from
Deploying .NET Apps | VMware Tanzu Docs (pivotal.io)
The Azure Monitoring Agent is a service that runs on a virtual machine and sends logs and metrics to Azure Analytics. This agent can be installed via multiple ways, for example:
by selecting the option while creating the VMSS, for example in the Azure portal
with an "Enable" button in the monitoring section of a VMSS in case it was not installed while the VMSS was created
by installing the the correct "extension" for all machines in the VMSS
manually or automated as a software installation inside the virtual machine, for example via ansible or actually by hand
There might be more options, but in any case the agent needs to know to which Analytics Workspace it should send its data, and this value is a user input during the installation of the agent.
Now, once installed, how can I change the destination Analytics Workspace for an entire VMSS?
There is no option to change the workspace. for the Virtual machines scale sets this support is limited as of now.
We have source code with combination of .net 4.0 and C++ (CLI C++). To build this code we use visual studio 2015 and visual studio 2010 both at the same time. To build the C++ source code we using VS 2010. Now as we are migrating to azure devops we need create build pipelines. One way to achieve this is to create a self hosted windows agent and install vs 2015 and vs 2010 on it.
Is there a way to make this containerized? Can we create a custom container image with vs 2015 and vs2010 already installed?
You can use docker inside virtual machine for containerization, You can set up a self-hosted agent in Azure Pipelines to run inside a Windows Server Core (for Windows hosts), or Ubuntu container (for Linux hosts) with Docker. This is useful when you want to run agents with outer orchestration, such as Azure Container Instances.
Both Windows and Linux are supported as container hosts. Windows containers should run on a Windows vmImage. To run your agent in Docker, you'll pass a few environment variables to docker run, which configures the agent to connect to Azure Pipelines or Azure DevOps Server. Finally, you customize the container to suit your needs. Tasks and scripts might depend on specific tools being available on the container's PATH, and it's your responsibility to ensure that these tools are available.
Here is the reference doc https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops
As per my knowledge number of container we run inside the VM is completely depends on the VM size( hardware configuration)we choose. we do have different VM size available in azure.
if you want to run more containers, I would recommend to go with AKS,Azure Kubernetes Service (AKS) simplifies deploying a managed Kubernetes cluster in Azure by offloading the operational overhead to Azure. As a hosted Kubernetes service, Azure handles critical tasks, like health monitoring and maintenance. Since Kubernetes masters are managed by Azure, you only manage and maintain the agent nodes. Thus, AKS is free; you only pay for the agent nodes within your clusters, not for the masters.
I am trying to host my .Net core MVC 2.1 linux application in azure WebApp. How do i know the Linux flavour, O/S, version running on WebApp? I am selecting 'West US' as region.
I think this is needed while i build my code on my development machine:
How to compile .NET Core app for Linux on a windows machine
My dev machine is ubuntu and Production server is CentOS
You can get system info from the Kudu environment. Kudu is the central nervous system of a Microsoft Azure Web Site; it handles the Git integration to a Web Site as well as provides an API endpoint for programmatic access to app settings, deployment information, files, active processes, runtime versions, source control information, web hooks and web jobs.
To get to Kudo, navigate to https://<webappname>.scm.azurewebsites.net, from there you can click on Environment to get something like this:
System info
System up time: 4.10:36:14.7190000
OS version: Unix 4.4.0.128
64 bit system: True
64 bit process: True
When you use Web App in Azure, you need to create the Service Plan first, it will need to decide the system type: Linux or Windows. And then when you create the web app, there is also a chance to choose a runtime for your web app in your Linux service plan(in your case, Linux is you need).
Azure provides some Built-in images as the runtime. See Build-in Runtime. If the runtime your application requires is not supported in the built-in images, you also can build your own Docker image as you need for your application. See Use a custom Docker image for Web App.
So you do not need to know what the OS is, you can just create the choose the OS you need. If you really really want to know the OS version, you can create an SSh session to your web app and run shell commands to check what the OS version is. See SSH support for Azure App Service on Linux.
There must be something I'm missing, but I've generated a virtual machine scale set from a custom image and I'd like to run a web server .exe on all of them.
Is the only option to manually get into each individual instance and run the code? Do I do that through SSH?
This is all very new to me and any help is appreciated
If you deployed it through Azure Resource Manager templates, you can use a CustomScriptExtension to run a Powershell script like in this example template.
If you already have the .exe on your server and you just want it to run whenever the machine starts, I would register it as a Windows service and configure the startup type as Automatic before creating the image.