Last active
October 10, 2018 00:29
-
-
Save KyleMartin901/6ddcbe7ecdfdbf5bef163d508f535aa0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\t29597\Development\tmca-servicehistory-infrastructure\infra> terraform plan -out infra.tfplan | |
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
azurerm_resource_group.rd: Refreshing state... (ID: /subscriptions/xxx-...sourceGroups/tmca-servicehistory-infra) | |
azurerm_cosmosdb_account.db: Refreshing state... (ID: /subscriptions/xxx-...baseAccounts/tmca-servicehistory-infra) | |
azurerm_storage_account.service_history: Refreshing state... (ID: /subscriptions/xxx-...torageAccounts/tmcaservicehistoryinfra) | |
azurerm_storage_container.insights_metrics: Refreshing state... (ID: https://xxx.blob.core.windows.net/insights-metrics-pt1m) | |
azurerm_storage_container.insights_logs: Refreshing state... (ID: https://xxx.blob.co...ws.net/insights-logs-dataplanerequests) | |
azurerm_storage_container.service_history_logs: Refreshing state... (ID: https://xxx.blob.core.windows.net/service-history-db-logs) | |
azurerm_storage_container.invoice_images: Refreshing state... (ID: https://xxx.blob.core.windows.net/invoice-images) | |
------------------------------------------------------------------------ | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
-/+ destroy and then create replacement | |
Terraform will perform the following actions: | |
-/+ module.invoice_store.azurerm_storage_account.service_history (new resource required) | |
id: "/subscriptions/xxx/resourceGroups/tmca-servicehistory-infra/providers/Microsoft.Storage/storageAccounts/tmcaservicehistoryinfra" => <computed> (forces new resource) | |
access_tier: "Hot" => "Hot" | |
account_encryption_source: "Microsoft.Storage" => "Microsoft.Storage" | |
account_kind: "BlobStorage" => "StorageV2" (forces new resource) | |
account_replication_type: "LRS" => "LRS" | |
enable_blob_encryption: "true" => "true" | |
enable_file_encryption: "true" => "true" | |
enable_https_traffic_only: "true" => "true" | |
identity.#: "0" => <computed> | |
location: "australiasoutheast" => "australiasoutheast" | |
name: "tmcaservicehistoryinfra" => "tmcaservicehistoryinfra" | |
primary_access_key: <sensitive> => <computed> (attribute changed) | |
primary_blob_connection_string: <sensitive> => <computed> (attribute changed) | |
primary_blob_endpoint: "https://xxx.blob.core.windows.net/" => <computed> | |
primary_connection_string: <sensitive> => <computed> (attribute changed) | |
primary_file_endpoint: "" => <computed> | |
primary_location: "australiasoutheast" => <computed> | |
primary_queue_endpoint: "" => <computed> | |
primary_table_endpoint: "https://xxx.table.core.windows.net/" => <computed> | |
resource_group_name: "tmca-servicehistory-infra" => "tmca-servicehistory-infra" | |
secondary_access_key: <sensitive> => <computed> (attribute changed) | |
secondary_blob_connection_string: <sensitive> => <computed> (attribute changed) | |
secondary_blob_endpoint: "" => <computed> | |
secondary_connection_string: <sensitive> => <computed> (attribute changed) | |
secondary_location: "" => <computed> | |
secondary_queue_endpoint: "" => <computed> | |
secondary_table_endpoint: "" => <computed> | |
tags.%: "0" => <computed> | |
Plan: 1 to add, 0 to change, 1 to destroy. | |
------------------------------------------------------------------------ | |
This plan was saved to: infra.tfplan | |
To perform exactly these actions, run the following command to apply: | |
terraform apply "infra.tfplan" | |
PS C:\Users\t29597\Development\tmca-servicehistory-infrastructure\infra> terraform apply "infra.tfplan" | |
module.invoice_store.azurerm_storage_account.service_history: Destroying... (ID: /subscriptions/...torageAccounts/tmcaservicehistoryinfra) | |
module.invoice_store.azurerm_storage_account.service_history: Destruction complete after 4s | |
module.invoice_store.azurerm_storage_account.service_history: Creating... | |
access_tier: "" => "Hot" | |
account_encryption_source: "" => "Microsoft.Storage" | |
account_kind: "" => "StorageV2" | |
account_replication_type: "" => "LRS" | |
account_tier: "" => "Standard" | |
enable_blob_encryption: "" => "true" | |
enable_file_encryption: "" => "true" | |
enable_https_traffic_only: "" => "true" | |
identity.#: "" => "<computed>" | |
location: "" => "australiasoutheast" | |
primary_access_key: "<sensitive>" => "<sensitive>" | |
primary_blob_connection_string: "<sensitive>" => "<sensitive>" | |
primary_blob_endpoint: "" => "<computed>" | |
primary_connection_string: "<sensitive>" => "<sensitive>" | |
primary_file_endpoint: "" => "<computed>" | |
primary_location: "" => "<computed>" | |
primary_queue_endpoint: "" => "<computed>" | |
primary_table_endpoint: "" => "<computed>" | |
resource_group_name: "" => "tmca-servicehistory-infra" | |
secondary_access_key: "<sensitive>" => "<sensitive>" | |
secondary_blob_connection_string: "<sensitive>" => "<sensitive>" | |
secondary_blob_endpoint: "" => "<computed>" | |
secondary_connection_string: "<sensitive>" => "<sensitive>" | |
secondary_location: "" => "<computed>" | |
secondary_queue_endpoint: "" => "<computed>" | |
secondary_table_endpoint: "" => "<computed>" | |
tags.%: "" => "<computed>" | |
Error: Error applying plan: | |
1 error(s) occurred: | |
* module.invoice_store.azurerm_storage_account.service_history: 1 error(s) occurred: | |
* azurerm_storage_account.service_history: Error creating Azure Storage Account "tmcaservicehistoryinfra": storage.AccountsClient#Create: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="StorageAccountNotFound" Message="The storage account tmcaservicehistoryinfra was not found." | |
Terraform does not automatically rollback in the face of errors. | |
Instead, your Terraform state file has been partially updated with | |
any resources that successfully completed. Please address the error | |
above and apply again to incrementally change your infrastructure. | |
PS C:\Users\t29597\Development\tmca-servicehistory-infrastructure\infra> terraform plan -out infra.tfplan | |
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
azurerm_resource_group.rd: Refreshing state... (ID: /subscriptions/xxx-...sourceGroups/tmca-servicehistory-infra) | |
azurerm_cosmosdb_account.db: Refreshing state... (ID: /subscriptions/xxx-...baseAccounts/tmca-servicehistory-infra) | |
azurerm_storage_container.insights_metrics: Refreshing state... (ID: https://xxx.blob.core.windows.net/insights-metrics-pt1m) | |
azurerm_storage_container.service_history_logs: Refreshing state... (ID: https://xxx.blob.core.windows.net/service-history-db-logs) | |
azurerm_storage_container.invoice_images: Refreshing state... (ID: https://xxx.blob.core.windows.net/invoice-images) | |
azurerm_storage_container.insights_logs: Refreshing state... (ID: https://xxx.blob.co...ws.net/insights-logs-dataplanerequests) | |
------------------------------------------------------------------------ | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
+ module.invoice_store.azurerm_storage_account.service_history | |
id: <computed> | |
access_tier: "Hot" | |
account_encryption_source: "Microsoft.Storage" | |
account_kind: "StorageV2" | |
account_replication_type: "LRS" | |
account_tier: "Standard" | |
enable_blob_encryption: "true" | |
enable_file_encryption: "true" | |
enable_https_traffic_only: "true" | |
identity.#: <computed> | |
location: "australiasoutheast" | |
name: "tmcaservicehistoryinfra" | |
primary_access_key: <computed> | |
primary_blob_connection_string: <computed> | |
primary_blob_endpoint: <computed> | |
primary_connection_string: <computed> | |
primary_file_endpoint: <computed> | |
primary_location: <computed> | |
primary_queue_endpoint: <computed> | |
primary_table_endpoint: <computed> | |
resource_group_name: "tmca-servicehistory-infra" | |
secondary_access_key: <computed> | |
secondary_blob_connection_string: <computed> | |
secondary_blob_endpoint: <computed> | |
secondary_connection_string: <computed> | |
secondary_location: <computed> | |
secondary_queue_endpoint: <computed> | |
secondary_table_endpoint: <computed> | |
tags.%: <computed> | |
+ module.invoice_store.azurerm_storage_container.insights_logs | |
id: <computed> | |
container_access_type: "private" | |
name: "insights-logs-dataplanerequests" | |
properties.%: <computed> | |
resource_group_name: "tmca-servicehistory-infra" | |
storage_account_name: "tmcaservicehistoryinfra" | |
+ module.invoice_store.azurerm_storage_container.insights_metrics | |
id: <computed> | |
container_access_type: "private" | |
name: "insights-metrics-pt1m" | |
properties.%: <computed> | |
resource_group_name: "tmca-servicehistory-infra" | |
storage_account_name: "tmcaservicehistoryinfra" | |
+ module.invoice_store.azurerm_storage_container.invoice_images | |
id: <computed> | |
container_access_type: "private" | |
name: "invoice-images" | |
properties.%: <computed> | |
resource_group_name: "tmca-servicehistory-infra" | |
storage_account_name: "tmcaservicehistoryinfra" | |
+ module.invoice_store.azurerm_storage_container.service_history_logs | |
id: <computed> | |
container_access_type: "private" | |
name: "service-history-db-logs" | |
properties.%: <computed> | |
resource_group_name: "tmca-servicehistory-infra" | |
storage_account_name: "tmcaservicehistoryinfra" | |
Plan: 5 to add, 0 to change, 0 to destroy. | |
------------------------------------------------------------------------ | |
This plan was saved to: infra.tfplan | |
To perform exactly these actions, run the following command to apply: | |
terraform apply "infra.tfplan" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment