OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Find an azure resource group by wildcard using pulumi

  • Thread starter Thread starter 300baud
  • Start date Start date
3

300baud

Guest
I'm using pulumi with azure-native and not finding a way that I can query the subscription for resource groups using a wildcard.

The problem I'm trying to solve is needing to get resource keys (eg: storage) from another deployment to be used by the current deployment.

Using Pulumi AI and other searches, the results typically show:

Code:
const listResourceGroups = async () => {
const resourceGroups = await azureNative.resources.listResourceGroups();

resourceGroups.value.forEach(rg => {
    console.log(`Resource Group: ${rg.name}, Location: ${rg.location}`);
});

but listResourceGroups is not available

I've looked into the package and can find getResourceGroup, but this is not what I need.

Any alternatives ?
<p>I'm using pulumi with azure-native and not finding a way that I can query the subscription for resource groups using a wildcard.</p>
<p>The problem I'm trying to solve is needing to get resource keys (eg: storage) from another deployment to be used by the current deployment.</p>
<p>Using Pulumi AI and other searches, the results typically show:</p>
<pre><code>const listResourceGroups = async () => {
const resourceGroups = await azureNative.resources.listResourceGroups();

resourceGroups.value.forEach(rg => {
console.log(`Resource Group: ${rg.name}, Location: ${rg.location}`);
});
</code></pre>
<p>but listResourceGroups is not available</p>
<p>I've looked into the package and can find getResourceGroup, but this is not what I need.</p>
<p>Any alternatives ?</p>
Continue reading...
 

Latest posts

A
Replies
0
Views
1
Ashrik Ahamed
A
A
Replies
0
Views
1
Ashrik Ahamed
A

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top