Azure CLI returns an incomplete list of webapps - azure-cli

I have been building applications that run on Azure using the Portal and Visual Studio for several years, and I am very happy with it, but after seeing Scott Gutherie demo the command line tools, I decided to give it a go.
When I try to get a list of my web apps, the list is incomplete. az webapp list returns data on one of the two App Service apps that I have in my account, but the other is conspicuously missing, and I haven't been able to sort out why.
Both apps appear in the Azure Portal.
The two apps run in different locations (East US and East US 2), and they belong to different resource groups. Those are the only difference that I can think of. Both were created by deploying an ASP.NET MVC app from within Visual Studio.
Any ideas? Is there something that I am missing?

It seems a known issue. I test in my lab, I get the same result with you. Following is my test steps.
Publish a web app to Azure new resource group from Visual Studio.
Use az webapp list check, I could not find the webapp I publish. Only could find web app created on Azure Portal.
Use az web list -g shuivs. the result is null.
C:\Users\v-shshui>az webapp list -g shuivs
[]
Use az webapp show -n <name> -g <rgname>, I get the following error.
C:\Users\v-shshui>az webapp show -n "WebSite1120171130022504" -g "shuivs"
Usage Error: WebSite1120171130022504 is not a correct app type
I find webapp publish from Visual Studio have different web app kind with created on Portal. I use Power Shell to check it.
According to my test, Azure Cli 2.0 list web app according to web app attribute ‘Kind’. Azure Cli 2.0 can not list web app published from Visual Studio.

Related

How will I host a static HTML page on Azure linux web app?

I have a HTML page which I want to host on Azure web app. I need to host this HTML page in a resource group which is under OS Linux and so I ran the below azure cli command but, it failed.
az webapp up -n surveyordemohtmlpage --html -g MyResource-Group --plan MyPlan -l westeurope
It was throwing error that MyResource-Group cannot be used with the os windows, use different RG
But, I need to use this particular RG as, I need to connect with other web apps in the same RG which are all hosted in linux OS.
Let me know for any suggestion. How will I change the os to linux in the cli command.
az webapp up : Experimental command to create and deploy a web app. Current supports includes Node, Python on Linux & .NET Core, ASP.NET, staticHtml on Windows.
Hosting static HTML app on Linux is not supported at this time.
Probably you can create it in another RG and configure CORS on the web app.
As mentioned in the docs for az webapp up, current support includes Node, Python, .NET Core and ASP.NET. Node, Python apps are created as Linux apps. .Net Core, ASP.NET, and static HTML apps are created as Windows apps.
Also, if you are opting to host your static website with Azure Storage, please know that CORS is not supported with static website.
Here is a blog post consolidating available options.

Run API test in CI (Jenkins)

What is the best way to run an API test that was created via the IBM API Connect Test and Monitor ?
I published a test and I would like my CI sever (jenkins or azure devops) to run it?
Many thanks,
Assaf
Great question Assaf. It is currently not possible in the product, however, is on the roadmap and is coming soon.
We will have APIs and Webhooks to help execute tests as part of your CI/CD processes. Meaning, the same tests you generated using the test composer and run in production can be recycled to ensure your deployments are error free.
As well, Jenkins is an industry standard so we will be providing a plugin to help facilitate the API testing processes via GUI. More details to come, will update this space when it does.
Alternatively keep your eye out here: http://ibm.biz/apitest

How to link MSTest with Report Portal?

We have a Coded UI solution in TFS and run tests from MS Test Manager. How can I post test results into Report Portal?
I have just installed NUGet package from github
But it is unclear for me how to use it. Is there some documentation about using of Report Portal API?
Unfortunately, ReportPortal have no MSTest agent yet. But it has reach API so you could try to implement agent by yourself.
There are couple of other .NET-based clients (as example):
NUunit, Specflow
Server-side API is quite powerful to implement integration with any testing engine. You can have a look at it by the following link (must be logged in):
YOUR_RP_URL/ui/swagger-ui.html
I believe there now there is something that can connect reportportal and mstest: https://github.com/reportportal/agent-net-vstest

click to deploy Hadoop on GCE not working

I'm trying "Click-to-deploy Hadoop on Google Compute Engine" here
Unfortunately this doesn't seems to work : either the process stops almost immediately, or it's like it's frozen.
message displayed is
Deployment may take 3 to 10 minutes to complete, depending on the size of your cluster
Creating deployment
In any case, I can't have any cluster. Tried several zones, Hadoop versions, nothing.
Any thought ?
The problem is occurring because your Cloud project does not have a project id associated with it, but only a project number, which is true for some long-standing Cloud projects.
https://developers.google.com/console/help/new/#projectnumber
You can fix this by going into Developers Console, selecting your project from the project list, selecting Billing & settings from the left-hand navigation, and adding the project id there.
The following URL should take you there directly:
https://console.developers.google.com/project/_/settings
Thanks,
-Matt
A few items to help diagnose the problem:
Go to the Compute Engine instance list and check if there are any instances created for the deployment.
Check if there are any errors raised to the Javascript Console for your browser.
BTW, what browser and version are you using?
Thanks.
No instance deployed (however I can (and had) deployed compute engine VM instances)
I have a 404 in console :
POST https://console.developers.google.com/m/deploy?pid=1090158225078&cmd=custom…ion=europe-west1&app=hadoop&xsrf=R5Ezthkrr1L8xU1STye3sXUiHiA:1414055456964 404 (Not Found)
on Chrome, Windows7
I tried on Firefox too : no 404 in console but same effect : no deployment at all.
The "customdeploy" command should not be returning a 404, so let's check if there's something going on with your Cloud project.
Click to Deploy uses the preview version of Deployment Manager on the backend. Let's check the objects (if any) that Deployment Manager has created for the Hadoop deployment.
To do this, you will need to:
Install the Google Cloud SDK (if you have not already)
Add the preview component
Query for Deployment Manager templates
Query for Deployment Manager deployments
Install the Google Cloud SDK:
Instructions are here: https://cloud.google.com/sdk/
Add the preview component:
gcloud components update preview
Query for Deployment Manager templates
gcloud preview --project=<projectid> deployment-manager templates list
Query for Deployment Manager deployments
gcloud preview --project=<projectid> deployment-manager deployments --region europe-west1 list
One last question. Is this a relatively "new" or "old" Google Cloud project? Sometimes old projects need a feature to be enabled that is automatically enabled on new projects.
Thanks.

Deployed Steroid.js app not appearing in AppGyver Could Services

I am building a Steroid.js/PhoneGap App. I have successfully installed steroids CLI on my computer and am able to create steroids projects using the command.
steroids build {project_name}
My app requires Facebook Auth which I'm trying to implement via the Steroids integrated Facebook Plugin (ios) guide. As per the instructions I am able to generate a QR code for my app using the command
steroids connect
Once I scan the QR code with the AppGyver scanner app I am able to update the deploy app via the command
steroids deploy
But when I go to AppGyver Cloud Services as per the instructions in deploying to cloud services it says.
You have not built any of your apps to the AppGyver Cloud yet
Am I missing something?
As harsa_ suggested,
simply logging in the correct account should fix this issue.
Simply run
steroids logout
and then
steroids login
and everything should work correctly. The two main reasons this happens is because you're either:
1) Logged in in another account
2) You're not logged in