Azure-docs: Unable to use command -Connect-ServiceFabricCluster from Azure Automation

Created on 22 Jan 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

In Azure Automation account - there is no support for the command - Connect-ServiceFabricCluster.

The modules for Service Fabric in the gallery are below:

AzureRM.ServiceFabric
Az.ServiceFabric

Both these modules do not show the command Connect-ServiceFabricCluster in the preview. Please advice.

Thanks,
Pradebban Raja

cxp needs-more-info product-question service-fabrisvc triaged

Most helpful comment

Apologies for the late comment, but I had this headache today and this was the best-worded result Google provided, but alas, no answer is shown. Here's the issue and only resolution I found in hopes I can save someone else the trouble.

@MicahMcKittrick-MSFT this documentation. Most importantly, the very last line in the lead-in paragraph:
"The Service Fabric PowerShell module is installed with the Service Fabric SDK, runtime, and tools."

To say another way, the Connect-ServiceFabricCluster cmdlet is ONLY available on a VM to which the ServiceFabric SDK has been installed; it is NOT an available module on PowerShellGallery. Thereby, it cannot be imported into Azure Automation. I attempted to manually upload the zipped module, but found different errors during that endeavor.

While I would prefer all of the Service Fabric feats to be supported by Azure Automation, I was able to work around the issue by utilizing a Hybrid Worker agent; a place I could install the SF SDK and more easily store and reference (use "-StoreLocation LocalMachine" and not CurrentUser) the certificate. Another lesson learned, in your worker group, ensure that you've installed the SFF SDK on ALL of them...

Now, I'm off to both schedule application restarts and have an alert trigger a runbook via webhook to restart services!

All 5 comments

@rajaprad can you please provide us with the link to the document you are referring to so we can better assist?

@rajaprad I will close for now. When ready let me know and we can reopen and continue.

Apologies for the late comment, but I had this headache today and this was the best-worded result Google provided, but alas, no answer is shown. Here's the issue and only resolution I found in hopes I can save someone else the trouble.

@MicahMcKittrick-MSFT this documentation. Most importantly, the very last line in the lead-in paragraph:
"The Service Fabric PowerShell module is installed with the Service Fabric SDK, runtime, and tools."

To say another way, the Connect-ServiceFabricCluster cmdlet is ONLY available on a VM to which the ServiceFabric SDK has been installed; it is NOT an available module on PowerShellGallery. Thereby, it cannot be imported into Azure Automation. I attempted to manually upload the zipped module, but found different errors during that endeavor.

While I would prefer all of the Service Fabric feats to be supported by Azure Automation, I was able to work around the issue by utilizing a Hybrid Worker agent; a place I could install the SF SDK and more easily store and reference (use "-StoreLocation LocalMachine" and not CurrentUser) the certificate. Another lesson learned, in your worker group, ensure that you've installed the SFF SDK on ALL of them...

Now, I'm off to both schedule application restarts and have an alert trigger a runbook via webhook to restart services!

@MicahMcKittrick-MSFT - This isn't a document issue. Please help moving this to issues under - service Fabric or Azure Automation Repo.

@ChackDan - Your help is much appreciated!

+alex to respond.

From: Pradebban Raja notifications@github.com
Sent: Friday, June 14, 2019 10:40 AM
To: MicrosoftDocs/azure-docs azure-docs@noreply.github.com
Cc: Chacko Daniel chackdan@microsoft.com; Mention mention@noreply.github.com
Subject: Re: [MicrosoftDocs/azure-docs] Unable to use command -Connect-ServiceFabricCluster from Azure Automation (#23023)

@MicahMcKittrick-MSFThttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicahMcKittrick-MSFT&data=02%7C01%7CChackDan%40microsoft.com%7C9bc9ae55bc694f1a2d1008d6f0ef4958%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636961307856859661&sdata=9%2F4kqnxzjJi6GHIgTSIPqSwcVReFiXIV2dpZyXX7pUU%3D&reserved=0 - This isn't a document issue. Please help moving this to issues under - service Fabric or Azure Automation Repo.

@ChackDanhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FChackDan&data=02%7C01%7CChackDan%40microsoft.com%7C9bc9ae55bc694f1a2d1008d6f0ef4958%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636961307856859661&sdata=Eq6JDbiaxQMyMDoj7NOqnD%2B54zyjCo%2BM2HTeN5waxKs%3D&reserved=0 - Your help is much appreciated!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F23023%3Femail_source%3Dnotifications%26email_token%3DACVL3JWKNXLOLEDADRFHMCLP2PJV7A5CNFSM4GRUKDP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXXPNWA%23issuecomment-502200024&data=02%7C01%7CChackDan%40microsoft.com%7C9bc9ae55bc694f1a2d1008d6f0ef4958%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636961307856869656&sdata=fJBLLahQNqsgxN%2BFnWp%2FwaDRGr8kk4xzxKo18ZdvR8I%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACVL3JV75OYTQTS33X4VUKDP2PJV7ANCNFSM4GRUKDPQ&data=02%7C01%7CChackDan%40microsoft.com%7C9bc9ae55bc694f1a2d1008d6f0ef4958%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636961307856879654&sdata=T6M%2BV6e1a0c%2FzF%2FYAM%2BVV6hZqV8keXV9eWst%2BBE4kT8%3D&reserved=0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments