Confluence Site search with Azure Bot - azure

I am working on a requirement where I have a Bot deployed in Azure and I need to add a feature to perform a search in confluence site based on the word user types. I have written a search request using httpClient in .Net which calls Confluence search API (https://wiki.XXXXX/ctl=siteSearch~(myword)).
I have tested the application in my local and it is working totally fine and I am able to get search results. But I am getting the below exception when deployed to Azure.
The requested name is valid, but no data of the requested type was found
Could you please help me here on why and what might be the issue. Also is there anyway I can add confluence site in Azure portal.

Error message “The requested name is valid, but no data of the requested type was found”, seems to be associated with the Winsock “WSANO_DATA” error code. It means, there is some issue with the DNS record of the server which you are trying to connect.
Reference Thread: SocketException connecting to SFTP server: name is valid, but no data of the requested type was found
Deploying Confluence Data Center to Azure via Azure marketplace
This method uses the Azure Marketplace to deploy Confluence Data Center using our deployment templates as a reference.
To deploy Confluence Data Center to Azure using our Marketplace app:
Log in to Azure Portal.
Choose Create a resource to start a new deployment
Search for Atlassian then select Confluence Data Center from the list of Marketplace apps
Choose Create to start configuring the deployment
Follow the prompts in the wizard to configure your deployment. Refer to the parameters table below for more information.
Confirm all the details are correct then click Create to purchase the subscription.
Deployment will take about 30 minutes.
Once deployment is complete, go to the Confluence URL (APPENDPOINT) listed in the deployment outputs to complete onboarding and start using Confluence.
Reference Link:
https://confluence.atlassian.com/doc/getting-started-with-confluence-data-center-on-azure-937176452.html
https://confluence.atlassian.com/doc/installing-confluence-on-windows-255362047.html

Related

How to programmatically update Networking Access Restriction on Azure Web App

I have an Azure webapp and normally if I want to block an IP address, I go to Azure dashboard panel and under networking>Configure Access Restrictions, I add a rule to do so. This picture shows which menu item I mean:
However, I would like to do this programmatically. I see that the documentation shows how you can do this through Powershell.
I have also managed to find the API documentation for WebApp. But I can't find the last piece of the puzzle which is the API that does what I need.
Can someone please tell me if it is possible and which API I should use? Thank you in advance.
According to the doc: Use an Azure REST API PUT operation on the app configuration in Azure Resource Manager. The location for this information in Azure Resource Manager is:
management.azure.com/subscriptions/subscription ID/resourceGroups/resource groups/providers/Microsoft.Web/sites/web app name/config/web?api-version=2020-06-01
Then I searched the Azure Rest API and found this:
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web?api-version=2019-08-01
We could update the field properties.ipSecurityRestrictions to update the value of Access Restrictions.
In addition, you could also check this blog: Bulk add IP Access Restrictions to Azure App Service using Az PowerShell
There does not appear to be a one-to-one match between powershell commands and api.
The closest I could find is:
https://learn.microsoft.com/en-us/rest/api/appservice/webapps/putprivateaccessvnet
This allows you to define which vnet has access to your web app. By controlling access to your vnet, you can control access to your app.

Hostname is available yet doesn't show up in Azure Portal for purchase

Hello I can see that hostname (domain) is available on 3rd party providers like GoDaddy etc, however i am unable to purchase it from Azure App Service domain page on portal
here i am trying to purchase Sandeep.com, as you see in screenshot the hostname is available where as it is not showing up in Azure portal from available list of domains.
This is currently a known issue and Product Group is working to fix this along with new UI for App Service Domains that's currently in preview as seen below:
PFB work around to purchase desired available hostnames on Azure Via CLI:
• Please go to portal->click on Azure CLI besides search bar as seen below:
• I selected powershell as seen below:
• Here, I am trying to buy “nihakoneru.com” which is not an option through portal as seen below:
• However, I was able to verify that this domain is available for purchase by running below command in Azure CLI:
"az appservice domain show-terms --hostname nihakoneru.com"
Here is the Doc that has list of commands to use through CLI, I now replaced the values in the JSON file with my contact information (Name, Email, Address etc) from the above doc as seen below and saved it to my local.
• Now let’s go back to the portal->cli and upload this file to cloud shell by clicking on the highlighted below:
• You will see pop up message as below once the file is uploaded:
PFB final command used to purchase domain:
Once the above command is being executed, you will see the state as running for a bit until the process is completed in the backend:
Once the domain purchase is completed you will see the status changing to Finished as below:
I was able to verify that my domain was purchased by going to App Service Domains on portal as seen below:
I hope this helps in the interim as a workaround.

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/

Settings up Team Services build to deploy to Azure Web App

I'm trying to create a build in Team Services (Visual Studio Online) but am having a few issues.
My first step is to create a new build and I've selected the template Deployment -> Azure Web App
Then in the build step for Azure Deployment I need to select my Azure subscription. This list is currently empty so I select Manage to add a new one.
Following the instructions here I try to add a new endpoint but it says to select the one called 'Azure' but in my list I've got 'Azure Classic' and 'Azure Resource Manager'. Which one should I use?
I've tried 'Azure Resource Manager' and used the details to generate service key etc using the Powershell script as said in the previous link. Now the status just stay at 'Connecting to service using Service Principal' and is not selectable in the list.
How do I get Team Services to see my Azure subscription?
I must say, I've found the documentation for this a bit lacking in that a lot of the Microsoft sites still use the classic portal or older versions for the sites.
Starting from the end of your question, one of the reasons of that is that some functionality is not available yet on the new portal. As far as i know, all of the functionality should migrate to the new portal in a future.
For Azure Web App, please add the New Service Endpoint using classic mode (and i prefer to do that using certificate - very simple). Then, when adding the web site as the build step (for example), select your added subscription and you should be good to go.

Web service migration from Local IIS to Azure

I Used Azure Website Migration Assistance to migrate my web service that was running on my Local VM's IIS. My Migration process was successful and also I was able to use this web service. But I can't find where to find the migrated source code in azure portal. All I can see is some 20Mb of data in on the dashboard graph of azure portal. If I need to changed some of my code where to do this?
What is on the Azure Web App should now match what was on your IIS server. Now, to update the web app, you can use the deployment techniques here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
The simplest method to deploy to check what content is on your web app would be to use the SCM site. This is available at: https://your-site-name.scm.azurewebsites.net. Go to Debug Console > CMD and then the site > wwwroot folder to see your web app content. You can also upload to the site via drag and drop.
Alternatively, you can download the publishing settings for your web app via the portal and then re-use the migration tool, select the site, and then upload the publishing settings. However I would suggest using the deployment techniques above first. (Disclaimer: I wrote the migration tool.)
There are multiple ways to push changes to your Azure Website/Web App. They are listed here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
One simple way is to use an FTP client like FileZilla. In the classic portal, you will find the FTP address (hostname) and the credentials in the dashboard tab. In the new portal, select your Web App and the FTP address will be displayed in the Essentials section at the top of the page. Click on Settings and Deployment credentials to set your FTP user password.
Another simple alternative is to use Dropbox. Take a look at this video for how to set instructions: https://channel9.msdn.com/Series/Windows-Azure-Web-Sites-Tutorials/Dropbox-Deployment-to-Windows-Azure-Web-Sites

Resources