Having trouble with creation of a cloud service with multiple virtual machines using java sdk.

I am creating a cloud service on azure with 2 virtual machines using java sdk API. Service created successfully.
My input endpoint details are as follows.
INPUT ENDPOINTS
Head : 191.238.144.47:2400
Head : 191.238.144.47:22
Node0 : 191.238.144.47:43211
For Head instance port 2400 is for HTTPS and port 22 is for SSH and for Node0 instance port 43211 is for SSH.
But I am having problem with doing a ssh on Head instance. Sometimes it works sometimes doesn't. Same problem with HTTPS also.
I have some application running over there but when i try to access it thru browser sometimes it works but most of the time doesn't. When I restart the instances from azure portal, its works after
that(not always but most of the time). 
Now I am confused what is going on there. I am creating cloud service and virtual machines using java sdk and setting input endpoints also. After creation of all instances i restart every instance programmatically .
I am not sure whether restart is required or not. It must be something to do with input endpoints only but not able to get the right thing i guess. When i do the same thing thru azure portal(creation of cloud service with virtual machines and setting up input
end points) everything works fine but not achieving the result when implementing it by java sdk API. Please help me.

HI Nithin,
Thanks for your reply. I am setting the endpoints after creating my instances using update call. Here's the code snippet.
AzureService aServ = new AzureService(session);
 if(aServ.checkNameAvailability(clusterName)) {
           aServ.createHostedService(clusterName, "dbX cluster");         
         // Creating head instance
         aServ.createHead(clusterName, imgName, headType, userName, pswd);  
        // Setting end points for head node
         String name = "ssh";
         int port = 22;
         aServ.updateVMInputEndpoint(clusterName, "Head", name, port);
         // Restarting head instance
         aServ.restartVM(clusterName, "Head");
       String roleName = "Node";
       String tmpRoleName = "";
       for(int i=0; i<noi; i++) {
                  port = 43210+(i+1);
                  tmpRoleName = roleName + i;
               // Creating node instance
                aServ.createVM(clusterName, tmpRoleName, imgName, nodeType, userName, pswd);
              // Setting end points for node instance
               aServ.updateVMInputEndpoint(clusterName, tmpRoleName, name, port);
              // Restarting node instance
             aServ.restartVM(clusterName, tmpRoleName);
      // Method to update the input endpoint details 
      public void updateVMInputEndpoint(String clusterName, String vmName, String name, int port)
        throws Exception {
                VirtualMachineGetResponse resp = computeManagementClient.getVirtualMachinesOperations().
                                                        get(clusterName, clusterName, vmName);
                VirtualMachineUpdateParameters updateParameters = new VirtualMachineUpdateParameters();
                //get the configuration list
                ArrayList<ConfigurationSet> configlist = resp.getConfigurationSets();
                //get inputendpoint list and update it
                ArrayList<InputEndpoint> endpointlist = configlist.get(0).getInputEndpoints();
                InputEndpoint inputEndpoint = new InputEndpoint();
                inputEndpoint.setEnableDirectServerReturn(false);
                inputEndpoint.setPort(port);
                inputEndpoint.setLocalPort(port);
                inputEndpoint.setName(name);
                inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                endpointlist.add(inputEndpoint);
                // Open port for https on head node
                if(vmName.equals("Head")) {
                        inputEndpoint = new InputEndpoint();
                        inputEndpoint.setEnableDirectServerReturn(false);
                        inputEndpoint.setPort(2400);
                        inputEndpoint.setLocalPort(2400);
                        inputEndpoint.setName("https");
                        inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                        endpointlist.add(inputEndpoint);
                updateParameters.setConfigurationSets(configlist);
                //required for update
                OSVirtualHardDisk osVirtualHardDisk = resp.getOSVirtualHardDisk();
                updateParameters.setOSVirtualHardDisk(osVirtualHardDisk);
                updateParameters.setRoleName(resp.getRoleName());
                OperationResponse updtResp = computeManagementClient.getVirtualMachinesOperations().update(clusterName, clusterName, resp.getRoleName(), updateParameters);
And every time i am creating a new cloud service along with head and node instances. Region is "South Central US".
I am setting ProvisionGuestAgent field to true at instance creation time. Thank you.

Similar Messages

  • Having trouble setting up a linksys WRT54GS router with v...

    Having trouble setting up a linksys WRT54GS router with verizon DSL using a westell 6100F modem. the modem works fine by its self  but the router will not connect  to the internet when installed like the cd tells you to.
    online help and phone help has been less than helpful,  anyone have any Ideas?

    Ok I found " Installing the liksys wireless router with a westell 6100 modem" in the verizon troubleshooting guides. printed the instructions so I would'nt forget. step 1 open your web browser and enter http://192.168.1.1 in the address field.  PROBLEM it comes up with a login screen that I don't know how to sign into. tried the obvious stuff. cannot get past the login screen. I knew this sounded to easy to be true. anyone have any ideas? 

  • Hi, ive been having trouble passing my logic sessions to another computer, we're both using a macbook pro 10.6.8 and logic pro 9 with the same plugins, the session opens in the other computer but all the synths reset to presets

    Hi, ive been having trouble passing my logic sessions to another computer, we're both using a macbook pro 10.6.8 and logic pro 9 with the same plugins (native instruments komplete 7), the session opens in the other computer but all the synths reset to presets, this didnt happen the first time I shared a session, but its been happening lately quite often

    kwmlr439 wrote:
    CSOUND Read the title please:
    Re: Macbook Pro 10.6.8 RAM Upgarde to 8 GB
    The amount of RAM is not dependant on the operating system. It is all about the model of you Mac.
    10.6.8 is the version of OS X that is installed on your system. It has no real baring on the amount of RAM that CAN be installed.
    Personally I have never had good luck with Corsair RAM. I have always had good luck with Crucial and Kingston.
    Message was edited by: Shootist007
    Message was edited by: Shootist007

  • I'm having trouble upgrading to ITunes v12.0.1 with Win 7. Download progress bar stalls and eventually cancels itself. Have tried Tools -- Download Only, but same result. Have been using iTunes for 3  years without difficulty

    I'm having trouble upgrading to ITunes v12.0.1 with
    Win 7. Download progress bar stalls and eventually cancels itself. Have tried
    Tools --> Download Only, but same result. Have been using iTunes for 3+
    years without difficulty; I have lots of ram, hard drive and speed.
    Thanks for your input

    One step listed in the link to "helpful" info, was (when Iooked 30 seconds ago), to search for and download the newest version of iTunes. I'm running iTunes on Win 7 machine and was prompted to update today, 10.22.2014, and did so without a problem. Having said that, however, it looks as though the latest iTunes (12.0.1.26) is finally doing what the last version refused to do, which is to actually fully populate all my playlists on my 6, but there is a hitch: 12.0.1.26 will NOT allow you to show the sidebar unless you click on "playlists," that is, you cannot keep it open all the time.
    And, when plugging the 6 into the computer, the phone icon shows up but clicking on it does nada. What does work, for some strange reason, is clicking on the tiny icon (just under the "Store" menu link at top screen) which looks much like a tiny barrel, someone's idea of external drives, I suppose. The phone then comes up, with the list of stuff on the phone just under it where the sidebar used to be. Sync is now restricted to the lower right of the screen.
    Apparently, you will also need to update your iPhone's software as well; some friends with the 4 and 4s, however, had troubles with them after upgrading. The message from Silicon Valley (I can see Apple from my backyard, ha ha) is apparently, "keep upgrading," folks, get rid of those old phones.

  • Integrating Oracle Fusion Sales Cloud with Oracle Business Intelligence Cloud Service (BICS)

    Ever wondered how to integrate Oracle Fusion Sales Cloud with Business Intelligence Cloud Service (BICS) ?
    The blog outlines how to programmatically load Sales Cloud data into BICS, making it readily available to model and display on BICS dashboards.
    http://www.ateam-oracle.com/integrating-oracle-fusion-sales-cloud-with-oracle-business-intelligence-cloud-service-bics/

    I wouldn't try installing Oracle VM itself on an EC2 instance, as EC2 is essentially Xen itself. Rather, you should just be able to transport existing Oracle VM images to the EC2 cloud. I think this is what you mean, but your opening paragraph is slightly ambiguous. :)
    From a VPN perspective, I'd use OpenVPN as it has clients for all major operating systems (Windows, MacOS X, Linux) that are fairly easy to package and install. Packages for OpenVPN exist in EPEL so it's easy to install on OEL5. You could also consider using a firewall instead of a VPN and only allowing connectivity from specific IP addresses/ranges. This has the benefit of not requiring client software, but it does require a fixed IP address/range on the client-side.

  • Having trouble registering for the Creative Cloud $14.99 a month student plan

    I'm having trouble registering for the Creative Cloud $14.99 a month student plan. Once I've filled out the form and hit 'confirm' the following message comes up: "Payment System Unavailable: We're sorry. Something seems to be wrong on our end. Please try again later. If this continues to fail, please contact Customer Support." Customer support on chat transferred me to Sales on chat, and they have been unresponsive for almost 20 minutes. Any advice?

    Hi Lindsey Martin,
    Kindly contact our support team so that we can assist you appropriately.
    Contact Customer Care
    Thanks,
    Atul Saini

  • Windows Azure Cloud Service with MVC4WebRole template giving "Not running in a hosted service or the Development Fabric." Error.

    Azure SDK used - 1.7 & 2.0
    When we create new project for Windows Azure Cloud Service with MVC4WebRole template & try to run it locally its giving error as "Not running in a hosted service or the Development Fabric."
    We are aware that making Azure project as start up project will resolve this error but we want to run the application locally before testing it with cloud.
    It’s not working with Cassini so we have tried with IIS but still it’s giving the same error.
    In another project when we added ASP.Net MVC4 Application & then for that project we have generated the Azure cloud service project using "Add Windows Azure Cloud Service Project". By this way debugging it locally works fine.
    Is there something additional settings present in Windows Azure Cloud Service with MVC4WebRole template which is causing this issue?

    hello,
    According your description, I try to reproduce it in my PC.
    >1. I create a could project and add a MVC4 web role into project.
    >2. I set the azure project as a start project and run, it works fine.
    >3. I change the MVC4 web role as a startup project and run, it works fine too. Of course before this, I exited the Azure Simulator.
    But this project was a empty project. It didn't included azure DLL file, such as Diagnostics file. So I think you could comment out the "system.diagnostics" node and try again. Also, you could refer to this same thread:http://stackoverflow.com/questions/13879443/not-running-in-a-hosted-service-or-the-development-fabric-production-not-debug
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issues deploying a cloud service with two endpoints (HTTP and HTTPS)

    I ran into an issue this week in the azure portal when I tried to deploy a cloud service with two endpoints.  (I am using the azure sdk 2.2).  I deployed the cloud service to production with the following endpoints in the ServiceDefinition.csdef:
    <WebRole name="NameChanged.Web" vmsize="Small">
    <Sites>
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn" endpointName="HttpsIn" />
    <Binding name="HttpIn" endpointName="HttpIn" />
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpIn" protocol="http" port="80" />
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="NameChangedCertificate" />
    </Endpoints>
    <Imports>
    <Import moduleName="Diagnostics" />
    </Imports>
    <Certificates>
    <Certificate name="NameChangedCertificate" storeLocation="LocalMachine" storeName="My" />
    </Certificates>
    </WebRole>
    I followed the directions here (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/)
    in Step 3 for deploying the cloud service to the azure portal.  And HTTP worked just fine, but the HTTPS endpoint didn't work, we would get a 502 error whenever we tried to access the service via HTTPS.
    We spent a lot of time to debug and see why HTTPS wasn't working, but everything we tried resulted in the same result:  502 error code when accessing the site
    via HTTPS.
    The only way that we were able to get HTTPS working for the cloud service in azure, was to completely delete our instance in the azure portal, and then do a two step deployment:
    Step 1 - Remove the HTTP endpoint from our ServiceDefinition.csdef, like so:
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn"
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="staging" />
    </Endpoints>
    </WebRole>
    We then deployed the service to the azure portal.  AND THE SERVICE WORKED WITH HTTPS!!!
    Step 2 - We added the HTTP endpoint back into the ServiceDefinition.csdef, redeployed and both HTTP and HTTPS worked on the site.
    I wanted to post this to help others that may have the same issue, and to see if anyone else has experienced this same thing?  Is this an issue in the azure 2.2 SDK?  This seems like a work around for getting both HTTP and HTTPS endpoints for a
    cloud service, and it seems "wrong".  Does anyone have a better way to do this?
    Tim

    Hi Tim;
    This seems to be an very useful workaround thanks for sharing it. Hopefully this will come in handy for many of us.
    Warm Regards
    Prasant

  • I have PC with Windows 7 and iPad. My music in iTunes on PC is available under Music on iPad but having trouble moving music to i-Cloud. I suceed in moving the music to iCloud on PC but when I look at iPad music still on device and not in iCloud. Help?

    I am a beginner using Apple software, so please bare with me.
    I am having trouble moving music from the iPad to iCloud in order to save space in the device.
    I realise that in order to store music not purchased on iTunes store can only be stored in iCloud if you subscribe to iTunes Match which I have done.
    Appears that moving music from iTunes on my PC to iCloud is successful by deleting song or album in iTunes library and than click on "Keep song" instead of sending to recycle bin. After this has been done the Cloud Icon appears on the album or against the song. However when I then look at Music on the iPad the album or song have not been moved to iCloud. I have tried syncronising with cable connected between PC and iPad. After that has been done the message is that sync was successful bujt still music has not been moved into the Cloud.
    Can anybody help? What am I doing wrong? Is there a way to move the music to the cloud working on the iPad only (without trying to use the PC to move the music to the cloud)?

    You can only add music to iTunes Match from your iTunes library on your computer, not from your iOS device.  If you have music on your iPad that is not on your computer, you'll have to import it to your iTunes library on your computer to add it to iTunes Match. 
    Music purchased from the iTunes store can be imported directly to your iTunes library by authorizing your computer for the Apple ID(s) used to purchase the music (in Store>Authorize This Computer), then connecting the iPad to your computer, opening iTunes and going to File>Devices>Transfer Purchases.  Music from other sources will require using 3rd party software to transfer to your computer, such as Touch Copy.

  • Have a apple ID but having trouble setting uo the I cloud. Says need a  cloud account. Where do I get one? I know im blind but any help is appreciated

    Have a laptop pc. having trouble setting up account for the cloud. can some one tell me how to set up a account and where?

    Taken from the main screen of the iCloud.com website:
    "To use iCloud, first set it up using your Apple ID on a device with iOS 5 or a Mac with OS X Lion."
    You cannot create an iCloud account from a PC.

  • Something going on with Azure Website and Cloud Service?

    Starting this morning, my website (WordPress) could not even load with Shared Plan. When I switch it to Basic plan it is running extremely slow (25s to load a page). This is a very low traffic site (100 page views/day). Even when there is only 1 connection
    it takes 25s to load. Also, just a few minutes ago, my cloud service app is getting "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed
    to respond xx.xxx.xx.xx:80" and my web app is down. We reboot the cloud service and the database VM and it is still showing the same error. All of our services are on the US West region.

    I managed to capture a few stack when it took long time.   It indicated waiting on mysql database.  Do replace {sitename} with your site name.   You might want to check cleardb status - see if anything
    stands out.
    https://{sitename}.scm.azurewebsites.net/vfs/data/DaaS/Reports/{sitename}/15-04-24/150424_0047257203/PHPProcessReportsAnalyzer/PHP-CGI-ProcessReport.htm
    https://{sitename}.scm.azurewebsites.net/vfs/data/DaaS/Reports/{sitename}/15-04-24/150424_0101200780/PHPProcessReportsAnalyzer/PHP-CGI-ProcessReport.htm
    Suwatch

  • Sync iPhoto with SkyDrive or some cloud service

    How keep sync iPhoto library with SkyDrive (first option) or some good cloud service?

    Couple of points you need to clear up:
    I have some doubts that SkyDrive is based on disks formatted Mac OS Extended (Journaled) - and that's what you need for iPhoto. Some folks have used DropBox but they report speed issues. Crashplan has had variable results.
    Consider the situation in which you require to restore your Library. An iPhoto library can grow to hundreds of gigabytes over a couple of years. If you go to restore that can take days to download. We do see posts on this issue on the forum from time to time. In a nutshell large amounts of data take a very long time to upload and download.
    FWIW my back up procedure uses a mix of Online and local storage.
    My Library lives on my iMac. It’s Backed up to  two external hard disks every day. These disks are permanently attached to the iMac. These back ups run automatically. One is done by Time Machine, one is a bootable back up done by SuperDuper
    It’s also backed up to a portable hard disk when ever new photos are added. This hard disk lives in my car. For security, this disk is password protected.
    I have a second off-site back up at a relative’s house across town. That’s updated every 3 or 4 months.
    My Photos are backed up online. There are many options: Flickr, Picasa, SmugMug etc. However, check the terms of your account carefully. While most sites have free uploading, you will often find that these uploads are limited in terms of the file size or the bandwidth you can use per month. For access that allows you to upload full size pics with no restrictions you may need to pay.
    Every couple of months I test the back ups to make sure they are working correctly. It’s very easy to mis-configure a back up application, and the only way to protect against that is to do a trial restore.

  • Having trouble staying connected to IEEE 802.1X with my iPhone 4s

    I got my iPhone 4S pre-ordered with Verizon and I am having trouble staying connected to my college's 802.1x WiFi connection. My college has a help website with a walkthrough to connect to the network and it works and I can get WiFi on my phone but when I lock my phone for about 1 minute my phone forgets the connection and I have to go through the steps all over again to get connected.
    Here are the steps my school site has me follow:
    Connecting to the RPI Wireless Network Using 802.1x Authentication on the iPhone / iPod Touch
    Make sure that your device has been updated to the latest software version available.
    Go into Settings and select Wi-Fi.
    Make sure the Wi-Fi switch is set to ON.
    Under Choose a Network, select Other....
    Enter rpi_802.1x for the Network Name, and press the Security option.
    Select WPA2 Enterprise as the security, then press the Other Network button in the top-left corner to return to the previous screen.
    Enter your RCS userID and password in the appropriate fields and press the blue Join button in the bottom-right.
    Let the network access load, then press the Accept button to accept the certificate provided.
    This is really annoying so any help would be appreciated.

    We use 802.1x Authentication here at UCSD and it seems fine.
    The only problem i see is it will disconnect when you lock the phone but it automatically reconnects when you unlock the phone.
    Our setup is a lot simpler, you just select the network and enter in your AD account information.
    It could be your college has not setup their wifi correctly. You should connect your network team.
    http://blink.ucsd.edu/technology/network/connections/wireless/iphone4.html

  • In azure cloud service with Location West Europe, why the IP address shows the server is locate in United States?

    We have 9 projects in azure cloud service, and all are use West Europe location, but with different subscription, and we found that one of those cloud service which its IP address is United
    States(Why?) and others are all in Amsterdam(this is correct)
    Can someone explain why? the server which it's ip located in United
    States is very slow, BTW i'm in Amsterdam.

    Hi LH,
    I have saw the same problem on Brazil. There has some comments about this issue, you can refer to it:
    Microsoft owns large ranges of IP addresses which are typically registered in Redmond, so usually Azure IP addresses around the world show up as being
    physically located in Redmond when using these types of tools.
    It's more or less an issue with the way our IP are registered. They all "belong" to Microsoft in the US and Brasil
    IP locator tools like whatismyip are sometimes incorrect. Some will give the real location, some will give the location of the ISP, etc …
    IP geo lookup tools typically rely on a static database of IP address range registrations.
    It's a Microsoft issue in the sense that we may publish the correct location for our datacenters
    (eg. Amsterdam should locate in Europe and not in Redmond…) – but it's also a 3rd party tools issue.
    If you want to be sure – use
    http://msdn.microsoft.com/en-us/library/windowsazure/dn175718.aspx 
     And you could also  see this blog about this issue :
    http://azure.microsoft.com/blog/2014/06/11/windows-azures-use-of-non-us-ipv4-address-space-in-us-regions/
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creation of SharePoint Search service with the help of powershell.

    Hi Team,
    Upgraded WSS 3.0 to SharePoint 2013 Foundation red the SharePoint search.
    We found log backup on the subjected server was failing due to database name,
    which is more than max allowed legth. To fix the same, we may need to rename the
    same to short name.
    failed-1073548784)
    Executing the query "BACKUP LOG [Search_Service_Application_AnalyticsRe..."
    failed with the following error: "Invalid device name. The length of the
    device name provided exceeds supported limit (maximum length is:259). Reissue
    the BACKUP statement with a valid device name.
    BACKUP LOG is terminating
    abnormally."
    Database Name :
    Search_Service_Application_AnalyticsReportingStoreDB_2e7b13e23fde4c8397ed0be06474966f
    To rename SharePoint Search it took more than 5 hours.
    Is it possible to create SharePoint search using PowerShell and will get support from Microsoft for search application built this way ?
    Please share information on how create SharePoint search using powershell.
    Our environment: SharePoint 2013 Foundation.
    Best Regards,
    Mahesh

    Hi Mahesh,
    To create Search Service Application in SharePoint Foundation 2013 by using PowerShell, you can refer to the links below for more details:
    http://www.andrewjbillings.com/sharepoint-2013-foundation-creating-the-search-service-with-powershell-and-removing-those-pesky-guids/
    http://blog.falchionconsulting.com/index.php/2013/02/provisioning-search-on-sharepoint-2013-foundation-using-powershell/
    Best regards,
    Victoria Xia
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • RE: Mail and application crashes

    Hi I set up my work exchange email on my ipod touch (fully up to date). I got it to work but it all behaves a bit randomly. It causes either mail to hang or crash and there are really long hangs when moving through the mail settings. Its set to push

  • Webservice Issues

    Hi all, I did a scenario, Integrating webservices to that of a data base, and it is working fine which is pretty straight forward scenario. I just want to know the usual/common/typical problems we face when we are making use of the webservices and th

  • Support team determination based on message creators - how to

    Hello, dear experts, I try to implement the following scenario: We have several user groups with numerous users (they create messages). Support team needs to be determined based on the user group. How can we implement this? Standart decision with rul

  • Add validation in Sourcing Cockpit

    Hi all, I want to add a validation in the step 2 "Assign Sources of Supply". I've tried to add this validation in the class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF2. But in the method DOC_CHECK can't put an enhancement point, the following message is displayed

  • PID control loop slows down during execution.

    Hi, I am a attaching a LV8.6 code that i am currently using to control my engine experiment. I use PID control where the input signal is an rpm value that i measure using a counter. The ttl signal from the sensor is not clean and so i use an analog t