google-cloud-powershell icon indicating copy to clipboard operation
google-cloud-powershell copied to clipboard

GoogleCloud 1.0.1.10 deploy to Azure automation not working

Open githubvick opened this issue 5 years ago • 13 comments

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}"}]}]}}"

githubvick avatar Jun 17 '19 18:06 githubvick

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

quoctruong avatar Jun 17 '19 19:06 quoctruong

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"?

githubvick avatar Jun 17 '19 20:06 githubvick

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

quoctruong avatar Jun 17 '19 20:06 quoctruong

@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.

githubvick avatar Jun 18 '19 14:06 githubvick

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

quoctruong avatar Jun 18 '19 16:06 quoctruong

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.

githubvick avatar Jun 18 '19 18:06 githubvick

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?

quoctruong avatar Jun 18 '19 20:06 quoctruong

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 avatar Jun 19 '19 01:06 githubvick

@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.

githubvick avatar Jun 26 '19 16:06 githubvick

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

quoctruong avatar Jun 26 '19 16:06 quoctruong

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.

githubvick avatar Jun 26 '19 19:06 githubvick

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...

abvogel avatar Apr 29 '21 20:04 abvogel

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)

click4pbj avatar Jun 06 '22 15:06 click4pbj