w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Queries to connect Azure Websites with SQL server in Windows Azure Virtual Machine
1) You can simply backup your databases and restore them onto the VM's SQL Server 2) Yes. 3) Correct. 4) Telerik controls are client controls and should have no bearing on your server-side deployment platform 5) OS space on the VM is part of the price of the VM's hourly fee 6) What are you looking to do with virtual network?

Categories : Azure

Can you replicate an azure virtual machine?
Yes, you can use the capture capability to create a base image that you can then use to deploy other machines from. Take a look at these instructions: http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/. This assumes you are referring to a Windows Server machine. Also, it assumes that a sysprep won't affect the software you have installed. If a sysprep will cause a problem them you also might be able to take a copy of the underlying VHD and spin up a different machine from the copy. Both methods are explained in this article here: http://community.adxstudio.com/blogs/shan/2012-06-28-cloning-windows-azure-virtual-machines/

Categories : Azure

Hosting website on Azure Virtual Machine
You will need to create an endpoint on port 80 thru Windows Azure Management portal as well. This endpoint opens a port in the Windows Azure Load-balancer. Navigate to your VM within the portal and create a new Endpoint under the Endpoints screen of VM configuration within Azure management portal.

Categories : Apache

Azure Virtual Machine Billing Questons
I understand that Azure no longer bills me for a VM so long as it and its cloud service are stopped. But what is unclear is am I going to be billed for the Cloud Service itself? For example say i create a Virtual machine and by doing so i get a cloud service for it (with ip). Then I turn off that virtual Machine and the cloud service. Do i still get billed for the cloud service even though everything is turned off? Essentially think of a cloud service as a shell under which you deploy a VM. Among other things, a cloud service provides you with a DNS (yourcloudservice.cloudapp.net for example). What you get charged for is the VM and not the cloud service so if you have nothing deployed in a cloud service, you don't get charged anything. Continuing on the question above.

Categories : Azure

deploy solution to azure virtual machine
You don't have to use Virtual Machines to install DLLs - you can do this with Cloud Services (web/worker role) as well, via startup tasks. As long as these DLLs are easy to fetch (e.g. blob storage) and quick to install, you can take that route. Many do just that, since this allows you to work with stateless OS VMs (where you don't worry about maintaining the OS, or making copies of a VM when wanting to scale out to multiple instances). That said: To install to a Virtual Machine, you'd typically copy files to your VM somehow (maybe fetching from a CI engine, possibly ftp'ing the files, whatever procedure you'd typically use with a Windows server). And you'd use RDP for gaining access to the desktop. Once you have the VM set up just how you want it, you can then create an image of the VM

Categories : Asp Net

Azure Virtual Machine low disk space
You cannot increase your os disk size. Not sure when you created your Virtual Machine. I know that a long time ago the size was set at (I believe) 30GB, and now the os disks should be around 127GB. You may want to check what size the OS disk is. I'm not sure what chewed up your OS disk space except maybe some type of temporary os storage.

Categories : Azure

Stress testing windows azure virtual machine
I little bit offtopic, but have you consider using azure media services? it supports on demand and live streaming plus a set of options to use 3d party encoders, encryption, drm protection.

Categories : Azure

windows azure rest api - creating a virtual machine
What you are seeing is a little magic behind the scenes of the portal. When you deploy a Virtual Machine it does indeed end up in a Cloud Service container. This was recently changed to be more obvious in the portal as well, previously they were hiding this from you. When people would delete the VM or add other VMs to the same group (previously called something like "attach to") the cloud service would show up in the portal. People got confused on what this was and it just caused more questions than it was worth. In the portal now you are prompted for a cloud service. If you do the quick create when it asks for the DNS name (and shows the .cloudapp.net next to it) that's the Cloud Service name you are providing. When you do the create via the Gallery it is even more obvious on ste

Categories : Rest

Do I need to use Connection Retry for my SQL Server on Azure Virtual Machine
When you use Windows Azure Virtual Machines and you take care of software installed on it (inc. SQL Server whatever version), you have to proceed as normally on a local ritualized environment. Meaning that you don't necessarily have to implement retry logic.

Categories : Sql Server

How to move an Azure Virtual Machine to another storage account?
There is no such feature provided out of the box. What you can do is following: Shut down the VM Copy the system disk's VHD to the new storage account (use Copy Blob feature!) Create a new VM based on the copied VHD (Pray that the new VM will boot up successfully :) ) Most of the times this scenario is valid and works.

Categories : Azure

Windows Azure: renew Virtual machine from trial
If your trial goes off and you want to continue in using the Windows Azure, you have to start pay for it. This means, buy on of them subscriptions. After purchasing a subscription, in my case it was pay-as-you-go subscription, you have to (!!!) contact support by creating Support ticket and ask for migrating your servers from Trial subscription to your new subscription. Fortunately, the support works pretty fast and this whole transition had taken only about two hours. But still, this is silly solution from MS.

Categories : Azure

Windows Azure Virtual Machine Reverse DNS PTR Solution?
I think the SendGrid can help you achieve what you are looking for. Here are the details about it: http://sendgrid.com/docs/User_Guide/index.html here is the documentation for the technicalities: http://sendgrid.com/docs/ I hope this helps you, let me know if you need anything else.

Categories : Azure

Java OutOfMemoryError in Windows Azure Virtual Machine
The GC throws this exception when too much time is spent in garbage collection without collecting anything. I believe the default settings are 98% of CPU time being spent on GC with only 2% of heap being recovered. This is to prevent applications from running for an extended period of time while making no progress because the heap is too small. You can turn this off with the command line option -XX:-UseGCOverheadLimit

Categories : Azure

Remote debugging production IIS on Azure virtual machine
According to this MSDN article, Debugging over the internet is not supported. Instead you are advised to use IntelliTrace to run your app and then follow execution from the IntelliTrace log. Note that this requires Visual Studio Ultimate. The other alternative that I am aware of is to set up a VPN to allow you to attach the debugger in the normal fashion.

Categories : Asp Net Mvc

Azure windows virtual machine load balance
You need both the virtual machines to be under the same cloud service. Only then you get the option to load balance them. There is no way add existing VMs to the same network. there are operations in the Service management API (usable through powershell) to create a new VM. You can use that to create a fresh VM from your existing image and connect it to the same service as your first VM. Then you'llhave the necessary options enabled for load balancing.

Categories : Azure

Azure DNS server keep connecting to virtual machine endpoints
Late answer, but for the benefit of anyone arriving here from a search engine, see answer from Craig Landis at this link: http://social.msdn.microsoft.com/Forums/silverlight/en-US/04589d2d-4acb-4f86-a2d0-957dc2a73a4f/endpoints-not-working-dns-scans-them In summary, there was a change recently so that when you create an endpoint in the portal, it is automatically load balanced and regularly "probed" to check if the endpoint is alive. At the time of writing, the portal will still display the endpoint status as 'not load balanced'. You have to use the Azure CLI tool or PowerShell to recreate the endpoint without load balancing - it cannot be done from the portal. It is the load balancer that tries to probe the endpoint every 15 seconds, and can take the endpoint out of service if it doesn't

Categories : Dotnet

Does windows azure virtual machine logs out when disconnecting
No, your Virtual Machines don't shut down when you disconnect from rdp/ssh. However: There's always the possibility that your machine will restart, even if infrequently (e.g. failed hardware, Host OS maintenance, etc.). So... your essential programs should be set up to auto-start at boot time, without requiring you to rdp/ssh in to start them up again.

Categories : Windows

Can webapp in virtual machine access a cache role in azure?
You can't. Currently the only viable solution is accessing Caching from the same cloud service (same Role or another Role). The question is why are you using VM to deploy a web application in Azure?

Categories : Dotnet

Connection to azure virtual machine public port is timed out
I would like to understand as to how you are trying to connect with the Virtual Machine, using RDP or trying to test the connectivity, for example, using Port Ping. Endpoints for RDP and Powershell are configured by default. So if you are trying to connect using Remote Desktop, you can directly connect to the VM using MSTSC from Run and provide the IP of the VM followed by the Port Number using the below format xx.xx.xx.xx:3389 However if you would like to test the connectivity to the VM, I suggest you to use Port Ping instead of ICMP ping since ICMP traffic is blocked by the Azure load balancer and the ping requests timeout. While Ping.exe uses ICMP, other tools such as PsPing, Nmap, or Telnet allow you to test connectivity to a specific TCP port. On the other hand, after creating the

Categories : Azure

Bundle Prerequisites along with WPF Client Once deployed in Azure Virtual Machine IIS
I'm assuming you edited the .application file (deployment manifest) using mageUI or mage, and re-signed the deployment before deploying the files. The setup.exe file has the URL for the deployment and info about the prerequisites in it. What you might want to do is publish the deployment to a local folder (publishing file location), but set the installation URL for what it will be from the VM, THEN take it and copy it over there. This will ensure that setup.exe has the right URL. Also note that for .NET 4, you probably have to edit the package xml and enable SAMESITE. I don't have the instructions for .NET 4, but they should be similar, if not identical, to the instructions for .NET 3.5. Check out this document (search for "samesite").

Categories : Azure

Creating Linux Virtual Machine in Azure from Image in Powershell
Apparently not. However, you could copy the image from storage account X to storage account Y before you create the new VM. It would only add a few more lines to your script. Here is an example: http://michaelwasham.com/windows-azure-powershell-reference-guide/copying-vhds-blobs-between-storage-accounts/

Categories : Powershell

Ruby on rails application in Windows Azure Virtual Machine
The problem is you haven't actually "deployed" anything. You just copied your rails app to a VM and ran rails s. A production rails applications is not deployed in this fashion. Consider using either nginx with unicorn or apache/nginx with passenger.

Categories : Ruby On Rails

Azure Virtual Machine is stuck in Running (Provisioning) mode
I had the same problem. It's because I accidentally skipped the second part of step 4 of this article In System Cleanup Action, select Enter System Out-of-Box Experience (OOBE) and make sure that Generalize is checked. For more information about using Sysprep, see How to Use Sysprep: An Introduction.

Categories : Azure

Is it normal for Azure to create a web service with the same name when creating virtual machine?
This is normal. You are not charged for Cloud Services. You're only charged for actual VM's deployed in them. Cloud Service is just a record in a database and a concept that is used to group Azure resources together

Categories : Azure

Replication between SQL Servers resides in Windows Azure Virtual Machine
Create an alias in SQL Server Configuration Manager and give it the name the replication component expects. The alias contains the cloupapp url and port. Now reconnect using the simple alias. Just did this for my cloudapp.net VM.

Categories : Azure

windows azure virtual machine hard disk backups
Azure attached disks, just like the OS disk, is stored as a vhd, inside a blob in Azure Storage. This is durable storage: triple-replicated within the data center, and optionally geo-replicated to a neighboring data center. That said: If you delete something, it's instantly deleted. No going back. So... then the question is, how to deal with backups from an app-level perspective. To that end: You can make snapshots of the blob storing the vhd. A snapshot is basically a linked list of all the pages in use. In the event you make changes, then you start incurring additional storage, as additional page blobs are allocated. The neat thing is: you can take a snapshot, then in the future, copy the snapshot to its own vhd. Basically it's like rolling backups with little space used, in the event

Categories : Azure

Windows Azure virtual machine is slow to access network when scaling
The VM sizes each have their own bandwidth limitations. | VM Size | Bandwidth | | ------------- |:-------------:| | Extra Small | 5 (Mbps) | | Small | 100 (Mbps) | | Medium | 200 (Mbps) | | Large | 400 (Mbps) | | Extra Large | 800 (Mbps) | I suspect you always have one copy of your mounted VHD and have ~150 instances hitting it. Increasing the VM size of the VM hosting the VHD would be a good test but an expensive solution. Longer term put the files in blob storage. That means modifying your scripts to access RESTful endpoints. It might be easiest to create 2-3 drives on 2-3 different VMs and write a script that ensures they have the same files. Your scripts could randomly hit one of the 2-3 mounted VHDs to spread out the load. H

Categories : Windows

Connect internally to a Virtual Machine with SQL Server from Web Sites using Windows Azure
Nope! The only way to internally connect that different resources is via Azure Virtual Network. And as of today, Web Sites does not support Virtual Network. Cloud Services however do support Virtual Network, as do Virtual Machines. So if you move your deployment to Cloud Service (Web Role) you will be able to connect it to the VM via internal IP Address and never have to go "out". My believe (and my speculation) that we might eventually see in the future Web Sites being able to connect to Azure Virtual Network, at least for the Reserved Instances.

Categories : Dotnet

How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
Edit your Catlina.bat so that your -Xmx settings are less than your physical memory See Tomcat 7: How to set initial heap size correctly?

Categories : Java

Upload file from my virtual machine to another virtual machine using hadoop hdfs
You might find webHDFS REST API useful. I have tried it to write content from my local FS to the HDFS and it works fine. But being REST based it should work fine from local FS of a remote machine as well, provided both machines are connected.

Categories : Hadoop

How to map public port to private port in azure Virtual Machine?
You can map ports on Windows Azure Virtual machines in the portal. Click on the virtual machine in the portal and switch to the ENDPOINTS tab, click + Add and follow the 2 step wizard adding a public and private port to use.

Categories : Azure

Java Virtual Machine newbie Confusion: When is the virtual machine invoked while compiling java
Yes, the .class file is JVM bytecode. The JVM (invoked by java foo for foo.class) interprets (some JVMs JIT the bytecode into native machine code at runtime) the bytecode.

Categories : Java

host webapp in my machine trough virtual machine
Yes to both questions, if your browser machine can hit the port the server machine is serving the app on. On WAN, you would need to make sure your router didn't block requests to the server's port, and the same for any modem/firewall that connects you to the internet at large. Also, if your public ip is not static, it may change.

Categories : Iis

WebDAV Server Error 401.2, connection issue with Windows Authentication after pausing virtual server/domain controller
We figured out what was causing our issue although I may not be able to explain entirely why it mattered. In IIS there is a setting in the "HTTP Response Headers" under "Set Common Headers" called "Enable HTTP keep-alive". We check marked this option as true and our Windows Authentication started working again. It seemed to have something to do with the connection not staying open between requests and the application or IIS not realizing the connection was restarted during the SYNC operation.

Categories : Iis

Domain driven design: overriding virtual methods in Domain classes
Person.UpdateAddress should definitely be in your domain, not in your Repository. UpdateAddress is logic and you should try to avoid logic inside your repository. If you're working with Entity framework there is no need for 'data classes'.

Categories : Entity Framework

Azure Virtual Network Point-to-Site (ex. Azure Connect) name resolution
I solved this problem by using nbtstat. nbtstat will return the NetBios computer name that correspondent with the ip adres given. As a example: nbtstat -A 10.0.0.5 In Java i created a loop that will check if the given ip is reachable. My Azure VPN range is 10.0.0.x. So my loop will check ip 10.0.0.1 untill 10.0.0.20. If the ip is reachable it will look up the computer name. if the computer name is the computername i was looking for then i have the ip adres to connect to. I use a reachable (ping) to speed up the process. Sample code: Use a loop the check if the ip is reachable. Similar as ping: for (byte i = 1; i <= 20; i++) { inet = InetAddress.getByAddress(new byte[] { 10, 0, 0, i }); System.out.println("Sending Ping Request to " + inet

Categories : Networking

Azure Virtual Network Point-to-Site (ex. Azure Connect) autoconnect
To solve this problem you can use rasdial. First time i used rasdial i run into this problem: This function is not supported on this system. Don't get fooled by this message because its just that you didn't give the correct syntax. rasdial "Your VPN name" /phonebook:%userprofile%AppDataRoamingMicrosoftNetworkConnectionsCmYour-VPNYour-VPN.pbk" %userprofile% is de user profiel you used to install Azure vpn with. Your-VPN is de name of the azure vpn connection. A simpel methode is to make a batch script: :loop rasdial azureVPN /PHONEBOOK:C:UsersasAppDataRoamingMicrosoftNetworkConnectionsCmazureVPNazureVPN.pbk timeout 10 goto loop result will be: Connecting to test... Verifying username and password... Registering your computer on the network... Successfully connected to test. Comm

Categories : Networking

azure command line tool for linux machine to upload/download data to/from Azure Storage
there's support for upload and download : azure storage blob upload [options] [file] [container] [blob] azure storage blob download [options] [container] [blob] [destination] if not seeing them try to update your cli tools first: npm install azure-cli -g hope this helps

Categories : Linux

How do i edit the region setting in Azure
If you're asking how to edit your existing Cloud Service, Database, and Storage accounts currently in 'South East Asia' so that they're in another region, for example 'East US', then you can't do that by a simple edit. You would need to create the services and deploy the relevant code and data to the new region.

Categories : Asp Net

Why can't I create an Azure Storage in a specific region?
This is because when you perform the subscription of the site, the regions are those with available storage and processing. Once a host of subscription has not capacity, is not listed as available subscription region.

Categories : Azure



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.