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
- Azure Powershell module `Az.Monitor 5.2.2` or later
21
-
- Azure Powershell `ImportExcel` module for Azure Migrate script
22
29
23
30
-**Azure Login:** You must be able to authenticate to Azure. If running locally, use `Connect-AzAccount` to sign in with your Azure credentials.
24
31
25
32
## Installation (Getting the Toolkit)
26
33
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`).
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`
30
45
31
46
## Input Data: Providing a Workload Inventory
32
47
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:
Copy file name to clipboardExpand all lines: docs/wiki/Step-by-Step-Guide.md
+30-21Lines changed: 30 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,71 +9,80 @@ Once your environment is ready and you have determined the input method, follow
9
9
10
10
### Authenticate and Set Context
11
11
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
+
```
13
16
14
17
## Run 1-Collect (Inventory Collection)
15
18
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).
19
20
20
21
```powershell
21
-
Get-AzureServices.ps1 -includeCost $true
22
+
.\Get-AzureServices.ps1 -includeCost $true
22
23
```
23
24
24
25
**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:
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
+
29
33
> [!NOTE]
30
34
> Before proceeding, make sure that the output files (`resources.json`, `summary.json` and a `CSV file`) are generated in the `1-Collect` folder.
31
35
32
36
## Run 2-AvailabilityCheck (Service Availability)
33
37
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.
35
39
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:
37
41
38
42
```powershell
39
-
Get-AvailabilityInformation.ps1
43
+
.\Get-AvailabilityInformation.ps1
40
44
```
41
45
42
46
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:
43
47
44
48
```powershell
45
-
Get-Region.ps1 -Region <Target-region>
49
+
.\Get-Region.ps1 -Region <Target-region>
46
50
```
47
51
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
+
48
54
## Run 3-CostInformation (Cost Analysis)
49
55
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.
51
57
52
58
Navigate to the `3-CostInformation` folder and run the script using the `Perform-RegionComparison.ps1` script to do cost comparison with target Region(s).
This will generate `region_comparison_prices.json` file
63
69
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.
65
71
72
+
## Run 7-Report
73
+
74
+
This script generates formatted Excel (`.xlsx`) reports based on the output from the previous check script.
66
75
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.
The script generates an `.xlsx` file in the `7-report` folder, named `Availability_Report_CURRENTTIMESTAMP`.
73
82
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.
76
84
85
+
Please see [7-Report](https://github.com/Azure/AzRegionSelection/wiki/7-Report) for more details.
0 commit comments