-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream Analytics 'sku' bug for PostgreSQL Flexible Server Output on v2021-10-01-preview #3122
Comments
Looks like according to the spec (https://github.com/Azure/azure-rest-api-specs/blob/14d24d17491d8c2bde24532cb8cc2d663c0ffd9f/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json#L698), there's a |
Hi @mijeffryes |
yes, what Pulumi is sending is valid according to the schema despite not being what the API expects. You can see there's a top level SKU field in line 699: azure-rest-api-specs/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json at 14d24d17491d8c2bde24532cb8cc2d663c0ffd9f · Azure/azure-rest-api-specs as well as a properties.sku defined in line 718: azure-rest-api-specs/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/streamingjobs.json at 14d24d17491d8c2bde24532cb8cc2d663c0ffd9f · Azure/azure-rest-api-specs |
So the missing sku within 'properties' is a bug of the 20211001-preview version of Pulumi in that case, right? Is there any schedule already regarding its fix? |
any updates? this bug makes pulumi unusable for stream analytics with user assigned managed identity |
What happened?
Using the latest API Version 'v20211001preview' results in an error message from the Azure API, saying that 'sku' is missing from the request.
error: Code="422" Message="The required property 'sku' is missing from the request." Details=[{"code":"422","correlationId":"7390fcac-f601-4189-9ec4-c96032dc012f","message":"The required property 'sku' is missing from the request."
Using pulumi up with highest log verbosity revealed that the structure of the API call looks like this:
Based on investigations with Azure support, 'sku' is expected to be inside 'properties'. Also, the (a bit deprecated) doc for the REST API and the one for ARMT confirms that.
This issue is a summarized followup of the initial analysis done in #2835, where the source and reason for the bug has been investigated.
Example
import pulumi
import pulumi_azure_native.streamanalytics as stream
#import pulumi_azure_native.streamanalytics.v20211001preview as stream
from pulumi import ResourceOptions
from string import Template
def generate_streamanalytics_job(login_env, param_set):
config = pulumi.Config()
param_obj_env = config.require_object(login_env)
param_obj_global = config.require_object('GLOBAL')
# retrieve general variables
param_env = param_obj_env.get('env')
param_default_location = param_obj_global.get('resource_location')
# retrieve env specific variables
#param_max_throughput_units = int(param_obj_env.get(f'{param_set}_eh_maximum_throughput_units'))
time_delay_and_aggregate_sec = 60
Output of
pulumi about
CLI
Version 3.108.1
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
azure 5.62.1
azure-native 2.26.0
azuread 5.47.0
python unknown
Host
OS darwin
Version 14.3
Arch x86_64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: