Does anyone know how to connect an MVC 5 application in Visual Studio 2013 to an Azure Access Control Service(ACS)? In Visual Studio 2012 it's possible to do this in Identity and Access Tool, but there is no such in Visual Studio 2013.
Thank you in advance for any help you can provide,
/Steve
Unfortunately, there's no way that I know of to add authentication to a VS2013 project after you've created it, but you can add it on project creation.
Create an ASP.NET project and then click "Change Authentication" when it prompts you to select a template.
You then want to choose "Organizational Accounts" and choose "On-Premises" from the drop-down menu. I know ACS isn't what you were normally think of as "on-premises" but that's what you want. Then enter your metadata document URL. You can leave the other spot blank or fill it in if you want. The metadata document URL is the FederationMetadata.xml file found in the ACS management portal under "Application integration."
Once you set that up, you may need to adjust your Web.config audience URLs to make everything match what you have in the Azure ACS.
Encountered the same problem. Was always returned back to "Configure Authentication". So I tried creating a new user in Azure Active Directory and made it a global administrator with the type New user in your organization. I tried the new user account and it worked. Hope this helps you also.
You can create the project in VS2013 as desired. Then open it in VS 2012 where you have access to the "Identity and Access Tool" extension (if you installed it). I tried this with VS2013 Asp.Net Web Application Template. You need to select "Enable web farm ready cookies" to make this work with Azure ACS. It would be better if this wizard worked in 2013 - but it does work this way.
I also found this post for doing it right in 2013
http://gauravmantri.com/2014/03/19/using-windows-azure-access-control-service-in-mvc-5-application-using-visual-studio-2013/. However the 2012 wizard is definitely easier.
Not sure if this could help but you may have a look at this:
Developing ASP.NET Apps with Windows Azure Active Directory
Related
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 recently built an ASP.NET website using C#.
Using the publishing wizard within Visual Studio 2013 I see that I can publish to "Microsoft Azure Websites", and I have done so. It worked great.
However, logging into the Azure account I'm not able to locate this website anywhere so that I may manage it directly, and see what the burn rate (costs) are.
Where are these "Microsoft Azure Websites" stored once they are published, within Azure?
Many thanks in advance.
Bob
Under Web Apps in the old portal and under App Services in the new one.
I'm having a pretty strange issue with Azure tools for VS 2013 (version 2.6). Whenever I try to sign in to my Azure subscription (e.g. from Server explorer or creating a new web role project) I get the following error:
Server Explorer
An error occurred during the sign in process: User 'foo#gmail.com' returned by service does not match user 'bar#outlook.com' in the request
OK
My subscription owned by 'bar#outlook.com' and I can perfectly fine sign in either to management portal in a browser (IE, Spartan and Chrome) - as well as in the Power Shell. Tried everything - cleaning up browser caches/cookies, resetting IE settings, playing with different IE security settings - nothign works.
Any help is appreciated - this issue drives me crazy.
P.S. I'm on Windows 10...
I had the same problem. Imported the certificate manually and everything worked ok: https://social.technet.microsoft.com/Forums/en-US/9cdafeb4-f459-436d-b2b8-9bc5c01f0df1/azure-tools-for-vs-cant-sign-in-to-subscription?forum=windowsazuredevelopment
I had this issue, to resolve it I:
Added 'foo#gmail.com' as an alias in my 'bar#outlook.com' Microsoft account, via account.live.com
Made the 'foo#gmail.com' email address the primary alias for my Microsoft account
I could then log in successfully in to Azure by pressing the Connect to Microsoft Azure button in the toolbar of the Server Explorer in Visual Studio 2013 and see all of my websites under the App Service node.
(When I'd used the certificate method described in the other post and Microsoft documentation I'd been able to see all my sql databases etc. but not the websites.)
Once I'd done all that I then switched my primary alias back to 'bar#outlook.com' and server explorer carried on working.
NB: If you're experimenting with this beware that there is a limit on how many times you can switch your primary.. as I have just discovered.. and now my primary is stuck on the wrong email address for a week.
NB2: If your connecting in order to be able to remote debug the website, then this can still be done by going to Visual Studio>Main Menu>Debug>Attach To Process, and then enter the URL of the site (without the http bit, e.g. mysite.azurewebsites.net) as the Qualifier and then attach to the w3wp.exe process.
I am having the exact same issue. It seems that the Azure sign-in in Visual Studio is redirecting to our organizational Single Sign-On instead of the Microsoft one. I have managed to work around this problem by using a Microsoft account that is not tied to my organization:
Create new Microsoft account or use an existing account not associated with your organization
In https://manage.windowsazure.com select Subscriptions/Manage Administrators
Choose Add+ and add the new Microsoft account as administrator to your subscription
Log on to Azure using the new account from Visual Studio
/Morten
I changed my Microsoft account's email address and had this problem. Adding an alias did not help.
The problem is to do with the Azure Active Directory Library for DotNet. For whatever dumb reason, they throw an exception when Azure returns an ID different than the one requested (if the server isn't crying about it, why make up an error and make the client deal with it?).
Since Azures's support was no help, I had to build a custom copy of the ADAL with that moronic exception removed and an assembly version matching the one used in VS2013 (2.11). Also importantly, disable strong name verification for the custom assembly.
I'm trying to understand what the "Deployed" tab is used for in TFS 2013 Team Web Access. There's another similar question here: What is the "deployed" tab for in TFS 2012 Web Access
Some of the information there seems to suggest that TFS Deployer is setting a build quality, but what is it? Another post indicates that it might be for Azure deployments.
Just trying to understand how it works.
When you use the built in Continious Build to Azure build template it will automatically set this for successfully deployments.
You may be able to set this through the API.
I enabled the Web Deploy feature for my Web Role and deployed it.
But how can I get hold of the .publishsettings file so I can create a Publishing Profile for it?
This 2 year old article states that it should have been created automatically, but I haven't got that in my profile manager.
Any ideas?
If you are using Visual Studio 2012 or greater, the server explorer to the left will have several Azure items.
Specifically the Windows Azure Compute is what we are looking for, right click on that and say 'add deployment environment'. You will then be prompted with a dialog that allows you to sign in and download publish settings file:
You can get publishsettings file from the following link: https://windows.azure.com/download/publishprofile.aspx
Well, the problem was really behind the keyboard.
So the publishing profile is actually provisioned correctly and automatically to the Web project as the documentation states.
The problem and confusion was that I have a secondary web application in my Solution that I also publish to the same Web Role (referenced as an additional Site in the ServiceDefinition.csdef file).
That Web Project does not get the Publishing Profile, and when I try to create a profile manually, it doesn't work since that (secondary) IIs instance is not configured for Web Deployment.
Oh well, back to the tedious Cloud Service deployment it is...