Azure
- No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription.
When trying to run the Select-AzureSubscription powershell command i recieved the following error even though the subscription name was correct: No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription. It turns out that you need to download and update the Azure Publish Settings File before you can do this. The easiest way to do this is to run the following command and follow the prompts:
- Azure Search (search.windows.net) No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 400.
When using Azure Search you may come across the following error when trying to reach the api No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 400 The problem is that search.windows.net will not allow cross origin requests by default and you have to tell it to allow them per index. When creating the index add the following section to your configuration: