func GetDirectoryRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DirectoryRoleState, opts ...pulumi.ResourceOption) (*DirectoryRole, error) {
	var resource DirectoryRole
	err := ctx.ReadResource("azuread:index/directoryRole:DirectoryRole", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// GetDirectoryRole gets an existing DirectoryRole resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
GetDirectoryRole gets an existing DirectoryRole resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
// GetDirectoryRole gets an existing DirectoryRole 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 GetDirectoryRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DirectoryRoleState, opts ...pulumi.ResourceOption) (*DirectoryRole, error) {
	var resource DirectoryRole
	err := ctx.ReadResource("azuread:index/directoryRole:DirectoryRole", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func GetDirectoryRole ( ctx * pulumi . Context , name string , id pulumi . IDInput , state * DirectoryRoleState , opts ... pulumi . ResourceOption ) ( * DirectoryRole , error ) { var resource DirectoryRole err := ctx . ReadResource ( " " , name , id , state , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
GetDirectoryRole gets an existing DirectoryRole resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
GetDirectoryRole gets an existing DirectoryRole resource ' s state with the given name ID and optional state properties that are used to uniquely qualify the lookup ( nil if not required ) .