In Azure I have created a new VM and using azure automation dsc I have uploaded my custom module. In my custom module I am using New-AzureStorageContext. But when VM is connected to DSC Node I get the below error.
The term 'New-AzureStorageContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
When I go to C:\Program Files\WindowsPowerShell\Modules folder in the new vm I do see my custom module imported but I do not see Azuer.Storage. I do see Azure.Storage as one of the default module in the Azure Automation Account. What am I missing?
Configuration Deploy
{
Import-DscResource -ModuleName cWebPackageDeploy
Import-DscResource -ModuleName Azure.Storage
node "localhost"
{
cWebPackageDeploy jswebpackage
{
Name = "website.zip"
StorageAccount = "testdeploy"
StorageKey = "xxxxxxxxxxxxxxxxxxxxxxx"
Ensure = "Present"
PackageVersion = "1.0"
DeployPath = "C:\Temp\Testdeploy"
}
}
}
Deploy