GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

GoogleCloud 1.0.1.10 deploy to Azure automation not working #633

Open githubvick opened 5 years ago

githubvick commented 5 years ago

When I log in to Azure and click on "Deploy to Azure automation" as directed in this link https://www.powershellgallery.com/packages/GoogleCloud/1.0.1.10, I get deployment failed error with message as Conflict. and the resource shows as nestedTemplate.

"{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceDeploymentFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"DeploymentFailed\",\"message\":\"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.\",\"details\":[{\"code\":\"Conflict\",\"message\":\"{\r\n \\"status\\": \\"Failed\\",\r\n \\"error\\": {\r\n \\"code\\": \\"ResourceDeploymentFailure\\",\r\n \\"message\\": \\"The resource operation completed with terminal provisioning state 'Failed'.\\"\r\n }\r\n}\"}]}]}}"

quoctruong commented 5 years ago

Hi @githubvick, can I ask where the Cloud Tools for PowerShell module is involved in the steps above?

githubvick commented 5 years ago

Hi, I'm following instructions from this link. https://www.powershellgallery.com/packages/GoogleCloud/1.0.1.10

and I guess this involves "cloud tools for powershell module"?

quoctruong commented 5 years ago

@githubvick I think this is more of an error on the Azure Automation then this module.

githubvick commented 5 years ago

@quoctruong is there any way to confirm the root cause of the issue so that I could take it back with Microsoft? I had raised a ticket but they mentioned it is a 3rd party module and would have to get help from here.

quoctruong commented 5 years ago

I can confirm that I can install the module. Have you tried listing deployment operations like what the error message suggest?

githubvick commented 5 years ago

The error message posted at the start is all of the description of the error message. Were you able to install the module in Azure without any error? I'm also able to install the google cloud module in my laptop, it doesn't work only with the automated deployment in Azure.

quoctruong commented 5 years ago

Unfortunately, I don’t have an Azure account and am also not familiar with it. Maybe you can ask an Azure customer service support for this?

githubvick commented 5 years ago

I raised a ticket with Azure customer service and they redirected here :( In the page, there is a link that says contact owners and I had submitted a query, but I haven't got any response. I guess you wouldn't be able to help much on this. Thanks for your time.

githubvick commented 5 years ago

@quoctruong When I click on the project site on this page, https://www.powershellgallery.com/packages/GoogleCloud/1.0.1.10 , it redirects me here. Is it possible to contact this project owners and test with Azure and get back more details so that I can take it back with Microsoft? Sorry, I've hit a dead end with this and trying out the various options.

quoctruong commented 5 years ago

@githubvick Have you tried looking into the activity log for more information on the error?

githubvick commented 5 years ago

I have searched everywhere inside and the message at the start of this thread is all of the information that it provides. I don't see any other way unless the project creators respond.

abvogel commented 3 years ago

I get a different error. I've been using Azure Automation with other modules, but Google Cloud won't import:

Error importing the module GoogleCloud. Import failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: An error occurred when trying to import the module to an internal PowerShell session. Either the module dependencies are not imported correctly or the module is unsupported. Internal Error Message: Exception calling "ShouldContinue" with "2" argument(s): "A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the followi...

click4pbj commented 2 years ago

Any updates on this request? I just tried to deploy the Google Cloud Powershell module within azure automation and still receiving an error using 1.0.1.10 (current version) from 9/17/2018.

image

Error importing the module GoogleCloud. Import failed with the following error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: An error occurred when trying to import the module to an internal PowerShell session. Either the module dependencies are not imported correctly or the module is unsupported. Internal Error Message: Exception calling "ShouldContinue" with "2" argument(s): "A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message: Do you want to install Google Cloud SDK? If you want to force the installation without prompt, set $env:GCLOUD_SDK_INSTALLATION_NO_PROMPT to true or add '-quiet' to Import-Module -ArgumentList." . at Orchestrator.Activities.SetModuleVersion.GetPsModuleVersion(String moduleName, String moduleFullPath, Guid accountId, Guid moduleVersionId, InitialSessionState defaultSessionState) at Orchestrator.Activities.SetModuleVersion.InsertModuleVersion(String moduleName, ModuleLanguage moduleLanguage, String pythonModuleVersion, String moduleFullyQualifiedName, ActivitiesMetadataWorkflowExtension activitiesMetadataWorkflowExtension, Guid accountId, Guid moduleVersionId, Int64 moduleContentByteSize, ContentUriInfo contentUri, String storageUri, Int32 moduleVersion) at Orchestrator.Activities.SetModuleVersion.ExecuteInternal(CodeActivityContext context, String moduleName, ModuleLanguage moduleLanguage, String pythonModuleVersion, String modulePath, Guid accountId, Guid moduleVersionId, Int64 moduleContentByteSize, String storageUri, Int32 moduleVersion) at Orchestrator.Activities.SetModuleVersion.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)