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 table azure_batch_account. Closes #222 #242

Merged
merged 8 commits into from
Aug 11, 2021
Merged

Add table azure_batch_account. Closes #222 #242

merged 8 commits into from
Aug 11, 2021

Conversation

bigdatasourav
Copy link
Contributor

Integration test logs

Logs
SETUP: tests/azure_batch_account []

PRETEST: tests/azure_batch_account

TEST: tests/azure_batch_account
Running terraform
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 2s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921]
azurerm_storage_account.named_test_resource: Creating...
azurerm_storage_account.named_test_resource: Still creating... [10s elapsed]
azurerm_storage_account.named_test_resource: Still creating... [20s elapsed]
azurerm_storage_account.named_test_resource: Still creating... [30s elapsed]
azurerm_storage_account.named_test_resource: Creation complete after 32s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Storage/storageAccounts/turbottest25921]
azurerm_batch_account.named_test_resource: Creating...
azurerm_batch_account.named_test_resource: Still creating... [10s elapsed]
azurerm_batch_account.named_test_resource: Still creating... [20s elapsed]
azurerm_batch_account.named_test_resource: Creation complete after 26s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921]

Warning: Deprecated 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


Warning: Version constraints inside provider configuration blocks are deprecated

  on variables.tf line 21, in provider "azurerm":
  21:   version         = "=1.36.0"

Terraform 0.13 and earlier allowed provider version constraints inside the
provider configuration block, but that is now deprecated and will be removed
in a future version of Terraform. To silence this warning, move the provider
version constraint into the required_providers block.


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

Outputs:

location = "eastus"
resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest25921/providers/microsoft.batch/batchaccounts/turbottest25921"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921"
resource_name = "turbottest25921"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921",
    "name": "turbottest25921",
    "region": "eastus",
    "resource_group": "turbottest25921",
    "subscription_id": "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8",
    "type": "Microsoft.Batch/batchAccounts"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921",
    "name": "turbottest25921",
    "type": "Microsoft.Batch/batchAccounts"
  }
]
✔ PASSED

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

Running SQL query: test-turbot-query.sql
[
  {
    "akas": [
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest25921/providers/Microsoft.Batch/batchAccounts/turbottest25921",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest25921/providers/microsoft.batch/batchaccounts/turbottest25921"
    ],
    "name": "turbottest25921",
    "title": "turbottest25921"
  }
]
✔ PASSED

POSTTEST: tests/azure_batch_account

TEARDOWN: tests/azure_batch_account

SUMMARY:

1/1 passed.

Example query results

Results
> select
  name,
  id,
  type,
  provisioning_state,
  dedicated_core_quota,
  region
from
  azure_batch_account;
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------
| name    | id                                                                                                                           | type                          | provisioning_state | dedicated_co
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------
| qerfdsd | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.Batch/batchAccounts/qerfdsd | Microsoft.Batch/batchAccounts | Succeeded          | 10          
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------
> select
  name,
  id,
  type,
  provisioning_state,
  dedicated_core_quota,
  region
from
  azure_batch_account
where
provisioning_state = 'Failed';
+------+----+------+--------------------+----------------------+--------+
| name | id | type | provisioning_state | dedicated_core_quota | region |
+------+----+------+--------------------+----------------------+--------+
+------+----+------+--------------------+----------------------+--------+
> select
  name,
  id,
  type,
  provisioning_state,
  dedicated_core_quota,
  region
from
  azure_batch_account
where
provisioning_state = 'Succeeded';
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------
| name    | id                                                                                                                           | type                          | provisioning_state | dedicated_co
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------
| qerfdsd | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.Batch/batchAccounts/qerfdsd | Microsoft.Batch/batchAccounts | Succeeded          | 10          
+---------+------------------------------------------------------------------------------------------------------------------------------+-------------------------------+--------------------+-------------

@bigdatasourav bigdatasourav self-assigned this Aug 9, 2021
@bigdatasourav bigdatasourav linked an issue Aug 9, 2021 that may be closed by this pull request
},
{
Name: "public_network_access",
Description: "Whether or not public network access is allowed for the batch account.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Description: "Whether or not public network access is allowed for the batch account.",
Description: "Indicates whether or not public network access is allowed for the batch account.",

Copy link
Contributor

@rajlearner17 rajlearner17 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 73bb63f into main Aug 11, 2021
@bigdatasourav bigdatasourav deleted the issue-222 branch August 11, 2021 11:11
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 table azure_batch_account
3 participants