You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
when using rover in launchpad mode, combined with a scenario 200 level0 (example) configuration, launchpad creates more storage accounts then rover seems to assume.
In the level0 100 scenario, launchpad only creates storage accounts for the actual state. Those are tagged like this:
After applying the launchpad configuration, rover tries to get the state storage account using this code:
func FindStorageAccount(level string, environment string, subID string) (string, error) {
query := fmt.Sprintf(`Resources
| where type == 'microsoft.storage/storageaccounts'
| where tags.level == '%s'
| where tags.environment == '%s'
| limit 1
| project id`, level, environment)
Unfortunately, this also matches the jridstdiaglogsrg1 diagnostics account. So it tries to push the state to that account and fails due to the missing container called tfstate in this account.
possible soulution:
add the tag tfstate to the query.
Expected Behavior
rover identifies the correct storage account
Actual Behavior
rover uses a random(?) storage account matching the described criteria and fails.
Steps to Reproduce the Problem
run rover in launchpad mode using a level 200 configuration
when using rover in launchpad mode, combined with a scenario 200 level0 (example) configuration, launchpad creates more storage accounts then rover seems to assume.
In the level0 100 scenario, launchpad only creates storage accounts for the actual state. Those are tagged like this:
when using level0 200 configuration, there are additional storage accounts used for diagnostics. These accounts also get tagged:
After applying the launchpad configuration, rover tries to get the state storage account using this code:
Unfortunately, this also matches the
jridstdiaglogsrg1
diagnostics account. So it tries to push the state to that account and fails due to the missing container calledtfstate
in this account.possible soulution:
add the tag
tfstate
to the query.Expected Behavior
rover identifies the correct storage account
Actual Behavior
rover uses a random(?) storage account matching the described criteria and fails.
Steps to Reproduce the Problem
run rover in launchpad mode using a level 200 configuration
Environment Details
Edit:
Workaround:
Change the lauchtpad configuration from
to
this way, the additional storage accounts don't get the level0 tag and the
FindStorageAccount
matches the correct account.The text was updated successfully, but these errors were encountered: