I am trying to publish to Azure but I want to switch to a different user.
Yet, the Publish Dialog only allows me to select previous users with no way to seemingly add a new user?
Is there some settings / file somewhere I can nuke to restart the dialog?
If you go to the Visual Studio menu and select Account..., you can add multiple accounts.
Then, when you go to publish your Azure app, the dialog from your screenshot will present an option to select which account to use for publishing.
Related
Been trying to import my Azure publish settings file in visual studios. I clicked on Finish after browsing the file, but it waits for 2 seconds and nothing happens. I've tried it several times but can't see what exactly im doing wrongBelow is an image of where im struggling now
After creating a new ASP.NET project in Visual Studio i.e., MVC (.NET Framework) or Web Application (for .NET Core) also select no authentication then build the solution.
Follow the below steps:
Go to Get publish profile of your app service and save the profile locally like below:
Then open the ASP.NET project in Visual Studio, right-click the project in Solution Explorer, and select Publish.
The Publish pane appears if you have previously configured any publishing profiles. Click New or Create new profile to begin.
Select the option to import a profile.
In the Publish dialog box, click Import Profile.
go to the location of the previously created publish settings file. Select the profile and click Open.
Click Finish and then Publish.
The deployment process gets started by Visual Studio, and the Output window shows the progress and results like below:
You can Click Edit to edit settings for any errors related to deployment. Change the settings and click Validate to test.
I have published an Azure Function through visual studio. Now I want to delete the published Azure function and the button to delete is disabled. Is there a way to delete the azure function published from VS?
After we publish code from VS, Azure portal will set functions to be Read Only to prevent us editing pre-compiled assets in portal.
If we use web deploy(didn't check Run from package file),
Here are two choices:
Delete all functions directly in portal. In portal, stop Function app then Platform features> App Service Editor, delete everything except host.json.
Note: I once provided a plausible solution--Platform features> Function app settings, change Function app edit mode to Read/Write, then we are able to click delete button. In this way we can delete specific functions but actually we didn't delete pre-compiled dlls which may accumulate and cause trouble.
Delete all old functions the next time we publish new ones. On publish panel, click Manage Profile Settings and check Remove additional files at destination.
If we have checked Run from package file when publishing, then none of those means could work. In addition to publish again, we can go to Platform features> Application settings, remove WEBSITE_RUN_FROM_PACKAGE under Application settings section and function app will become empty. Refer to announcement of Run from package for more info.
With this approach, file will also accumulate in silence but it won't cause error to new functions. To remove old files, Platform features> Advanced tools (Kudu)> Debug console(CMD) and navigate to d:\home\data\SitePackages to delete zips not in use.
The simplest way is to delete all functions is to do this:
Change WEBSITE_RUN_FROM_PACKAGE to 0 in the portal for the function application you want to deal with
This will allow you to create a scripted function in the portal for the given application
Create one function and this actions will delete all other functions that came from the package.
It seems this issue has been resolved in Azure.
Remove the unwanted functions from code
STOP your Azure function App in Azure portal
Enable "Remove additional files at destination" option in profile settings popup
Republish the solution again and all the removed functions will be deleted from Azure Portal.
I was previously using Team Foundation services free account on the cloud with my Hotmail account. Now I am try to install TFS on a server computer. Everything worked fine. But then I noticed that I dont see the "Process" Menu option in my on Premise TFS account, while this shows up in the other account.
So, how can I enable "Process" menu option in my On Premise TFS web portal? So that I can configure the Work Item types and the process.
Below is my snapshot of my cloud account that does have the "Process" menu option.
While here is the image of On Premises account that has a very simple menu option.
The Process option menu only shows in Team Services (the cloud), there isn’t this option in On-Premises TFS web portal.
If you work in an on-premises TFS, and want to customize a process template,
you can download the zipped template file using the Process Template Manager. You'll need to use a version of Visual Studio that is at the same version level as TFS. You can install the latest version of Visual Studio Community for free.
Please see Upload or download a process template and Customize a process template for details.
To configure the Work Item types and the process please see Add or modify a work item type.
I've created a an App Service using the Azure portal and wanted to download the Publish Profile (to import that into Visual Studio). But the download button is disabled. Any suggestions?
Looks like it is available on the dashboard of the new portal. You need to hover over your function app tile and go into the menu as seen in the photo.
I want to copy an existing "Share" Mode "Dev" Website to another "Test" "Share" Mode Website. Is this possible? I know one can do this with SQL Azure DBs using a T-SQL command.
At the moment I:
1) Create new Website.
2) FTP across Dev Azure Website to Test Azure Website. This is fine, but seems longwinded from a network perspective.
Thanks in advance.
depends on what you want to do, but have you looked at using the Staging slot instead of creating a new website? http://www.windowsazure.com/en-us/documentation/articles/web-sites-staged-publishing/
I just came across a nice little feature:
Create a new website
On "Configure"-tab: Enable "Edit in Visual Studio Online"
On your existing site
Enable "Edit in Visual Studio Online" (if not already enabled)
Click "Edit in Visual Studio Online" on "Dashboard"-tab
Click "..." in Explorer and choose "Download workspace"
Save the file to your desktop
On your new site
Click "Edit in Visual Studio Online" on "Dashboard"-tab
Delete "hostingstart.html"
Drag-n-drop your "wwwroot.zip" file into the explorer
Click the little icon at the very right
Await magic!
All your files are now copied to the new site
Remember to delete "wwwroot.zip"
For those looking to create a copy, not a deployment slot, it is now possible.
You can clone a web app though the azure portal, if you temporarily upgrade to a premium app service. Image of where to find web app copy
You can also copy an entire App Service though power shell https://learn.microsoft.com/en-us/azure/app-service/app-service-web-app-cloning
I just used this https://github.com/SunBuild/azure-clone-webapps. It worked great, was fast and simple. Much better and more sustainable than paying Microsoft crazy amounts for this relatively simple task.