Cannot publish my app in my visual studio

VINICIUS TORRES CANCELA 20 Reputation points
2023-05-06T04:53:54.1633333+00:00

User's image

I signed in for azure free plan about 3 hours ago, first I couldn't access anything on the plataform, but after one hour everything looked fine, but the problem is that I cannot publish my mvc web app, everytime I try to add a publish profile it never gets out of this part, even though I tried sign in and sign out multiple times with the account that I had the azure plan in my visual studio, and even tried to add other profiles but it is the same, it is like my account doesn't have access to azure services, which is this one I am using.

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-05-06T08:27:39.6+00:00

    Hello @Vinícius Torres

    Welcome to Microsoft QnA!

    Check your subscription: Make sure that you are using the correct subscription in Visual Studio. To do this, go to the "Account Settings" in Visual Studio and ensure that you are using the same subscription that you signed up for.

    • Check your account permissions: Verify that your account has the necessary permissions to access the Azure resources. Ensure that you are signed in with the same account that has access to the Azure subscription. You can check your account permissions in the Azure portal under "Access control (IAM)".
    • Check your network: Ensure that your network is not blocking any outbound traffic that is required to access Azure services. Try accessing Azure resources from another network or try using a VPN to connect to Azure.
    • Check your Azure resources: Ensure that your Azure resources are running and properly configured. Check the status of your web app and other Azure resources that you are trying to access.
    • Verify you are the Owner of the Subscription - Go to Azure Search for Subscriptions Icon , go to IAM and check your Roles : Should you be Owner , In case you are not Set the Role to your account . Fom the same meu clck add select the Owner Role ( or Contributor) and in the next step add your Account ) , Save , logout and login in 5 minutes

    If none of these steps solve the issue, you may want to reach out to Azure support for further assistance.

    Send us your feedback !

    Kindly mark the answer as Accepted and Upvote in case it helped or post your feedback to help !

    Regards


  2. Konstantinos Passadis 19,591 Reputation points MVP
    2023-05-09T23:24:55.1866667+00:00

    Hello @Vinícius Torres !

    I have not forgotten you , i am using Visual Studio to see the response

    It is woking a it should

    I suggest open the Visual Studio Installer and run updates and / or repair

    An update will clean up things and it should bring this to work

    Also important if you are using anyhting else for example Default Secutiy Policies in the tenant please disable them

    https://theitbros.com/disable-security-defaults/#:~:text=You%20can%20enable%20or%20disable%20Security%20Defaults%20in,is%20available.%20...%205%20Press%20the%20Save%20button%3B

    User's image

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

  3. Konstantinos Passadis 19,591 Reputation points MVP
    2023-05-14T18:18:05.7966667+00:00

    Hello @Jaden Machules !

    Could you please open a new thread since this is from another user and we dont know if it is resolved

    Vinícius Torres , how are you doing ? Is this still an issue ?

    What is the VS version you are using ? (Coomunity, Professional ?) also 2022 ? Edition ?

    I would also suggest to do this , dont know it is relevant but since i am always doing it on new Subscriptions:

    • Go to Azure Portal , find the Subscriptions Tab and on the Settings select Providers
    • Find Microsoft.AzureActiveDirectory & Microsoft.AAD & microsoft.aadiam
    • They are probably Not registered so go ahead and register those providers

    Tell us how it went

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    User's image


  4. Akalanka Kumara 0 Reputation points
    2023-11-19T15:41:42.73+00:00

    Please use following steps to solve the issue. I also had the same issue and could solve with following.

    1. Log in to the Azure account
    2. Open the created Web app service page
    3. Select "Download publish profile" and save it in a local drive

    Pic1.JPG

    1. Open Visual studio and go to publish your app
    2. Select "Import profile" and browse to the downloaded profile

    Pic2.JPG

    1. Then you will see the details of your Azure web app to publish
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.