Skip to main content

Azure Subscription Key

Description#

General#

  • Documentation: https://docs.microsoft.com/en-us/azure/

  • Summary: Azure is a cloud computing service created by Microsoft.
    Multiple APIs are available through Azure (Bing search, translation, speech recognition, etc), they all use the same authentication method, a token passed in a header named Ocp-Apim-Subscription-Key.

  • IPs allowlist: See API Management policies.

  • Scopes: Keys are specific to an API.

Revoke the secret#

You can rotate keys from Azure portal, PowerShell and Azure CLI, see Manually rotate access keys.

Check for suspicious activity#

Azure gives access to detailed logs, see Azure platform logs.

Details for Azure subscription key#

  • Category: Cloud Provider

  • Company: Microsoft

  • High recall: False

  • Validity check available: False

  • Minimum number of matches: 1

  • Occurrences found for one million commits: 127.37

  • Prefixed: False

  • PreValidators:

- type: FilenameBanlistPreValidator  banlist_extensions:  - ^(cs|x|p|s|r)?html5?~?$  - ^[aps]?cssc?~?$  - ^lock$  - ^mdx?~?$  - ^storyboard(c|er)?~?$  - ^xib$  banlist_filenames: []  check_binaries: false- type: ContentWhitelistPreValidator  patterns:  - subscription[-_]?key- type: ContentWhitelistPreValidator  patterns:  - \bbing\b  - microsoft  - azure

Examples#

- text: |    "baseuri": "https://api.bing.microsoft.com/v7.0/search",    "headers": { "Ocp-Apim-Subscription-Key": "bf7ceb0247494d5ea601f15dc63bcaff" },  apikey: "bf7ceb0247494d5ea601f15dc63bcaff"- text: |    `https://api.bing.microsoft.com/v7.0/Suggestions?q=` + value,    headers: { "Ocp-Apim-Subscription-Key": "775986a0c92a44b996051a3d62f337ff" }  apikey: "775986a0c92a44b996051a3d62f337ff"- text: |    $GLOBALS["subscription_key"] = "66eae5acb8594216b5f07768540e93ff";    $request = new Http_Request2('https://api.bing.microsoft.com/v7.0/search');  apikey: "66eae5acb8594216b5f07768540e93ff"