microsoftgraph / msgraph-bicep-types

Repo contains Microsoft Graph resource types to integrate with bicep templates.
MIT License
28 stars 2 forks source link

-Verbose does not lists the state of resources #29

Open slavizh opened 9 months ago

slavizh commented 9 months ago

I guess this is expected but running PS command like


New-AzSubscriptionDeployment -Name aadgraph -Location 'West Europe' -TemplateFile .\main1.bicep -Verbose

Does not list the state of the resources deployed:

VERBOSE: Using Bicep v0.21.1
WARNING: WARNING: The following experimental Bicep features have been enabled: Extensibility, MicrosoftGraph Preview. Experimental features should be enabled for testing purposes only. Do not enable these settings for any production usage, or you may be unexpectedly broken at any time!
VERBOSE: 
VERBOSE: 15:41:25 - Template is valid.
VERBOSE: 15:41:26 - Create template deployment 'aadgraph'
VERBOSE: 15:41:26 - Checking deployment status in 5 seconds
VERBOSE: 15:41:31 - Resource  '' provisioning status is succeeded

Expected is that in this case I have resource of type: Microsoft.Graph/groups with name ExampleGroup that should be listed as

...
VERBOSE: 08:03:06 - Resource Microsoft.Graph/groups 'ExampleGroup' provisioning status is running
...
VERBOSE: 08:03:06 - Resource Microsoft.Graph/groups 'ExampleGroup' provisioning status is succeeded
...
shenglol commented 9 months ago

I think this might be general issue for Azure Pwsh when it comes to polling extensible resources. I'll do some investigation.

slavizh commented 9 months ago

as existing resources are also listed in -verbose this behavior applies also to existing resources. Most likely it is obvious but wanted to state it as well as I have done test on existing resources from ms graph.

dkershaw10 commented 3 months ago

@slavizh we unfortunately won't be able to fix this until after we release public preview. Would this be an adoption blocker for you?

slavizh commented 3 months ago

@slavizh current blocker for testing purposes is using SP to deploy.