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
Similar Messages
-
Applicationhost.config updates for HTTP Slow Post with Azure Websites
We are trying to update our Azure websites to not show as vulnerable to the HTTP Slow Post vulnerability. Some articles suggest fixing this by updating the applicationHost.config via IIS to update the connection timeout values. Obviously with Azure websites,
we don't have access to IIS. Came across some options with Kudu and XDT to modify the application host file, as outlined on these two sites:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-transform-extend/#transform
http://rtigger.com/blog/2014/03/31/number-til-modifying-you-azure-applicationhost-dot-config
Currently am using the following as our applicationHost.xdt (I have this both in our application root, as well as in a SiteExtensions folder as I wasn't clear which one was required).
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.applicationHost>
<sites>
<siteDefaults>
<limits connectionTimeout="00:00:30"
xdt:Transform="Insert" />
</siteDefaults>
<applicationDefaults applicationPool="DefaultAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
<webLimits connectionTimeout="00:00:30"
xdt:Transform="Insert" />
</system.applicationHost>
</configuration>
We also set the WEBSITE_PRIVATE_EXTENSIONS app-setting to 1 as instructed.
When testing our site using a 3rd party tool, it appears the setting is not getting applied. Hoping someone can point out where our error may be. Alternatively, is there any way to see what the current applicationHost.config is for our website? I'm curious
if our XDT is correctly being applied, so if we could see what the resulting file was that may also allow us to further troubleshoot.
Thanks in advance for any advise!Please see
this page, which has detailed steps on finding your applicationhost.config and finding the logs from the transformation. And please make sure that your applicationhost.xdt is in your
d:\home\site folder (and not in your site\wwwroot).
David -
Can you change the FTP URL for Azure Websites and link to a Domain Name FTP?
I have created an Azure Website, and have regisetered the correct Domain Name details for the site. What i want to understand is can i do the same for the FTP address via Azure?
Rather than use the default ftp://waws-XXX-XXX.ftp.azurewebsites.windows.net/ i want to change to be FTP.<Domain Name>.comi do not see the option to do this via Azure?
would i have to create a CNAME on my domain registrar to deal with this instead?are you able to ftp to domainname.ext?
if you can ftp to domainname.ext and instead you want to ftp to FTP.domainname.ext then yes you need dns map -
Hi, I have a problem with my mac mail account. Its linked with my website and i've just transferred my domain and host plan to 123-reg.co.uk Now for some reason emails disappear from my inbox! Emails come in and then my inbox is empty.. Help!
Lord K. Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it. It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me. My messages were in folders for a lawsuit. It is going to take an incredible amount of work for me to, you have no Idea. We are talking thousands of pages! I the defendent will have them during discovery so I am not so worried. However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part. THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com
-
hi
i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.
-
Infuriating Adobe Website and Support Services (pricing query)
I have never found a less user friendly site than Adobe's.
All I want to do is find out the exact cost to upgrade from CS5 to CS6 at student price and crossing from PC to Mac. I have spent....about 2 hours trying to (a) find out the price and (b) contact support.
What I have learned is that I will likely never get an answer from them. This is appalling. For the astronomical price they ask for their software, the VERY LEAST they could offer is a half decent support service - instead it directs the queries to sources other than itself than are less than useless. I once somehow found a link to upgrade from cs5 to cs6; but not at student prices, the process was not intuitive (you had to first presumably buy the full version) and i've not been able to find it since anyway.
The website is even worse - every link is trying to force feed Creative Cloud; which is going to be most people's LAST preference I would assume given no one wants to pay monthly fees - I certainly don't. That's IF you can find a link to the right creative suite software, but I'll be damned if I can find one for the student upgrade.
Seriously adobe, your website and support services are atrocious.Yes, well i've just found out about Adobes monumentally poor decision with regards to it's Creative Cloud products. (may be old news for some, but it's new to me).
They have basically just made my career now come with a monthly fee, I can't adequately describe how much I hate them for this. I can barely afford to upgrade once every few years as it is.
In regards to what you were saying, the premium design suite (indesign, flash, illustrator, etc). But it hardly matters, I'm going to be finding and paying for alternatives - and be doing what I can to support them besides. Screw Adobe for this; the very least they could offer is a 'Pay Once' alternative; even if only digital. It's just greed with little regard to the fact that it's hard enough to afford the old packages as it was, without making it more expensive long term. -
Diagnostics Data for Virtual Machine and Cloud service
Hi,
We have an azure cloud account, contains Virtual Machine(Windows) with worker role and one Web Role. In this setup, we need to collect diagnostics data of virtual machine and cloud service. How to enable the diagnostics data in our setup and How to retrive
the data
I have read the below link says diagnostics data stores in WAD Table. How to read the data from table? Is there any query available.
Or can we get this data from REST API. We need the perfomance data of every 5 min . Please help me to solve this.
http://msdn.microsoft.com/en-us/library/azure/hh411534.aspx
Thanks & Regards
RathideviHi,
You can configure Azure diagnostics by using Visual Studio. Azure diagnostics captures system data and logging data on the virtual machines and virtual machine instances that run your cloud service and brings transfers that data into your storage account.
References :-
http://msdn.microsoft.com/en-us/library/azure/dn186185.aspx
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/
Regards,
Mekh. -
Not Working-central web-authentication with a switch and Identity Service Engine
on the followup the document "Configuration example : central web-authentication with a switch and Identity Service Engine" by Nicolas Darchis, since the redirection on the switch is not working, i'm asking for your help...
I'm using ISE Version : 1.0.4.573 and WS-C2960-24PC-L w/software 12.2(55)SE1 and image C2960-LANBASEK9-M for the access.
The interface configuration looks like this:
interface FastEthernet0/24
switchport access vlan 6
switchport mode access
switchport voice vlan 20
ip access-group webauth in
authentication event fail action next-method
authentication event server dead action authorize
authentication event server alive action reinitialize
authentication order mab
authentication priority mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
spanning-tree portfast
end
The ACL's
Extended IP access list webauth
10 permit ip any any
Extended IP access list redirect
10 deny ip any host 172.22.2.38
20 permit tcp any any eq www
30 permit tcp any any eq 443
The ISE side configuration I follow it step by step...
When I conect the XP client, e see the following Autenthication session...
swlx0x0x#show authentication sessions interface fastEthernet 0/24
Interface: FastEthernet0/24
MAC Address: 0015.c549.5c99
IP Address: 172.22.3.184
User-Name: 00-15-C5-49-5C-99
Status: Authz Success
Domain: DATA
Oper host mode: single-host
Oper control dir: both
Authorized By: Authentication Server
Vlan Group: N/A
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
Session timeout: N/A
Idle timeout: N/A
Common Session ID: AC16011F000000490AC1A9E2
Acct Session ID: 0x00000077
Handle: 0xB7000049
Runnable methods list:
Method State
mab Authc Success
But there is no redirection, and I get the the following message on switch console:
756005: Mar 28 11:40:30: epm-redirect:IP=172.22.3.184: No redirection policy for this host
756006: Mar 28 11:40:30: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_qualify ...
I have to mention I'm using an http proxy on port 8080...
Any Ideas on what is going wrong?
Regards
NunoOK, so I upgraded the IOS to version
SW Version: 12.2(55)SE5, SW Image: C2960-LANBASEK9-M
I tweak with ACL's to the following:
Extended IP access list redirect
10 permit ip any any (13 matches)
and created a DACL that is downloaded along with the authentication
Extended IP access list xACSACLx-IP-redirect-4f743d58 (per-user)
10 permit ip any any
I can see the epm session
swlx0x0x#show epm session ip 172.22.3.74
Admission feature: DOT1X
ACS ACL: xACSACLx-IP-redirect-4f743d58
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
And authentication
swlx0x0x#show authentication sessions interface fastEthernet 0/24
Interface: FastEthernet0/24
MAC Address: 0015.c549.5c99
IP Address: 172.22.3.74
User-Name: 00-15-C5-49-5C-99
Status: Authz Success
Domain: DATA
Oper host mode: multi-auth
Oper control dir: both
Authorized By: Authentication Server
Vlan Group: N/A
ACS ACL: xACSACLx-IP-redirect-4f743d58
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
Session timeout: N/A
Idle timeout: N/A
Common Session ID: AC16011F000000160042BD98
Acct Session ID: 0x0000001B
Handle: 0x90000016
Runnable methods list:
Method State
mab Authc Success
on the logging, I get the following messages...
017857: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_qualify ...
017858: Mar 29 11:27:04: epm-redirect:epm_redirect_cache_gen_hash: IP=172.22.3.74 Hash=271
017859: Mar 29 11:27:04: epm-redirect:IP=172.22.3.74: CacheEntryGet Success
017860: Mar 29 11:27:04: epm-redirect:IP=172.22.3.74: Ingress packet on [idb= FastEthernet0/24] matched with [acl=redirect]
017861: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: Enqueue the packet with if_input=FastEthernet0/24
017862: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_process ...
017863: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: Not an HTTP(s) packet
What I'm I missing? -
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. -
What's going on with dynafaces? And where can I contact someone involved?
Hi,
I like dynafaces and its approach to ajax, but I'm a bit worried about the state of the project and whether it has a future. The official mailing list is dead (something like 3 messages in the last month, all from the same guy, all unanswered), and the project doesn't seem to have ever had an actual release, although Ed Burns has been posting release candidates over the past few months. I'd actually like to get involved with dynafaces, but obviously only if it's viable, and isn't about to be made obsolete by JSF 2.0.
Anyone out there know what's going on?
Regards,
MaartenHello,
I work on the JSF specification with Ed Burns, and I am specifically working on the Ajax standardization.
We are looking to produce a standard for all JSF/Ajax frameworks to use. This means that all frameworks
will change to accommodate the standard. We have members representing the major JSF/Ajax frameworks
on our Expert Group. Whether you continue to use Dynamic Faces (or not), really depends on your
current needs and time line for a JSF/Ajax solution. If you can afford to wait a bit, then I would go with
the JSF 2.0 implementation.
-roger -
What's going on with iTunes 7 and Videos????
Hi! Thanks for reading me.
Does anyone knows what's going on with the videos in iTunes 7? I use iTunes for Windows (XP Pro SP2). In older versions I used the next sequence:
File>Add File to Library> I selected my file from my computer (music or video) and everything normal, then from iTunes to my iPod. But NOW! it just doesn't work!
It is supposed that the video file has been added to library but when I search for it. It doesn't exist!! Sorry to say but, great MAC! something so easy becomes a mess.
Any help or idea? I already looked for the video in the "Recent videos" and also tried the "solution" to play the video in Quick Time and then export it... The thing is that now Quick Time isn't running! Also a mess, I used not to have problems with the Quick Time, until the "great" new iTunes 7.
Generic Windows XP Pro
Generic Windows XP ProWill I have to go back to using Windows, cause I hate Windows
-
Hello all,
I'd really appreciate any input on this issue. I'm not especially expert with regard to computer systems and software, so I ask that you please bear with me; I'll try to provide the best information I can. What has been happening with my computer is that it has been freezing and crashing, even with only Safari and Microsoft Word open. More information about the system as well as what I've done so far is below.
I have a mid-2012 13-inch Macbook Pro with a 2.5 GHz Intel Core i5 processor, 4 GB 1600 MHz DDR3 memory (two 2 GB cards), and an Intel HD Graphics 4000 card. I am running I have approximately 280 gigs free on my 500 GB Apple HDD. I am running OS X 10.9.3 (13D65), Kernel version Darwin 13.2.0.
In March or April of this year, my computer started seriously slowing down and freezing and crashing. (I think that this was around the time I upgraded to Mavericks, but am not 100% positive.) Since it is my only computer and I'm a PhD student, it took me until May to seriously address the issue. I ran Apple hardware diagnostics and the disk utility (verified the disk; verified & repaired the permissions), and tried uninstalling programs I thought might be causing issues, but nothing improved. Since it didn't appear to be a hardware issue, I decided to do a clean install of Mavericks with a full software update [and didn't use a time machine backup like I'd done in the past; I only backed up files and bookmarks this time and installed new versions of all my programs]. Although my computer ran better for a few weeks, it started slowing down again, and lately has been crashing on a near-daily basis.
After reading through the fora, I re-ran disk utility (disks check out fine; one permission -- for Safari -- seems to refuse to be repaired), re-ran Apple Hardware test twice (no issues found), and have been running the Activity Monitor [I put it in my dock with the bars showing CPU usage]. Today, when my computer started seriously slowing while I had only two programs open (Safari & Microsoft Word), the Activity Monitor icon on the dock showed all four bars at max.
I managed to get a few screencaps of the Activity Monitor:
So, this suggests to me that either (a) I have insufficient RAM to run Mavericks and run basic computer programs, or (b) there is some other issue.
Do you all have any recommendations as to the best way to proceed? I don't have a lot of cash, so I can't really spend money unless it is really warranted. Would it be worth running OnyX first? Or is this a pretty clear indication that I need new RAM? Alternately, are there any other issues that seem likely (an undetected hard drive problem, etc.)?
Thank you!Hi Melophage,
Thank you. Although it is possible something was running in the background, in Force Quit, the only applications visible were Finder, Microsoft Word, and Safari.
I ran Etrecheck and have included the output here:
EtreCheck version: 1.9.12 (48)
Report generated July 25, 2014 at 2:17:04 PM EDT
Hardware Information:
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information:
Intel HD Graphics 4000 - VRAM: (null)
Color LCD 1280 x 800
System Software:
OS X 10.9.3 (13D65) - Uptime: 1 day 2:16:0
Disk Information:
APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 399.25 GB (220.13 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
BOOTCAMP (disk0s4) /Volumes/BOOTCAMP: 100 GB (58.85 GB free)
HL-DT-ST DVDRW GS31N
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Gatekeeper:
Mac App Store and identified developers
Kernel Extensions:
[not loaded] com.millisecond.driver.InquisitParallelPort (2285 - SDK 10.8) Support
[not loaded] edu.sissa.iokit.ioLabResponseBox (2.0 - SDK 10.6) Support
Problem System Launch Daemons:
[failed] com.apple.installd.plist
[failed] com.apple.wdhelper.plist
Launch Daemons:
[loaded] com.adobe.fpsaud.plist Support
[running] com.daz3d.content_management_service.plist Support
[loaded] com.google.keystone.daemon.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] net.cloudpath.HelperTool.plist Support
Launch Agents:
[loaded] com.google.keystone.agent.plist Support
[loaded] com.oracle.java.Java-Updater.plist Support
User Login Items:
iTunesHelper
RescueTime
Dropbox
Activity Monitor
Internet Plug-ins:
FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
Default Browser: Version: 537 - SDK 10.9
Flash Player: Version: 14.0.0.145 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
o1dbrowserplugin: Version: 5.4.2.18903 Support
SharePointBrowserPlugin: Version: 14.4.3 - SDK 10.6 Support
googletalkbrowserplugin: Version: 5.4.2.18903 Support
Silverlight: Version: 5.1.30317.0 - SDK 10.6 Support
MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
JavaAppletPlugin: Version: Java 7 Update 55 Check version
Safari Extensions:
Ebates: Version: 3.0.2.5
Save to Pocket: Version: 1.9.1
PriceBlink: Version: 4.1
Evernote Web Clipper: Version: 6.1.3
Hukkster: Version: 1.1
Add To Amazon Wish List: Version: 1.8
Instapaper: Version: 1.2.1
Coupons at Checkout: Version: 1.1
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
3rd Party Preference Panes:
Flash Player Support
Java Support
Time Machine:
Time Machine not configured!
Top Processes by CPU:
23% firefox
4% WindowServer
0% fontd
0% Activity Monitor
0% sysmond
Top Processes by Memory:
818 MB firefox
111 MB com.apple.IconServicesAgent
102 MB Finder
98 MB Microsoft Word
94 MB mds_stores
Virtual Memory Information:
311 MB Free RAM
1.49 GB Active RAM
1.22 GB Inactive RAM
895 MB Wired RAM
3.49 GB Page-ins
159 MB Page-outs
[Looking at the output, I would like to point out that Daz 3D is newer than the issues I've been having; I just recently installed it for a research project.]
Does anything stand out to you? Thanks! -
Something's wrong with the colours and transparency in iWeb?
Hello
I am building a site with specific colors from the RGB scale and when I publish, the color has different shades. Same problem happens with the % of the color's transparency; on Safari it looks washed out with ugly stripes and shades. Any bug suspicion?
Thank you
IsabelleWebsafe colors are from an era when monitors only could display 16 or 256 colors.
Unless you have a visitor who still uses such monitor, you can safely use all 16 million colors.
About the textbox
iWeb uses the textbox in the Header layer of an iWeb page as the title in the browserwindow.
Do not remove the original textbox, as you cannot replace it other than by selecting another theme and then change it back to the original theme again. Ruining the layout in the process.
If the textbox in the Header is missing, iWeb uses a textbox down the page in the Content layer. If that textbox is also missing, it uses another textbox. If that fails it uses the pagename in the Sidebar.
Sometimes you may want a different text in the titlebar and not display it on the page itself. Or not display it at all.
So use that textbox in the Header layer. Type your text. Then select the textbox. In the Inspector choose T, click a color to open the color palette and drag the opacity slider to 0 (zero).
Do Command-T to open the font palette and make the font smaller. (Or do Command--(minus)) Also use a font that doesn't change to an image. Arial is a good font. Perhaps do it first before making the text invisble.
Resize the textbox. You may want to change the height of the Header layer.
Do Command-Shift-B to move the textbox to the back, possibly behind other objects.
Next add a optional second textbox to the Header layer and use that one to display text on the page.
If you want to move the textbox to the front again to make changes, but can't remember the location on the page, drag the area with the mouse to select the objects.
Deselect objects you do not want to move forward by Command-dragging the mouse over these objects.
Next do Command-Shift-F to move the textbox to the front. Repeat the steps in reverse order to make the text visible.
Practice. -
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. -
Virtual network, virtual machine and cloud service
Hi everyone
I am new to Microsoft Azure and very confused about Microsoft VM and Virtual network relationship.
I have a cloud service project created which has two worker roles in it and its deployed to Azure portal successfully, the problem is they need to connect to SQL database (which is on our prod machine outside of Azure) and in the config file of both these
worker roles I have the cluser IP address added ( I believe its an internal Ip address),
Now we have a virtual machine and a virtual network created on azure too (Not by me, so I have no idea how that is created)
Some how I need to connect my cloud service to either the virtual machine or virtual network to get the sql connection going. What do I need to do to make that happen?
How does the cloud service connect to virtual machine?
I am so confused .. Please help with this.
Thanks
-SarahHi Sarah,
Once an Azure VM is created, it belongs to a cloud service.
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-connect-virtual-machine/
Do you mean that you want to create a VM in a virtual network and a cloud service?
If yes, please follow the steps below:
1. Create a Virtual network.
2. Create a VM and select "create a new cloud service", and choose the virtual network you have created.
3. After the VM is running, you can create other VMs into that exsting VM, and they will share the same public IP address and in the same virtual network.
Best regards,
Susie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Maybe you are looking for
-
Running the latest version of CS6 (current on all updates) on a Mac Mini i7 2.3GHz with 16GB RAM running OS X 10.8.2. Whenever CPU usage starts to get a little heavy, sound will go silent at random times during playback of timeline in the program mon
-
Smasr form isuue(Tds form triggering based on year)
Hi Friends, I am working on tdsform with codintion IF ZPDATE-LOW >= '20100401'. when we given date as out put Posting Dates 01.04.2010 to 29.12.2010 Document Type to Bank Challan Numbe
-
Issues with Japanese encoding using Mail
Since recently (I would say since I updated to 10.6), I have an issue with Japanese-encoded (ISO 2022-JP) mails on my English MacOS. I have no problem to read, edit and write answers to any mails. However with some ISO JP-2022-JP encoded messages (se
-
Aperture is not compatible with Apple TV
Apple Support has confirmed that the preview function in Aperture is not compatible with Apple TV. Don't buy Aperture if you want the same resolution on Apple TV! Stick with iPhoto!!
-
I have thousands of pictures in my iPhoto library. Many of them were not "copied" into iPhoto when imported. I had my preferences set that way to save space on my system's hard drive. I just kept those pictures on a separate hard drive in my Mac Pro.