public async Task GetByTenant() { await foreach (var tenant in Client.GetTenants().GetAllAsync()) { TenantPolicyDefinition getBuiltInPolicyDefinition = await tenant.GetTenantPolicyDefinitions().GetAsync("04d53d87-841c-4f23-8a5b-21564380b55e"); Assert.AreEqual(getBuiltInPolicyDefinition.Data.DisplayName, "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace"); } }
public virtual TenantPolicyDefinition GetTenantPolicyDefinition(ResourceIdentifier id) { TenantPolicyDefinition.ValidateResourceId(id); return(new TenantPolicyDefinition(this, id)); }