Visual Studio 2019 Azure App not getting published - asp.net-mvc

I'm facing issues in deploying my ASP.NET MVC in Azure from VS 2019. While publishing from local repository, I don't see any form coming up for filling the details about the project. Instead prompts me to login again.
Creating the Azure App service and creating the profile button next
I've already logged in but there is no information to the publishing platform specified.

While publishing from local repository, I don't see any form coming up for filling the details about the project. Instead prompts me to login again.
If you do not have any Azure subscriptions, you can not create App Service and publish your project to Azure.
In Visual Studio Server Explorer (as below) or Azure portal, you can find information about your subscriptions.
Besides, if you'd like to add subscription for your billing account , you can refer to this link: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/create-subscription#create-a-subscription-in-the-azure-portal

Related

Unable to register app (iOS app) on Azure portal

I am following the link to integrate One Drive SDK into an existing iOS app. I have an free account created on azure portal. Its a work account so I can see a default Azure Active Directory.
During this process, I need to register the app on the Azure portal. This link for registering apps and generating app ID does not work in my case.
I am unable to create an app ID or access existing active Azure Directory details. The portal shows me restricted access page as mentioned in this link : https://learn.microsoft.com/en-us/answers/questions/352443/microsoft-azure-free-trial-no-access-to-acitive-di.html. The solutions mentioned in this link does not work for me as those options are not seen on the screen.
Any kind of help in understanding the trouble will be of great help!
This might be due to insuffient permissions as this is a free trial account.
Go to your Overview pane of your subscription and check if there are any directories present.
If not try creating a free trial account using a Work or school account and there you will be provided with a default directory. Then Create new Azure AD Tenant and then Connect your Azure free subscription to your new Azure AD Directory.
REFERENCES:
Associate a subscription to a directory.
Create a new tenant for your organization.

How to connect Visual Studio 2019 to TFS server

I have TFS 2018. I'm trying to connect visual studio 2019. I can already use tfs via web browser. I can log in and everything is fine. But when I try to connect through vs, I can't get authorized. I get
Server 'https://Myserver:8080/tfs' was not added. TF30063. You are not authorized to access https://myserver:8080/tfs
I researched the error code and tried all the fixes including deleting the windows credentials, running vs as admin and others. Like I said, I can log in via my web browser with no problem.
When I try to connect to project, It has my Microsoft account. I enter the above url and I'm prompted for my windows login (same for the browser) and I keep getting the error. I thought maybe I add the account before connecting, but when I try to add an account, the only popup wants me to use a Microsoft account or GitHub account. I can't add my Windows account.
So how do I connect my visual studio to my tfs server?
Thank you.
You should not get a Microsoft Account Prompt if you are trying to connect locally. The prompt is to validate your instance of VS towards your MSDN subscription. You would need to "login" with you Microsoft or Azure AD user that can validate your VS license and to be able to synchronize your settings from one VS to another. This login is the one here
Notice the account settings there, if you click on this you can also add your Visual Studio 2019 Static Key and then you don't need to login every month unless you want to sync your settings.
Bottom line, when connecting to TFS 2018 it will not ask you for Microsoft Credentials.
Please check whether you use the correct URL, and use http instead of https. Also, try the following items:
Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
Click Add Azure DevOps Server and add the server URL:

I want to invite the member to team on tfs but getting error 'No identities found'

I am getting error "No identities found" when inserting member to my team. I've verified the email address is correct. Why am I seeing this text? How can i fix this?
why cannot found?
You have to use an Active Directory account for on-premise TFS -- you can't provide a hotmail account.
According to your screenshot, you are working on VSTS, you could double confirm this-- sever url should like https://xxx.visualstudio.com.
And you want to login VSTS with an non Microsoft email, you should pay attention to below:
Sign up for Visual Studio Team Services with a work or school account
Control access to Visual Studio Team Services the same way you do with
Microsoft services like Office 365 and Azure. When you sign up with a
work or school account, your Visual Studio Team Services account is
connected to your organization's directory (tenant) in Azure Active
Directory (Azure AD). You can then use the same username and password
as other Microsoft services, like #fabrikam.com. Azure AD helps you
enforce policies around accessing your team's critical resources and
key assets.
More details, please refer link from MSDN: Sign up for Visual Studio Team Services: Git & Agile for DevOps, continuous integration, & continuous delivery
Finally, just follow the details steps in this tutorial to add users to a team project.

callbackurl while connecting to vso using oAuth

I am trying to connect to VSO using oAuth.
First step is to register our app and configure a call back url.
I am creating a console application to test the connectivity.
Please let me know how to configure the callback url.
Firstly, please take note that: Right now, it is only supported to register web application, it is impossible to register a console app.
So, you need to have a web app first, you can download and use this sample project for a quick start: https://vsooauthclientsample.codeplex.com/
After you download the app, open it in VS2013 or higher, right-click it in Solution Explorer and select Publish.
On the Publish Web page, select Microsoft Azure Website option to publish that web app to Azure.
Then, the web app is published to Azure with the URL similar to: https://vsodevabc.azurewebsites.net
And when you register this web app, you can set Application Website and Callback URL to be the followings. (note: the callback URL should be https://yoursite.azurewebsites.net/oauth/callback, where "yoursite" is the name of your Azure web site)
When using VSO (now called Team Services) with oAuth2.0 you do have to provide callback url endpoint that Microsoft's Team Services can call directly. So you need to have your application's callback url endpoint published such as publishing to Azure or Aws or any hosting provider that will allow you to have publically accessible url. In the FAQ under Team Services Rest API, there is mention of this approach for debugging purposes:
Visual Studio Team Services does not allow localhost to be the hostname in your callback URL. You can edit the hosts file on your local computer to map a hostname to 127.0.0.1. Then use this hostname when you register your app. Or, you can deploy your app when testing to a Microsoft Azure website to be able to debug and use HTTPS for the callback URL
Visual Studio Team Service's Rest API oAuth

Unable to register the subscrition

I am new to Windows Azure.
I got a subscription to use Windows Azure, However i am not able to publish my sample web site.
The Error is,
This subscription not registered use to following resources: Website The remote server returned unexpected response(400). Bad request.
My question is, How to register the subscription?
Thanks in Advance!!!
Senthilnathan Kumarasamy.
I just encountered this issue.
What you need to do is to logon into the Azure web console and create a web site through by clicking:
New > Compute > WebSite > Quick Create.
Then from within Visual Studio when you try to publish your web app, you will see the account in the import wizard dialog.

Resources