Guest Agents - Create
Implementeert de PUT-methode GuestAgent.
GuestAgent maken of bijwerken.
PUT https://management.azure.com/{resourceUri}/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2025-03-13
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string |
De volledig gekwalificeerde Azure Resource Manager-id van de resource. |
|
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| properties.credentials |
Gebruikersnaam/wachtwoordreferenties voor het inrichten van de gastagent. |
|
| properties.httpProxyConfig |
HTTP-proxyconfiguratie voor de VIRTUELE machine. |
|
| properties.privateLinkScopeResourceId |
string (arm-id) |
De resource-id van het private link-bereik waaraan deze machine, indien van toepassing, is toegewezen. |
| properties.provisioningAction |
Hiermee haalt u de inrichtingsactie voor de gastagent op of stelt u deze in. |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
De updatebewerking 'GuestAgent' van de resource is voltooid |
|
| 201 Created |
De bewerking voor het maken van de resource 'GuestAgent' is voltooid Kopteksten Retry-After: integer |
|
| Other Status Codes |
Een onverwachte foutreactie. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
|
Guest |
|
Guest |
GuestAgents_Create_MaximumSet
Voorbeeldaanvraag
PUT https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2025-03-13
{
"properties": {
"credentials": {
"username": "jqxuwirrcpfv",
"password": "gkvbnmuahumuoibvscoxzfdqwvfuf"
},
"httpProxyConfig": {
"httpsProxy": "uoyzyticmohohomlkwct"
},
"provisioningAction": "install"
}
}
Voorbeeldrespons
{
"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
Voorbeeldaanvraag
PUT https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default?api-version=2025-03-13
{}
Voorbeeldrespons
{}
Azure-AsyncOperation: https://contoso.com/operationstatus
{}
Definities
| Name | Description |
|---|---|
|
created |
Het type identiteit waarmee de resource is gemaakt. |
|
Error |
Aanvullende informatie over de resourcebeheerfout. |
|
Error |
De foutdetails. |
|
Error |
Foutreactie |
|
Guest |
Definieert de GuestAgent. |
|
Guest |
Gebruikersnaam/wachtwoordreferenties om verbinding te maken met gast. |
|
Http |
HTTP-proxyconfiguratie voor de VIRTUELE machine. |
|
Provisioning |
Inrichtingsactie voor gastagenten. |
|
Provisioning |
De inrichtingsstatus van de resource. |
|
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
| Waarde | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
| Name | Type | Description |
|---|---|---|
| info |
object |
De aanvullende informatie. |
| type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
De fout bevat aanvullende informatie. |
|
| code |
string |
De foutcode. |
| details |
De foutdetails. |
|
| message |
string |
Het foutbericht. |
| target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
| Name | Type | Description |
|---|---|---|
| error |
Het foutobject. |
GuestAgent
Definieert de GuestAgent.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}" |
| name |
string |
De naam van de resource |
| properties.credentials |
Gebruikersnaam/wachtwoordreferenties voor het inrichten van de gastagent. |
|
| properties.customResourceName |
string |
Hiermee haalt u de naam op van de bijbehorende resource in Kubernetes. |
| properties.httpProxyConfig |
HTTP-proxyconfiguratie voor de VIRTUELE machine. |
|
| properties.privateLinkScopeResourceId |
string (arm-id) |
De resource-id van het private link-bereik waaraan deze machine, indien van toepassing, is toegewezen. |
| properties.provisioningAction |
Hiermee haalt u de inrichtingsactie voor de gastagent op of stelt u deze in. |
|
| properties.provisioningState |
Inrichtingsstatus van de resource. |
|
| properties.status |
string |
Hiermee haalt u de status van de gastagent op. |
| properties.uuid |
string |
Hiermee haalt u een unieke id voor deze resource op. |
| systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
| type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
GuestCredential
Gebruikersnaam/wachtwoordreferenties om verbinding te maken met gast.
| Name | Type | Description |
|---|---|---|
| password |
string (password) |
Hiermee haalt u het wachtwoord op of stelt u het in om verbinding te maken met de gast. |
| username |
string |
Hiermee haalt u de gebruikersnaam op of stelt u deze in om verbinding te maken met de gast. |
HttpProxyConfiguration
HTTP-proxyconfiguratie voor de VIRTUELE machine.
| Name | Type | Description |
|---|---|---|
| httpsProxy |
string |
Hiermee haalt u httpsProxy-URL op of stelt u deze in. |
ProvisioningAction
Inrichtingsactie voor gastagenten.
| Waarde | Description |
|---|---|
| install |
Installeer de gastagent. |
| uninstall |
Verwijder de gastagent. |
| repair |
Gastagent herstellen. |
ProvisioningState
De inrichtingsstatus van de resource.
| Waarde | Description |
|---|---|
| Succeeded |
De resource is gemaakt. |
| Failed |
Het maken van resources is mislukt. |
| Canceled |
Het maken van resources is geannuleerd. |
| Provisioning |
De resource wordt ingericht. |
| Updating |
De resource wordt bijgewerkt. |
| Deleting |
De resource wordt verwijderd. |
| Accepted |
De resource is geaccepteerd. |
| Created |
De resource is gemaakt. |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
| createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
| createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
| lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
| lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
| lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |