GithubHelp home page GithubHelp logo

Deploy is not working about moodle HOT 16 CLOSED

azure avatar azure commented on July 20, 2024
Deploy is not working

from moodle.

Comments (16)

SorraTheOrc avatar SorraTheOrc commented on July 20, 2024 1

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 -

"controllerVmSku": { "value": "Standard_DS1_v2" },

from moodle.

SorraTheOrc avatar SorraTheOrc commented on July 20, 2024 1

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.

hosungsmsft avatar hosungsmsft commented on July 20, 2024 1

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.

hosungsmsft avatar hosungsmsft commented on July 20, 2024

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.

tiberain avatar tiberain commented on July 20, 2024

image

I'm having similar issues, I didn't change the template and not sure how I should be getting the public SSH

from moodle.

Moshikoa avatar Moshikoa commented on July 20, 2024

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.

SorraTheOrc avatar SorraTheOrc commented on July 20, 2024

@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.

tiberain avatar tiberain commented on July 20, 2024

@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
image

from moodle.

tiberain avatar tiberain commented on July 20, 2024

@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.

SorraTheOrc avatar SorraTheOrc commented on July 20, 2024

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.

tiberain avatar tiberain commented on July 20, 2024

@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

image

Any Ideas

from moodle.

tiberain avatar tiberain commented on July 20, 2024

Hey @rgardler Thanks,

I'll play around with that makes sense what you are saying.

from moodle.

tiberain avatar tiberain commented on July 20, 2024

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.

hosungsmsft avatar hosungsmsft commented on July 20, 2024

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.

tiberain avatar tiberain commented on July 20, 2024

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.

SorraTheOrc avatar SorraTheOrc commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.