简体   繁体   English

发布到其他人的Azure订阅?

[英]Publish to someone else's Azure subscription?

I have a web application that currently runs on Azure under my own Azure subscription. 我有一个Web应用程序,当前在我自己的Azure订阅下在Azure上运行。 I'd like to transfer this to another party so that they can run the web application under their subscription. 我想将其转移给另一方,以便他们可以在其订阅下运行Web应用程序。 How can I do this? 我怎样才能做到这一点?

Can I: 我可以吗:

  1. Give them some sort of package that they can publish (ideally I'd like to avoid giving them the actual source code), or 给他们一些可以发布的包(理想情况下,我想避免给他们实际的源代码),或者
  2. get connection details from them so that I can publish directly from Visual Studio to their subscription (said connection details would have to not give me full control over their subscription)? 从他们那里获得连接详细信息,以便我可以直接从Visual Studio发布到他们的订阅(所说的连接详细信息不必让我完全控制他们的订阅)?

Note that the web application consists of a website, an Azure SQL database, and a Blob container. 请注意,该Web应用程序由一个网站,一个Azure SQL数据库和一个Blob容器组成。

The best method would be for them to provide you the publish profile that they can download from the Azure web application dashboard. 最好的方法是让他们为您提供可以从Azure Web应用程序仪表板下载的发布配置文件。

在此处输入图片说明

This provides you a file you can import into your project that will publish to that Azure subscription. 这为您提供了一个文件,您可以将其导入到项目中,该项目将发布到该Azure订阅中。 The information contained in the publish settings file is a unique userId and password to that web application only (you can open the file with Notepad and read its contents). 发布设置文件中包含的信息仅是该Web应用程序的唯一用户ID和密码(您可以使用记事本打开文件并读取其内容)。

If you need to interact with the database directly, you will need the SQL username and password as well as they would need to open the SQL Azure firewall to allow your IP address to connect to it. 如果您需要直接与数据库进行交互,则将需要SQL用户名和密码,以及他们需要打开SQL Azure防火墙以允许您的IP地址连接到它。

Interacting with the blob container could be done using the Blob APIs (or some of the various GUI tools out there) and a key with the proper read/write accesses attached to it. 与Blob容器进行交互可以使用Blob API(或其中的一些各种GUI工具)和附加了正确读取/写入访问权限的密钥来完成。

Azure now has the Resource Manager API (ARM). Azure现在具有资源管理器API(ARM)。 One of the features: Resource Groups. 功能之一:资源组。 A resource group serves as a bounding box for a set of resources (web apps, VMs, etc.). 资源组充当一组资源(Web应用程序,VM等)的边界框。 You can grant permissions on a resource group, allowing someone external to your subscription/organization to work within that resource group. 您可以授予对资源组的权限,从而允许您订阅/组织外部的人员在该资源组中工作。 With owner permission, they'd be able to create new resources within that group, and never be able to see anything beyond the resource group. owner许可下,他们将能够在该组中创建新资源,而再也看不到资源组之外的任何东西。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM