Windows azure linux server

Краткое руководство. Создание виртуальной машины Linux на портале Azure Quickstart: Create a Linux virtual machine in the Azure portal

Виртуальные машины Azure можно создать на портале Azure. Azure virtual machines (VMs) can be created through the Azure portal. Портал Azure — это браузерный пользовательский интерфейс, который позволяет создавать ресурсы Azure. The Azure portal is a browser-based user interface to create Azure resources. В этом кратком руководстве показано, как использовать портал Azure для создания виртуальной машины Linux под управлением Ubuntu 18.04 LTS. This quickstart shows you how to use the Azure portal to deploy a Linux virtual machine (VM) running Ubuntu 18.04 LTS. Чтобы проверить работу виртуальной машины, вы также подключитесь к ней по протоколу SSH и установите веб-сервер NGINX. To see your VM in action, you also SSH to the VM and install the NGINX web server.

Если у вас еще нет подписки Azure, создайте бесплатную учетную запись, прежде чем начинать работу. If you don’t have an Azure subscription, create a free account before you begin.

Вход в Azure Sign in to Azure

Войдите на портал Azure, если вы еще этого не сделали. Sign in to the Azure portal if you haven’t already.

Создание виртуальной машины Create virtual machine

В поле поиска введите виртуальные машины. Type virtual machines in the search.

В разделе Службы выберите Виртуальные машины. Under Services, select Virtual machines.

На странице Виртуальные машины выберите Добавить. In the Virtual machines page, select Add. Откроется страница Создание виртуальной машины. The Create a virtual machine page opens.

На вкладке Основные сведения в разделе Сведения о проекте убедитесь, что выбрана правильная подписка, и при необходимости щелкните Создать для группы ресурсов. In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new resource group. Введите имя myResourceGroup. Type myResourceGroup for the name.*.

В разделе Подробности об экземпляре введите myVM в поле Имя виртуальной машины, выберите Восточная часть США в поле Регион и выберите Ubuntu 18.04 LTS в поле Образ. Under Instance details, type myVM for the Virtual machine name, choose East US for your Region, and choose Ubuntu 18.04 LTS for your Image. Оставьте другие значения по умолчанию. Leave the other defaults.

В разделе Учетная запись администратора выберите Открытый ключ SSH. Under Administrator account, select SSH public key.

В поле Имя пользователя введите azureuser. In Username type azureuser.

Для параметра Источник открытого ключа SSH оставьте значение по умолчанию Создать новую пару ключей, а затем введите myKey в поле Имя пары ключей. For SSH public key source, leave the default of Generate new key pair, and then type myKey for the Key pair name.

Читайте также:  The windows are open in spanish

В разделе Правила входящего порта > Общедоступные входящие порты, щелкните Разрешить выбранные порты, а затем выберите SSH (22) и HTTP (80) из раскрывающегося списка. Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select SSH (22) and HTTP (80) from the drop-down.

Оставьте остальные значения по умолчанию и нажмите кнопку Просмотр и создание, расположенную в нижней части страницы. Leave the remaining defaults and then select the Review + create button at the bottom of the page.

На странице Создание виртуальной машины отображаются сведения о создаваемой виртуальной машине. On the Create a virtual machine page, you can see the details about the VM you are about to create. Когда вы будете готовы, нажмите Создать. When you are ready, select Create.

Когда откроется окно Создать новую пару ключей, выберите Download private key and create resource (Скачать закрытый ключ и создать ресурс). When the Generate new key pair window opens, select Download private key and create resource. Файл ключа будет скачан в таком виде: myKey.pem. Your key file will be download as myKey.pem. Убедитесь, что знаете, куда был скачан файл .pem . Путь к нему вам потребуется на следующем шаге. Make sure you know where the .pem file was downloaded, you will need the path to it in the next step.

Когда развертывание будет завершено, выберите Перейти ресурсу. When the deployment is finished, select Go to resource.

На странице новой виртуальной машины выберите общедоступный IP-адрес и скопируйте его в буфер обмена. On the page for your new VM, select the public IP address and copy it to your clipboard.

Подключение к виртуальной машине Connect to virtual machine

Создайте SSH-подключение к виртуальной машине. Create an SSH connection with the VM.

Если вы используете компьютер Mac или Linux, откройте командную строку Bash. If you are on a Mac or Linux machine, open a Bash prompt. Если вы используете компьютер Windows, откройте командную строку PowerShell. If you are on a Windows machine, open a PowerShell prompt.

В командной строке установите SSH-подключение к виртуальной машине. At your prompt, open an SSH connection to your virtual machine. Измените IP-адрес на IP-адрес виртуальной машины и вместо пути .pem укажите путь к скачанному файлу ключа. Replace the IP address with the one from your VM, and replace the path to the .pem with the path to where the key file was downloaded.

Созданный вами ключ SSH можно использовать при следующем создании виртуальной машины в Azure. The SSH key you created can be used the next time your create a VM in Azure. Только при этом выберите для параметра Источник открытого ключа SSH значение Use a key stored in Azure (Использовать ключ, сохраненный в Azure). Just select the Use a key stored in Azure for SSH public key source the next time you create a VM. У вас уже есть закрытый ключ на компьютере, поэтому вам не нужно ничего скачивать. You already have the private key on your computer, so you won’t need to download anything.

Установка веб-сервера Install web server

Чтобы проверить работу виртуальной машины, установите веб-сервер NGINX. To see your VM in action, install the NGINX web server. Из сеанса SSH обновите источники пакетов, а затем установите последнюю версию пакета NGINX. From your SSH session, update your package sources and then install the latest NGINX package.

После этого введите exit , чтобы выйти из сеанса SSH. When done, type exit to leave the SSH session.

Читайте также:  Как удалить драйвера процессора windows 10

Проверка работы веб-сервера View the web server in action

Страницу приветствия NGINX по умолчанию можно просмотреть в любом веб-браузере. Use a web browser of your choice to view the default NGINX welcome page. Введите общедоступный IP-адрес виртуальной машины в качестве веб-адреса. Type the public IP address of the VM as the web address. Общедоступный IP-адрес можно найти на странице общих сведений о виртуальной машине. Также он является частью строки подключения SSH, использованной ранее. The public IP address can be found on the VM overview page or as part of the SSH connection string you used earlier.

Очистка ресурсов Clean up resources

Если группа ресурсов, виртуальная машина и все связанные с ними ресурсы вам больше не требуются, их можно удалить. When no longer needed, you can delete the resource group, virtual machine, and all related resources. Для этого выберите группу ресурсов для виртуальной машины, выберите действие Удалить и подтвердите имя удаляемой группы ресурсов. To do so, select the resource group for the virtual machine, select Delete, then confirm the name of the resource group to delete.

Дальнейшие действия Next steps

При работе с этим кратким руководство вы развернули простую виртуальную машину, создали группу безопасности сети и правило для нее, а также установили простой веб-сервер. In this quickstart, you deployed a simple virtual machine, created a Network Security Group and rule, and installed a basic web server. Дополнительные сведения о виртуальных машинах Azure см. в руководстве для виртуальных машин Linux. To learn more about Azure virtual machines, continue to the tutorial for Linux VMs.

Linux on Azure

Run your applications your way and manage your workloads securely and conveniently with your preferred Linux distribution on Azure.

A native Linux experience for every workload

Azure supports common Linux distributions including Red Hat, SUSE, Ubuntu, CentOS, Debian, Oracle Linux, and Flatcar Linux. Create your own Linux virtual machines (VMs), deploy and run containers in Kubernetes, or choose from hundreds of pre-configured images and Linux workloads available in Azure Marketplace. To run non-endorsed Linux distributions on Azure, simply upload your preferred Linux OS image.

Linux based images comprise 60% of Azure Marketplace Images.

Did you know? Linux on Azure is the fastest growing platform on Azure

  1. The cloud for Linux distributions
  2. Industry-leading security capabilities
  3. Streamline fully governed environments
  4. Innovate with unique hybrid options
  5. Get more cloud for less cost

  • Avoid lengthy lead time for Linux environment preparation and migrate with less friction.
  • Spend less time on administrative tasks with intuitive Linux open-source environment and application management tools.
  • Improve troubleshooting with Azure support for Red Hat and SUSE.
  • Streamline the creation of fully governed environments with Azure Blueprints (preview).
  • Protect your intellectual property and digital assets with the best-in-industry Azure IP Advantage program.

  • Detect threats, gain security and compliance insights, and follow recommendations for responses with Azure Security Center.
  • Simplify security operations and speed up threat responses with Azure Sentinel, an AI-based security information and event management (SIEM) service.
  • Prevent identity mismanagement across your Linux and Windows workloads with role-based access control (RBAC) and Azure Active Directory (Azure AD).

  • Balance compliance with business agility using governance tools like Azure Policy and Azure Blueprints.
  • Manage your cloud spend with transparency and accuracy through Azure Cost Management.
  • Simplify data protection with Azure Backup, a one-click backup solution that scales based on your needs.
  • Minimize downtime and ensure business continuity during planned and unplanned outages with Azure Site Recovery.
  • Get full observability into your applications, cloud infrastructure, and network with Azure Monitor.
Читайте также:  Windows media center activator

  • Manage your Linux services across cloud and on-premises environments using Azure Arc.
  • Build a truly consistent hybrid cloud infrastructure by integrating your on-premises and cloud environments with Azure Stack and the Open Service Broker API.
  • Accelerate your hybrid high-performance computing (HPC) workloads at the edge with built-in, high-speed data storage from Avere vFXT for Azure.
  • Apply containers to your hybrid Red Hat workloads with Azure Red Hat OpenShift.
  • Experience high throughput and low latency for all endorsed Linux distributions with best-in-class InfiniBand networks.

  • Reduce costs up to 72 percent compared to pay-as-you-go pricing for Linux on Azure. Lower your upfront cash outflow with monthly payment options at no additional cost.
  • Reserve resources up front to help plan for long-term success. Take advantage of one-year or three-year terms to support your budget goals.
  • Bring your existing subscription and licenses to Azure and run your Linux workloads in the cloud with Azure Hybrid Benefit.

Learn more about Linux on Azure products and services

Red Hat on Azure

Accelerate your innovation and digital transformation with Red Hat Linux solutions on Azure.

SUSE on Azure

Take advantage of high-performance solutions that come with running SUSE Linux on Azure.

Elastic on Azure

Use the Elastic Stack (Elastic, Logstash, and Kibana) to search, analyze, and visualize in real time.

VMware Tanzu on Azure

Automate release and software operation with Tanzu Application Service (formerly Pivotal Cloud Foundry).

Cloudera on Azure

Gain deeper insights into your data by deploying Cloudera on Azure.

Azure Migrate

Easily discover, assess, and migrate your on-premises virtual machines to Azure.

Virtual Machines

Provision Windows and Linux virtual machines in seconds.

Get the latest Linux and Open Source migration guidance, news, and resources

Customers are innovating with Linux on Azure

Adobe runs its Linux and open-source portfolio in Azure

«All the open-source services we want are fully supported in Azure.»

Lufthansa relies on Azure to run its AVIATOR system

«With Microsoft Azure, we get an open and flexible cloud infrastructure that supports our Red Hat ecosystem and helps us deliver superior products to our customers.»

Walgreens Boots Alliance scales retail operations with SUSE Linux

Because of its long-standing relationship with Microsoft, Walgreens Boots Alliance (WBA) looked to Azure for a SAP on SUSE Linux solution that would scale up to the company’s worldwide retail chain.

Stack Overflow runs SQL Server 2016 for Linux and Windows

The developer Q&A site stays fast, innovative, and agile with SQL Server 2016 for Linux and Windows.

Geekwire serves tech news using Linux on Azure

GeekWire delivers the latest tech news to 2 million readers worldwide with Linux and Linux-based solutions including NGINX, PHP-FPM, Redis, Docker, and MySQL on Azure.

Daimler innovates faster with Linux

«We’ve brought Java, Tomcat, Docker containers, Red Hat Enterprise Linux, SUSE Linux, and many other open-source tools into DevTest Labs, and they all work great.»

See what’s available

Browse all the available Linux distributions and workloads on Azure Marketplace.

Explore the Linux on Azure learning path

Learn more about onboarding your first Linux workload with Microsoft Learn courses.

Start your journey

Try deploying a Linux virtual machine in our Linux on Azure simulator and see it in action.

Оцените статью