How to use memcache virtual machine

Brent Mills 1 Reputation point
2021-11-09T14:22:02.773+00:00

I've created a memcache virtual machine on my subscription using the memcached image

147807-image.png

Now in the details I see an IP address, but can't find a username or password. I've scoured the net in search of what to do now but come up blank. Can I please get some help on what to do next? For reference we are currently using memcachier with enyimcache client on appharbor. I'm hoping we can migrate without having to change clients.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2021-11-09T19:25:18.65+00:00

    Hello @Brent Mills ,
    Hope you have chosen Authentication Type as Password instead of SSH Public key at the time of VM creation ?
    You can find the username by using the below command:
    (Get-AzVM -ResourceGroupName <resourcegroupname> -Name <VMname>).OsProfile.AdminUserName

    Once you have the username , you can reset the password of that user using the Reset Password option from Azure Portal VM options.
    (or)
    You can use the same view to create a new user and new password

    147906-image.png

    Regards,
    Shiva.

    0 comments No comments

  2. Brent Mills 1 Reputation point
    2021-11-11T10:07:27.273+00:00

    Thank you Shiva, I will give this a try soon and report back.

    0 comments No comments

  3. Brent Mills 1 Reputation point
    2021-11-19T17:19:32.11+00:00

    I've followed the instructions but now having further problems.
    It's now setup and my details look like this:

    151045-ip.jpg

    However I'm unable to ping that ip address and also don't know what the port is which is required by the client I'm using.
    I then try and connect to that VM with the Enyim cache client but predictably I don't get any key value pairs being return. My connection code looks like this:

    151030-memcache.jpg

    where the parameters are specified in web.config here:

    151055-web.jpg

    Can you please advise what server name and port I should be using to connect like this? I'm feeling a bit lost currently, perhaps there's some tutorials out there on how to use memcache in azure?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.