Is making a python wrapper for the Azure-PowerShell SDK a stupid idea?
<p>My opinion of the Azure-Python SDK is not high for Azure RM. What takes 1 line in PowerShell takes 10 in Python. That is the opposite of what python is supposed to do.</p>

<p>So, my idea is to create python package which comes with a directory containing a few template .ps1 scripts. You would define a few variables like vmname, resourcegroup, location, etc... inject these into the .ps1 templates, then call commands from the REPL. </p>

<p>Right now I'm having trouble using the subprocess module to keep PS open until I tell it to close. As it stands now, I need to include</p>

<pre><code>login-azurerm
</code></pre>

<p>and authenticate before running <strong>any</strong> command. This won't do. I'd like to fix this, but frankly right now I'm wondering whether or not the premise is a good idea to start with.</p>

<p>Any input is much appreciated!</p>

<p>@RobTruxal, the new CLI for Azure will be in Python and will be released as a preview soon. You can already try it from the github account:
<a href="https://github.com/Azure/azure-cli" rel="nofollow">https://github.com/Azure/azure-cli</a></p>

<p>The Azure SDK for Python is not supposed to mimic the Powershell cmdlets, but to be a language SDK (like C#, Java, Ruby, etc.).</p>

<p>If you have any suggestion/comments about the Python SDK itself, please do not hesitate to fill an issue on the issue tracker: <a href="https://github.com/Azure/azure-sdk-for-python/issues" rel="nofollow">https://github.com/Azure/azure-sdk-for-python/issues</a></p>

<p>(FYI, I'm the owner of the Python SDK repo at MS)</p>

python powershell azure