azure_preview_modules icon indicating copy to clipboard operation
azure_preview_modules copied to clipboard

400 Bad Request- Authorization Header Missing , Azure-rm_resource

Open jlagarda opened this issue 5 years ago • 11 comments

I am using the generic azure_rm_resource module to use the Azure Rest API to create CosmosDb Databases/Containers,

  • name: Create CosmosDB Containers azure_rm_resource: state: present resource_group: "{{resource_group}}" method: POST url: https://{{db_account_name}}.documents.azure.com/dbs api_version: "2018-12-31" subresource:
    • name: example namespace: test body: "{{merchantContainer}}"

MerchantContainer: { "id": "{{containers[0]}}", }

When debugging I see that the Authorization Header is Missing, but I am have tried logging in as Service Principal and Active Directory with the same result on both occasions.

Any help would be appreciated

jlagarda avatar Jul 09 '19 15:07 jlagarda