Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idazure.app_service.environments

Fields

NameDatatypeDescription
namestringName/identifier of the diagnostics.
diagnosticsOutputstringDiagnostics output.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Get the properties of an App Service Environment.
get_diagnosticsSELECTdiagnosticsName, name, resourceGroupName, subscriptionIdDescription for Get a diagnostics item for an App Service Environment.
get_inbound_network_dependencies_endpointsSELECTname, resourceGroupName, subscriptionIdDescription for Get the network endpoints of all inbound dependencies of an App Service Environment.
listSELECTsubscriptionIdDescription for Get all App Service Environments for a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDescription for Get all App Service Environments in a resource group.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Create or update an App Service Environment.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Delete an App Service Environment.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Create or update an App Service Environment.
approve_or_reject_private_endpoint_connectionEXECname, privateEndpointConnectionName, resourceGroupName, subscriptionIdDescription for Approves or rejects a private endpoint connection
change_vnetEXECname, resourceGroupName, subscriptionId, data__idDescription for Move an App Service Environment to a different VNET.
rebootEXECname, resourceGroupName, subscriptionIdDescription for Reboot all machines in an App Service Environment.
resumeEXECname, resourceGroupName, subscriptionIdDescription for Resume an App Service Environment.
suspendEXECname, resourceGroupName, subscriptionIdDescription for Suspend an App Service Environment.
test_upgrade_available_notificationEXECname, resourceGroupName, subscriptionId
upgradeEXECname, resourceGroupName, subscriptionIdDescription for Initiate an upgrade of an App Service Environment if one is available.

SELECT examples

Description for Get all App Service Environments for a subscription.

SELECT
name,
diagnosticsOutput
FROM azure.app_service.environments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new environments resource.

/*+ create */
INSERT INTO azure.app_service.environments (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a environments resource.

/*+ update */
UPDATE azure.app_service.environments
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified environments resource.

/*+ delete */
DELETE FROM azure.app_service.environments
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';