Skip to main content

runtime_environments

Creates, updates, deletes, gets or lists a runtime_environments resource.

Overview

Nameruntime_environments
TypeResource
Idazure.automation.runtime_environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
defaultPackagesobjectList of Default packages for Environment.
descriptionstringGets or sets the description.
locationstringThe geo-location where the resource lives. Required.
runtimeobjectRuntime properties.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, automation_account_name, runtime_environment_name, subscription_idGet information about the Runtime Environment.
list_by_automation_accountselectresource_group_name, automation_account_name, subscription_idRetrieve a list of RuntimeEnvironments.
createinsertresource_group_name, automation_account_name, runtime_environment_name, subscription_id, locationCreate or update Runtime Environment.
updateupdateresource_group_name, automation_account_name, runtime_environment_name, subscription_idUpdate an Runtime Environment.
deletedeleteresource_group_name, automation_account_name, runtime_environment_name, subscription_idDelete the Runtime Environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
automation_account_namestringThe name of the automation account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
runtime_environment_namestringThe name of the Runtime Environment. Required.
subscription_idstring

SELECT examples

Get information about the Runtime Environment.

SELECT
id,
name,
defaultPackages,
description,
location,
runtime,
systemData,
tags,
type
FROM azure.automation.runtime_environments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND runtime_environment_name = '{{ runtime_environment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update Runtime Environment.

INSERT INTO azure.automation.runtime_environments (
tags,
location,
properties,
resource_group_name,
automation_account_name,
runtime_environment_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ automation_account_name }}',
'{{ runtime_environment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update an Runtime Environment.

UPDATE azure.automation.runtime_environments
SET
properties = '{{ properties }}',
systemData = '{{ systemData }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND runtime_environment_name = '{{ runtime_environment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the Runtime Environment.

DELETE FROM azure.automation.runtime_environments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND runtime_environment_name = '{{ runtime_environment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;