protected void ExecuteVirtualMachineExtensionListMethod(object[] invokeMethodInputParameters)
        {
            string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
            string vmName            = (string)ParseParameter(invokeMethodInputParameters[1]);
            string expand            = (string)ParseParameter(invokeMethodInputParameters[2]);

            var result = VirtualMachineExtensionsClient.List(resourceGroupName, vmName, expand);

            WriteObject(result);
        }
        protected void ExecuteVirtualMachineExtensionGetMethod(object[] invokeMethodInputParameters)
        {
            string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
            string vmName            = (string)ParseParameter(invokeMethodInputParameters[1]);
            string vmExtensionName   = (string)ParseParameter(invokeMethodInputParameters[2]);
            string expand            = (string)ParseParameter(invokeMethodInputParameters[3]);

            if (!string.IsNullOrEmpty(resourceGroupName) && !string.IsNullOrEmpty(vmName) && !string.IsNullOrEmpty(vmExtensionName))
            {
                var result = VirtualMachineExtensionsClient.Get(resourceGroupName, vmName, vmExtensionName, expand);
                WriteObject(result);
            }
            else if (!string.IsNullOrEmpty(resourceGroupName) && !string.IsNullOrEmpty(vmName) && !string.IsNullOrEmpty(expand))
            {
                var result = VirtualMachineExtensionsClient.List(resourceGroupName, vmName, expand);
                WriteObject(result, true);
            }
        }