diff --git a/.teamcity/components/generated/services.kt b/.teamcity/components/generated/services.kt index 75e76b251d35..8d87f903a11c 100644 --- a/.teamcity/components/generated/services.kt +++ b/.teamcity/components/generated/services.kt @@ -2,6 +2,7 @@ // to re-generate this file, run 'make generate' in the root of the repository var services = mapOf( "apimanagement" to "API Management", + "domainservices" to "AadMgmt", "advisor" to "Advisor", "analysisservices" to "Analysis Services", "appconfiguration" to "App Configuration", diff --git a/azurerm/internal/services/domainservices/active_directory_domain_service_data_source.go b/azurerm/internal/services/domainservices/active_directory_domain_service_data_source.go index 6612289218ce..7edae413eb33 100644 --- a/azurerm/internal/services/domainservices/active_directory_domain_service_data_source.go +++ b/azurerm/internal/services/domainservices/active_directory_domain_service_data_source.go @@ -3,6 +3,8 @@ package domainservices import ( "fmt" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts" + "github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" @@ -237,7 +239,8 @@ func dataSourceArmActiveDirectoryDomainService() *schema.Resource { func dataSourceArmActiveDirectoryDomainServiceRead(d *schema.ResourceData, meta interface{}) error { client := meta.(*clients.Client).DomainServices.DomainServicesClient - ctx := meta.(*clients.Client).StopContext + ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) + defer cancel() name := d.Get("name").(string) resourceGroup := d.Get("resource_group_name").(string) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md index f70460c2561d..a4196fdf6056 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/CHANGELOG.md @@ -1,5 +1,5 @@ Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82//specification/domainservices/resource-manager/readme.md tag: `package-2020-01` -Code generator @microsoft.azure/autorest.go@2.1.171 +Code generator @microsoft.azure/autorest.go@2.1.175 diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/domainservices.go b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/domainservices.go index f6f7a87f5453..79f36853e724 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/domainservices.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/domainservices.go @@ -55,8 +55,8 @@ func (client DomainServicesClient) CreateOrUpdate(ctx context.Context, resourceG ctx = tracing.StartSpan(ctx, fqdn+"/DomainServicesClient.CreateOrUpdate") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -167,8 +167,8 @@ func (client DomainServicesClient) Delete(ctx context.Context, resourceGroupName ctx = tracing.StartSpan(ctx, fqdn+"/DomainServicesClient.Delete") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -593,8 +593,8 @@ func (client DomainServicesClient) Update(ctx context.Context, resourceGroupName ctx = tracing.StartSpan(ctx, fqdn+"/DomainServicesClient.Update") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go index 50bdf53823c9..855f72fe5fc5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/2020-01-01/aad/oucontainer.go @@ -54,8 +54,8 @@ func (client OuContainerClient) Create(ctx context.Context, resourceGroupName st ctx = tracing.StartSpan(ctx, fqdn+"/OuContainerClient.Create") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -168,8 +168,8 @@ func (client OuContainerClient) Delete(ctx context.Context, resourceGroupName st ctx = tracing.StartSpan(ctx, fqdn+"/OuContainerClient.Delete") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -484,8 +484,8 @@ func (client OuContainerClient) Update(ctx context.Context, resourceGroupName st ctx = tracing.StartSpan(ctx, fqdn+"/OuContainerClient.Update") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.FutureAPI != nil && result.FutureAPI.Response() != nil { + sc = result.FutureAPI.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() diff --git a/website/allowed-subcategories b/website/allowed-subcategories index a7c713407144..587a1d3d0d1a 100644 --- a/website/allowed-subcategories +++ b/website/allowed-subcategories @@ -7,6 +7,7 @@ Application Insights Attestation Authorization Automation +Azure Active Directory Management Azure Stack HCI Base Batch