Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/kubernetes_cluster: Only setting the VnetSubnetID when it's != "" #1158

Merged
merged 1 commit into from
Apr 24, 2018

Commits on Apr 24, 2018

  1. r/kubernetes_cluster: Only setting the VnetSubnetID when it's != ""

    Fixes:
    
    ```
    ------- Stdout: -------
    === RUN   TestAccAzureRMKubernetesCluster_basic
    --- FAIL: TestAccAzureRMKubernetesCluster_basic (55.13s)
        testing.go:513: Step 0 error: Error applying: 1 error(s) occurred:
    
            * azurerm_kubernetes_cluster.test: 1 error(s) occurred:
    
            * azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.agentPoolProfiles[0].vnetSubnetID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
    FAIL
    ```
    
    Passing test:
    
    ```
    $ acctests azurerm TestAccAzureRMKubernetesCluster_basic
    === RUN   TestAccAzureRMKubernetesCluster_basic
    --- PASS: TestAccAzureRMKubernetesCluster_basic (1713.63s)
    PASS
    ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	1713.661s
    ```
    tombuildsstuff committed Apr 24, 2018
    Configuration menu
    Copy the full SHA
    c93bcfa View commit details
    Browse the repository at this point in the history