// Use this data source to access information about an existing Domains within Azure Active Directory.
//
// > **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.Read.All` within the `Windows Azure Active Directory` API.
Use this data source to access information about an existing Domains within Azure Active Directory.

> **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.Read.All` within the `Windows Azure Active Directory` API.
// Use this data source to access information about an existing Domains within Azure Active Directory . // // > ** NOTE : ** If you ' re authenticating using a Service Principal then it must have permissions to ` Directory . Read . All ` within the ` Windows Azure Active Directory ` API .
func GetDomains(ctx *pulumi.Context, args *GetDomainsArgs, opts ...pulumi.InvokeOption) (*GetDomainsResult, error) {
	var rv GetDomainsResult
	err := ctx.Invoke("azuread:index/getDomains:getDomains", args, &rv, opts...)
	if err != nil {
		return nil, err
	}
	return &rv, nil
}
func GetDomains ( ctx * pulumi . Context , args * GetDomainsArgs , opts ... pulumi . InvokeOption ) ( * GetDomainsResult , error ) { var rv GetDomainsResult err := ctx . Invoke ( " " , args , & rv , opts ... ) if err != nil { return nil , err } return & rv , nil }
Use this data source to access information about an existing Domains within Azure Active Directory.
Use this data source to access information about an existing Domains within Azure Active Directory .