Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Juan Ramos
    @ptjuanramos
    Hi there, do you guys know if this command: az storage queue create, creates an queue if doesn't exist or recreates it
    Kannadasan S
    @Kannadasan89
    Hi, I am trying to use apim python module to automate api creation in apim, but i am getting an error, Could any one help on this?
    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)
    Laurent Mazuel
    @lmazuel
    Hi @Kannadasan89 , can you tell us where you get AzureSasCredential from? You must use credentials from azure-identity: https://pypi.org/project/azure-identity/
    Ashok Rawat
    @ashokf458

    Hi Everyone,
    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?

    Thanks!!

    jk35
    @jk35:matrix.org
    [m]
    Can't get the subnet id of azure using python
    HttpResponseError: (InvalidApiVersionParameter) The api-version '2021-02-01' is invalid
    try other versions as well
    tried*
    palvors
    @palvors
    Hi, anyone know where I can find the list of models ( NN) use it for azure.cognitiveservices.vision.customvision.training.models ? I 'm looking for into the file "azure.cognitiveservices.vision.customvision.training.models"
    Michael Butak
    @mikebutak
    Hi all, I used the azure sdk for python in the past, but never for creating subscriptions. Is that a supported function of the sdk? I have been searching for docs or examples and most of the links on the topic are broken. Any pointers? Thanks!
    Yizhak Orfanian
    @itzikorfa
    Hi,
    I use the azure python SDK to automate deployment, I use the blobserviceclient start_copy_from_url, the issue is that he request put the destination file in pending. is there a way to check if the blob was copied and ready?
    Yiming Lei
    @RAY-316
    @mikebutak As the basic credentials for azure SDK, you may prefer to create subscriptions manually on azure-portal
    Hi @jk35:matrix.org , can you describe in more detail the package name and version you use?
    superelitist
    @superelitist:matrix.org
    [m]

    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 IfMissing, 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?

    Michael Butak
    @mikebutak

    Hello.

    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?

    Michael Butak
    @mikebutak
    I wonder if it could be a case of misleading error message.
    Nick Lang
    @fxdgear
    I'm trying to follow some sort of "getting started" guide for how to query a list of subscriptions from Azure. But all the links I follow end up being redirects to something else..
    but when i try to figure out how to create credentials there's nothing straight forward... I feel like I'm gonna spend a day just trying to figure out the eco system when all i need is 3 lines of code...
    Nick Lang
    @fxdgear

    ok so i got my auth working :)

    But now the problem is when I get my subscrtions the tags attribute is empty and I did put tags on my subscriptions.

    preeteshsh
    @preeteshsh
    Hello, I am trying to resize virtual machine size need to know which library shall I use for this?
    2 replies
    lerrai
    @lerrai
    is it possible to set custom cron for running daily cost export?
    Ashu
    @AshuR1211
    Hi Team. Is there any way I can trigger Azure pipeline with parameters using python
    Lekesh Kumar
    @lekesh
    Hi all. Is it possible to query Change Feed from a specific date and time in python? If yes, please help me with an example code. The documentation doesn't seem to be clear.
    Jagadishbobadeg
    @Jagadishbobadeg
    Hi all, I trying to connect to a azure blob storage account via outbound proxy but connection fails. But connection works fine with a curl command.
    Curl ‘https://outboundcompany.net:8443/containername?SAStoken’ -H ‘Host: Azurestorage.blob.window.net’. How can achieve similar connection settings in blob storage python SDK as shown in the curl command
    Jagadishbobadeg
    @Jagadishbobadeg
    @anybody ?
    Jagadishbobadeg
    @Jagadishbobadeg
    @lmazuel could you help me with the above request ?
    Sammy Deprez
    @sammydeprez_twitter
    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?
    Elendil
    @xboxeer

    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

    Dor
    @WhatRestingWhat_twitter
    Hey all, is there a OnMessage like API in python SDK?
    Could it be implemented with receive_queue_async? (e.g. not adding MAX_WAIT_TIME)
    ^ because after receiving messages, the asyncio.task() returns
    Inder Mohan Singh
    @indermohan_twitter
    Hi all, is there any examples of azure management reservations how do you create a client and get the reservation list