Comments (16)
The error message indicates that you are trying to create a resource in a region that is not available in your subscription. Specifically it is indicating that the chosen VM size for the controller is not available.
To resolve this you can either deploy to a different region or you can change the size of the controller VM to one that is available. You can find information on availability at https://azure.microsoft.com/en-us/global-infrastructure/services/
To change the controller VM size use the parameter controllerVmSku
-
Moodle/azuredeploy.parameters.json
Line 9 in 7851aa9
from moodle.
This will not work, but the problem is a different from the error you report above. So you do need to change the VM SKU as noted above. For the SSH key you need to provide a valid SSH key. If you are unfamiliar with SSH then you should read https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys which will explain how to generate a key.
from moodle.
Thanks @tiberain for keeping trying. The error message indicates the SKU for the controller VM (it's Standard_DS1_v2 by default, unless you changed it to something else in your deployment) is not available on the selected region (westeurope) or on your subscription. We know from the Azure virtual machine pricing page that Standard_DS1_vs is available on westeurope, so I can only infer that your subscription has some limitation and not all available VM SKUs are available with your subscription. Unfortunately, only way to find out what SKUs are available on your subscription is to try to create a VM from the portal and see what SKUs (sizes) are available, or you can check the list of available VM SKUs for you using Azure CLI. For example, when I run the following Azure CLI command with my Azure account and subscription, I get the following response, saying DS1_v2 is not available for my subscription.
hosungs@sati:~
$ az vm list-skus -l westeurope --query "[?size=='DS1_v2']"
[
{
"additionalProperties": {},
"apiVersions": null,
"capabilities": [
{
"additionalProperties": {},
"name": "LowPriorityCapable",
"value": "True"
}
],
"capacity": null,
"costs": null,
"family": null,
"kind": null,
"locationInfo": [
{
"additionalProperties": {},
"location": "westeurope",
"zones": [
"1",
"2",
"3"
]
}
],
"locations": [
"westeurope"
],
"name": "Standard_DS1_v2",
"resourceType": "virtualMachines",
"restrictions": [
{
"additionalProperties": {},
"reasonCode": "NotAvailableForSubscription",
"restrictionInfo": {
"additionalProperties": {},
"locations": [
"westeurope"
],
"zones": null
},
"type": "Location",
"values": [
"westeurope"
]
},
{
"additionalProperties": {},
"reasonCode": "NotAvailableForSubscription",
"restrictionInfo": {
"additionalProperties": {},
"locations": [
"westeurope"
],
"zones": [
"1",
"2",
"3"
]
},
"type": "Zone",
"values": [
"westeurope"
]
}
],
"size": "DS1_v2",
"tier": "Standard"
}
]
hosungs@sati:~
$
This means that if I try to deploy the Moodle templates on westeurope with my subscription, it'll fail because of the unavailable VM SKU. This is a restriction on my subscription and you might have a similar restriction as well. You'll need to find out what VM SKUs are available for your subscription by running the same command without the --query
option and filtering for SKUs that don't have the "NotAvailableForSubscription" reasonCode. Hope this helps.
from moodle.
Hi @Moshikoa , I see that you closed this issue without any more notes, and wondering if the issue went away? If it's still there, could you provide the deployment failure message for us to take a look?
from moodle.
I'm having similar issues, I didn't change the template and not sure how I should be getting the public SSH
from moodle.
i think the problem is with the SSH, have the same problem here (i dont know what to put at the SSH input)
from moodle.
@Moshikoa the problem is not related to the SSH key. If you can submit the error message you are getting as @tiberain has done we should be able to guide you to a resolution.
from moodle.
@rgardler So I'm placing "GEN-SSH-PUB-KEY" into the SSH place. I don't believe this is right. Do I need to create a VM and use a VM to create the SSH
from moodle.
@rgardler But does the ssh key need to be from a computer that will be involved in this moodle set up or does it matter where is generated?
from moodle.
SSH is a key pair solution. What this means is you have a public key and a private key. The one you are using at deploy is the public key. In order to connect to the cluster via SSH (which is not necessary in normal operation) the client machine needs both the public and private key, but you can copy them between machines.
You can also change this key after deployment from the Aure portal or CLI if necessary.
There are plenty of excellent tutorials about SSH online, e.g. https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-ssh-keys-detailed, which is linked from the earlier document.
from moodle.
@rgardler
Hey so I spent the last few days generating SSH keys on a lunix subsystem on a win10 VM and I'm still not able to get the deployment to work here is my lastest error
Any Ideas
from moodle.
Hey @rgardler Thanks,
I'll play around with that makes sense what you are saying.
from moodle.
So I have been able to deploy this what the underlining problem was is that my MSDN account didn't have accesses to some things and the VM's needed.
I would able ask that steps to create a the SSH would be added in the read me.
Stating that creating a windows 10 VM with lunix subsystem in these steps https://docs.microsoft.com/en-us/windows/wsl/install-win10
is one way to create a SSH key for this template and then using the "cat" command you are able to view the SSH key to copy into the template
from moodle.
Thanks for letting us know and glad to hear that you were able to deploy. The SSH key preparation is documented here, and that command should work even on the Windows Subsystem for Linux (WSL) as well. In fact, on Windows, I'd just use something like Putty instead of WSL. This is a quite common task in sysadmin, so there are lots of documentation already, like this. Hope this helps.
from moodle.
Hey @hosungsmsft @rgardler ,
Want to reopen this ticket, I've been trying to log into the moodle instance I can't find any think that state what the user name might be or the password.
For the user name I've tried "user", "admin" the email used to create the ssh key. and the password I have no idea of what it could be so I've been trying to use the password that was used to create the ssh, my azure password and I've also been trying to get the password for the database using azure cli and I can't seem to log in.
Any help with this would be great.
from moodle.
This is documented for CLI at https://github.com/Azure/Moodle/blob/master/docs/Get-Install-Data.md
That page doesn't document how to get the info from the portal, but see this issue #55 which contains instructions.
Please use that issue if you have further questions.
from moodle.
Related Issues (20)
- Url domain HOT 1
- Amazing - Job well done. HOT 1
- URGENT - The Large Size ARM template pointing this repo doesn't deploy.... HOT 2
- The Large templates deploys MySQL 5.6.47.0 but the template claims it's 5.7 HOT 3
- concurrent users on moodle HOT 4
- Moodle 4.1 HOT 10
- Failed to install Azure CLI on the Load Test VM
- Failed to install jmeter
- Your deployment failed HOT 18
- Moodle on AKS slow with Azure File and no file when using Azure blob HOT 4
- Your deployment failed HOT 2
- After Migrate Existing Moodle in this template site response very slow
- Mount failed When choose fileserver type Gluster HOT 5
- Deployment template validation failed: 'The template parameters 'osDiskSizeInGB' in the parameters file are not valid; HOT 1
- Creation of instances failed HOT 2
- feature request - azure WAF and/or azure frontdoor HOT 1
- feature request - moodle deployment with HA/DR on pair region
- Deployment failure for Moodle 4.1 and PHP 7.4 template Large-ha HOT 2
- Moodle on Azure App Service
- Resource Failed deployment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle.