I am trying to create budgets on my Azure subscription. First of all. I tried to use Azure CLI to create budgets.
az consumption budget create --amount
--budget-name
--category {cost, usage}
--end-date
--start-date
--time-grain {annually, monthly, quarterly}
I got the following error as a response: Cost Management supports only Enterprise Agreement, Web direct and Microsoft Customer Agreement offer types. I was not able to figure out what was the issue but I guess it is because our organization is using Azure Sponsorship.
Then, I saw that Azure offers a budget REST API with a PUT request that looks like this:
https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/budgets/TestBudget?api-version=2019-10-01
I am wondering if it's possible to create a budget using the Azure Python SDK? There is a documentation for the Python SDK billing but no examples.
Please try to use Pulumi - it's free for a single user:
https://www.pulumi.com/docs/reference/pkg/azure-native/consumption/budget/
Other option is to use the Azure Arm templates:
https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/quick-create-budget-template?tabs=CLI
Related
I'm creating a schedule-triggered Azure Function which will run tests once a day. If during the run any test fails, I want it to create a bug on a Azure DevOps project which includes a log of the failed tests.
I know I could create a PAT so that it can authenticates with the DevOps REST API but I don't like its downsides:
it can be valid for 1 year at maximum, I will need to remember to extend its expiration period
every bug created like this will have me as its creator
Edit:
I found out I could use a MS Flow - there's a DevOps connector that can create workitems, still it has a downside of having me as workitem's creator but it's not such a pain...
Still would much appreciate to learn about other options...
Is there any better way I can let my Azure Function to create bugs on my DevOps project?
An alternate option would be the use azure logic app along with azure function.
Here the azure function would directly call a azure logic app and the logic app would create a bug workitem .
Refer the following article by Stefan stranger
On how to create logic app which will create the bug. Here we will be using azure webhooks for the creating of bugs.
Now you can either send the data to a storage account where the logic app using some trigger to get the data and then use it to create bug, or you can directly connect to the logic app .
Refer the following article by Laura KokKarinen for this .
I am very new to Azure and Azure market place apps.
I could not find any samples in the Web to create an web application in azure market place. I want to create simple web application then i can publish this in Azure market place. For example, this web application simply retrieves all the users in a SQL table and show the list in a html page.
I tried different solutions in web and also here https://msdn.microsoft.com/en-us/library/azure/gg607768.aspx. But could not able to succeed.
I am confused on how to start developing the market place apps. I mean which project template i should use to develop an Market place App.
Can any one please help me how to start developing the web application for Azure market place?
You may check the process outlined in this document Publish and manage an offer in the Azure Marketplace - this article is provided to help - create, deploy, and manage solutions listed in the Azure Marketplace.
Refer to the Marketplace Publisher Guide and Azure managed applications in the Marketplace for details.
Publish a Solution Template: Based on your requirement, you could use the solution templates which allows you to combine multiple items already available in the marketplace to create more powerful solutions.
Whereas, the ‘Publish a Developer Service’ provides fully managed developer services (SAAS) for developers to use in custom application development.
Note: Solutions Template has migrated to the new Cloud Partner Portal (requires registration prior to access).
Additionally, check the Marketplace FAQs (here): Who do I contact with publishing or offer management questions? : Please visit the Azure Marketplace Publisher Guide for up-to-date resource and documentations on frequently asked questions. Additionally, you can log a ticket with Microsoft Support in the Cloud Partner Portal.
I want to publish an web application on Azure market place.
I can create a Linux VM, install Java, Tomcat, SQL server and create an image of it. But instead of that, is it possible to create a tomcat instance along with database on Azure portal, add it to a resource group and publish this resource group on market place?
Would this approach be more advantageous?
thanks
As per the doc here:
https://learn.microsoft.com/en-us/azure/marketplace-publishing/marketplace-publishing-getting-started
Azure Marketplace offerings are based on Azure VM images or solution templates, your current solution would be the VM based route. It sounds like you may want to look at the solution template route to leverage other capabilities such as Azure SQL Server.
Neither route enable "publish this resource group to the market place". If that is the route you are aiming for that is essentially building out a multi-tenant application which is a bigger task and perhaps something like this link will help get you started:
https://azure.microsoft.com/en-gb/blog/with-newly-available-services-azure-continues-to-be-the-best-place-for-software-as-a-service-developers/
There are also other stackoverflow answers which may be of help:
Does a developer have to pay for publishing a SaaS app on Windows Azure Marketplace?
How can i publish my web solution to Marketplace
I am looking at the GitHub repo and (https://github.com/Azure/azure-sdk-for-java) and I can't seem to find any example on how to obtain the metrics from Azure environment. Is it even supported by the SDK ?
You can refer to the sample code in the Azure SDK for Java GitHub code repo for example on how to get the Azure Storage Account Usage Metrics.
You can also get the test result of the sample code here.
Update 1:
You'll need to use the Azure Monitor REST API for retrieving the granular level metrics for Azure resources such as Virtual Machine or Storage Account.
List metrics for a resource in Azure Monitor REST API
E.g. For retrieving metrics for virtual machine, issue GET request with the below sample REST API.
GET https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Compute/virtualMachines/{virtual_machine_name}/providers/microsoft.insights/metrics?api-version=2016-09-01
At present, Azure SDK for Java does not have the package which supports the Azure Monitor REST API as above. You will need to use some REST client and custom code to manage the REST APIs calls for your usage.
Recently I have become interested in creating a Microsoft Azure Marketplace plugin for our API Developer Portal product DynamicApis.com. We currently have a BizSpark account but I am having trouble finding out where to start when it comes to creating and uploading a Marketplace application on Azure. Here are some questions that I have.
What is the process that I need to go through in order to apply to put my product on Azure Marketplace?
I am assuming there is an API that Azure has that you use to plug-in your application. Where can I find information on that API, sandbox environment, etc?
Is there any helpful documentation, contacts, or any material that anyone can provide me to help with this process
To get started with publishing in the Azure marketplace, follow this getting started guide.