Skip to content

Commit 4ba4cc0

Browse files
authored
Merge pull request #24 from Azure/update-wiki
Update wiki
2 parents 68cd63a + 6719d28 commit 4ba4cc0

File tree

2 files changed

+54
-30
lines changed

2 files changed

+54
-30
lines changed

docs/wiki/Setup-and-Prerequisites.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,36 @@ Before using the toolkit, ensure the following prerequisites are met:
1212

1313
- **Azure PowerShell Modules:** Install the necessary Azure PowerShell modules.
1414

15-
- Azure Powershell module `Az.ResourceGraph 1.2.0` or later
16-
- Azure Powershell module `Az.Accounts 4.1.0` or later
17-
- Azure Powershell module `Az.CostManagement 0.4.2` or later
15+
```powershell
16+
Install-Module -Name Az.ResourceGraph -MinimumVersion 1.2.0
17+
Install-Module -Name Az.Accounts -MinimumVersion 4.1.0
18+
Install-Module -Name Az.CostManagement -MinimumVersion 0.4.2
19+
````
20+
21+
If using Azure migrate as input file:
22+
```powershell
23+
Install-Module -Name Az.Monitor -MinimumVersion 5.2.2
24+
```
25+
```powershell
26+
Install-Module -Name ImportExcel -Scope CurrentUser
27+
```
1828

19-
If using Azure migrate as input file:
20-
- Azure Powershell module `Az.Monitor 5.2.2` or later
21-
- Azure Powershell `ImportExcel` module for Azure Migrate script
2229

2330
- **Azure Login:** You must be able to authenticate to Azure. If running locally, use `Connect-AzAccount` to sign in with your Azure credentials.
2431

2532
## Installation (Getting the Toolkit)
2633
To obtain the Region Selection Toolkit on your machine or environment:
27-
1. **Download or Clone** the toolkit’s repository (e.g., via Git): The toolkit is provided as a set of scripts in a GitHub repository (e.g. `Azure/AzRegionSelection`). You can clone it using `git clone https://github.com/Azure/AzRegionSelection.git`, or download the repository ZIP and extract it.
28-
29-
2. **Directory Structure:** After retrieval, you should have a directory containing the toolkit scripts. Key sub-folders include `1-Collect`, `2-AvailabilityCheck`, `3-CostInformation`, and `7-Report` (these correspond to different stages of the analysis). It’s important to keep this structure intact. You do **not** need to compile anything – the toolkit is ready to run via PowerShell scripts.
34+
1. **Download or Clone** the toolkit’s repository: The toolkit is provided as a set of scripts in a GitHub repository (e.g. `Azure/AzRegionSelection`).
35+
```powershell
36+
git clone https://github.com/Azure/AzRegionSelection.git
37+
```
38+
Or download the repository ZIP and extract it.
39+
40+
3. **Directory Structure:** After retrieval, you should have a directory containing the toolkit scripts. These correspond to different stages of the analysis:
41+
- `1-Collect`
42+
- `2-AvailabilityCheck`
43+
- `3-CostInformation`
44+
- `7-Report`
3045

3146
## Input Data: Providing a Workload Inventory
3247
The first step in using the toolkit is to provide an inventory of the workload’s Azure resources. The Region Selection Toolkit supports two main input methods for this inventory:

docs/wiki/Step-by-Step-Guide.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,71 +9,80 @@ Once your environment is ready and you have determined the input method, follow
99

1010
### Authenticate and Set Context
1111
Open a PowerShell prompt in the toolkit’s directory. If you’re in Azure Cloud Shell, you can navigate to the folder where you cloned the toolkit.
12-
- **Log in to Azure:** Run `Connect-AzAccount` to authenticate to Azure.
12+
- **Log in to Azure:** Run the following to authenticate to Azure
13+
```powershell
14+
Connect-AzAccount
15+
```
1316

1417
## Run 1-Collect (Inventory Collection)
1518

16-
Navigate to the `1-Collect` folder and run the script `Get-AzureServices.ps1` to collect the Azure resource inventory and properties, for yor relevant scope (resource group, subscription or multiple subscriptions). The script will generate a `resources.json` and a `summary.json` file in the same directory. The `resources.json` file contains the full inventory of resources and their properties, while the `summary.json` file contains a summary of the resources collected. For examples on how to run the script for different scopes please see [1-Collect Examples](https://github.com/Azure/AzRegionSelection/wiki/1-Collect).
17-
18-
**If using Azure Resource Graph:**
19+
Navigate to the `1-Collect` folder and run the script `Get-AzureServices.ps1` to collect the Azure resource inventory and properties, for yor relevant scope (resource group, subscription or multiple subscriptions).
1920

2021
```powershell
21-
Get-AzureServices.ps1 -includeCost $true
22+
.\Get-AzureServices.ps1 -includeCost $true
2223
```
2324

2425
**If using an Azure Migrate export:** Run `Get-RessourcesFromAM.ps1` against an Azure Migrate `Assessment.xlsx` file to convert the VM & Disk SKUs into the same output as `Get-AzureServices.ps1` For example:
2526

2627
```powershell
27-
Get-RessourcesFromAM.ps1 -filePath "C:\path\to\Assessment.xlsx" -outputFile "C:\path\to\summary.json"
28+
.\Get-RessourcesFromAM.ps1 -filePath "C:\path\to\Assessment.xlsx" -outputFile "C:\path\to\summary.json"
2829
```
30+
31+
The script will generate a `resources.json` and a `summary.json` file in the same directory. The `resources.json` file contains the full inventory of resources and their properties, while the `summary.json` file contains a summary of the resources collected. For examples on how to run the script for different scopes please see [1-Collect Examples](https://github.com/Azure/AzRegionSelection/wiki/1-Collect).
32+
2933
> [!NOTE]
3034
> Before proceeding, make sure that the output files (`resources.json`, `summary.json` and a `CSV file`) are generated in the `1-Collect` folder.
3135
3236
## Run 2-AvailabilityCheck (Service Availability)
3337

34-
This script will check the availability of the services in the target region based on the inventory collected in the previous step. Note that this functionality is not yet complete and is a work in progress. For examples on how to run the script please see [2-AvailabilityCheck Examples](https://github.com/Azure/AzRegionSelection/wiki/2-AvailabilityCheck)
38+
This script will check the availability of the services in the target region based on the inventory collected in the previous step.
3539

36-
Navigate to the `2-AvailabilityCheck` folder and run `Get-AvailabilityInformation.ps1`. It will generate a number of json files in the same directory the important one is the `Availability_Mapping.json` Run the following script:
40+
Navigate to the `2-AvailabilityCheck` folder and run `Get-AvailabilityInformation.ps1`. It will generate an `Availability_Mapping.json` Run the following script:
3741

3842
```powershell
39-
Get-AvailabilityInformation.ps1
43+
.\Get-AvailabilityInformation.ps1
4044
```
4145

4246
Check the availability of the resources in scope for a specific region. This will generate a file named `Availability_Mapping_<Region>.json` in the same directory. Run the following script:
4347

4448
```powershell
45-
Get-Region.ps1 -Region <Target-region>
49+
.\Get-Region.ps1 -Region <Target-region>
4650
```
4751

52+
Note that this functionality is not yet complete and is a work in progress. For more alternatives on how to run the script please see [2-AvailabilityCheck Examples](https://github.com/Azure/AzRegionSelection/wiki/2-AvailabilityCheck)
53+
4854
## Run 3-CostInformation (Cost Analysis)
4955

50-
The Azure public pricing API is used, meaning that, prices are **not** customer-specific, but are only used to calculate the relative cost difference between regions for each meter ID. Please see [3-CostInformation](https://github.com/Azure/AzRegionSelection/wiki/3-CostInformation) for more details.
56+
The Azure public pricing API is used, meaning that, prices are **not** customer-specific, but are only used to calculate the relative cost difference between regions for each meter ID.
5157

5258
Navigate to the `3-CostInformation` folder and run the script using the `Perform-RegionComparison.ps1` script to do cost comparison with target Region(s).
5359

54-
For example:
5560
```powershell
56-
$regions = @("eastus", "brazilsouth", "australiaeast")
57-
.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -reso
61+
$regions = @("Target-region")
5862
```
5963

60-
This will generate `region_comparison_RegionComparison.json` file
64+
```powershell
65+
.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json
66+
```
6167

62-
## Run 7-Report
68+
This will generate `region_comparison_prices.json` file
6369

64-
This script generates formatted Excel (`.xlsx`) reports based on the output from the previous check script. Please see [7-Report](https://github.com/Azure/AzRegionSelection/wiki/7-Report) for more details.
70+
Please see [3-CostInformation](https://github.com/Azure/AzRegionSelection/wiki/3-CostInformation) for more details.
6571

72+
## Run 7-Report
73+
74+
This script generates formatted Excel (`.xlsx`) reports based on the output from the previous check script.
6675

67-
Navigate to the `7-Report` folder and run the `Get-Report.ps1`, also specify the path to the availability information and the cost comparision path. For example:
76+
Navigate to the `7-Report` folder and run the `Get-Report.ps1`, also specify the path to the availability information and the cost comparision path.
6877

6978
```powershell
70-
.\Get-Report.ps1 -availabilityInfoPath ..\2-AvailabilityCheck\Availability_Mapping_<Region>.json -costComparisonPath ..\3-CostInformation\region_comparison_RegionComparison.json
79+
.\Get-Report.ps1 -availabilityInfoPath ..\2-AvailabilityCheck\Availability_Mapping_<Target-region>.json -costComparisonPath ..\3-CostInformation\region_comparison_prices.json
7180
```
7281
The script generates an `.xlsx` file in the `7-report` folder, named `Availability_Report_CURRENTTIMESTAMP`.
7382

74-
Open the generated Excel file. The reports provide detailed information for each service. These reports help you analyze service compatibility and cost differences across different regions.
75-
83+
Open the generated Excel file. The reports provide detailed information for each service. These reports help you analyze service availability and cost differences across different regions.
7684

85+
Please see [7-Report](https://github.com/Azure/AzRegionSelection/wiki/7-Report) for more details.
7786

7887

7988

0 commit comments

Comments
 (0)