Deploying on remote server using cloudify - cloudify

I am new to cloudify. Can someone please help me in the following?
Deploying a sample application on remote server. Right now I am running the command:
cfy local init --blueprint-path blueprint.yaml --inputs '{"webserver_port": "8080", "host_ip":"ec2-hostname"}'
but it will launch the application on local Cloudify server. Even ec2-hostname is the remote server. But still it is deploying on local server.
Can someone please share the steps required to deploy the application on remote server using Cloudify?
I will highly appreciate it.
Thanks,
Sanjiv

If you're talking about the example described here: http://docs.getcloudify.org/3.3.0/intro/getting-started/ then this is an example to be used in local mode only.
For a more advanced example which can be installed on a remote server, look here: https://github.com/cloudify-cosmo/cloudify-hello-world-example

Related

Unable to Create Azure Storage Queue Messages with ASP.NET 4.6.1 App

I have an old ASP.NET 4.6.1 app running in a VM on Azure.
I’m trying to create messages in an Azure Storage Queue and nothing is happening when I run it on production VM. However, on my dev machine, it works fine and I can create messages in the same queue that I’m trying to access from the production VM.
The call to the queue is within a try catch block and it’s not throwing any errors.
Another important point is that I had use the old/deprecated WindowsAzure.Storage NuGet package as that’s the one that seems to work on this ASP.NET MVC 4.6.1 app.
Any idea what could be the issue here? Because I don’t see any errors, I’m not sure how to go about fixing this problem.
According to MS Docs, one troubleshooting option you can try is "Redeploy Windows virtual machine to new Azure node"
The doc says,
If you have been facing difficulties troubleshooting Remote Desktop
(RDP) connection or application access to Windows-based Azure virtual
machine (VM), redeploying the VM may help.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/redeploy-to-new-node-windows
See also additional troubleshooting steps:
Restart the virtual machine
Recreate the endpoint / firewall rules / network security group
(NSG) rules
Connect from different location, such as a different Azure virtual
network
Recreate the virtual machine
There are various reasons when you cannot start or connect to an application running on an Azure virtual machine (VM). Reasons include the application not running or listening on the expected ports, the listening port blocked, or networking rules not correctly passing traffic to the application.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-app-connection
This might be network Firewall issue. Open azure portal from production vm machine. You can even try to manually see the storage and upload files from web.

Publish ASP.NET Core 1.1 to a Linux based App Service

When I'm trying to publish using Web Deploy (Visual Studio 2017 for Windows) to a Linux app service hosted in Azure the following error occurs:
Could not connect to the remote computer ("my-linux-api.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
The remote server returned an error: (405) Method Not Allowed.
The link in the error description seems to refer windows based hosts.
The service is up and running and responds to my request:
How can I fix that?
There is no Web Deploy on Linux. That's a Windows/IIS thing.
Push with git instead. The .scm. service (Kudu) knows how to handle the ASP.NET Core deployment on Linux.

Deploying project using 1 click publish

I have found the credentials that I should use from my server provider, and filled out everything. Right now I am getting the error when trying to validate connection:
Error 1 Web deployment task failed. (Could not connect to the remote computer ("www.unoeuro.com").
On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Deployment Agent Service") is started.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) 0 0 ProjMVC
I did install web deploy 2.0 (which is the version required by my provider). I am not sure if this is the problem though. When I have installed web deploy 2.0, will VS12 automatically know about this?
This is my first time trying to deploy a project, please let me know if you need more info. I have read MS doc, and tried to follow it: http://msdn.microsoft.com/en-us/library/dd465337%28v=vs.110%29.aspx
I have no more ideas about what to try

Debugging a production asp.net application locally

I made an asp.net application on my development box which was deployed on production.
I can see my application on production URL with public domain such as https://www.myapp.com ( sample).
Is it possible to debug the application by attaching the process using from my Visual studio development environment by following - Go to debug and then attach the process by selecting the browser displaying https://www.myapp.com ?
I tried it and its attaching the process but it does not hit the debug points in VS2010 . Can anyone please let me know if its possible to do this way ?
Thanks in Advance! Junni
It sounds like you are just debugging your browser. If you want to debug a remote machine you need a debug version of your code running on that machine and MSVSMON.EXE running on the remote machine. You would be best servered by reading http://msdn.microsoft.com/en-us/library/bt727f1t.aspx
then researching MSVSMON questions here.

How to make WP8 emulator access ASP.NET debug server

Is it possible to get the WP8 emulator to access a ASP.NET Development debug server I run on my pc?
WP8 Emulator runs inside Hyper-V and the debug server on my pc is therefore not accessible to the emulator, is it possible to do so it is?
Only solution I can come up with is create a IIS server on my machine and debug that, but its much easier running development server.
The problem isn't really "how to access the development server from the emulator", but "how to access the development server from a remote location". The emulator is 'just' another device connected to the network.
And for that, I can suggest a few links:
http://blog.waynehartman.com/archive/2010/05/30/218.aspx
Is There a Way to Make Remote Calls to ASP.NET Development Web Server?

Resources