Hi Rahul Rahul_Mahajan . Thanks for following up on these warnings and errors. It really helps us to refine the code! 🙂
- The following issue is fixed and pushed back to the repository, as you've also already stated above in the statement "Fixed it by using Az command and script worked.. One last thing to bring to your notice is below warning :" - so this is just a reminder:
PS>TerminatingError(Get-AzureRmPublicIpAddress): "Method 'get_SerializationSettings' in type 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly 'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation."
2. For the warnings with the messages that having the pattern below, the reason is explained in the message and a link is provided for further information and instructions on how to uninstall the legacy AzureRM modules.
PS>TerminatingError(Import-Module): "AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide."
3. For the warnings with the pattern: WARNING: Cmdlet invocation changes :, these can safely be ignored for now, but thanks for bringing them to my attention because they may potentially become breaking changes and I will create an issue for this in the GitHub repository to track and resolve.
4. Regarding the credential prompt based on your statement above: Please help to understand what to provide here :
This is simply the prompt for the password of the hard-coded username adm.infra.user, which must be at least 12 characters in length and meet the 3 out of 4 complexity requirements rule, which means that 3 out of four of the following types of characters are required 1) At least 1 upper case letter, 2) At least 1 lowercase letter, 3) At least 1 special character and 4) At least 1 numeric character, i.e. 1,2,3...etc. This username and password combination is the credential set used to build the 9 Windows and 1 Linux machine as the local administrative user and password.
Thanks again for reporting these and I hope these responses have been helpful.