func GetServicePrincipal(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServicePrincipalState, opts ...pulumi.ResourceOption) (*ServicePrincipal, error) {
	var resource ServicePrincipal
	err := ctx.ReadResource("azuread:index/servicePrincipal:ServicePrincipal", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// GetServicePrincipal gets an existing ServicePrincipal resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
GetServicePrincipal gets an existing ServicePrincipal resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
// GetServicePrincipal gets an existing ServicePrincipal resource ' s state with the given name ID and optional // state properties that are used to uniquely qualify the lookup ( nil if not required ) .
func GetServicePrincipal(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServicePrincipalState, opts ...pulumi.ResourceOption) (*ServicePrincipal, error) {
	var resource ServicePrincipal
	err := ctx.ReadResource("azuread:index/servicePrincipal:ServicePrincipal", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func GetServicePrincipal ( ctx * pulumi . Context , name string , id pulumi . IDInput , state * ServicePrincipalState , opts ... pulumi . ResourceOption ) ( * ServicePrincipal , error ) { var resource ServicePrincipal err := ctx . ReadResource ( " " , name , id , state , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
GetServicePrincipal gets an existing ServicePrincipal resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
GetServicePrincipal gets an existing ServicePrincipal resource ' s state with the given name ID and optional state properties that are used to uniquely qualify the lookup ( nil if not required ) .