Skip to content

Commit

Permalink
fix acc kv name may the same
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Jul 28, 2023
1 parent 08e02a1 commit 650b68c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ resource "azurerm_application_insights" "test" {
}
resource "azurerm_key_vault" "test" {
name = "acctestvault%[3]d"
name = "acckv%[3]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tenant_id = data.azurerm_client_config.current.tenant_id
Expand Down Expand Up @@ -428,7 +428,7 @@ resource "azurerm_machine_learning_workspace" "test" {
}
}
`, data.RandomInteger, data.Locations.Primary,
data.RandomIntOfLength(12), data.RandomIntOfLength(15), data.RandomIntOfLength(16),
data.RandomInteger, data.RandomIntOfLength(15), data.RandomIntOfLength(16),
data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger)
}

Expand Down Expand Up @@ -460,7 +460,7 @@ resource "azurerm_application_insights" "test" {
}
resource "azurerm_key_vault" "test" {
name = "acctestvault%[3]d"
name = "acckv%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tenant_id = data.azurerm_client_config.current.tenant_id
Expand All @@ -471,15 +471,15 @@ resource "azurerm_key_vault" "test" {
}
resource "azurerm_storage_account" "test" {
name = "acctestsa%[4]d"
name = "accsa%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_machine_learning_workspace" "test" {
name = "acctest-MLW%[5]d"
name = "acc-MLW%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
application_insights_id = azurerm_application_insights.test.id
Expand All @@ -504,13 +504,13 @@ resource "azurerm_private_dns_zone_virtual_network_link" "test" {
}
resource "azurerm_private_endpoint" "test" {
name = "test-pe-%[6]d"
name = "test-pe-%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
subnet_id = azurerm_subnet.test.id
private_service_connection {
name = "test-mlworkspace-%[7]d"
name = "test-mlworkspace-%[1]d"
private_connection_resource_id = azurerm_machine_learning_workspace.test.id
subresource_names = ["amlworkspace"]
is_manual_connection = false
Expand All @@ -523,21 +523,21 @@ resource "azurerm_private_endpoint" "test" {
}
resource "azurerm_virtual_network" "test" {
name = "acctestvirtnet%[6]d"
name = "accvnet%[1]d"
address_space = ["10.1.0.0/16"]
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
}
resource "azurerm_subnet" "test" {
name = "acctestsubnet%[7]d"
name = "accsubnet%[1]d"
resource_group_name = azurerm_resource_group.test.name
virtual_network_name = azurerm_virtual_network.test.name
address_prefixes = ["10.1.0.0/24"]
}
resource "azurerm_network_security_group" "test" {
name = "test-nsg-%d"
name = "test-nsg-%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
security_rule {
Expand All @@ -557,8 +557,5 @@ resource "azurerm_subnet_network_security_group_association" "test" {
subnet_id = azurerm_subnet.test.id
network_security_group_id = azurerm_network_security_group.test.id
}
`, data.RandomInteger, data.Locations.Primary,
data.RandomIntOfLength(12), data.RandomIntOfLength(15), data.RandomIntOfLength(16),
data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger,
data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger)
`, data.RandomInteger, data.Locations.Primary)
}
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ resource "azurerm_application_insights" "test" {
}
resource "azurerm_key_vault" "test" {
name = "acctestvault%[3]d"
name = "acckv%[3]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tenant_id = data.azurerm_client_config.current.tenant_id
Expand Down Expand Up @@ -374,6 +374,6 @@ resource "azurerm_machine_learning_workspace" "test" {
type = "SystemAssigned"
}
}
`, data.RandomInteger, data.Locations.Primary, data.RandomIntOfLength(12),
`, data.RandomInteger, data.Locations.Primary, data.RandomInteger,
data.RandomIntOfLength(15), data.RandomIntOfLength(16))
}
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ resource "azurerm_application_insights" "test" {
}
resource "azurerm_key_vault" "test" {
name = "acctestvault%[3]d"
name = "acckv%[3]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
tenant_id = data.azurerm_client_config.current.tenant_id
Expand Down Expand Up @@ -321,6 +321,6 @@ resource "azurerm_synapse_spark_pool" "test" {
node_count = 3
}
`, data.RandomInteger, data.Locations.Primary,
data.RandomIntOfLength(12), data.RandomIntOfLength(15), data.RandomIntOfLength(16),
data.RandomInteger, data.RandomIntOfLength(15), data.RandomIntOfLength(16),
data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8))
}

0 comments on commit 650b68c

Please sign in to comment.