< Back
Get-AzureVMDscExtension
Post
NAME Get-AzureVMDscExtension
SYNOPSIS
Gets the settings of the DSC extension on a virtual machine.
SYNTAX
Get-AzureVMDscExtension -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
[<CommonParameters>]
DESCRIPTION
The Get-AzureVMDscExtension cmdlet gets the settings of the DSC extension on 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
Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext
NOTES
-------------------------- Example 1: Get the setting of the DSC Extension on a virtual machine --------------------------
PS C:\\>Get-AzureVMDscExtension -VM $VMModulesUrl
https://myaccount.blob.core.contoso.net ... onFunction :
MyConfiguration.ps1\\MyConfigurationProperties : {ServerName}ExtensionName : DSCPublisher : Microsoft.PowershellVersion
: 1.*PrivateConfiguration :PublicConfiguration : {"ModulesUrl":
"https://myaccount.blob.core.contoso.net ... onFunction":
"MyConfiguration.ps1\\\\MyConfiguration","Properties": {"ServerName": "C:\\\\MyDirectory"}}ReferenceName : DSCState : EnableRoleName
: my-vm
This command gets the settings of the DSC Extension on a virtual machine.
RELATED LINKS
Remove-AzureVMDscExtension
Set-AzureVMDscExtension
Get-AzureVMDscExtensionStatus
SYNOPSIS
Gets the settings of the DSC extension on a virtual machine.
SYNTAX
Get-AzureVMDscExtension -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
[<CommonParameters>]
DESCRIPTION
The Get-AzureVMDscExtension cmdlet gets the settings of the DSC extension on 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
Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext
NOTES
-------------------------- Example 1: Get the setting of the DSC Extension on a virtual machine --------------------------
PS C:\\>Get-AzureVMDscExtension -VM $VMModulesUrl
https://myaccount.blob.core.contoso.net ... onFunction :
MyConfiguration.ps1\\MyConfigurationProperties : {ServerName}ExtensionName : DSCPublisher : Microsoft.PowershellVersion
: 1.*PrivateConfiguration :PublicConfiguration : {"ModulesUrl":
"https://myaccount.blob.core.contoso.net ... onFunction":
"MyConfiguration.ps1\\\\MyConfiguration","Properties": {"ServerName": "C:\\\\MyDirectory"}}ReferenceName : DSCState : EnableRoleName
: my-vm
This command gets the settings of the DSC Extension on a virtual machine.
RELATED LINKS
Remove-AzureVMDscExtension
Set-AzureVMDscExtension
Get-AzureVMDscExtensionStatus