Create virtual machines with Windows Azure php sdk - azure

I am trying to figuring out how to create virtual machines with windows azure php sdk https://github.com/Azure/azure-sdk-for-php , I can't seem to understand on how to do this as there is any mention about virtual machines in the sdk.
Any help will be very apreciated.
Thanks

The Azure-SDK-for-PHP offers Service Management (see https://github.com/Azure/azure-sdk-for-php/blob/master/README.md) to spin up app services or VM’s. I’m not sure if it already includes support for managing Docker containers, but since it’s all REST API in the background, it should not take too much time to write a few lines to have it do the same thing. But for VM’s you can definitely manage them through the SDK.
If you need code samples, ping me. I’d love to share my knowledge.

I think azure-php-sdk is for using azure storage etc. it's not for creating VM.
Normally to create VM throught management portal and Windows azure powershell.

Related

how to deploy multiple .net core application in single linux based azure app service

I want to deploy multiple .net core API application in single linux based azure app service. I can't find any documentation for that. Can any one give any suggestion or idea how to achieve that.
I have thing one option but don't know is it possible or not? Can I mount azure blob storage space in configuration/ Path mapping in app service and run application from their? is it possible or any other proper way. Please suggest.
Thank you
It doesn't seem possible.
You can refer to the answer in the post below.
Hosting Two Website Under one Web App - Azure Services
IIS can handler mappings and virtual applications and directories, you can't use virtual applications and directories in linux.
If you have more questions about azure web app, you can raise a support ticket on portal. You can also put forward your ideas and suggestions in the feedback, and optimize the product together with Microsoft official.
Hope this can help you.

Epicor in Windows Azure

I was wondering how can I use Epicor 10 in Windows Azure.
I want to install the app server on Windows Azure, all the Epicor 10 components, when it's all done and ready, I would like to use normal PC's to conenct to the app server[Windows Azure], download Epicor Client and use it on the client PC's.
Is there any way to achieve this?
Thanks a lot for your time.
This seems like a reasonable setup to me. Epicor 10 hosted on an azure vm should work similarly to an install on a conventional server. Here is some microsoft documentation on creating azure vms: http://azure.microsoft.com/en-us/documentation/services/virtual-machines/
For a standard install, you should follow the microsoft tutorial as necessary along with the specifications set in the Epicor 10 hardware sizing guide (apply this to your vm creation) and Epicor 10 server implementation guide available on Epicweb.
You're probably aware of this if you're already in process for implementing E10 on Azure, but for preliminary concepts of Epicor on Windows Azure and explanation of Epicor working on azure, there's a presentation which is useful for slides 17-20ish and 37: https://epicweb.epicor.com/resources/MRCCustomers/Embracing%20the%20Cloud%20-%20Leveraging%20the%20Microsoft%20Azure%20Platform%20to%20Evolve%20your%20Business.pptx
You'll have to login to your epicweb account.

Setup a Windows Azure Private Cloud

I want to use Windows Azure. However, my admin guy is fighting against me using it. From my understanding, I can setup a private cloud so that I can use Azure's features, but on an internal environment. I have convinced him to let me try it. I have one Windows Server 2008 server that I can try this out on. Unfortunately, I don't know how to setup a private cloud.
Does anyone know of a step-by-step walkthrough of how to do this? Or am I misunderstanding the idea of a private cloud? Thank you so much for any insights.
As #Alan pointed out, you can not create a Windows Azure private cloud. However: If you're a hosting service provider, you can now start working with two Windows Azure services on Windows Server+System Center: Websites and Virtual Machine provisioning, along with service management API and portal. More details are here.
Also: You can create a hybrid environment: Windows Azure services in the cloud, and local services in your own data center, bridged via Virtual Network VPN. Here's some info on Virtual Networks from MSDN.
You cannot set up a private cloud using Windows Azure.
If you want to set this up internally on Server 2008 you should look at System Center or Hyper V for hosting VMs. It will be quite a large underatking to do this reliably, and if you are new to the technology there will be a lot to learn.
If you would like to use Windows Azure you can currently hosy Virtual Machines in the Windows Azure data centers. This is very easy to get started with, will be much more productive than creating an on-preimise solution.
You can register for a free 90 day Azure trial account here:
http://www.windowsazure.com/en-us/pricing/free-trial/
There is some information on Windows Azure Virtual Machines here:
http://www.windowsazure.com/en-us/home/scenarios/virtual-machines/
There are some VM labs in the Windows Azure Training kit here:
http://www.microsoft.com/en-us/download/details.aspx?id=8396
It will probably take you about 15 minutes to get your first Windows Server 2008 Virtual Machine up and running in Azure.
Regards,
Alan
If you own the data center, you can setup a private cloud with the help of windows azure pack.
WAP is simply a control panel of managing your cloud. It offered an option to create and manage VM"S on your data center.
Vconnect with vm ware and billing integrations on azure pack details are available on the following link. Register here for free demo trial access
http://www.cloudassert.com/Solutions/VConnect
From my personal experience, I am suggesting Cloud Assert, a team made of founders who are ex-Microsoft managers with many years of hands-on experience in designing, building and running truly large scale hosted services on Windows Azure.
They helped me in setting up my own private cloud and educated through customized solution that works best for my use cases.
Also, Cloud Assert will help to create hybrid cloud environment as well. For more details
Microsoft Azure is for public cloud. For private cloud, Microsoft's solution is Azure Stack (https://azure.microsoft.com/en-us/overview/azure-stack/). Take care checking the hardware requirements before taking actions.

Windows Services in Windows azure

Does windows Azure supports windows Services ?, ...
I develop an application that has among its components a windows service that every hour sends an email with information.
Is this supported in Windows Azure?,
Thanks!!
You might find the worker role is a better fit for running a process every hour. If you have the code for the WIndows Service it should not be hard to impleemnt it in a worker role.
You will, however, have to use a 3rd party service to send the email, as this is not supported in Azure.
Regards,
Alan
Yes, you can do this*. In order to install a Windows Service in a PaaS worker role (or web role), you will need to create a startup script that installs the service on boot (and checks to see if already installed on subsequent boots).
If you are using IaaS VMs, then the installation is straightforward - just do as you do today.
*Windows Azure Websites is a shared model, so installing services is not supported there.
To combine both Alan Smith's and dunnry's answers, both are correct -
You can install a windows services on a PaaS role using a startup script (other than web sites).
If you're using a Virtual Machine you just install the service on the VM
But Alan is completely correct that the best route forward in most cases is migrating the code to a worker role which is usually quite straight forward, would work best and would be easier to maintain.
Having said all of that - sending emails from within Azure is not necessarily a good idea as many mail servers black list the ips (turns out Azure is a great platform for spammers)
I want to make an extra addition to Alan and Yossi's answers. It's important to know the why, because simply installing the Windows Service shouldn't be a problem.
But if you do this you'll be missing out on something very important. If you run all of your code in the actual Worker Role process you'll get the monitoring for free. This means, if your process crashes for whatever reason, Windows Azure will restart the instance to make sure the process gets back online.
Now if you simply go and install a Windows Service through a startup script you won't be able to take advantage from this automated monitoring. You'll need to make sure you have some kind of recovery (this could be a setting on the Windows Service or a different process). But it's simply too much work for something you could get for free.
I would suggest using a Extra-Small VM using a windows template that is already offered. It's the same cost as the worker role and will let you provision your service without any issues. You would install your service the same as you would on any on premises server.
If you don't need to have the same sort of failover scenario that your web roles do then this s a good option.

Windows Azure for simulation

We are thinking of using Windows Azure for simulation. ~100 VM nodes each working on it's problem set and reporting back the result to a Master node.
I have created VM instances from the web UI. In order for this to work, we would need to use Azure API to bring servers up and shut them down once they are done.
Does anyone have any experience with something like this? I am looking for advise, gotchas etc.
thanks.
You sure can do it and I have helped other to make it happen on hundreds on nodes. Take a look at Windows Azure Rest API to configure your role as described here. While others may have other idea, I think the general steps would be as below:
Create a master machine or a webrole to manage your roles using REST API
Create a worker role instance and use it to clone multiple instances as if needed
Use REST API to start and shutdown worker role along with update the instance count when in need
Use Azure Boot Strapper to bootstrap the VM depend on your requirement
Azure REST based Service Management API can work from a web app or a standalone app, so you can also have a web role to make it happen from anywhere in world. This way you don't need any on premise components at all as it will be totally cloud solution. If you need any help on creating web role I sure can help.
You can provision Virtual Machines using Service Management REST API (there's also a managed API on NuGet).
But in your case you might want to consider using Cloud Services (PaaS). With Cloud Services you simply build your application, you package it and deploy it. Then using the portal or the management API you can simply configure the number of instances. There is even a command line tool (csmanage.exe) which allows you to to change the number of instances through the service configuration.

Resources