-
Notifications
You must be signed in to change notification settings - Fork 10
2 AvailabilityCheck
This script evaluates the availability of Azure services, resources, and SKUs across all regions. When combined with the output from the 1-Collect script, it provides a comprehensive overview of potential migration destinations, identifying feasible regions and the reasons for their suitability or limitations, such as availability constraints per region.
Note that this functionality is not yet complete and is a work in progress. Currently, this script associates every resource with its regional availability. Additionally, it maps the following SKUs to the regions where they are supported:
- microsoft.compute/disks
- microsoft.compute/virtualmachines
- microsoft.sql/managedinstances
- microsoft.sql/servers/databases
- microsoft.storage/storageaccounts
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:
.\Get-AvailabilityInformation.ps1It will generate a number of json files in the same directory the important one is the Availability_Mapping.json
To check the availability of the resources in scope in a specific region run following script:
.\Get-Region.ps1 -Region <Target-region>This will generate Availability_Mapping_<Region>.json in the same directory.
To generate a report for multiple regions, you need to create one Availability_Mapping_<Region>.json file per region.
Run the following command for each region:
.\Get-Region.ps1 -Region <Target-region>.\Get-AvailabilityInformation.ps1
# Wait for the script to complete, this may take a while.
.\Get-Region.ps1 -region <target-region>
# Example1: Get-Region.ps1 -region eastus
# Example2: Get-Region.ps1 -region westus
# Example3: Get-Region.ps1 -region swedencentral