< Back

Remove-AzureVMCustomScriptExtension

Wed Jan 30, 2019 5:51 pm

NAME Remove-AzureVMCustomScriptExtension



SYNOPSIS

Removes the custom script extension from a virtual machine.





SYNTAX

Remove-AzureVMCustomScriptExtension -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable

<String>] [<CommonParameters>]





DESCRIPTION

The Remove-AzureVMCustomScriptExtension cmdlet removes the custom script extension from a virtual machine.





PARAMETERS

-VM <IPersistentVM>

Specifies the persistent virtual machine object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue, ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- Example 1: Remove a virtual machine custom script extension --------------------------



PS C:\\> Remove-AzureVMCustomScriptExtension -VM $VM;



This command removes the Azure virtual machine custom script extension from the specified virtual machine as stored in the variable $VM.



RELATED LINKS

Get-AzureVMCustomScriptExtension

Set-AzureVMCustomScriptExtension

Azure Service Cmdlets