Problem btw Azure Devops and Azure Blob Storage (Copt and delete) - azure

I have a blob site where Jekyll content is reposited to Azure Devops, built there and then copied to Azure Blob Storage (after deletion there). This has worked for some time but I haven't submitted for a number of months. The site builds OK on Devops but the Releases part of the pipeline now fails:
2023-02-10T09:09:47.1389516Z ##[error]Error Code: [1]
2023-02-10T09:09:47.1406406Z ##[error]Error: Azure login failed
2023-02-10T09:09:47.1410661Z ##[error]Script failed with error: ERROR: AADSTS7000222:
The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds.
I did regenerate the Storage Account Access Keys and included the change in the Pipeline settings. But as per my earlier blog post on this same issue, that is a "furphy". Its the Service Connection that has to be updated. As per previous resolution, I followed the steps in my blog down to (Under Resolution) step 11. where the Azure Subscription is selectable. When an attempt is made to select the Resource Group (step 12.) it times out. That's my issue.
Link to the blog post: https://davidjones.sportronics.com.au/web/Azure_Devops-Blob_Storage_Credentials-mm-web.html
The Azure Account owner is different to the Devops owner but in the past that has been OK because I can login to Devops with the Azure Account credentials.
I have updated the script to use latest OS. Was 2019 which was limiting what could be done.
Nb: The Build step in the pipeline was separately restored to Windows 2019 as one step in it failed."Install Jekyll and bundler":
gem install jekyll bundler
So at the moment I can't add content to my blog site. Help on this would be much appreciated.

Next day on another system I was able to get through steps 10 onwards as at step 10 an az login popped up. This then populated the Azure Subscription and was able to select the Azure Group. Everything else followed OK, I did have to edit the Release scripts a couple of times before the changes filtered through.
All good now. I can now submit new blog content. :)

Related

Jenkins hosted on VM, not able to fetch Azure resource group names, for a free style project

I don't know why this issue is happening, but I am confident that the configuration was done properly.
I created an Azure VM, installed Jenkins in that, and created a freestyle project. And Then I added the git and Azure Service Principle credentials to the global unrestricted access to Jenkins credentials (system). When I try to add a post-build setup of publishing to an azure web app, I get the following errors.
I have added images, please open the links and look into them, and help me out.
As you can see, the service principle has been successfully verified.
But in the second picture, when I try to access the resource group, it says none, even though I have created a resource group, app service plan, app services etc.
I tested in my enviroment and facing the same Issue,Even after Succefully verified the service principle.
Did few reaseach and found that Azure App Service Plugin is up for adoption and under maintaiance and few of them as been deprecated and also they are looking for new maintainer. The Same issue is happing with other Azure plugin as well like Azure Storage,Azure Cosmos and many more...
Even though in the document its stated you can install the Azure App Service plugin manually before officially release but when i tried to install the maven repro its prompting for enter the credential to download the repro. Seems its private repro we can't access.
For Workaround for this issue or for more information you can reach out to Jenkins Community Team or Support.

Google App Engine gcloud app deploy error [5] using Node.js

I've been successfully deploying my node.js GAE web app for months using gcloud app deploy. It's been a month or so since my last deployment and I've made a few updates since then that I want to get out. So I did my usual
gcloud app deploy
and it uploaded the files and then failed, giving me this error:
(gcloud.app.deploy) Error Response: [5] failed to getGaiaID for "<SERVICE NAME WAS HERE"": generic::not_found: Account disabled: 810593457260
At first I thought it was a payment issue - but my payment info is up to date. The only major change to the code I recall is that between this deploy and the last deployment, I started versioning the project with git and pushing to github.
Does anyone have any ideas? In particular, is there any reason Git or GitHub .git would interfere with a gcloud deployment?
Thanks
So, oddly enough, my account ended up not being disabled. My last three attempts at deploying all occurred at unsecured network locations (airport, hotel, convention center). Apparently, Google gives a disabled account warning when you try to deploy over an unsecure network
Therefore the command gcloud app deploy will not be successful when performed over an unsecure internet network.
Later, attempting to make a deploy over unsecure networks disabled the project in GAE. Since billing was in good standing, they continued to serve my content (and bill for it) but changes to the service were disabled.
To enable them again, follow the instructions:
To enable a service account, at minimum the user must be granted the Service Account Admin role (roles/iam.serviceAccountAdmin) or the Editor basic role (roles/editor)
In the Cloud Console, go to the Service accounts page.
Select the project
Click the name of the service account that you want to enable
Under Service account status, click Enable service account, then click Enable to confirm the change.
Other resources:
How to understand the service accounts
How to create and manage service accounts

Deploy Azure AppService to Url: 404 + no worker is assigned to the app service plan. The site cannot serve any requests

I'm getting a 404 trying to access my azurewebsite.net
My Resource group contains an AppServicePlan, an AppService, SQL Server & SQL Database, a KeyVault & SignalR.
Locally everything works, the AppService is running, AppServicePlan is Ready (1App/0Slots),
Connected Services for SignalR & SQL are configured (in the menu you get when right-clicking WebProject > Publish). KeyVault is configured & accessible. Not sure if these are problem free though, as I keep getting NuGet Errors, stating unable to update NuGet Package.
When I right-click my WebProject & Publish, I get Message Publish has been succeeded. But when I click on the link, I get a 404.
I'm working with two pipelines in AzureDevops
Seeing as official documentation is always lagging behind and showing older interfaces, it has not been much of a help.
I followed https://learn.microsoft.com/en-us/learn/modules/create-release-pipeline/5-deploy-to-appservice this tutorial, did everything stated, but the last step, I didn't get the desired result (an accessible website through azurewebsites.net).
I have a Export template with all connected services configured (I guess generated by azure?) but don't really know what to do with it.
Can anybody pinpoint what I am missing or doing wrong? Or tell me what else I would be needing, apart from the services I mentioned (like Certificates, Active Directory?)
Do I need a gitHub repo next to AzureDevOps Repo & Azure Resources?
Does publishing via VS interfere with my automated pipelinebuilds?
Thanks!
You can try to deploy to Azure App Service in Azure DevOps directly. I used the sample you shared and worked well on my side. Here are my steps:
1.Create the App Service instance in Azure and make sure the default home page is correct.
2.Clone the sample from GitHub to Azure DevOps Repo.
3.Change the deploy stage in the azure-pipelines.yml file on release branch and run pipeline. I removed variable groups and changed the configuration of AzureWebApp task:
4.Browse the page in Azure. I can get the same page as in the tutorial.

How to create a release pipeline on Azure for an Angular project

I wanted to learn e2e deployment of an Angular project. I've a free trial subscription. I've created an app service already and it is running also. See:
But on devops when I try to create a release pipeline the dropdown is empty. It says No subscription or service connection found. See:
the subscription is also active:
This is the screenshot of Project Settings -> service connections -> New service connection -> Azure resource manager -> Service principal (automatic) -> Next (button):
I refreshed multiple times. Deleted the app service and created new service again and again then refreshed again. I was following this YouTube tutorial:
Deploy Angular app using Azure DevOps build and release pipelines
I've commented for help but the person has not replied yet. I watched this video on repeat mode to see If I missed out an important step. Please help me. I tried tips from Microsoft Azure help/troubleshoot page.
You don’t appear to have an active Azure subscription.
We need log in Azure portal to check if your subscription status is active. If the subscription status is active, we should search for “Tenant properties” and disable Security defaults. This solves the problem. We could check this blog for more details.

Deploy Azure Industrial-IOT Stuck at Log In

I am attempting to deploy the Azure Industrial IoT Platform and Simulation in Azure using the deployment scripts found at this Github.
I clone the repo then .\deploy and it starts. It then installs Az and AzureAD. It then just says Signing in ....
It has been on this screen for over two hours.
I have actually been trying this all day with no luck but have restarted it a few times.
I am a global admin in AAD.
Does this mean I have tenant wide consent for my application?
Is there something I am missing?
Let it run over nite. When I arrived today I had message
Warning '***' contains more than one active subscription. First one will be selected for further use.
Followed by
Please choose a subscription from this list
then my two subscriptions.
Its running and building now.

Resources