From 4f00e49a19c0eaf57518fa8d6d791c938d37b51e Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:31:17 +0100 Subject: [PATCH 01/12] Fix script execution paths and enhance instructions Updated script calls to include './' for execution. Clarified instructions for multiple subscriptions. --- docs/wiki/1-Collect.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/wiki/1-Collect.md b/docs/wiki/1-Collect.md index 22c71eb..887edbc 100644 --- a/docs/wiki/1-Collect.md +++ b/docs/wiki/1-Collect.md @@ -8,25 +8,25 @@ Run the `Get-AzureServices.ps1` script with your target scope. For example: - To include Cost Information add parameter `-includeCost $true`. If you include this parameter, it will also generate a CSV file in the same directory. This CSV file can be used later in `3-CostInformation`. Note: This might take some time depending on how long it takes to download the cost information. ```powershell -Get-AzureServices.ps1 -includeCost $true +.\Get-AzureServices.ps1 -includeCost $true ``` - To collect the inventory for a single resource group, cost not included, run the script as follows: ```powershell -Get-AzureServices.ps1 -scopeType resourceGroup -resourceGroupName -subscriptionId +.\Get-AzureServices.ps1 -scopeType resourceGroup -resourceGroupName -subscriptionId ``` - To collect the inventory for a single subscription, cost not included, run the script as follows: ```powershell -Get-AzureServices.ps1 -scopeType subscription -subscriptionId +.\Get-AzureServices.ps1 -scopeType subscription -subscriptionId ``` -- To collect the inventory for multiple subscriptions, you will need to create a json file containing the subscription ids in scope. See [here](https://github.com/Azure/AzRegionSelection/wiki/media/subscriptions.json) for a sample json file. Once the file is created, run the script as follows: +- To collect the inventory for multiple subscriptions, you will need to create a subscriptions.json file containing the subscription ids in scope. See [here](https://github.com/Azure/AzRegionSelection/wiki/media/subscriptions.json) for a sample json file. Once the file is created, run the script as follows: ```powershell -Get-AzureServices.ps1 -multiSubscription -workloadFile +.\Get-AzureServices.ps1 -scopeType multiSubscription -workloadFile subscriptions.json -includeCost $true ``` ### If using an Azure Migrate export: From c9242f8e811ca9f86e324677ee5cc82b9e3c5174 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:42:02 +0100 Subject: [PATCH 02/12] Update AvailabilityCheck.md for multiple regions Added instructions for generating reports for multiple regions. --- docs/wiki/2-AvailabilityCheck.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index 3463d1c..deb227b 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -26,12 +26,19 @@ Get-Region.ps1 -Region ``` This will generate `Availability_Mapping_.json` in the same directory. +## Multiple Regions +To generate a report for multiple regions, you need to create one Availability_Mapping_.json file per region. +Run the following command for each region: +```powershell +Get-Region.ps1 -Region +``` + ## Example: ```powershell Get-AvailabilityInformation.ps1 # Wait for the script to complete, this may take a while. Get-Region.ps1 -region -# Example1: Get-Region.ps1 -region "east us" -# Example2: Get-Region.ps1 -region "west us" -# Example3: Get-Region.ps1 -region "sweden central" +# Example1: Get-Region.ps1 -region east us +# Example2: Get-Region.ps1 -region west us +# Example3: Get-Region.ps1 -region sweden central ``` From 0b8f78dc0bc000d3bc28a6e30a05067fa28c4766 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:42:29 +0100 Subject: [PATCH 03/12] Update 2-AvailabilityCheck.md --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index deb227b..5beb110 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -37,7 +37,7 @@ Get-Region.ps1 -Region ```powershell Get-AvailabilityInformation.ps1 # Wait for the script to complete, this may take a while. -Get-Region.ps1 -region +Get-Region.ps1 -region # Example1: Get-Region.ps1 -region east us # Example2: Get-Region.ps1 -region west us # Example3: Get-Region.ps1 -region sweden central From ece0acf7104eefe31a84388dc7ce9f83af02f03e Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:45:34 +0100 Subject: [PATCH 04/12] Update example section for region comparison script --- docs/wiki/3-CostInformation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/3-CostInformation.md b/docs/wiki/3-CostInformation.md index e31bc44..2c1afa5 100644 --- a/docs/wiki/3-CostInformation.md +++ b/docs/wiki/3-CostInformation.md @@ -77,7 +77,7 @@ Instructions for use: 2. Ensure the `resources.json` file is present (from the running of the collector script). 2. Run the script using `.\Perform-RegionComparison.ps1`. The script will generate output files in the current folder. -#### Example +### Multiple Regions Example ```powershell $regions = @("eastus", "brazilsouth", "australiaeast") From 0e2168240d4dda2d7a0caf5772677cdd45c8c035 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:48:03 +0100 Subject: [PATCH 05/12] Fix formatting in Step-by-Step Guide --- docs/wiki/Step-by-Step-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/Step-by-Step-Guide.md b/docs/wiki/Step-by-Step-Guide.md index baf2d30..d2baeee 100644 --- a/docs/wiki/Step-by-Step-Guide.md +++ b/docs/wiki/Step-by-Step-Guide.md @@ -66,7 +66,7 @@ $regions = @("Target-region") ``` ```powershell -.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json +.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json ``` This will generate `region_comparison_prices.json` file From 5ce378377041d7ea2641592fd4797213cd27c87b Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:51:19 +0100 Subject: [PATCH 06/12] Modify script commands for local execution Updated script execution commands to include './' for local execution. --- docs/wiki/2-AvailabilityCheck.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index 5beb110..29e1a5a 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -13,7 +13,7 @@ Note that this functionality is not yet complete and is a work in progress. Curr The `Get-AvailabilityInformation.ps1` script only needs to be run once to collect the availability information for all regions, which takes a little while. Run the following script: ```powershell -Get-AvailabilityInformation.ps1 +.\Get-AvailabilityInformation.ps1 ``` It will generate a number of json files in the same directory the important one is the `Availability_Mapping.json` @@ -22,7 +22,7 @@ It will generate a number of json files in the same directory the important one To check the availability of the resources in scope in a specific region run following script: ```powershell -Get-Region.ps1 -Region +.\Get-Region.ps1 -Region ``` This will generate `Availability_Mapping_.json` in the same directory. @@ -30,12 +30,12 @@ This will generate `Availability_Mapping_.json` in the same directory. To generate a report for multiple regions, you need to create one Availability_Mapping_.json file per region. Run the following command for each region: ```powershell -Get-Region.ps1 -Region +.\Get-Region.ps1 -Region ``` ## Example: ```powershell -Get-AvailabilityInformation.ps1 +.\Get-AvailabilityInformation.ps1 # Wait for the script to complete, this may take a while. Get-Region.ps1 -region # Example1: Get-Region.ps1 -region east us From 355b2325904f006c087a7fff9a062f3ad8f4a61d Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:51:06 +0100 Subject: [PATCH 07/12] Update docs/wiki/2-AvailabilityCheck.md Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index 29e1a5a..02b5058 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -40,5 +40,5 @@ Run the following command for each region: Get-Region.ps1 -region # Example1: Get-Region.ps1 -region east us # Example2: Get-Region.ps1 -region west us -# Example3: Get-Region.ps1 -region sweden central +# Example3: Get-Region.ps1 -region swedencentral ``` From 3cab52e8edf9c7f588f907e1efa4ab731e0bf1a6 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:51:18 +0100 Subject: [PATCH 08/12] Update docs/wiki/2-AvailabilityCheck.md Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index 02b5058..205f14f 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -39,6 +39,6 @@ Run the following command for each region: # Wait for the script to complete, this may take a while. Get-Region.ps1 -region # Example1: Get-Region.ps1 -region east us -# Example2: Get-Region.ps1 -region west us +# Example2: Get-Region.ps1 -region westus # Example3: Get-Region.ps1 -region swedencentral ``` From 15e1644d0cb8937f87070b1326135d77f4133222 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:51:32 +0100 Subject: [PATCH 09/12] Update docs/wiki/2-AvailabilityCheck.md Co-authored-by: Jan Faurskov <22591930+jfaurskov@users.noreply.github.com> --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index 205f14f..b113b47 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -38,7 +38,7 @@ Run the following command for each region: .\Get-AvailabilityInformation.ps1 # Wait for the script to complete, this may take a while. Get-Region.ps1 -region -# Example1: Get-Region.ps1 -region east us +# Example1: Get-Region.ps1 -region eastus # Example2: Get-Region.ps1 -region westus # Example3: Get-Region.ps1 -region swedencentral ``` From 08cb01671ff28d1d28c08b5dc026f3a283198b78 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:51:55 +0100 Subject: [PATCH 10/12] Update docs/wiki/1-Collect.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/wiki/1-Collect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/1-Collect.md b/docs/wiki/1-Collect.md index 887edbc..dcb551b 100644 --- a/docs/wiki/1-Collect.md +++ b/docs/wiki/1-Collect.md @@ -23,7 +23,7 @@ Run the `Get-AzureServices.ps1` script with your target scope. For example: .\Get-AzureServices.ps1 -scopeType subscription -subscriptionId ``` -- To collect the inventory for multiple subscriptions, you will need to create a subscriptions.json file containing the subscription ids in scope. See [here](https://github.com/Azure/AzRegionSelection/wiki/media/subscriptions.json) for a sample json file. Once the file is created, run the script as follows: +- To collect the inventory for multiple subscriptions, you will need to create a `subscriptions.json` file containing the subscription ids in scope. See [here](https://github.com/Azure/AzRegionSelection/wiki/media/subscriptions.json) for a sample json file. Once the file is created, run the script as follows: ```powershell .\Get-AzureServices.ps1 -scopeType multiSubscription -workloadFile subscriptions.json -includeCost $true From defbdce5f1cf4f1d790f24b8f1729f7aaf5a4abe Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:52:13 +0100 Subject: [PATCH 11/12] Update docs/wiki/2-AvailabilityCheck.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index b113b47..cf383e2 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -27,7 +27,7 @@ To check the availability of the resources in scope in a specific region run fol This will generate `Availability_Mapping_.json` in the same directory. ## Multiple Regions -To generate a report for multiple regions, you need to create one Availability_Mapping_.json file per region. +To generate a report for multiple regions, you need to create one `Availability_Mapping_.json` file per region. Run the following command for each region: ```powershell .\Get-Region.ps1 -Region From f0ff4e430cc50b161beadd8b7bcfc8b3af3f9fd5 Mon Sep 17 00:00:00 2001 From: Linda Petersson <38290892+lvlindv@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:53:47 +0100 Subject: [PATCH 12/12] Update docs/wiki/2-AvailabilityCheck.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/wiki/2-AvailabilityCheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wiki/2-AvailabilityCheck.md b/docs/wiki/2-AvailabilityCheck.md index cf383e2..f2ca0c7 100644 --- a/docs/wiki/2-AvailabilityCheck.md +++ b/docs/wiki/2-AvailabilityCheck.md @@ -37,7 +37,7 @@ Run the following command for each region: ```powershell .\Get-AvailabilityInformation.ps1 # Wait for the script to complete, this may take a while. -Get-Region.ps1 -region +.\Get-Region.ps1 -region # Example1: Get-Region.ps1 -region eastus # Example2: Get-Region.ps1 -region westus # Example3: Get-Region.ps1 -region swedencentral