'Getting a reference to a CloudFileDirectory in Azure Automation and PowerShell Runbooks

I'm working with Azure Automation and PowerShell Runbooks and I need to get a reference to a CloudFileDirectory. The directory already exists, and does not need to be created. The only way that I have found to create this reference is to using New-AzStorageDirectory. This looks like it will create the Directory. If this is the only way, how do I call this function to get the CloudFileDirectory? If there is another way please let me know the syntax to call the necessary function.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source