PlagueHO / CosmosDB

PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
http://dscottraynsford.com
MIT License
150 stars 46 forks source link

Cannot import CosmosDB Module into Azure Automation #392

Open ferringer opened 3 years ago

ferringer commented 3 years ago

Issue

I'm unable to import the CosmosDB module into my Azure Automation account. Every time I try to import it it fails, so I wanted to check to see if this is a known issue or not... I've tried importing the module from the PowerShell Gallery, as well as uploading it directly in a compressed folder, and neither approach has worked. I apologize for not being able to provide more details regarding this issue, but all the Azure Automation portal reports is that the module deployment failed and there really aren't isn't any other data or messages provided.

Thanks for contributing your feedback and support! You can optionally submit a Pull Request against this project, if you have a fix you'd like to share.

PlagueHO commented 3 years ago

Hi @ferringer - thanks for raising this. I'll take a look and see what is going on.

PlagueHO commented 3 years ago

Hi @ferringer - I did a quick test and was able to import the CosmosDB module (4.2.1): image

I did have to first make sure Az.Account and Az.Profile modules were imported into the Automation account.

What is the error you were seeing?