Quantcast
Channel: Azure Virtual Machines forum
Viewing all 12545 articles
Browse latest View live

custom script extension "Failed to decode, decrypt, and deserialize the protected settings string. Error Message: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index".

$
0
0

When I provision a vm with a custom script extension, I will randomly get these errors:

"Failed to decode, decrypt, and deserialize the protected settings string. Error Message: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index".

I have tried using the listkeys function and directly passing in the key hardcoded into the arm json file, but still get these randomly.

Any insight on what is causing this or is it on the Azure end? The script still deploys correctly, but it is throwing the exception in the error logs..


Linux Machine MBR error

$
0
0

Hello!

I restarted a linux machine and cannot connect to it anymore. Tried to clone the disk and set up on another VM, but have no success since I cannot use the disk as OS disk.

Checked boot diagnostics and it said MBR Boot error.

Any ideas on how to recover the machine?

Thank you,

Patching virtual machine via Azure Portal

$
0
0

Hi anyone,

I'm not sure whether patching/installing Windows update/Security hotfix or so on is available via Azure Portal.

Regards,
-T.s


Thuan Soldier
A 23-year-old man loving Microsoft technologies and making crazy ideas on business journey.
SharePoint Vietnam | Blog | Twitter

connect to other azure user's ubuntu VMs

$
0
0
Hi, I want to be able to have 4 or so other users that are evaluating Azure be able to connect to the VMs we are each creating. What would be the best approach so that we could all connect to each other on the same local subnet? Each of us have 2 VMs, and I'd like all of us to be on the same logical network. Thanks in advance for any help anyone can offer...

Azure Resource Manager VM can't connect from Outside

$
0
0
I created a azure vm through resource manager and deployed an application on it. the application works fine when I try to access it from the vm. but when i try it from outside(through internet) it doesn't work. i created an inbound security rule in NSG and opened the port through vm firewall inbound rules too. please give some tips as to why this isn't working

For your assistance: Microsoft Azure Virtual Machine Readiness Assessment installer has corrupt/invalid signature

$
0
0

Hi!

Has anyone experience downloading Microsoft Azure Virtual Machine Readiness Assessmentinstaller with corrupt/invalid signature. Is it still ok to use that installer? Can you suggest what should be done? I need to evaluate the tool.

I downloaded the installer in the Microsoft download site.

Thanks!

Lou

Run customized iso on Azure?

$
0
0

Hi,

Use Case scenario:

I want to run my customized Linux iso on Azure

Questions:

1) What is the difference between PowerShell and Azure CLI?  

2) How to run my customized Linux iso on Azure?

3) Which is suitable for my use case PowerShell or CLI? 

Thanks in advance!!!

How to prevent people from pirating software put on Azure?

$
0
0

I created a software tool for customers that runs in Windows.

I'd like customers to use the tool online via Azure.

But I don't want them to be able to download and pirate my software.

Is there a way to prevent software downloading?



Azure Resource Manager - Java SDK

$
0
0

Hi All,

This is my java code to connect azure resource manager using java SDK. I have all the jar files in my class path. But it throws the below exception. Can you please give me suggestion what is missing in my code part. Otherwise can you please explain how to authenticate resource manager java SDK.

Exception in thread "main" java.lang.NoClassDefFoundError: com/nimbusds/jwt/JWT
        at AzureSample.getCredentials(AzureSample.java:143)
        at AzureSample.main(AzureSample.java:101)
Caused by: java.lang.ClassNotFoundException: com.nimbusds.jwt.JWT
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 2 more

package com.microsoft.azure.samples.authentication;


import com.microsoft.aad.adal4j.AuthenticationContext;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.aad.adal4j.ClientCredential;
import com.microsoft.azure.management.resources.ResourceManagementClient;
import com.microsoft.azure.management.resources.ResourceManagementService;
import com.microsoft.azure.management.resources.models.ResourceGroupExtended;
import com.microsoft.windowsazure.Configuration;
import com.microsoft.windowsazure.management.configuration.ManagementConfiguration;

import javax.naming.ServiceUnavailableException;
import java.net.MalformedURLException;
import java.net.URI;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import javax.print.event.PrintJobAttributeEvent;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import com.microsoft.windowsazure.core.utils.KeyStoreType;
import com.microsoft.windowsazure.exception.ServiceException;
import com.microsoft.windowsazure.management.*;
import com.microsoft.windowsazure.Configuration;
import com.microsoft.windowsazure.management.configuration.ManagementConfiguration;
import com.microsoft.windowsazure.management.models.LocationsListResponse;
import com.microsoft.windowsazure.management.models.LocationsListResponse.Location;

import com.microsoft.windowsazure.management.models.RoleSizeListResponse;

// Resource management
import com.microsoft.azure.management.resources.*;
import com.microsoft.azure.management.resources.ResourceManagementService;
import com.microsoft.azure.management.resources.models.ResourceGroupListResult;
import com.microsoft.azure.management.resources.models.ResourceListParameters;
import com.microsoft.azure.management.resources.models.ResourceListResult;
import com.microsoft.azure.management.resources.models.GenericResourceExtended;

import com.microsoft.azure.management.resources.models.TagsListResult;


import com.microsoft.windowsazure.management.compute.*;
import com.microsoft.windowsazure.management.compute.ComputeManagementService;


import com.microsoft.windowsazure.scheduler.models.AADOAuthAuthentication;

public class AzureSample
{
	static String uri = "https://management.core.windows.net/";
	static String subscriptionId = "****************";
	static String keyStoreLocation = "D:\\Azure\\Certificates\\WindowsAzure.jks";
	static String keyStorePassword = "rathi123";

public static void main(String[] args) throws IOException, URISyntaxException, ServiceException, ParserConfigurationException, SAXException , Exception{
	System.out.println("The subscriptionId =>"+subscriptionId);
 	// Resource management client
    Configuration config2 = ManagementConfiguration.configure(null,new URI(uri),subscriptionId,getCredentials().getAccessToken());

	ResourceManagementClient armclient = ResourceManagementService.create(config2);
	System.out.println("*******************  ARM  *******************");
	System.out.println("Api version:"+ armclient.getApiVersion()+" Base URI :"+armclient.getBaseUri());
	ResourceListParameters params = new ResourceListParameters();
	ResourceListResult emt = armclient.getResourcesOperations().list(params);

	ArrayList<GenericResourceExtended> rsgrps = emt.getResources();
	for(int r=0 ; r<rsgrps.size(); r++)
	{
		GenericResourceExtended ext = rsgrps.get(r);
		System.out.println("Resource Grp NAme:"+ext.getName()+" ID :"+ext.getId());
	}

	TagsListResult ops = armclient.getTagsOperations().list();
	System.out.println("ARM tag list ->"+ops.getNextLink());
}

private static AuthenticationResult getCredentials() throws
            ServiceUnavailableException, MalformedURLException, ExecutionException, InterruptedException {
	System.out.println("the service is created");
        AuthenticationContext context;
        AuthenticationResult result = null;
        ExecutorService service = null;
        try {
            service = Executors.newFixedThreadPool(1);
            // TODO: add your tenant id
            context = new AuthenticationContext("https://login.windows.net/<my tenant id>",
                    false, service);

			System.out.println("the service is created");
            // TODO: add your client id and client secret
            ClientCredential cred = new ClientCredential("<client id>","<client secret>");
            Future<AuthenticationResult> future = context.acquireToken("https://management.azure.com/", cred, null);
            result = future.get();
        } finally {
            service.shutdown();
        }

        if (result == null) {
            throw new ServiceUnavailableException(
                    "authentication result was null");
        }
        return result;
    }


}


rathidevi


Disk related API references are not available under Virtual Machines REST

$
0
0

I need to add disk to Azure v2 instance, but there is no API documentation available.

For classic vm  under  Virtual Machines (classic) REST  , we have API reference available for add Data disk & delete data disk.

Where we can find disk related API reference for Azure v2.

Thanks,


athipathy

Installing softwares in Azure Linux VM

$
0
0

Hi,

I am working on the automation of installation of  mysql and php on a linux VM. After a new VM is created, I need to ssh into the new VM and install the above softwares. I am able to execute certain commands like hostname, ls, etc .. but not able to sudo and install the softwares. I get the following error ... sudo: sorry, you must have a tty to run sudo. Since I dont have root access, I am not able to edit the sudoers file  to disable tty. 

How do I achieve this ? Any other option available ? Any other userid comes with sudo in the Linux VM (CentOS from OpenLogic)

Thanks

NIC Accidentally Disabled on VM

$
0
0

From @MquickMuti via twitter:
"The NIC was accidentally disabled on my IaaS VM running windows server 2012 r2.  How do I correct this mistake?"
Customer tried resizing the VM:
aka.ms/d1039535

"Tried that procedure twice.  Still no connectivity.  What's next?"

Thanks,

@AzureSupport

Attach one VHD to another Virutal Machine

$
0
0

One of my virutal machines stopped working. On boot diagnostics it says:

[  300.383352] md: ... autorun DONE.
[  300.384104] List of all partitions:
[  300.384803] No filesystem could mount root, tried:
[  300.385885] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

It looks like it can't find the Disk. Is it possible to mount the VHD of that machine in another that is still running to see what's going on? Looks like there was maintenance planned for that server and it never came back after reboot.

Ubuntu VM stopped Responding

$
0
0

From @aholmes0 via Twitter:

Ubuntu VM stopped responding suddenly and now won't start! No changes between working and not working state. Help! I tried a reboot, and it didn't come back up. Then I tried simply to start it, and it will isn't coming back up. The VM boots fine locally; nothing seems amiss. I tried to resize, no luck. I downloaded the VM, booted locally, checked a couple

Thanks!

@AzureSupport

export-azurevm command not working

$
0
0

Hi,

I have provisioned a lab machine and I am trying to export it locally using powershell.  Using the command export-azurevm I keep getting the error " Could not read properties for virtual machine: ajhlabad02. It may still be provisioning", however if I use the command get-azurevm the service shows as "StoppedDeallocated".  Can you please help ?

Andu


How do I use WinSCP with Azure Windows 2012 R2?

$
0
0

Hi-

i need to copy lots of data to my Azure Windows 2012 R2 instance but cannot connect for some reason.  My host name is client1156931xxx.westus.cloudapp.azure.com .  Do I have the right domain name?

Bill

How to RDNS record for Linux VM

$
0
0
I installed iRedmail every thing went great , but am unable to set Reverse DNS records , I am new to this not know how to do . please some one help me how I can add Reverse DNS FOR Azure Linux Vm

Virtual Machine not responding in portal or by powershell

$
0
0

Hi!

I have a VM in Azure that does not shutdown, nor wants to be deleted.

Anyone seen this case before?

It has been standing with status "Deleting" for a day now since, and before that had the status "Update" for a day while trying to force it to shut down. I have tried by GUI in the portal and also by powershell.

PS C:\Users\admin> get-azurermvm 'xxxxxx' | stop-azurermvm -Force


Status              : Failed
StatusCode          : OK
RequestId           : 3d7b4196-5a41-4b35-9ea8-439ac2e0204a
Output              :
Error               : {
                        "Details": [],
                        "InnerError": null,
                        "Code": "InternalOperationError",
                        "Message": "An internal execution error occurred.",
                        "Target": null
                      }
StartTime           : 12.02.2016 08.33.06 +01:00
EndTime             : 12.02.2016 10.02.26 +01:00
TrackingOperationId : aaed4e79-d2db-41be-8b26-a9cbf3eedb7c


Any input on this will be appreciated.

Best regards, Anders Dahl

Capture non classic virtual machine

$
0
0
There was a button in old portal to capture classic virtual machine, but using new portal and new virtual machine (non classic), I don't know how to get this functionality?

How to forward domain name to Azure VM?

$
0
0

Hi,

I created inbound rules (endpoint in classic VM). Web site is running locally But my system is still unavailable publicly

Thanks 

Viewing all 12545 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>