azure-web-sites

How can I get the FTP URL for my Azure website via the Management API?

有些话、适合烂在心里 提交于 2019-12-11 06:25:37
问题 I'm trying to get my Azure Web Site's FTP upload address from the Management REST API. Looking at the source code for the Azure SDK Tools, I don't see anything that could help me out, save for a web site property that would be sent via the GetSite action on IWebsitesServiceManagement. Has anyone encountered this problem, and figured out how to get this going? Edit: clarification and links. 回答1: It's there already http://msdn.microsoft.com/en-us/library/windowsazure/dn166996.aspx. Still not

Can Azure Table be accessed from Web Site

半城伤御伤魂 提交于 2019-12-11 06:23:54
问题 I am experiencing error 500 from the web-api MVC website deployed to Azure. WebApi controllers access Azure Table Storage and it works locally (local website works with my Azure Table). Troubleshooting the problem I used "Linked Resources" page to link the website to the Storage but noticed the following: "The Customer Preview Release of the Windows Azure Management Portal does not support linking a storage account to a web site or a cloud service" Despite this message it shows status as

Bot responses with lag after certain time of non-use

核能气质少年 提交于 2019-12-11 06:08:42
问题 I have a permanent problem which I couldn't solve. Seems my dll was unloaded from the memory after a while. For example, when I do not use bot during 30 minutes, and then reuse, it takes some time before responding, like it was re-deployed or dll was no longer in the RAM and it was reloaded before response. Is there a way to fix the lag when bot is not used for a while? update :3/1/17 To activate the option ' Always on ', it is necessary to pass on a paying offer. As I am still there dev, I

Host Angular 7 in Azure web app URL rewrite problem

允我心安 提交于 2019-12-11 06:08:29
问题 I have created a webapp in Azure to host my Angular 7 site. However I have a problem with the background image not being shown on the site. It works fine locally. In the console I get the following error: Failed to load resource: the server responded with a status of 500 (URL Rewrite Module Error.) This is my web.config file: <configuration> <system.webServer> <rewrite> <rules> <rule name="Angular" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="

Run PowerShell over Kudu Command API to Edit Files

旧街凉风 提交于 2019-12-11 05:56:13
问题 I need to modify the contents of files of my Azure Web App such as the Web.config and text files. Using the Kudu command line API I am able to create a directory or deal with objects using something like the following: $username = "`$myuser" $password = "mypass" $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password))) $apiUrl = "https://mywebapp.scm.azurewebsites.net/api/command" $commandBody = @{ command = "md D:\home\site\wwwroot

How to download a file with ajax window.location

我怕爱的太早我们不能终老 提交于 2019-12-11 05:56:13
问题 I have filters on a page that filters the data tables. And an independent button to export data as excel. I have followed this example: Download Excel file via AJAX MVC When the export button is clicked jQuery reads all the filter values and pass the result back to server as below: $.ajax({ url: url, type: 'POST', dataType: 'json', contentType: 'application/json; charset=utf-8', data: filterData }).done(function (returnData) { if (returnData.success) { window.location = returnData.locationUrl

Azure publishsettings file Fails to Import Using Eclipse

為{幸葍}努か 提交于 2019-12-11 05:29:35
问题 I am using my MSDN Azure subscription to try to publish a Java web site using Eclipse. I have installed the Azure SDK v2.6 and the Azure plug-in for Eclipse v0.2.0.201506041823. As part of the deployment set-up, I need to import my Publish-Settings file. I have downloaded the publish profile from the Azure portal. When I import the publishsettings file, I am getting this error: Importing filename file failed. Reason: Failed to parse file. Ensure publish settings file is valid. Any idea what I

Connect to Azure AD using Powershell commands from Azure App Service

ぐ巨炮叔叔 提交于 2019-12-11 05:01:41
问题 I run web app in azure app service, where I need to get Authenticated Users(via Azure AD) Password Expiry Details. How to get password policy for Azure Active Directory logged in user I follow above answer and I got it working on Local visual studio. However Now this code is deployed on Azure App Service and it throws. "Connect-MsolService" is not defined cmdlet... When I got this error on local, it was because Azure AD Powershell module requires to be run on 64 bit environment. So I checked

Azure Function / Azure Website Custom Deploy Script Ending Prematurely

夙愿已清 提交于 2019-12-11 04:56:41
问题 I've got a custom batch deployment script for an Azure Function which is ending prematurely without erroring out. I'm hoping someone can help me understand what is going on. The problematic portion appears to be in the "Pre-deployment" section of the script: for /F %%f in ('git.exe diff --name-only %PREVIOUS_SCM_COMMIT_ID% %SCM_COMMIT_ID% ^| grep package.json') do ( SET PACKAGEJSON=%%~f SET PKGFOLDER=!DEPLOYMENT_SOURCE!\!PACKAGEJSON:package.json=! echo "NPM Install: !PKGFOLDER!package.json"

Want Azure webjobs to maintain running state (Running or Stopped) following publishing of web app

穿精又带淫゛_ 提交于 2019-12-11 04:56:22
问题 I'm deploying a web application and various associated (continuous) webjobs to Azure using Visual Studio 2015. Until very recently my observation was that following the deployment process the webjobs would maintain their state; if the job was running, it would be restarted if the code was changed. If the job was Stopped, the code would update and the webjob would remain in the Stopped state. The behavior I'm seeing now now is that the Stopped webjobs are starting following deployment. This is