Be sure to add your subscription key to the sample. Verify that it is correct (not extra quotes or missing characters). Make sure that the authOptions look something like this:
authOptions: {
authType: 'subscriptionKey',
subscriptionKey: '<Your Azure Maps Key>'
}