functions
Creates, updates, deletes, gets or lists a functions
resource.
Overview
Name | functions |
Type | Resource |
Id | azure.app_service.functions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | FunctionEnvelope resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | functionName, name, resourceGroupName, subscriptionId | Description for Get function information by its ID for web site, or a deployment slot. |
list | SELECT | name, resourceGroupName, subscriptionId | Description for List the functions for a web site, or a deployment slot. |
create | INSERT | functionName, name, resourceGroupName, subscriptionId | Description for Create function for web site, or a deployment slot. |
delete | DELETE | functionName, name, resourceGroupName, subscriptionId | Description for Delete a function for web site, or a deployment slot. |
SELECT
examples
Description for List the functions for a web site, or a deployment slot.
SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.functions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new functions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.functions (
functionName,
name,
resourceGroupName,
subscriptionId,
kind,
properties
)
SELECT
'{{ functionName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: type
value: string
- name: properties
value:
- name: function_app_id
value: string
- name: script_root_path_href
value: string
- name: script_href
value: string
- name: config_href
value: string
- name: test_data_href
value: string
- name: secrets_file_href
value: string
- name: href
value: string
- name: config
value: object
- name: files
value: object
- name: test_data
value: string
- name: invoke_url_template
value: string
- name: language
value: string
- name: isDisabled
value: boolean
DELETE
example
Deletes the specified functions
resource.
/*+ delete */
DELETE FROM azure.app_service.functions
WHERE functionName = '{{ functionName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';