Get-AzConnectedVMwareVMGuestAgent
Implements GuestAgent GET method.
Syntax
Get-AzConnectedVMwareVMGuestAgent
-MachineId <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Implements GuestAgent GET method.
Examples
Example 1: Get guest agent of a specific VM
Get-AzConnectedVMwareVMGuestAgent -MachineId "/subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.HybridCompute/machines/test-machine"
CredentialsPassword :
CredentialsUsername : abc
CustomResourceName : d04a3534-2dfa-42c8-8959-83796a1bcac1
HttpProxyConfigHttpsProxy :
Id : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.HybridCompute/machines/test-machine/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default
Name : default
PrivateLinkScopeResourceId :
ProvisioningAction : install
ProvisioningState : Succeeded
ResourceGroupName : test-rg
Status : Enabled
Statuses : {{
"type": "Ready",
"status": "True",
"lastUpdatedAt": "2023-10-06T14:47:02.1828535Z"
}, {
"type": "Idle",
"status": "True",
"lastUpdatedAt": "2023-10-06T14:47:02.1828535Z"
}}
SystemDataCreatedAt : 10/6/2023 2:45:33 PM
SystemDataCreatedBy : xyz
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 10/6/2023 2:45:33 PM
SystemDataLastModifiedBy : xyz
SystemDataLastModifiedByType : User
Type : microsoft.connectedvmwarevsphere/virtualmachineinstances/guestagents
Uuid : 6a37a700-e02c-476d-a19f-258761575c40
This command gets a guest agent of a VM Instances of machine named test-machine
.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MachineId
The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell