Skip to content

Set-AzVMADDomainExtension.md #29198

@emichellecarter

Description

@emichellecarter

Type of issue

Code doesn't work

Feedback

Example code contains incorrect syntax and includes a parameter that does not exist for the cmdlet. No extension name in this cmdlet. Also would be much more helpful if this example included the credentials and OU params.

Create a Resource Group and Virtual Machine before this.

$extensionName = "extensionName"
$virtualMachineName = "vmName"
$resourceGroupName = "resourceGroupName"
$domainName = "domain.com"
Set-AzVMADDomainExtension -ResourceGroupName $resourceGroupName -VMName $virtualMachineName -Name $extensionName -DomainName $domainName

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.compute/set-azvmaddomainextension?view=azps-15.3.0#-credential

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Compute/Compute/help/Set-AzVMADDomainExtension.md

Author

No response

Document Id

No response

Platform Id

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions