Service Fabric Mesh, Don't see Create new option in Azure portal & VS2017 projects showing build errors
jigjim opened this issue · 3 comments
- Service Fabric Mesh, I Don't see Create new option in Azure portal, I Know its Preview version. But how do i create Service Fabric Mesh from Azure Portal?
- I created Service Fabric Mesh project on VS2017,
2.1) When i Re-build the project its showing me 18 errros and not allow me to run locally
2.2) When i try publishing the VS2017 project to Azure, it shows me build error in VS2017.
I Followed the steps from Microsoft docs: https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-quickstart-dotnet-core
Below are the errors i get in VS2017
-----****** Errors *****-----------------
SeverityCodeDescriptionProjectFileLineSuppression State
ErrorConnect-SFCluster : An error occurred while sending the request.ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
ErrorAt line:1 char:138ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error+ ... rosoft.ServiceFabric.Powershell.Http.psd1'; Connect-SFCluster; .'C:\P ...ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error+ ~~~~~~~~~~~~~~~~~ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error + CategoryInfo : ConnectionError: (:) [Connect-SFCluster], ServiceFabricRequestExceptionServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error + FullyQualifiedErrorId : ConnectClusterErrorId,Microsoft.ServiceFabric.Powershell.Http.ConnectClusterCmdletServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
ErrorUnable to Verify connection to Service Fabric cluster. Connect to cluster before invoking the script using the ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
ErrorConnect-SFCluster cmdlet.ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
ErrorAt C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\Scripts\ModuleUtilities.psm1:30 char:9ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error+ throw($errMsg)ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error+ ~~~~~~~~~~~~~~ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error + CategoryInfo : OperationStopped: (Unable to Verif...Cluster cmdlet.:String) [], RuntimeExceptionServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error + FullyQualifiedErrorId : Unable to Verify connection to Service Fabric cluster. Connect to cluster before invokin ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error g the script using the Connect-SFCluster cmdlet.ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
Error ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
ErrorAn error occurred running Delete-ServiceFabricApplicationResource.ps1.
Exit Code: 1
Connect-SFCluster : An error occurred while sending the request.
At line:1 char:138
- ... rosoft.ServiceFabric.Powershell.Http.psd1'; Connect-SFCluster; .'C:\P ...
-
~~~~~~~~~~~~~~~~~
- CategoryInfo : ConnectionError: (:) [Connect-SFCluster], ServiceFabricRequestException
- FullyQualifiedErrorId : ConnectClusterErrorId,Microsoft.ServiceFabric.Powershell.Http.ConnectClusterCmdlet
Unable to Verify connection to Service Fabric cluster. Connect to cluster before invoking the script using the
Connect-SFCluster cmdlet.
At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\Scripts\ModuleUtilities.psm1:30 char:9
-
throw($errMsg)
-
~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (Unable to Verif...Cluster cmdlet.:String) [], RuntimeException
- FullyQualifiedErrorId : Unable to Verify connection to Service Fabric cluster. Connect to cluster before invokin
g the script using the Connect-SFCluster cmdlet.
ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets166
WarningThe project Web1 has a service.yaml file for ServiceFabricMeshApplication, but the NuGet package Microsoft.VisualStudio.Azure.SFApp.Targets is missing or has not been restored. Please ensure that the package is referenced and restored.ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets221
ErrorSFA1001No Service Fabric services were found.ServiceFabricMeshApplicationC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.SFApp.Sdk\build\Microsoft.VisualStudio.Azure.SFApp.Targets.targets221
Same here - I've just moved roles and need to get cracking with SF Mesh ASAP.
Same above - is there somewhere to whitelist our subscription?
Also to add - if I use the 'az cli' method of environment provisioning,
the step 'az extension add --name mesh'
returns 'mesh extension not found'
???
FYI - I down graded the Azure CLI to 2.0.66 and the extension installed fine.
choco install azure-cli --version 2.0.66
Paging @ChackDan
Deep can you please followup