Recent attempts to control the VM's timed switch via automation in Azure, find an article on the Web, and follow the article to the 6th step of the Import Azure Resource Manager module, you need to import a " Azureresourcemanager.zip "file, but this file is not found on the current page.
In order to load this file, check the data to do the test, before and after two or three days, fortunately finally is successful, here to make a record memo.
1. Where to find this azureresourcemanager.zip file?
After Azure Poweshell is installed, the default is C:\Program Files (x86) \microsoft Sdks\azure\powershell\ There will be a Azureresourcemanager directory under the ResourceManager directory. You can compress this file into Azureresourcemanager.zip.
2. How do I add it as a Auzre automation module?
Method One: On the traditional azure portal, open the Automation account, select the lower import module, and then select the zip file that you just generated to commit.
Method Two: On the new Azure portal, turn on the Automation management account--assets--module.
Then select "Add Module"
Select the previously generated zip file for submission.
Method Three: Use Azure Powershell
New-azureautomationmodule–automationaccountname < created a good automation account name >–contentlink
With PowerShell, you need to upload the Azureresourcemanager.zip file to a location on the web in advance, such as saving it to azure storage and setting it up for public download.
e.g. New-azureautomationmodule–automationaccountname Vmautoshutdown–contentlink https://www.eee.com/ Azureresourcemanager.zip–name Azureresourcemanager–resourcegroupname Vmautoshutdown
Adding ResourceManager modules in Azure automation