azure-web-sites

How do I copy a website from one azure website to another (not deployment slots)?

不想你离开。 提交于 2019-12-11 09:26:41
问题 I have 2 azure websites in the same subscription and I want to copy the site from one to another. I know I can copy the entire site down to my local machine using FTP then upload the entire site, but it seems like there should be an easier way, especially considering the FTP hostname is the same for both sites. These are not deployment slots, so I can't just swap them in the interface. Thanks. 回答1: I think you can use the SiteReplicator site extension to do that. You can find it here https:/

For an Azure App service with a managed identity, how to retrieve the Client ID

好久不见. 提交于 2019-12-11 08:55:44
问题 How can I retrieve the client id of an Azure Web App (or App Service, generally) for a system-assigned identity? In the identity blade, I only see object id. I need this to enable AAD service to service access, and the service I am calling will authorize my request using my client id that it extracts from the token I send it. However, I don't know how to find my client id. 回答1: When you enable System Assigned Managed Service Identity for your App Service web app, it creates a Service

Switch-AzureRmWebAppSlot no longer supports Production slot name

て烟熏妆下的殇ゞ 提交于 2019-12-11 08:36:52
问题 I'm adding this in the hope that it saves other people wasting time like I just have. I can't currently explain why this has changed, but I can supply the resolution that's worked for me. TL;DR: You no longer need to specify the production slot when using Switch-AzureRmWebAppSlot, only supply -SourceSlot with the name of the slot you want to switch with your production slot. Error: Switch-AzureRmWebAppSlot : The Resource 'Microsoft.Web/sites/ SiteName /slots/production' under resource group '

Azure App Service and VNet to VNet Connectivity

房东的猫 提交于 2019-12-11 08:28:57
问题 I'm trying to setup an app service to connect to a SQL database on a VM in two different subscriptions. I configured the app service to use Point to Site VPN through a VNET gateway. Then configured VNET peering in both subscriptions. I still cannot connect to the database from the app service. I have verified that the network service groups configured for the VM subnet aren't the reason the connection is failing. What other configuration could I be missing? 回答1: I was able to get it working.

VSTS release pipeline to Azure web app deploys to wwwroot subdirectory

你。 提交于 2019-12-11 08:13:49
问题 My goal is to create an automated build/release pipeline that updates an Azure site every time I merge code in the GitHub project with the website. I have a website in GitHub. A VSTS GitHub build task builds it successfully. A VSTS release task (Deploy Azure App Service) deploys the site to an Azure web app successfully. I know this because the Azure App Service Editor for the Azure app shows the website files in a subdirectory under wwwroot . Because the files are deployed to a subdirectory

Azure “IIS Application Initialization Preload” logs a “The request is not supported” exception

风流意气都作罢 提交于 2019-12-11 08:04:53
问题 In an Azure Webapp running a WebApi 2 web application, I have this error in my logs every time I swap the application from the Preprod to the Production slot: System.Web.HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070032. ---> System.Runtime.InteropServices.COMException (0x80070032): The request is not supported. (Exception from HRESULT: 0x80070032) at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result,

Can I use the Microsoft Graph SDK with Azure AD Easy Auth

≯℡__Kan透↙ 提交于 2019-12-11 08:04:34
问题 I have a C# .NET MVC Web App on Azure that I've turned Easy Auth on for Azure AD accounts. I would like to be able to use the Microsoft Graph SDK alongside it. In the Easy Auth article written by cgillum linked above, he says: I’ll also point out that I used HTTP primitives rather than using the official Graph API Client SDK. This was mainly to emphasize that access to the Azure AD Graph API can be written in any language and doesn’t require any SDKs (though you can certainly use the SDKs if

Azure App Service API gets FileNotFoundException: Could not find file 'D:\home\site\wwwroot\MyApi.xml when trying to start swagger

谁都会走 提交于 2019-12-11 08:03:24
问题 I am working on an ASP.NET Core 2.2 API deployed to Azure App Services. I am deploying to a DEV slot. I am using Swagger, which works fine on my localhost, but when I go to the URL of by DEV slot and use /swagger, I get the error; FileNotFoundException: Could not find file 'D:\home\site\wwwroot\MyApi.xml I have the following in my *.csproj file; <PropertyGroup> <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> And when I go to Kudu for the DEV slot, I can see the

Windows Azure Website with a Startup task

£可爱£侵袭症+ 提交于 2019-12-11 07:45:06
问题 I know that Azure Websites are made to be easy, not have role configs and such...but I was still wondering, is there ANY way to create a Startup Task when using a Website? I'm asking because I would like to ease the deployment of an existing website through FTP or GIT (not recompiling the source and such), and then use Startup Task to deploy an additional IIS provider to GAC? Kind regards, Vladan 回答1: In case of "Shared Instance" deployment model, I don't think it's possible because your

Can not connect to Azure SQL Server using Active directory integrated authentication in AppService

谁都会走 提交于 2019-12-11 07:34:56
问题 We have web application deploy on Azure App Service. Our database is also on Azure which is configured to use AAD authentication (We have assigned AAD Admin). We are using below connection string in web app to connect to this server and database using below connections string. Data Source=xxxxxxx.database.windows.net;Initial Catalog=xxxxxxx;Persist Security Info=False;Authentication=Active Directory Integrated Please note: This connection string is working fine when using thru local system.