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 6 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

@jlagarda Thanks for your open this issue. We will investigate this issue and share any update with you.

Fred-sun avatar Jul 10 '19 09:07 Fred-sun

@zikalino Please help take a look this issue when you're free! Thanks a lot!

Fred-sun avatar Jul 11 '19 08:07 Fred-sun

@MyronFanQiu Could you take a look this issue? which one will pay attention on this module? Thank you very much!

Fred-sun avatar Aug 14 '19 03:08 Fred-sun

@jlagarda Hello. Sorry for the delay due to low bandwidth. I'm not sure which kind of authorization method this endpoint url:https://{{db_account_name}}.documents.azure.com/dbs supports. Usually, service principal works for url: management.azure.com

mmyyrroonn avatar Aug 14 '19 03:08 mmyyrroonn

@jlagarda Can MyronFanQiu's comments solve your question? Is there anything else you need to know? Thanks a lot!

Fred-sun avatar Sep 03 '19 12:09 Fred-sun

kindly ping

Fred-sun avatar Sep 20 '19 07:09 Fred-sun

@jlagarda Please share your full playbook, I will try again. Once it reproduce, Will be of great help to solve this problem. Thank you very much!

Fred-sun avatar Oct 18 '19 05:10 Fred-sun

@jlagarda Could you make this more clear? I don't quite understand the problem of your report? Thank you very much!

Fred-sun avatar Nov 11 '19 07:11 Fred-sun

@gavinfish @haiyuazhang Can you help me with this problem? Thank you very much!

Fred-sun avatar Dec 26 '19 05:12 Fred-sun

@gavinfish @haiyuazhang

Fred-sun avatar Feb 10 '20 09:02 Fred-sun

@jlagarda Thank you very much for your interest in Ansible. This repo is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/azure Please re-submit this Issue in the above repository and closed this. Thank you very much!

Fred-sun avatar May 12 '20 08:05 Fred-sun