Deployment Scripts - Get Logs
Gets deployment script logs for a given deployment script name.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs?api-version=2020-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
script
|
path | True |
string minLength: 1maxLength: 90 |
Name of the deployment script. |
subscription
|
path | True |
string |
Subscription Id which forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client Api version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK -- Returns deployment script logs if available. |
|
Other Status Codes |
Error response describing why the operation failed. |
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
DeploymentScriptsGetLogs
Sample request
Sample response
{
"value": [
{
"properties": {
"log": "script execution stdout/stderr logs"
}
}
]
}
Definitions
Name | Description |
---|---|
Deployment |
Deployment scripts error response. |
Error |
The resource management error additional info. |
Error |
Error Response |
Script |
Script execution log object. |
Script |
Deployment script execution logs. |
DeploymentScriptsError
Deployment scripts error response.
Name | Type | Description |
---|---|---|
error |
Error Response |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
Error Response
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. |
ScriptLog
Script execution log object.
Name | Type | Description |
---|---|---|
id |
string |
String Id used to locate any resource on Azure. |
name |
string |
Name of this resource. |
properties.log |
string |
Script execution logs in text format. |
type |
string |
Type of this resource. |
ScriptLogsList
Deployment script execution logs.
Name | Type | Description |
---|---|---|
value |
Deployment scripts logs. |