/// <summary> /// Gets OData metadata XML document. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// A valid scope, i.e. management group, subscription, resource group, or /// resource ID. Scope used has no effect on metadata returned. /// </param> public static string GetMetadata(this IPolicyEventsOperations operations, string scope) { return(operations.GetMetadataAsync(scope).GetAwaiter().GetResult()); }