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

Add app details in table azure_app_service_plan closes #535 #536

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Nov 4, 2022

Integration test logs

Logs
No env file present for the current environment:  staging 
 Falling back to .env config
No env file present for the current environment:  staging
customEnv TURBOT_TEST_EXPECTED_TIMEOUT undefined

SETUP: tests/azure_app_service_plan []

PRETEST: tests/azure_app_service_plan

TEST: tests/azure_app_service_plan
Running terraform
data.azurerm_client_config.current: Reading...
data.azurerm_client_config.current: Read complete after 0s [id=Y2xpZW50Q29uZmlncy9jbGllbnRJZD0wNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDY7b2JqZWN0SWQ9MDZmZDQ2YjAtYTg2Ny00OWExLWE0ZjEtZjc3Njg0NjVjYWJhO3N1YnNjcmlwdGlvbklkPWQ0NmQ3NDE2LWY5NWYtNDc3MS1iYmI1LTUyOWQ0Yzc2NjU5Yzt0ZW5hbnRJZD1jZGZmZDcwOC03ZGEwLTRjZWEtYWJlYi0wYTRjMzM0ZDdmNjQ=]
data.null_data_source.resource: Reading...
data.null_data_source.resource: Read complete after 0s [id=static]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # azurerm_app_service_plan.named_test_resource will be created
  + resource "azurerm_app_service_plan" "named_test_resource" {
      + id                           = (known after apply)
      + kind                         = "Windows"
      + location                     = "eastus"
      + maximum_elastic_worker_count = (known after apply)
      + maximum_number_of_workers    = (known after apply)
      + name                         = "turbottest17837"
      + resource_group_name          = "turbottest17837"
      + tags                         = {
          + "name" = "turbottest17837"
        }

      + sku {
          + capacity = 0
          + size     = "S1"
          + tier     = "Standard"
        }
    }

  # azurerm_resource_group.named_test_resource will be created
  + resource "azurerm_resource_group" "named_test_resource" {
      + id       = (known after apply)
      + location = "eastus"
      + name     = "turbottest17837"
    }

Plan: 2 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + resource_aka       = (known after apply)
  + resource_aka_lower = (known after apply)
  + resource_id        = (known after apply)
  + resource_name      = "turbottest17837"
  + subscription_id    = "hf747416-f95f-4771-bbb5-529d4c7647tu"
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 5s [id=/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837]
azurerm_app_service_plan.named_test_resource: Creating...
azurerm_app_service_plan.named_test_resource: Still creating... [10s elapsed]
azurerm_app_service_plan.named_test_resource: Creation complete after 13s [id=/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837]

Warning: Deprecated

  with data.null_data_source.resource,
  on variables.tf line 29, in data "null_data_source" "resource":
  29: data "null_data_source" "resource" {

The null_data_source was historically used to construct intermediate values
to re-use elsewhere in configuration, the same can now be achieved using
locals

(and one more similar warning elsewhere)

Warning: Deprecated Resource

  with azurerm_app_service_plan.named_test_resource,
  on variables.tf line 40, in resource "azurerm_app_service_plan" "named_test_resource":
  40: resource "azurerm_app_service_plan" "named_test_resource" {

The `azurerm_app_service_plan` resource has been superseded by the
`azurerm_service_plan` resource. Whilst this resource will continue to be
available in the 2.x and 3.x releases it is feature-frozen for compatibility
purposes, will no longer receive any updates and will be removed in a future
major release of the Azure Provider.

(and 2 more similar warnings elsewhere)

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

resource_aka = "azure:///subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837"
resource_aka_lower = "azure:///subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourcegroups/turbottest17837/providers/microsoft.web/serverfarms/turbottest17837"
resource_id = "/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837"
resource_name = "turbottest17837"
subscription_id = "hf747416-f95f-4771-bbb5-529d4c7647tu"

Running SQL query: test-get-query.sql
[
  {
    "hyper_v": false,
    "id": "/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837",
    "is_spot": false,
    "is_xenon": false,
    "kind": "Windows",
    "name": "turbottest17837",
    "per_site_scaling": false,
    "region": "east us",
    "reserved": false,
    "resource_group": "turbottest17837",
    "sku_capacity": 1,
    "sku_size": "S1",
    "sku_tier": "Standard",
    "type": "Microsoft.Web/serverfarms"
  }
]
✔ PASSED

Running SQL query: test-hydrate-query.sql
[
  {
    "hyper_v": false,
    "id": "/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837",
    "is_spot": false,
    "is_xenon": false,
    "kind": "Windows",
    "name": "turbottest17837",
    "per_site_scaling": false,
    "region": "east us",
    "reserved": false,
    "resource_group": "turbottest17837",
    "type": "Microsoft.Web/serverfarms"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837",
    "name": "turbottest17837"
  }
]
✔ PASSED

Running SQL query: test-not-found-query.sql
null
✔ PASSED

Running SQL query: test-turbot-query.sql
[
  {
    "akas": [
      "azure:///subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourceGroups/turbottest17837/providers/Microsoft.Web/serverfarms/turbottest17837",
      "azure:///subscriptions/hf747416-f95f-4771-bbb5-529d4c7647tu/resourcegroups/turbottest17837/providers/microsoft.web/serverfarms/turbottest17837"
    ],
    "name": "turbottest17837",
    "tags": {
      "name": "turbottest17837"
    },
    "title": "turbottest17837"
  }
]
✔ PASSED

POSTTEST: tests/azure_app_service_plan

TEARDOWN: tests/azure_app_service_plan

SUMMARY:

1/1 passed.

Example query results

Results
> select name, apps from azure_app_service_plan
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| name              | apps                                                                                                                                                                                  
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| basic             | [{"kind":"app,linux","properties":{"clientAffinityEnabled":false,"clientCertEnabled":false,"clientCertMode":"Required","containerSize":0,"customDomainVerificationId":"1DECB996AB6891F
| ASP-turbotrg-a9a9 | [{"kind":"app,linux","properties":{"clientAffinityEnabled":false,"clientCertEnabled":false,"clientCertMode":"Required","containerSize":0,"customDomainVerificationId":"1DECB996AB6891F
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@ParthaI ParthaI self-assigned this Nov 4, 2022
@ParthaI ParthaI linked an issue Nov 4, 2022 that may be closed by this pull request
Copy link
Contributor

@bigdatasourav bigdatasourav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bigdatasourav bigdatasourav merged commit 71e221f into main Nov 7, 2022
@bigdatasourav bigdatasourav deleted the issue-535 branch November 7, 2022 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add app details in table azure_app_service_plan
2 participants