简体   繁体   English

Visual Studio 2022 - 无法为 Python 添加 Azure 云服务角色

[英]Visual Studio 2022 - Cant add Azure Cloud Services roles for Python

I am trying to deploy a Python Django application to Azure Cloud Services with Visual Studio 2022.我正在尝试使用 Visual Studio 2022 将 Python Django 应用程序部署到 Azure 云服务。

My Visual Studio install includes the Python module "Azure Cloud Services core tools", along with the rest of the Python development tools.我的 Visual Studio 安装包括 Python 模块“Azure 云服务核心工具”,以及 Python 开发工具的 rest。

However, no Python project template for Azure is not available to me.但是,我没有 Azure 的 Python 项目模板。 I only have C# and Visual Basic for Azure Cloud Service (classic and extended).我只有 C# 和 Visual Basic 用于 Azure 云服务(经典和扩展)。

How can I build the Cloud Service in Visual Studio?如何在 Visual Studio 中构建云服务?

  • Initially Iam unable to find Django Template in VS2022.最初我无法在 VS2022 中找到Django 模板
  • Click on the Install more tools and features option单击Install more tools and features选项

在此处输入图像描述

  • Visual Studio Installer will be opened to Modify the Workloads将打开 Visual Studio 安装程序以修改工作负载
  • Select the option for Python development , make sure you have selected all the Optional check boxes under Python Development and click on Modify Select Python development 的选项,确保您已选中Python Development下的所有Optional复选框,然后单击 Modify

在此处输入图像描述

  • Selected workloads will be Installed将安装选定的工作负载

在此处输入图像描述

  • Now you can see the Django Web Templates available现在您可以看到 Django Web 模板可用

在此处输入图像描述

  • I have created a sample Django Web App,right click on the Solution Explorer and click on Publish, Iam able to see the option to publish to Azure我创建了一个示例 Django Web 应用程序,右键单击解决方案资源管理器并单击发布,我能够看到发布到 Azure 的选项

在此处输入图像描述

  • AFAIK, there is no separate template available for Azure, we need to select the Django Web Project and Publish to Azure from there. AFAIK, there is no separate template available for Azure, we need to select the Django Web Project and Publish to Azure from there.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python 库未在 Visual Studio 2022 中导入 - python libraries are not imported in Visual Studio 2022 使用 Visual Studio 2022 在 Docker 中调试 Python - Debugging Python inside Docker with Visual Studio 2022 在Visual Studio Team Services中使用Azure Flask Web部署的内联脚本未设置“%PYTHON_EXT_PATH%” - “%PYTHON_EXT_PATH%” not set using inline script for Azure Flask Web Deployment in Visual Studio Team Services 在 Visual Studio(2022) 中导入 pandas - import pandas in visual studio(2022) Python Selenium 在 Facebook 2022 上找不到添加照片和视频按钮元素 - Python Selenium cant find the Add photo and video button element on Facebook 2022 Azure Sql 数据库与 Visual Studio 代码中的 python - Azure Sql DataBase with python in Visual Studio Code Visual Studio Code 和 Azure 中的异步 python 函数 - Asynchronous python functions in Visual Studio Code and Azure Azure 函数 - Python - Visual Studio 代码 - Azure Functions - Python - Visual Studio Code 尝试在 Visual Studio 2022 上创建新的 python 控制台项目时出错 - Error while trying create new python console project on visual studio 2022 能够使用 Visual Studio 2022 中的 AWS Toolkit 在 AWS Lambda 中部署 Python - Ability to deploy Python in AWS Lambda using AWS Toolkit in Visual Studio 2022
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM