Skip to content

Commit 2308400

Browse files
authored
Merge pull request #31 from Azure/wiki-update-dec
Wiki update dec
2 parents f46937f + f0ff4e4 commit 2308400

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

docs/wiki/1-Collect.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ Run the `Get-AzureServices.ps1` script with your target scope. For example:
88
- 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.
99

1010
```powershell
11-
Get-AzureServices.ps1 -includeCost $true
11+
.\Get-AzureServices.ps1 -includeCost $true
1212
```
1313

1414
- To collect the inventory for a single resource group, cost not included, run the script as follows:
1515

1616
```powershell
17-
Get-AzureServices.ps1 -scopeType resourceGroup -resourceGroupName <resource-group-name> -subscriptionId <subscription-id>
17+
.\Get-AzureServices.ps1 -scopeType resourceGroup -resourceGroupName <resource-group-name> -subscriptionId <subscription-id>
1818
```
1919

2020
- To collect the inventory for a single subscription, cost not included, run the script as follows:
2121

2222
```powershell
23-
Get-AzureServices.ps1 -scopeType subscription -subscriptionId <subscription-id>
23+
.\Get-AzureServices.ps1 -scopeType subscription -subscriptionId <subscription-id>
2424
```
2525

26-
- 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:
26+
- 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:
2727

2828
```powershell
29-
Get-AzureServices.ps1 -multiSubscription -workloadFile <path-to-workload-file>
29+
.\Get-AzureServices.ps1 -scopeType multiSubscription -workloadFile subscriptions.json -includeCost $true
3030
```
3131

3232
### If using an Azure Migrate export:

docs/wiki/2-AvailabilityCheck.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Note that this functionality is not yet complete and is a work in progress. Curr
1313
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:
1414

1515
```powershell
16-
Get-AvailabilityInformation.ps1
16+
.\Get-AvailabilityInformation.ps1
1717
```
1818
It will generate a number of json files in the same directory the important one is the `Availability_Mapping.json`
1919

@@ -22,16 +22,23 @@ It will generate a number of json files in the same directory the important one
2222
To check the availability of the resources in scope in a specific region run following script:
2323

2424
```powershell
25-
Get-Region.ps1 -Region <Target-region>
25+
.\Get-Region.ps1 -Region <Target-region>
2626
```
2727
This will generate `Availability_Mapping_<Region>.json` in the same directory.
2828

29+
## Multiple Regions
30+
To generate a report for multiple regions, you need to create one `Availability_Mapping_<Region>.json` file per region.
31+
Run the following command for each region:
32+
```powershell
33+
.\Get-Region.ps1 -Region <Target-region>
34+
```
35+
2936
## Example:
3037
```powershell
31-
Get-AvailabilityInformation.ps1
38+
.\Get-AvailabilityInformation.ps1
3239
# Wait for the script to complete, this may take a while.
33-
Get-Region.ps1 -region <target-region1>
34-
# Example1: Get-Region.ps1 -region "east us"
35-
# Example2: Get-Region.ps1 -region "west us"
36-
# Example3: Get-Region.ps1 -region "sweden central"
40+
.\Get-Region.ps1 -region <target-region>
41+
# Example1: Get-Region.ps1 -region eastus
42+
# Example2: Get-Region.ps1 -region westus
43+
# Example3: Get-Region.ps1 -region swedencentral
3744
```

docs/wiki/3-CostInformation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Instructions for use:
7777
2. Ensure the `resources.json` file is present (from the running of the collector script).
7878
2. Run the script using `.\Perform-RegionComparison.ps1`. The script will generate output files in the current folder.
7979

80-
#### Example
80+
### Multiple Regions Example
8181

8282
```powershell
8383
$regions = @("eastus", "brazilsouth", "australiaeast")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $regions = @("Target-region")
6666
```
6767

6868
```powershell
69-
.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json
69+
.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json
7070
```
7171

7272
This will generate `region_comparison_prices.json` file

0 commit comments

Comments
 (0)