azure

Successful deployment still leads to default page

吃可爱长大的小学妹 提交于 2021-02-10 15:44:05
问题 I followed the contents of three different tutorials in deploying a slightly-modified boilerplate React app to Azure App Services. The primary issue I'm having is that while all deployment pipelines and releases have been successful on Azure DevOps, navigating to the page results in the default landing page for non-deployed app services; Hey, Node developers! Your app service is up and running. Time to take the next step and deploy your code. I'll briefly describe the steps I took to get to

How to retrieve user roles from Azule AD MSAL accessToken?

 ̄綄美尐妖づ 提交于 2021-02-10 15:43:13
问题 I created two applications in Azure portal: one is client app, and another one is web api. I'm getting accessToken in SPA and then using this token to make requests to web api. I created roles for web api app and then assigned one of these roles to myself. Inside web api I can verify user roles for every endpoint using decorators [Authorize(Roles = "Reader, Editor, Admin")] , but I also need access to these roles in my client application. I checked this accessToken using jwt.ms and it has

“Publish” programmatically on Azure Data Factory through powershell or Azure Devops pipeline step

假如想象 提交于 2021-02-10 15:40:15
问题 This question won't have any code because I haven't found any possible way so far but not even a straight no, it's not possible . Azure Data Factory uses adf_publish branch as the official branch on top of the master. ADF publishes the definitions of all the pipelines, triggers, linked services, etc to this adf_publish branch when on the GUI the user clicks on Publish . I need to do this programmatically. I don't want someone to go on the ADF portal itself and click on the Publish button so

“Publish” programmatically on Azure Data Factory through powershell or Azure Devops pipeline step

吃可爱长大的小学妹 提交于 2021-02-10 15:38:36
问题 This question won't have any code because I haven't found any possible way so far but not even a straight no, it's not possible . Azure Data Factory uses adf_publish branch as the official branch on top of the master. ADF publishes the definitions of all the pipelines, triggers, linked services, etc to this adf_publish branch when on the GUI the user clicks on Publish . I need to do this programmatically. I don't want someone to go on the ADF portal itself and click on the Publish button so

“Publish” programmatically on Azure Data Factory through powershell or Azure Devops pipeline step

岁酱吖の 提交于 2021-02-10 15:37:34
问题 This question won't have any code because I haven't found any possible way so far but not even a straight no, it's not possible . Azure Data Factory uses adf_publish branch as the official branch on top of the master. ADF publishes the definitions of all the pipelines, triggers, linked services, etc to this adf_publish branch when on the GUI the user clicks on Publish . I need to do this programmatically. I don't want someone to go on the ADF portal itself and click on the Publish button so

How can i pass a variable between tasks in Azure Devops/VSTS

蓝咒 提交于 2021-02-10 15:11:31
问题 For Task 1 I have a CLI task which simply gets the subnet name and subnet ref as below $subnetname1 = az network vnet subnet list --resource-group vnetrg01 --vnet-name vnet01 --query "[].name" -o tsv $subnetref1 = az network vnet subnet list --resource-group vnetrg01 --vnet-name vnet01 --query "[].id" -o tsv For task 2 I want to deploy an arm template which will use parameters from the pipleine variables in Azure Devops So for example the result of $subnetref1 in Task 1 above needs to

Accessing .net Core API via azure VM throws ERR_CONNECTION_REFUSED

不羁岁月 提交于 2021-02-10 14:40:43
问题 I've set up a linux VM using Azure and I have the public IP from that machine. I've cloned my repo inside that machine and I run dotnet run and I get the output: Hosting environment: Development Content root path: /home/g67Admin/projeto_integrador_grupo67/mdv Now listening on: https://localhost:5001 Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. Then I try to go to: https://(public IP):5001/api/Drivers and I cannot access it, gives me this error ERR

Are the live connections dropped on azure while doing Blue Green deployment

旧街凉风 提交于 2021-02-10 14:40:41
问题 I am deploying my java rest services on Azure App services, I am trying to understand blue green deployment on azure, I read this official blog on Azure Blue Green : https://azure.microsoft.com/en-in/blog/blue-green-deployments-using-azure-traffic-manager/ I got the initial idea, but what if there are many live connections on Blue instance and new code is deployed on the green instance and after sanity testing, we swap blue with green. If there is any live connection on blue will it die or

How to use specific Java version from a conda environment inside of Jupyter notebook

瘦欲@ 提交于 2021-02-10 14:24:00
问题 My overall aim is to use sparklyr within an R Jupyter notebook on my Azure cloud service of Jupyter lab. I created a new conda environment with R, sparklyr and Java 8 (since this is the version supported by sparklyr) as follows: conda create -n r_spark r=3.6 r-essentials r-irkernel openjdk=8 r-sparklyr source activate r_spark R > IRkernel::installspec(user=TRUE, name="rspark", displayname="R (Spark)") When I run R within a terminal session within this environment, everything works fine: R >

Listing all azure vm belonging to particular subnet

女生的网名这么多〃 提交于 2021-02-10 14:22:57
问题 I want to list all azure vms in a particular subnet. I don't know how to write a PowerShell script for this. I am trying the below but it's not giving the desired output. My desired output- All VMs belonging to subnet having ip 10.87.00.01...10.87.99.99 should get listed in my text file subnet_VM.txt $tgtIP = "10.87.xx.xx" $vms = Get-AzureVM foreach($vm in $vms) { $vmIP = (Get-AzureVM -ServiceName $vm.ServiceName –Name $vm.Name).IpAddress foreach($ip in $vmIP) { if($ip -like '$tgtIP*') { $vm