Skip to main content

service_configurations

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

Overview

Nameservice_configurations
TypeResource
Idazure.hybrid_connectivity.service_configurations

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.
portintegerThe port on which service is enabled.
provisioningStatestringThe resource provisioning state. Known values are: "Succeeded", "Creating", "Updating", "Failed", and "Canceled". (Succeeded, Creating, Updating, Failed, Canceled)
resourceIdstringThe resource Id of the connectivity endpoint (optional).
serviceNamestringName of the service. Required. Known values are: "SSH" and "WAC". (SSH, WAC)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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_uri, endpoint_name, service_configuration_nameGets the details about the service to the resource.
list_by_endpoint_resourceselectresource_uri, endpoint_nameLists of all the services associated with endpoint resource. API to enumerate registered services in service configurations under a Endpoint Resource.
updateupdateresource_uri, endpoint_name, service_configuration_nameUpdate the service details in the service configurations of the target resource.
deletedeleteresource_uri, endpoint_name, service_configuration_nameDeletes the service details to the target resource.
create_orupdateexecresource_uri, endpoint_name, service_configuration_nameCreate or update a service in serviceConfiguration for the endpoint resource.

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
endpoint_namestringThe endpoint name. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.
service_configuration_namestringThe service name. Required.

SELECT examples

Gets the details about the service to the resource.

SELECT
id,
name,
port,
provisioningState,
resourceId,
serviceName,
systemData,
type
FROM azure.hybrid_connectivity.service_configurations
WHERE resource_uri = '{{ resource_uri }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND service_configuration_name = '{{ service_configuration_name }}' -- required
;

UPDATE examples

Update the service details in the service configurations of the target resource.

UPDATE azure.hybrid_connectivity.service_configurations
SET
properties = '{{ properties }}'
WHERE
resource_uri = '{{ resource_uri }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND service_configuration_name = '{{ service_configuration_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the service details to the target resource.

DELETE FROM azure.hybrid_connectivity.service_configurations
WHERE resource_uri = '{{ resource_uri }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND service_configuration_name = '{{ service_configuration_name }}' --required
;

Lifecycle Methods

Create or update a service in serviceConfiguration for the endpoint resource.

EXEC azure.hybrid_connectivity.service_configurations.create_orupdate 
@resource_uri='{{ resource_uri }}' --required,
@endpoint_name='{{ endpoint_name }}' --required,
@service_configuration_name='{{ service_configuration_name }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;