We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.healthcare.getService
Explore with Pulumi AI
Use this data source to access information about an existing Healthcare Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.healthcare.getService({
    name: "example-healthcare_service",
    resourceGroupName: "example-resources",
    location: "westus2",
});
export const healthcareServiceId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.healthcare.get_service(name="example-healthcare_service",
    resource_group_name="example-resources",
    location="westus2")
pulumi.export("healthcareServiceId", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := healthcare.LookupService(ctx, &healthcare.LookupServiceArgs{
			Name:              "example-healthcare_service",
			ResourceGroupName: "example-resources",
			Location:          "westus2",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("healthcareServiceId", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Healthcare.GetService.Invoke(new()
    {
        Name = "example-healthcare_service",
        ResourceGroupName = "example-resources",
        Location = "westus2",
    });
    return new Dictionary<string, object?>
    {
        ["healthcareServiceId"] = example.Apply(getServiceResult => getServiceResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.healthcare.HealthcareFunctions;
import com.pulumi.azure.healthcare.inputs.GetServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = HealthcareFunctions.getService(GetServiceArgs.builder()
            .name("example-healthcare_service")
            .resourceGroupName("example-resources")
            .location("westus2")
            .build());
        ctx.export("healthcareServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:healthcare:getService
      arguments:
        name: example-healthcare_service
        resourceGroupName: example-resources
        location: westus2
outputs:
  healthcareServiceId: ${example.id}
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>def get_service(location: Optional[str] = None,
                name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(location: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput> Note: This function is named LookupService in the Go SDK.
public static class GetService 
{
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
  function: azure:healthcare/getService:getService
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- The Azure Region where the Service is located.
- Name string
- Specifies the name of the Healthcare Service.
- ResourceGroup stringName 
- The name of the Resource Group in which the Healthcare Service exists.
- Location string
- The Azure Region where the Service is located.
- Name string
- Specifies the name of the Healthcare Service.
- ResourceGroup stringName 
- The name of the Resource Group in which the Healthcare Service exists.
- location String
- The Azure Region where the Service is located.
- name String
- Specifies the name of the Healthcare Service.
- resourceGroup StringName 
- The name of the Resource Group in which the Healthcare Service exists.
- location string
- The Azure Region where the Service is located.
- name string
- Specifies the name of the Healthcare Service.
- resourceGroup stringName 
- The name of the Resource Group in which the Healthcare Service exists.
- location str
- The Azure Region where the Service is located.
- name str
- Specifies the name of the Healthcare Service.
- resource_group_ strname 
- The name of the Resource Group in which the Healthcare Service exists.
- location String
- The Azure Region where the Service is located.
- name String
- Specifies the name of the Healthcare Service.
- resourceGroup StringName 
- The name of the Resource Group in which the Healthcare Service exists.
getService Result
The following output properties are available:
- AccessPolicy List<string>Object Ids 
- AuthenticationConfigurations List<GetService Authentication Configuration> 
- An authentication_configurationblock as defined below.
- CorsConfigurations List<GetService Cors Configuration> 
- A cors_configurationblock as defined below.
- CosmosdbKey stringVault Key Versionless Id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- CosmosdbThroughput int
- The provisioned throughput for the backing database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The type of the service.
- Location string
- The Azure Region where the Service is located.
- Name string
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- AccessPolicy []stringObject Ids 
- AuthenticationConfigurations []GetService Authentication Configuration 
- An authentication_configurationblock as defined below.
- CorsConfigurations []GetService Cors Configuration 
- A cors_configurationblock as defined below.
- CosmosdbKey stringVault Key Versionless Id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- CosmosdbThroughput int
- The provisioned throughput for the backing database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The type of the service.
- Location string
- The Azure Region where the Service is located.
- Name string
- ResourceGroup stringName 
- map[string]string
- A mapping of tags to assign to the resource.
- accessPolicy List<String>Object Ids 
- authenticationConfigurations List<GetService Authentication Configuration> 
- An authentication_configurationblock as defined below.
- corsConfigurations List<GetService Cors Configuration> 
- A cors_configurationblock as defined below.
- cosmosdbKey StringVault Key Versionless Id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdbThroughput Integer
- The provisioned throughput for the backing database.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The type of the service.
- location String
- The Azure Region where the Service is located.
- name String
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags to assign to the resource.
- accessPolicy string[]Object Ids 
- authenticationConfigurations GetService Authentication Configuration[] 
- An authentication_configurationblock as defined below.
- corsConfigurations GetService Cors Configuration[] 
- A cors_configurationblock as defined below.
- cosmosdbKey stringVault Key Versionless Id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdbThroughput number
- The provisioned throughput for the backing database.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- The type of the service.
- location string
- The Azure Region where the Service is located.
- name string
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- access_policy_ Sequence[str]object_ ids 
- authentication_configurations Sequence[GetService Authentication Configuration] 
- An authentication_configurationblock as defined below.
- cors_configurations Sequence[GetService Cors Configuration] 
- A cors_configurationblock as defined below.
- cosmosdb_key_ strvault_ key_ versionless_ id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdb_throughput int
- The provisioned throughput for the backing database.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- The type of the service.
- location str
- The Azure Region where the Service is located.
- name str
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- accessPolicy List<String>Object Ids 
- authenticationConfigurations List<Property Map>
- An authentication_configurationblock as defined below.
- corsConfigurations List<Property Map>
- A cors_configurationblock as defined below.
- cosmosdbKey StringVault Key Versionless Id 
- The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdbThroughput Number
- The provisioned throughput for the backing database.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The type of the service.
- location String
- The Azure Region where the Service is located.
- name String
- resourceGroup StringName 
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
GetServiceAuthenticationConfiguration   
- Audience string
- The intended audience to receive authentication tokens for the service.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- SmartProxy boolEnabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- Audience string
- The intended audience to receive authentication tokens for the service.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- SmartProxy boolEnabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience String
- The intended audience to receive authentication tokens for the service.
- String
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smartProxy BooleanEnabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience string
- The intended audience to receive authentication tokens for the service.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smartProxy booleanEnabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience str
- The intended audience to receive authentication tokens for the service.
- str
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smart_proxy_ boolenabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience String
- The intended audience to receive authentication tokens for the service.
- String
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smartProxy BooleanEnabled 
- Is the 'SMART on FHIR' option for mobile and web implementations enabled?
GetServiceCorsConfiguration   
- AllowCredentials bool
- Are credentials are allowed via CORS?
- AllowedHeaders List<string>
- The set of headers to be allowed via CORS.
- AllowedMethods List<string>
- The methods to be allowed via CORS.
- AllowedOrigins List<string>
- The set of origins to be allowed via CORS.
- MaxAge intIn Seconds 
- The max age to be allowed via CORS.
- AllowCredentials bool
- Are credentials are allowed via CORS?
- AllowedHeaders []string
- The set of headers to be allowed via CORS.
- AllowedMethods []string
- The methods to be allowed via CORS.
- AllowedOrigins []string
- The set of origins to be allowed via CORS.
- MaxAge intIn Seconds 
- The max age to be allowed via CORS.
- allowCredentials Boolean
- Are credentials are allowed via CORS?
- allowedHeaders List<String>
- The set of headers to be allowed via CORS.
- allowedMethods List<String>
- The methods to be allowed via CORS.
- allowedOrigins List<String>
- The set of origins to be allowed via CORS.
- maxAge IntegerIn Seconds 
- The max age to be allowed via CORS.
- allowCredentials boolean
- Are credentials are allowed via CORS?
- allowedHeaders string[]
- The set of headers to be allowed via CORS.
- allowedMethods string[]
- The methods to be allowed via CORS.
- allowedOrigins string[]
- The set of origins to be allowed via CORS.
- maxAge numberIn Seconds 
- The max age to be allowed via CORS.
- allow_credentials bool
- Are credentials are allowed via CORS?
- allowed_headers Sequence[str]
- The set of headers to be allowed via CORS.
- allowed_methods Sequence[str]
- The methods to be allowed via CORS.
- allowed_origins Sequence[str]
- The set of origins to be allowed via CORS.
- max_age_ intin_ seconds 
- The max age to be allowed via CORS.
- allowCredentials Boolean
- Are credentials are allowed via CORS?
- allowedHeaders List<String>
- The set of headers to be allowed via CORS.
- allowedMethods List<String>
- The methods to be allowed via CORS.
- allowedOrigins List<String>
- The set of origins to be allowed via CORS.
- maxAge NumberIn Seconds 
- The max age to be allowed via CORS.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.