I am trying to setup jenkins job to create service fabric cluster locally using powershell script DevClusterSetup.ps1[By default available in setup directory] file. The script is working perfectly when runnin through local powershell. Biut when i am runnins same script it is unable to read registry keys of service fabric. When i am trying with other registry keys its working. only with service fabric reg keys its not working.
Get-ItemProperty : Cannot find path 'HKLM:\Software\Microsoft\Service Fabric SDK' because it does not exist.
At C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1:61 char:20
Where as service fabric sdk is already installed in my system.
Related
i have problem in executing Kubectl commands, its errors out with 502 certificate error
Unable to connect to the server: x509: certificate signed by unknown authority
I can able to login to az login after that I'm connecting with my AKS cluster by using below command
az aks get-credentials --resource-group sitecore10.x-dev-k8s --name sitecore102-Dev-AKS-v1 --overwrite-existingenter code here
After that executing Kubectl get pods or Kubectl get services but it doesn't work
already tried adding environment variables
Opened .kube file and opened the same Url in browser , displayed the below error
Resolved
I got a chance to resolve this issue.
The actual issue is AKS URL (https://AKSInstance.hcp.westus.azmk8s.io:443) is blocked by Company Internet Monitoring Software (Netskope).
i raised a support ticket to whitelist the URL https://*.azmk8s.io
How to check the issue :
C:\Users[YourUserName].kube open config file to identify the AKS URL, try opening the URL directly in the browser, if your getting 401 authentication issue then your good, otherwise if your getting error message related to certificate then it should be your Internet Monitoring software is blocking the AKS URL calls.
I tried to reproduce the same in my environment to connect the AKS cluster from a windows machine:
I have created AKS cluster, like below.
Go to Azure Portal > Kubernetes Services > Create.
Download Kubectl tool here and install the same on a windows machine, like below.
open powershell in CMD and navigate to download folder and run kubectl.exe , like below.
connect your cluster using cloud shell to download .kube.config file. like below.
once connected to the cluster, download the config file to the Local windows machine.
Create a folder with .kube name in your username folder and place the downloaded config file in the same folder.
Path C:\Users\yourusername
Now run kubectl cmd to get the AKS cluster details from the windows machine, like below.
Reference: kubectl unable to connect to server: x509: certificate signed by unknown authority by bherto39.
Need to install LibreOffice to my Azure App Service.
1. Azure DevOps
I used powershell Start-Process to silent install but getting Permission denied.
Start-Process: /home/vsts/work/_temp/5cc8c99d-ed13-4b1b-823b-3cd9b56fdd1b.ps1:5
Line |
5 | Start-Process /home/vsts/work/1/s\LibreOffice_7.4.0_Win_x64.msi -Argu …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| An error occurred trying to start process
| '/home/vsts/work/1/s/LibreOffice_7.4.0_Win_x64.msi' with
| working directory '/home/vsts/work/1/s'. Permission denied
2. Kudu terminal
Getting Access Denied error when trying to run Start-Process manually.
Are there any alternatives to achieve this?
Not possible to install something on the host. The alternative is to use a docker container which has it already installed.
https://azure.github.io/AppService/windows-containers/
App Service supports Windows Containers! Deploying your application in a Windows Container enables you to bring along dependencies such as custom fonts, cultures and GAC deployed assemblies. When deploying a containerized application, the Windows Container is an isolation and security boundary. As a result, calls to libraries that would normally be blocked by the Azure App Service will instead succeed when running inside of a Windows Container.
I installed Azure CosmosDb Emulator but it does not start and gives error:
"Failed loading emulator secrets certificate. Error: 0x80092022"
When I check my certificates, it also does not create any certificates related to cosmos db emulator. Then, I tried to create the certificates manually by "Microsoft.Azure.Cosmos.Emulator.exe /GenCert" command on cmd but this time show the error "Error generating Emulator SSL certificates"
How can I solve this problem?
This is an issue I am actively troubleshooting as well. The way to generate the missing certificates is to do the following:
Open cmd.exe with Administrator
Navigate to CosmosDB Install folder with this command
C:\Program Files\Azure Cosmos DB Emulator
Run this command to ensure the CosmosDB Emulator is shutdown
Microsoft.Azure.Cosmos.Emulator.exe /Shutdown
Run this command to generate the missing certificates:
Microsoft.Azure.Cosmos.Emulator.exe /GenCert
Ensure the following certificate correctly generated in Computer Certificates under Local Computer\Personal\Certificates
DocumentDbEmulatorCertificate | LocalHost
Start CosmosDB from either the start menu or command line and wait for it to fully initialize
I am unable to install the VSTS Agent Azure VM extension on an Azure VM. I tried both the Install extension blade in the Azure portal and the Powershell option. When I try from the portal it just gets stuck at transitioning. If I run the Powershell script it gets stuck trying to connect to server.
I was able to install it on another server without any issues. The 2 servers are part of a web farm so they are exact images.
I am following the steps detailed at this url https://learn.microsoft.com/en-us/vsts/build-release/concepts/definitions/release/deployment-groups/howto-provision-deployment-group-agents?view=vsts .
I am trying to deploy from VSTS to an Azure VM.
This is the screen when I try to run the powershell script.
Run the config file directly (from C:/vstsagent folder) in cmdline and try again with dev.azure.com/{organisation name} url.
I've an App Service running in Azure, it's only a simple node.js app.
I wanted to use a custom deployment script (because I've to execute npm install in a subdirectory) as it is described here:
https://github.com/projectkudu/kudu/wiki/Customizing-deployments
https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script
https://medium.com/#premchandrasingh/custom-continuous-deployment-script-kudu-for-azure-75217ddcebc5
After uploading the deployment package (via .zip file), the execution of the script "fails".
Reason:
/opt/Kudu/bin/Scripts/starter.sh: line 2: /tmp/zipdeploy/extracted/deploy.sh: Permission denied
There must be any problem with kudu or the VM of the webapp.
Any idea?