Office 365 APS1.2 subscription upgrade to APS 2.0 fails with the error:
Subscription #111001: Unable to find domain example.onmicrosoft.com in account #1051234
There are too many hosted domains (over 1000) on the account. The script retrieves domains with the following query:
but default limit for REST queries to APS bus is 1000.
- Edit the script
Find the line #309 (inside the function
path = "/aps/2/resources?implementing(%s)" % dnsZoneType
Modify it as below:
path = "/aps/2/resources?implementing(%s),limit(0,3000)" % dnsZoneType
(set the limit value higher than number of domains on the account)
- Save the file and re-run the script.