Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/parsegithubissue-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
- name: get aks resource details
if: env.PROCESS_SUCCESS == 'true'
continue-on-error: true
run: ./scripts/aks/resource-details.sh
run: ./scripts/resource-details.sh

#Run cost calculator python script
- name: process costs
Expand Down
6 changes: 6 additions & 0 deletions scripts/common/log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,9 @@
11:07:55 ----------------------------------------------
11:07:55 Running az graph query...
11:07:56 az graph query complete
13:18:22 ----------------------------------------------
13:18:23 Running az graph query...
13:18:28 az graph query complete
13:18:28 ----------------------------------------------
13:18:28 Running az graph query...
13:18:28 az graph query complete
16 changes: 8 additions & 8 deletions scripts/resource-details.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ function get_vm_costs() {
resources
| where type =~ 'Microsoft.Compute/virtualMachines'
| where tags.autoShutdown == 'true'
| where tags.environment =~ '$env_entry'
| where tolower(tags.businessArea) == tolower('$business_area_entry')
| where tags.environment =~ '"$env_entry"'
| where tolower(tags.businessArea) == tolower('"$business_area_entry"')
| project name, resourceGroup, subscriptionId, ['tags'], properties.extended.instanceView.powerState.displayStatus, properties.hardwareProfile.vmSize, properties.storageProfile.osDisk.osType, ['id']
| where not(tags.builtFrom == 'https://github.com/hmcts/bastion')
" --first 1000 -o json)
Expand Down Expand Up @@ -105,8 +105,8 @@ function get_appgateway_costs() {
resources
| where type =~ 'microsoft.network/applicationgateways'
| where tags.autoShutdown == 'true'
| where tags.environment =~ '$env_entry'
| where tolower(tags.businessArea) == tolower('$business_area_entry')
| where tags.environment =~ '"$env_entry"'
| where tolower(tags.businessArea) == tolower('"$business_area_entry"')
| project name, resourceGroup, subscriptionId, ['tags'], properties.operationalState, properties.sku.tier, properties.sku.name, properties.sku.capacity, ['id']
" --first 1000 -o json)

Expand Down Expand Up @@ -137,8 +137,8 @@ function get_flexible_server_costs() {
resources
| where type =~ 'microsoft.dbforpostgresql/flexibleservers'
| where tags.autoShutdown == 'true'
| where tags.environment =~ '$env_entry'
| where tolower(tags.businessArea) == tolower('$business_area_entry')
| where tags.environment =~ '"$env_entry"'
| where tolower(tags.businessArea) == tolower('"$business_area_entry"')
| project name, resourceGroup, subscriptionId, ['tags'], properties.state, properties.sku.tier, properties.sku.name, ['id']
" --first 1000 -o json)

Expand Down Expand Up @@ -170,8 +170,8 @@ function get_sqlmi_costs() {
resources
| where type =~ 'microsoft.sql/managedinstances'
| where tags.autoShutdown == 'true'
| where tags.environment =~ '$env_entry'
| where tolower(tags.businessArea) == tolower('$business_area_entry')
| where tags.environment =~ '"$env_entry"'
| where tolower(tags.businessArea) == tolower('"$business_area_entry"')
| project name, resourceGroup, subscriptionId, ['tags'], properties.state, properties.sku.tier, properties.sku.name, properties.sku.family, properties.vCores, ['id']
" --first 1000 -o json)

Expand Down
Empty file added sku_details.txt
Empty file.
Loading