in internal/az/group.go [12:32]
func FindAllDeployedResourceURIs(resourceGroup string) []string {
output, err := shells.ExecuteBashCommand(
"az resource list -g "+resourceGroup,
shells.BashCommandConfiguration{
EnvironmentVariables: map[string]string{},
InheritEnvironment: true,
InteractiveCommand: false,
WriteToHistory: true,
},
)
if err != nil {
logging.GlobalLogger.Error("Failed to list deployments", err)
}
matches := patterns.AzResourceURI.FindAllStringSubmatch(output.StdOut, -1)
results := []string{}
for _, match := range matches {
results = append(results, match[1])
}
return results
}