Hi @qaiser21 , did you check the samples folder on the repo?
I don't have Storage representative that I can easily talk to Gitter, if we are missing a sample, could you create a bug on Github? https://github.com/Azure/azure-sdk-for-python/issues
I would like to produce custom metric from python code
I dont find example or documentation for AZURE ( it's very easy for aws -> https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html )
Could you help me find an exemple ?
thank you !!!!
I'm trying to use
I've met two problems:
It's hard to understand the exact problem via this error message.
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Bad Request'
Any advisory on these issues would be really appreciated.
Error: self._token = self._credential.get_token(*self._scopes) AttributeError: 'AzureSasCredential' object has no attribute 'get_token'
Code: credentials = AzureSasCredential(sas) apim_client = ApiManagementClient(credential=credentials, subscription_id=subscription_id, base_url=base_url) api_operation_operations = apim_client.api_operation.create_or_update(resource_group_name=resource_group_name, service_name=service_name, api_id=api_id, operation_id=operation_id, parameters=operation_contract)
I seems to be facing an issue with creating a managed_disk or snapshot from scratch disk of a VM, using
begin_create_or_update function and am getting the following error:
Error message was: Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
I have seen a similar error to this earlier last year on this forum. Are they related or is this specific to each entity on Azure?
Hey guys, I'm trying to start using the Entity Tag feature to ensure our transactions are properly isolated. I've been trying to use the documentation at https://azuresdkdocs.blob.core.windows.net/$web/python/azure-cosmos/4.0.0/azure.cosmos.html#azure.cosmos.container.ContainerProxy.replace_item and it defines an
etag keyword argument and a
match_condition argument. The
match_condition argument must apparently be present when the
etag argument is present, and takes an
azure.core.MatchConditions enum (an int from 1-5...).
Unfortunately, I can't find any documentation on what the various
MatchConditions options actually do...
There is a page that describes the enum (https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/1.1.1/azure.core.html#azure.core.MatchConditions) but it doesn't elaborate on what
IfModified etc. actually mean.
To make matters murkier, I tried simply using the
IfPresent value just to see what would happen, and got a completely unexpected exception:
TypeError("request() got an unexpected keyword argument 'etag'"), which doesn't make any sense: why would the
etag be unexpected in this case?
Can anyone shed some light on this?
I'm trying to get started with the
azure.mgmt.logic library. When I run the script I get
ValueError: Invalid tenant id provided. You can locate your tenant id by following the instructions here: https://docs.microsoft.com/partner-center/find-ids-and-domain-names. However, I am quite confident my tenant id is correct. I'm using it elsewhere and I've doublechecked no trailing spaces, etc. in the env var it's stored in. Any pointers?
I can't find any related issues on the web, so here it comes:
I try to make use of the Model.package() functionaity in the Azure ML Python SDK
It tries to connect to a file in a blob storage by making use of a SAS url, which is fine, but at the moment of requesting it, the sas is not valid yet, only when I call it manually later it does work...
so its an issue with timings, anyone who has an idea how to get this fixed?
you can try mgmt SDK to first check if the storage resource is there before connecting to it