Guest Agents - Create
Implements GuestAgent PUT method.
Create Or Update GuestAgent.
PUT https://management.azure.com/{resourceUri}/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2024-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The fully qualified Azure Resource manager identifier of the resource. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
properties.credentials |
Username / Password Credentials to provision guest agent. |
|
properties.httpProxyConfig |
HTTP Proxy configuration for the VM. |
|
properties.privateLinkScopeResourceId |
string |
The resource id of the private link scope this machine is assigned to, if any. |
properties.provisioningAction |
Gets or sets the guest agent provisioning action. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Resource 'GuestAgent' update operation succeeded |
|
201 Created |
Resource 'GuestAgent' create operation succeeded Headers Retry-After: integer |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Guest |
Guest |
GuestAgents_Create_MaximumSet
Sample request
PUT https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2024-06-01
{
"properties": {
"credentials": {
"username": "jqxuwirrcpfv",
"password": "gkvbnmuahumuoibvscoxzfdqwvfuf"
},
"httpProxyConfig": {
"httpsProxy": "uoyzyticmohohomlkwct"
},
"provisioningAction": "install"
}
}
Sample response
{
"properties": {
"uuid": "hbsgztyakewtgbuxbesezncnzu",
"credentials": {
"username": "jqxuwirrcpfv"
},
"httpProxyConfig": {
"httpsProxy": "uoyzyticmohohomlkwct"
},
"provisioningAction": "install",
"status": "jpoukrzfenzrmjdahimkl",
"customResourceName": "mhqymxkapuvsugd",
"provisioningState": "Succeeded",
"privateLinkScopeResourceId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkResourceName"
},
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default",
"name": "rwecpthzyt",
"type": "dkcgcbtlwtsedxzhvtu",
"systemData": {
"createdBy": "p",
"createdByType": "User",
"createdAt": "2024-01-29T22:28:00.094Z",
"lastModifiedBy": "goxcwpyyqlxndquly",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-01-29T22:28:00.095Z"
}
}
Azure-AsyncOperation: https://contoso.com/operationstatus
{
"properties": {
"uuid": "hbsgztyakewtgbuxbesezncnzu",
"credentials": {
"username": "jqxuwirrcpfv"
},
"httpProxyConfig": {
"httpsProxy": "uoyzyticmohohomlkwct"
},
"provisioningAction": "install",
"status": "jpoukrzfenzrmjdahimkl",
"customResourceName": "mhqymxkapuvsugd",
"provisioningState": "Succeeded",
"privateLinkScopeResourceId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkResourceName"
},
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default",
"name": "rwecpthzyt",
"type": "dkcgcbtlwtsedxzhvtu",
"systemData": {
"createdBy": "p",
"createdByType": "User",
"createdAt": "2024-01-29T22:28:00.094Z",
"lastModifiedBy": "goxcwpyyqlxndquly",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-01-29T22:28:00.095Z"
}
}
GuestAgents_Create_MinimumSet
Sample request
PUT https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2024-06-01
{}
Sample response
{}
Azure-AsyncOperation: https://contoso.com/operationstatus
{}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Guest |
Defines the GuestAgent. |
Guest |
Username / Password Credentials to connect to guest. |
Http |
HTTP Proxy configuration for the VM. |
Provisioning |
Guest agent provisioning action. |
Provisioning |
The provisioning state of the resource. |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
GuestAgent
Defines the GuestAgent.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.credentials |
Username / Password Credentials to provision guest agent. |
|
properties.customResourceName |
string |
Gets the name of the corresponding resource in Kubernetes. |
properties.httpProxyConfig |
HTTP Proxy configuration for the VM. |
|
properties.privateLinkScopeResourceId |
string |
The resource id of the private link scope this machine is assigned to, if any. |
properties.provisioningAction |
Gets or sets the guest agent provisioning action. |
|
properties.provisioningState |
Provisioning state of the resource. |
|
properties.status |
string |
Gets the guest agent status. |
properties.uuid |
string |
Gets a unique identifier for this resource. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
GuestCredential
Username / Password Credentials to connect to guest.
Name | Type | Description |
---|---|---|
password |
string |
Gets or sets the password to connect with the guest. |
username |
string |
Gets or sets username to connect with the guest. |
HttpProxyConfiguration
HTTP Proxy configuration for the VM.
Name | Type | Description |
---|---|---|
httpsProxy |
string |
Gets or sets httpsProxy url. |
ProvisioningAction
Guest agent provisioning action.
Name | Type | Description |
---|---|---|
install |
string |
Install guest agent. |
repair |
string |
Repair guest agent. |
uninstall |
string |
Uninstall guest agent. |
ProvisioningState
The provisioning state of the resource.
Name | Type | Description |
---|---|---|
Accepted |
string |
The resource has been accepted. |
Canceled |
string |
Resource creation was canceled. |
Created |
string |
The resource was created. |
Deleting |
string |
The resource is being deleted. |
Failed |
string |
Resource creation failed. |
Provisioning |
string |
The resource is provisioning. |
Succeeded |
string |
Resource has been created. |
Updating |
string |
The resource is updating. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |