How to see deployed files in Azure Cloud Services? - azure

I have successfully deployed my site into Azure Cloud Services. I would like to see the deployed files in azure portal now. Where I can see these files ? For Azure Web App I can see it from Kudu(mysite.scm.azurewebservices.net).
But how for azure Cloud services ?

There is no exact way you can access files just like web apps via Kudu Console. In order to access Cloud service files, you can enable a Remote Desktop connection in your role during development by including the Remote Desktop modules in your service definition or you can choose to enable Remote Desktop through the Remote Desktop Extension.
For more details, refer to Enable Remote Desktop Connection for a Role in Azure Cloud Services.

I would like to see the deployed files in azure portal now
As far as I know it is not supported by azure portal now. Azure cloud services allow us to remote the could services role, so we could remote the service to get the deployed files. About how to remote the cloud services role please refer to the azure document. We could see the published website under the IIS and we could get the physical path of files on the azure.
More details please refer to the screenshot.

The Architecture Design of Cloud service is different then App Service. Cloud Service is hosted on its own dedicated environment. Cloud Service is NOT hosted on Shared Server like App Service.
When you create package for the Cloud Service. it contains all information of it's roles, Size of roles, number of instances per role and what files needs to be hosted on that role. ( Other information also).
if you have multiple roles in your cloud service. there will be dedicated VM for each instance of the Role. so your files will be placed on each role of that VM.
if you want to change any file from the deployment, you need to change it on all instances.
Remember that if you restart the Cloud Service or Role all changes made in the file will be lost. Cloud Service will restore the old files. ( files at the time of deployment).
you can enable the remote login for roles and check the files.
How to Enable remote desktop for Cloud Service?
if you want to know more about cloud Service check : http://avipatils.blogspot.in/

Related

Migration of On-Prem to Azure

I have a web application that is running on my localhost and i want to use azure app service or azure vm to launch it online. which is the best choice?
Solution to host webapplication
There are ways to deploy your application to Azure Cloud.
Method 1 : Azure App Service is fully managed platform for deploying application and scaling apps. it has built-in web hosting feature and supports multiple languages and frameworks.
Please follow the steps to deploy application to App Service.
1.Create sample web application using Visual Studio application.
Create a new project
Right click on created application and choose Publish
Note: Before publish application to Azure, login to visual studio with Azure Account.
Select target-Azure Cloud.
5.Select target platform windows or Linux.
Click on App Service (Windows) > Create new (window)" in App Service (Windows) >Create new.
Select your subscription, resource group & hosting plan.
Check the Application deployment status in visual studio account.
9.Test the application with Azure App service URL once deploy the application to Azure app service.
Go to Azure Portal > Azure App Service > overview > Url.
Application working with App service Url
Method 2: Azure VM
To deploy an application in an Azure VM with IIS, you can follow below steps:
Create an Azure VM with required configuration such as the operating system and size.
Azure Portal > Create > Select Server OS.
2.Use RDP to connect to the Azure VM.
You can use FTP to upload your code to the Azure VM.
Now, open the IIS Manager and create a new website in that IIS.
After that, you can configure the website to point to the location of your application code on the VM.
Finally, test your application.

Add a Virtual Network to a Cloud Service in Azure

I would like to associate/add a Virtual Network to a Cloud Service in Azure.
I have found a solution where you can download and edit the Cloud Service's configuration file and upload it back in order to add a Virtual Network. But the solution only works if the Cloud Service is NEW and only about to be created
However, I am trying to look for ways on how to add a Virtual Network to an already existing/running Azure Cloud Service.
Is this possible?
Unfortunately, this is not possible, whenever you want to include a cloud service on Microsoft Azure to a Network you should do it at the time it gets created, that's why it's recommended to START your project while putting all of your resources on the same network and in the same region.

Azure App Service Web App access to VM

I am running a .NET website web app (App Service) and a separate windows Azure VM running onprem AD Domain controller.There is no connection between onprem AD with Azure AD.I want to access windows VM Active directory (Azure VM) objects under my WebApp/website. Is this possible to access Azure VM Active directory objects through my website ( web app) ? And if yes please suggest the secured way.
Thanks
Consider to use Azure Virtual Network to put your resources (Web App included) into the one virtual network. Then you should be able to query what you need. Tutorial. Or Web Apps Hybrid Connections.

Access existing Azure Web Sites via Azure Cloud Service RDP

Given:
Couple of websites created using Azure Web Sites execution model.
No RDP access since Azure Web Sites doesn't provide it.
Possibility to install/create Cloud Service on Azure. Cloud Service
does have RDP access to its websites.
Question:
Will it be possible to access the existing websites via RDP on Cloud Service?
Assuming you had deployed your sites in Azure Cloud Services and enabled RD, you can very well look at the setup and config of your site(s) under it.
However if you make any changes, it may not be reflected to the setup as the Azure Cloud Services is non persistent and during any Data center activities like load balancing the fabric controller may just pull of your instance and re-deploy in someother instance. During this process all your changes will be lost and the original package of cscsf and cscfg will utilized during deployment.

Azure to on premises web services

Can anybody tell me how to connect a web app running on azure to existing web services (.ASMX) on premises?
We do not have the source for the services they are exposed by third party applications and we do not want to open them up to public access.
Sounds like Azure's Service Bus Relay Service might be what you're looking for...
There might be three options based on your scenario. But I personally prefer the third one.
If you used azure cloud service (web role, worker role), you can use Windows Azure Connect. It builds an IP-sec communication between the azure machine and your local machine. Then you can connect to your local service through the its IPv6 address.
If you used azure virtual machine to host your azure project you can use Virtual Network. It's more powerful than the Windows Azure Connect.
You can use Windows Azure Service Bus Relay. It can open your local service to the cloud regardless how your azure project is hosted. But since it's only support WCF of Service Relay, and since you cannot change codes and config of your service, you might need some more works. Maybe you can create a small WCF on your local machine as a proxy, register it to Service Bus Relay, and pass all request/response to your local service.

Resources