Bot Builder - Application Insights broken after changed Resource group on Azure - azure

I'm building a Bot using the .NET SDK, hosted on Azure. I recently added Application Insights to my application following this guide -
https://learn.microsoft.com/en-us/azure/application-insights/app-insights-asp-net
This was simple enough, however I launched App Insights using a Resource group I had insufficient permissions for. I changed resource groups and everything broke after that. I tried changing the in 'ApplicationInsights.config' to the new key (as app insights was now on a new resource group)
I attempted to remove Application insights by uninstalling the relevant NuGet packages and dependencies, but this didn't work either, so I rolled my project back to an earlier copy with my original application insights files for my application.
Basically, I need help re-configuring my Application Insight settings to connect to a new resource group

the easiest answer would have been to use the "Configure application insights" menu item from that menu?
which would bring up the configure window and let you pick a new resource through the UI.
that item might have gone away if you deleted things and removed packages though.
that doesn't work work, the resource it is trying to go to is in your .csproj file, like
<ApplicationInsightsResourceId>/subscriptions/[subscriptionid]/resourcegroups/[resourcegroupname]/providers/microsoft.insights/components/[appname]</ApplicationInsightsResourceId>
you could manually edit it to the new resource id, and manually update the instrumentation key as well. The configure window does both of those thing for you.

Related

Extra hidden resources created in arm template when creating web app resource in azure

I'm currently working to setup an ARM-template for a resource group containing a web app for an API the I've been working on, i though it would be easier to first create the resource for the web app in the resource group an then export the template just to make sure i don't miss anything.
When exporting the template containing a test for the web app and the app service plan i noticed a bunch of extra resources that seem to be hidden in the background:
(Red overlines are deleted, related to application insights, yellow highlighter are the ones I'm asking about)
Are these needed for initial deployment of the web app and ASP, or can these be removed? I'm trying to keep the template as "clean" as possible, if one can say that. :)
Thanks in advance.
To test this in our local environment, we have deployed an webapp from portal & enabled application insights to it .
While exporting the template of the webapp & associated application insights we can also see additional resources like (Host name Bindings, Basic publishing credentials policies (ftp,scm),smart alerts etc.,) are in the template.
We have removed all those HostNameBindings,BasicPublishingCredentialPolicies (ftp,scm) properties from the exported template & tried deploying a new web app it got successfully deployed without any issues.
Here is the sample output for reference:

Deleted azure app service still accessible

I deleted azure webapp through azure portal. It seems it is deleted because when I run:
az webapp list
my deleted web app is not showing. But I can still access it oldwebapp.azurewebsites.net.
And it's showing in google search as well. Is there any cache I need to clear or other places I can check to fully remove it?
Also checked other places if there is any connection to this old web app, but didn't find any or don't know where to look.
I have also encountered a similar situation and found that the resource has been deleted after checking in portal. Sometimes visit it using InPrivate window also succeed.
It seems that this is a bug, and you don't need to care about it, or if necessary, you can also submit a bug in a GitHub Issue.
If you need to use the url again by creating a new webapp with the same name, try deploy a new project and access it, it should be refresh to the new one.

Azure Marketplace currently cannot deploy Sitecore

I am connected to the Azure account on which Sitecore has already been deployed. I removed it.
Now, I try to deploy a clean Sitecore. I have an XML free trial, but as soon as I click on Configure required settings, I have an error.
I choose 'Sitecore Experience Cloud', then I fill the input: Ressource group ( I tried with an existing one and a new one). And I clicked on Configure required settings, then I have the error:
Important Notice:
Marketplace cannot currently deploy to resource groups that contain certain characters in their name, for example underscore, due to Microsoft naming rules for Azure resources.
Marketplace currently cannot deploy Sitecore in the first try of a fresh login session, Please retry on the same login session if there is no Submitting for deployment or Deployment in progress notification message after you started a new deployment.
If I continue to fill all the inputs, the next button is disabled event if I filled all the inputs.
I would like to complete the Sitecore website setup.
When Sitecore Azure fails to deploy
Restart ASP.NET.->Clear the browser cache.-> try with different browser
Investigate the Sitecore logs in the Sitecore Deployment server environment for errors.
Remove the instances from the environment and deploy again.
After deploying, configure the $(dataFolder)\AzurePackages(хх)Azure\SitecoreWebSite subfolder as the document root of an IIS web site, and diagnose that site.
Temporarily set the mode attribute of the /configuration/system.web/customErrors element in the web.config file to Off.
You may also refer to the suggestion mentioned in this article: have you referred to this article https://www.valtech.com/en-in/insights/step-by-step-guide-to-installing-sitecore-9-on-microsoft-azure-marketplace-module/

Bug in DevOps project creation with Python

When i try to create a new DevOps project from Azure portal by clicking Python as my new application, Django as framework and Web App for Containers as service, i cannot click on "additional settings" button while filling in project details. I have tried 2 seperate accounts and all the available browsers but the behaviour is the same.
It is not a bug, the Additional settings work fine on my side, please try again. Besides, I notice your subscription is a free version, may be you could try to use another one.
Update:
As #Ali Maan said, you should create a devops organization first then it will work fine.

How to get .publishsettings for Web Deployable Web Role?

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...

Resources