Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureVMAccessExtension

Set-AzureVMAccessExtension

microsoft.azure.commands.compute.dll, microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Add VMAccess extension to the VM which allows you to reset the VM username and password

Syntax

Set-AzureVMAccessExtension [-ResourceGroupName] [-VMName] [-Name] [-TypeHandlerVersion] [-UserName] [-Password] [-Location] [-Profile] [-InformationAction] [-InformationVariable] [<CommonParameters>]

Detailed Description

Add VMAccess extension to the VM which allows you to reset the VM username and password

Parameters

-ResourceGroupName <String>

Resource Group of the VM

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-VMName <String>

Name of the VM

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Name <String>

Name of the extension

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-TypeHandlerVersion <String>

Version of the extension

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-UserName <String>

New username of the VM

Aliases

None

Required?

false

Position

4

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Password <String>

New password of the VM

Aliases

None

Required?

false

Position

5

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Location <String>

Location of the VM

Aliases

None

Required?

false

Position

6

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationAction <ActionPreference>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationVariable <String>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

$extname = 'csetest';
$extver = '2.0';
$user2 = "Bar12";
$password2 = 'FoO@123' + $rgname;

# Set VMAccess extension
Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -UserName $user2 -Password $password2;