Certificate - Update

Update a certificate.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}?api-version=2023-11-01

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

certificateName
path True

string

The parameters supplied to the update certificate operation.

resourceGroupName
path True

string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Request Body

Name Type Description
name

string

Gets or sets the name of the certificate.

properties.description

string

Gets or sets the description of the certificate.

Responses

Name Type Description
200 OK

Certificate

OK

Other Status Codes

ErrorResponse

Automation 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

Update a certificate

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert?api-version=2023-11-01

{
  "name": "testCert",
  "properties": {
    "description": "sample certificate. Description updated"
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert",
  "name": "testCert",
  "properties": {
    "description": "sample certificate. Description updated",
    "isExportable": false,
    "thumbprint": "thumbprint of cert",
    "expiryTime": "2018-03-29T17:25:45+00:00",
    "creationTime": "2017-03-29T17:26:43.337+00:00",
    "lastModifiedTime": "2017-03-29T17:28:55.01+00:00"
  }
}

Definitions

Name Description
Certificate

Definition of the certificate.

CertificateUpdateParameters

The parameters supplied to the update certificate operation.

ErrorResponse

Error response of an operation failure

Certificate

Definition of the certificate.

Name Type Description
id

string

Fully qualified resource Id for the resource

name

string

The name of the resource

properties.creationTime

string

Gets the creation time.

properties.description

string

Gets or sets the description.

properties.expiryTime

string

Gets the expiry time of the certificate.

properties.isExportable

boolean

Gets the is exportable flag of the certificate.

properties.lastModifiedTime

string

Gets the last modified time.

properties.thumbprint

string

Gets the thumbprint of the certificate.

type

string

The type of the resource.

CertificateUpdateParameters

The parameters supplied to the update certificate operation.

Name Type Description
name

string

Gets or sets the name of the certificate.

properties.description

string

Gets or sets the description of the certificate.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.