Skip to main content

apps

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

Overview

Nameapps
TypeResource
Idazure.spring_apps.apps

Fields

NameDatatypeDescription
addon_configstextfield from the properties object
appNametextfield from the properties object
custom_persistent_diskstextfield from the properties object
enable_end_to_end_tlstextfield from the properties object
fqdntextfield from the properties object
https_onlytextfield from the properties object
identitytextManaged identity properties retrieved from ARM request headers.
ingress_settingstextfield from the properties object
loaded_certificatestextfield from the properties object
locationtextThe GEO location of the application, always the same with its parent resource
persistent_disktextfield from the properties object
provisioning_statetextfield from the properties object
publictextfield from the properties object
resourceGroupNametextfield from the properties object
secretstextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
temporary_disktextfield from the properties object
test_endpoint_auth_statetextfield from the properties object
urltextfield from the properties object
vnet_addonstextfield from the properties object
workload_profile_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTappName, resourceGroupName, serviceName, subscriptionIdGet an App and its properties.
listSELECTresourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in a Service.
create_or_updateINSERTappName, resourceGroupName, serviceName, subscriptionIdCreate a new App or update an exiting App.
deleteDELETEappName, resourceGroupName, serviceName, subscriptionIdOperation to delete an App.
updateUPDATEappName, resourceGroupName, serviceName, subscriptionIdOperation to update an exiting App.
set_active_deploymentsEXECappName, resourceGroupName, serviceName, subscriptionIdSet existing Deployment under the app as active
validate_domainEXECappName, resourceGroupName, serviceName, subscriptionId, data__nameCheck the resource name is valid as well as not in use.

SELECT examples

Handles requests to list all resources in a Service.

SELECT
addon_configs,
appName,
custom_persistent_disks,
enable_end_to_end_tls,
fqdn,
https_only,
identity,
ingress_settings,
loaded_certificates,
location,
persistent_disk,
provisioning_state,
public,
resourceGroupName,
secrets,
serviceName,
subscriptionId,
temporary_disk,
test_endpoint_auth_state,
url,
vnet_addons,
workload_profile_name
FROM azure.spring_apps.vw_apps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.apps (
appName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
identity,
location
)
SELECT
'{{ appName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ location }}'
;

UPDATE example

Updates a apps resource.

/*+ update */
UPDATE azure.spring_apps.apps
SET
properties = '{{ properties }}',
identity = '{{ identity }}',
location = '{{ location }}'
WHERE
appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified apps resource.

/*+ delete */
DELETE FROM azure.spring_apps.apps
WHERE appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';